Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odroid C4 doesn't boot #3

Closed
matwey opened this issue Mar 15, 2021 · 1 comment
Closed

Odroid C4 doesn't boot #3

matwey opened this issue Mar 15, 2021 · 1 comment

Comments

@matwey
Copy link
Contributor

matwey commented Mar 15, 2021

Hi,

I am trying to use meson64-tools to craft bootable image for Odroid c4 microsd card.

I do the following. I take fip directory from https://github.com/LibreELEC/amlogic-boot-fip and then follow the instructions from the upstream u-boot doc/board/amlogic/odroid-c4.rst.

Firstly, I use prebuild aml_encrypt_g12a tool provided in fip directory by LibreFLEC. If use the tool, then the board boots fine:

U-Boot 2021.01 (Mar 04 2021 - 14:59:52 +0000) odroid-c4

Model: Hardkernel ODROID-C4
SoC:   Amlogic Meson SM1 (S905X3) Revision 2b:c (10:2)
DRAM:  3.8 GiB
MMC:   sd@ffe05000: 0, mmc@ffe07000: 1
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@ff3f0000
Hit any key to stop autoboot:  0

Then I try to do the same steps, but using meson64-tools instead of prebuild aml_encrypt_g12a.
Unfortunately, bootmk doesn't produce u-boot.bin.sd.bin at the last step, so I deploy u-boot.bin instead. Then nothing happens at power on:

SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:1;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:2;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:1;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:2;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:3;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:4;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:5;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:6;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:7;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:8;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:9;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:A;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:B;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:C;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:D;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:E;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:F;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;

Probably, I've just missed the idea how to create u-boot.bin.sd.bin required to be deployed on the sd card.

@matwey
Copy link
Contributor Author

matwey commented Mar 17, 2021

Now, it is working. The idea was to put u-boot.bin at 512 offset.

@matwey matwey closed this as completed Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant