blob: 9bb827a987f024474908771ce5da08c663d79176 [file] [log] [blame]
Jan Kundrátdbbe9b02018-08-20 14:56:02 +02001# status LED blinking: white, 50% duty cycle, rather fast, but not the fastet blinking
2i2c dev 1
3i2c mw 0x60 0x16 0x00
4i2c mw 0x60 0x12 0x80
5i2c mw 0x60 0x13 0x06
6i2c mw 0x60 0x16 0x3f
7i2c mw 0x60 0x0a 0x80
8i2c mw 0x60 0x0b 0x80
9i2c mw 0x60 0x0c 0x80
Václav Kubernát7af53852021-02-24 17:36:25 +010010# reset fan controller
11i2c mw 0x20 0x00 0x40
Jan Kundrát26f5ded2021-02-12 02:55:45 +010012setenv bootargs root=/dev/mmcblk0p${rauc_part} init=/sbin/init-czechlight.sh rauc.slot=${rauc_slot} czechlight=${czechlight} systemd.machine_id=${machineid} panic=10 oops=panic spidev.bufsiz=131072 schedstats=enable
Jan Kundrát3307ccd2018-05-23 19:43:44 +020013if test -n ${czechlight} && load mmc 0:${rauc_part} ${fdt_addr_r} /boot/${czechlight}-clearfog.dtb; then
Jan Kundrát5220d622018-02-13 15:50:59 +010014 echo "DTS: ${czechlight}-clearfog"
15else
16 load mmc 0:${rauc_part} ${fdt_addr_r} /boot/czechlight-clearfog.dtb || reset
17fi
Jan Kundrát6fa87502018-01-12 15:09:58 +010018load mmc 0:${rauc_part} ${kernel_addr_r} /boot/zImage || reset
19bootz ${kernel_addr_r} - ${fdt_addr_r} || reset