google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
411 stars 124 forks source link

U-boot command saveenv is not working for Google Coral Mini. Cannot set bootdelay 0 #844

Open ya-smolin opened 2 months ago

ya-smolin commented 2 months ago

Description

I have the same issue that was discussed here Solution from @hjonnala is very reasonable - U-boot prevent from booting the system and setting bootdelay from 2 to 0 will solve the issue. I can set with setenv from 2 to 0, however it's not permanent. After reboot it's 2 again. Looks like some U-boot bug.

Click to expand! ### Issue Type Bug ### Operating System Mendel Linux ### Coral Device Dev Board Mini ### Other Devices _No response_ ### Programming Language C++ ### Relevant Log Output ```shell My U-boot U-Boot 2019.10 (Dec 09 2020 - 23:51:30 +0000), Build: jenkins-excelsior.excelsior-bootloader-2 CPU: MediaTek MT8516 DRAM: 512 MiB WDT: Started with servicing (60s timeout) MMC: mmc@11120000: 0 Loading Environment from MMC... OK In: serial@11005000 Out: serial@11005000 Err: serial@11005000 8GB mmc detected Hit any key to stop autoboot: 0 u-boot=> printenv baudrate=115200 boot_partition=2 bootcmd=gpio input 42;if test $? -eq 0 || test "${force_fastboot}" -eq 1; then setenv force_fastboot 0; saveenv;gpio clear 19;gpio set 18;run fastboot;run mmcboot;else run mmcboot;fi bootdelay=2 evt2_board=1 fastboot=fastboot usb 0 fdtcontroladdr=5fb8ea30 force_fastboot=0 kerneladdr=0x4A000000 mmcboot=mmc dev ${mmcdev};setenv bootargs ${bootargs} root=PARTUUID=02f36a4f-4562-46b2-bbec-bfc1682f9e92 rootwait; ext2load mmc ${mmcdev}:2 0x4C000000 boot.scr;source; mmcdev=0 serial#=479070024791121002180005183063824812 stderr=serial@11005000 stdin=serial@11005000 stdout=serial@11005000 tftpboot=set ipaddr 192.168.0.100;tftpboot ${kerneladdr} 192.168.0.1:fitImage;bootm ${kerneladdr}; ``` ```