angerman / meson64-tools

MIT License
23 stars 7 forks source link

Odroid C4 doesn't boot #3

Closed matwey closed 3 years ago

matwey commented 3 years ago

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 commented 3 years ago

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