Closed DeqingSun closed 1 week ago
CCC means you enter the USB FEL, maybe it's a RTC reg set error.
Do you have any recommendations to debug such an error? Reboot is useful in many cases.
Do you mean it might be related to the lichee/brandy-2.0/spl/nboot/main/boot0_main.c
And rtc_probe_fel_flag() became true?
Some notes:
Adding parameters to reboot or run a command like "echo "efex" > "/sys/devices/platform/soc/rtc/flag" can change global_pgregbase,which is 0x07090118 (sun8iw21p1.dtsi, rtc: rtc@7090000)
And this seems would be read by "rtc_get_bootmode_flag" in brandy/brandy-2.0/u-boot-2018/board/sunxi/board_helper.c But that code is a part of uboot.
The serial output @ 115200 outputs
[ 1161.288910] sunxi-mmc sdc0: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1161.516272] [alarmtimer] have no shutdown alarm! alarmtimer_shutdown 322
[ 1161.524105] sunxi_ohci_hcd_shutdown, ohci0-controller is disable, need not shutdown
[ 1161.532740] sunxi_ehci_hcd_shutdown, ehci0-controller is disable, need not shutdown
[ 1161.541462] reboot: Restarting system
[ 1161.545674]
[ 1161.547343] Restarting Linux version 4.9.191 (root@01b553b5a3ac) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #1 PREEMPT Tue Jun 4 02:40:11 UTC 2024
[ 1161.547343]
CCC
I feel the uboot has not been reached?
After trying many times, I still couldn't reproduce your error, like your SD Card not did not respond to the second startup
Oh it might be the reason. I have not tried another sd card.
I will try another sd card and also try to solder the nand flash for testing. If this is the issue, I will dump the sd signal for further analysis.
It is a card issue. I was using a Sandisk Ultra 32GB card, and there was a reboot issue. I changed a ATP 4GB card, and the reboot worked well!
When it works reboot
will do a regular reboot and reboot efex
will enter enter the USB FEL.
It happens both with the official image or my built from source.
When I run reboot in adb shell,
the serial port prints following code and freezes.