It doesn't make a lot of sense to me and it's hard to comment as I've never had boot issues with C2 boards using eMMC modules or any of the random SD cards in my collection; other than deliberate experiments with patches that were likely to break boot.
[Odroid-C2] GXBB / S905 and LE 11.06 or 12 does not boot
-
special -
May 23, 2024 at 1:30 AM -
Thread is Unresolved
-
-
I might try a slower micro-SD card as was suggested. I will also ask in the Odroid forums.
-
special I did some device-tree archaeology on the Linux 3.14.y sources (used in LE 9.x images) and HardKernel 3.16.y sources.
LE sources only describe the basic "highspeed" card mode and max-speed as 100MHz. HK sources support highspeed and UHS 50/104 card modes, but a lower max-speed of 85MHz. The upstream kernel describes highspeed and UHS 12/25/50 (and DDR50 for some reason) but not UHS104, with max-speed set to 100MHz.
The current image here: https://chewitt.libreelec.tv/testing/LibreE…droid-c2.img.gz aligns the upstream kernel controller capabilities and speeds with the HK vendor kernel (remove UHS12/25 and DDR50, add SDR104, reduce the max-speed to 85MHz). Please write to a card (the problem card) and see if that makes any difference?
-
i have the same problem, tried all kinds of old 2GB, 8 GB, 16 GB and 32 GB SDcards but it does not boot.
chewitt also tried your newests build from your postr above but at least for me it does not help, just the red light and nothing more happens...
-
ilovebytes someone replied to special post in the HK forums with a link to this:
Odroid C2 | Does not boot on reboot without power cycling · Issue #5414 · MichaIng/DietPiDietPi version | G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=1 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng'…github.comThis image: https://chewitt.libreelec.tv/testing/LibreE…droid-c2.img.gz now contains that change. Please go test and report back.
-
i tried this image and unfortunatley alt least for me no help, not booting up, the c2 stays with red led on and blinking led from lan port but nothing else happens...
-
I've been able to replicate the issue with my C2 board. It boots KERNEL but then fails to load SYSTEM with the famous "Error in mount_flash: mount_common: Could not mount LABEL=LIBREELEC" and eventually the UART console fails to the initramfs shell where I've been able to get some logs which show an error with the ddr-50 mode:
External Content pastebin.comContent embedded from external sources will not be displayed without your consent.Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.Combining the tf_io GPIO_OPEN_DRAIN patch and removing sd-uhs-ddr50, the card I'm using now installs/boots/reboots fine.
Please retest with: https://chewitt.libreelec.tv/testing/LibreE…droid-c2.img.gz
-
thanks for you trying to help but unfortunatley it still does not work for me, i tried 4 different sc cards from sizes 2GB, 8GB, 16Gb and 32 GB. I also tried to write the image to sd card with different programms like balena etcher, rufus and libreelec writer.
nothing works for me, when i use coreelec 9.2.8 or old libreelec version 9.x.x with any of this sd cards it boots without problems
is there anything i could investigate on my side maybe to help you find a working solution ?
-
is there anything i could investigate on my side maybe to help you find a working solution ?
Connect a UART cable to the pins on the board and boot, and when it fails .. wait until it drops to the initramfs shell and copy/paste the log to pastebin, then share the URL so we can see what/how things went wrong.
-
which adapter ca i use to do this ? something like this ?
https://www.amazon.de/gegenseitige-Konvertierung-Adapter-Multifunktions-USB-Windows/dp/B07XZ3PV8T/
-
I have loads of these: https://www.amazon.de/-/en/UART-TTL-…/dp/B0B7RHPMT7/ but they are mostly all the same.
The UART pinout is here: https://wiki.odroid.com/odroid-c2/application_note/gpio/uart. Note that you only need to connect GND, TX, and RX. Black is always ground. TX/RX are varied and it's harmless to mix them up and swap them. Avoid the 5V pin on both ends as it's not required and it's easy to damage things.
-
hi chewitt i am sorry, it took me some time to get the adapter an to find time to try it out, but this is what i get on first boot after writing your file from post #25 onto sd :
Code
Display MoreGXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0; TE: 280255 no sdio debug board detected BL2 Built : 11:44:26, Nov 25 2015. gxb gfb13a3b-c2 - jcao@wonton Board ID = 8 set vcck to 1100 mv set vddee to 1050 mv CPU clk: 1536MHz DDR channel setting: DDR0 Rank0+1 same DDR0: 2048MB(auto) @ 912MHz(2T)-13 DataBus test pass! AddrBus test pass! Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0 Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0 Sending bl30........................................OK. Run bl30... Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x000018c0 Wait bl30...Done Sending bl301.......OK. Run bl301... 0x10100000, size: 0x0001113020200, des --- UART initialized after reboot --- [Reset cause: unknown] [Image: unknown, amlogic_v1.1.3046-00db630-dirty 2016-08-31 09:24:14 tao.zeng@droid04] bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: ef Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0009ca50 be ad de d f0 ad ba ef be ad de not ES chip [0.394909 Inits done] secure task start! high task start! low task start! NOTICE: BL3-1: v1.0(debug):4d2e34d NOTICE: BL3-1: Built : 17:08:35, Oct 29 2015 INFO: BL3-1: Initializing runtime services INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 <debug_uart> U-Boot 2024.04 (Jul 01 2024 - 16:21:37 +0000) odroid-c2 Model: Hardkernel ODROID-C2 SoC: Amlogic Meson GXBB (S905) Revision 1f:b (0:1) DRAM: 2 GiB Core: 170 devices, 29 uclasses, devicetree: separate MMC: mmc@72000: 0, mmc@74000: 1 Loading Environment from nowhere... OK In: usbkbd,serial Out: serial Err: serial Net: eth0: ethernet@c9410000 Hit any key to stop autoboot: 0 =>
i hope this is of any help to you for sorting the problems out..
-
Interesting, it's stopped at the u-boot console prompt. Are you able to run commands at the prompt, or has it locked up?
-
hi chewitt, no i cannot run any commands at the prompt, so i assume it is indeed locked up.
btw. if i boot up this sd then a second time i just get this gibberish (what i assume is normal as the first boot up is stuck )
-
Second boot from a hung board requires power cycling so it's technically no different from the first boot. The gibberish looks like a buffering issue to me, i.e. rubbish drivers for whatever USB UART cable. Using Windows? .. If using macOS the "Serial" app is the one to use (non-free, but worth it).
The only time I've seen boards boot and get stuck here is on some (but not all) WeTek Hub boards. The current suspicion with them is that noise on the UART connection (perhaps related to dry solder joints) is interpreted by u-boot as keyboard input and thus it drops to the console (although then the console must have some other issue to not be accessible).
I'm going to create a one-off image with the u-boot console compiled out or compile differently to see if that allows the device to boot. That might take a day or two to get around to, but I'll post a link when done.
-
ok take your time no need to hurry, i am glad you try to help me
i am on windows 11 using putty for uart the c2, but if its any better i could also try it with linux and minicom...
-
https://chewitt.libreelec.tv/testing/LibreE…droid-c2.img.gz has a 5 second bootdelay set, which should pause boot waiting for input. If you hit enter/space it should enter the u-boot console and you can run commands. There no specific command to run; i'm interested in whether you can provide input or not, or does the board continue to stop/lockup at that point?
-
i tried it but still the same i am not able to enter the console an run any command...
Code
Display MoreGXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0; TE: 281621 no sdio debug board detected BL2 Built : 11:44:26, Nov 25 2015. gxb gfb13a3b-c2 - jcao@wonton Board ID = 8 set vcck to 1100 mv set vddee to 1050 mv CPU clk: 1536MHz DDR channel setting: DDR0 Rank0+1 same DDR0: 2048MB(auto) @ 912MHz(2T)-13 DataBus test pass! AddrBus test pass! Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0 Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0 Sending bl30........................................OK. Run bl30... Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x000018c0 Wait bl30...Done Sending bl301.......OK. Run bl301... 0x10100000, size: 0x0001113020200, des --- UART initialized after reboot --- [Reset cause: unknown] [Image: unknown, amlogic_v1.1.3046-00db630-dirty 2016-08-31 09:24:14 tao.zeng@droid04] bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: ef beLoad bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0009ca50 ad de d f0 ad ba ef be ad de not ES chip [0.396729 Inits done] secure task start! high task start! low task start! NOTICE: BL3-1: v1.0(debug):4d2e34d NOTICE: BL3-1: Built : 17:08:35, Oct 29 2015 INFO: BL3-1: Initializing runtime services INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 <debug_uart> U-Boot 2024.04 (Jul 06 2024 - 12:13:22 +0000) odroid-c2 Model: Hardkernel ODROID-C2 SoC: Amlogic Meson GXBB (S905) Revision 1f:b (0:1) DRAM: 2 GiB Core: 170 devices, 29 uclasses, devicetree: separate MMC: mmc@72000: 0, mmc@74000: 1 Loading Environment from nowhere... OK In: usbkbd,serial Out: serial Err: serial Net: eth0: ethernet@c9410000 Hit any key to stop autoboot: 0 =>
i also tried two other sd cards (one of them runs librelec 9.x and latest coreelec for c2 without any problems) but still the same it does not boot up and console is locked up
-