Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: AARCH64 booting



I wrote:
>Comparing the debug messages from the Linux disk images and a card with
>the new copy of u-boot - the one that I built from mainline tries to load
>bl30, fails, then reboots.

The ODROID-C2 requires its firmware to be cryptographically signed.

The vendor does provide a Linux x86-64 statically linked binary program
to do this, there is also a set of tools with source to do the same at:
<https://github.com/afaerber/meson-tools>. I only tried using the Linux
binary but it seems to work.

I built the firmware from a combination of mainline u-boot,
vendor u-boot: <https://github.com/hardkernel/u-boot>, and
vendor trusted firmware: <https://github.com/hardkernel/u-boot_firmware>.

Will probably need some help with creating packages to build this.

I now get the following, not sure yet what is causing the garbage output
from locore:

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
TE: 205346
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...
Load bl1 from SD, src: 0x00020200, des: 0x10100000, size: 0x00011130


--- 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: 0x0005fe70
be ad de d f0 ad ba ef be ad de not ES chip
[0.320114 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


U-Boot 2017.11 (May 22 2018 - 18:54:58 +0100) odroid-c2

DRAM:  2 GiB
MMC:   mmc@72000: 0, mmc@74000: 1
Using default environment

In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:
=> fatload mmc 0 0x11000000 netbsd.ub
reading netbsd.ub
5168640 bytes read in 222 ms (22.2 MiB/s)
=> fatload mmc 0 0x10000000 meson-gxbb-odroidc2.dtb
reading meson-gxbb-odroidc2.dtb
24611 bytes read in 2 ms (11.7 MiB/s)
=> fdt addr 0x10000000
=> booti 0x11000000 - 0x10000000
## Flattened Device Tree blob at 10000000
   Booting using the fdt blob at 0x10000000
   Loading Device Tree to 000000000eff6000, end 000000000efff022 ... OK

Starting kernel ...

boot NetBSD/evbarm (aarch64)
SP               = 000000000100aed0L0L060A00Crr010d0010000L0000L00=8y0]0r0d00t020ce0060e0060 00001000010000L0000
[0]3r0400t0500n000ce0060 0060 000010000L0000L0008
[0]3y0]2r0721t0d01t0a0cn0000n000cn000cn000cn000ce0000e0000e0060 0060 0060 00001000010000L0000L0000L0004
[0]2y0]41r0600n010cn0000 00001000010000L0000L00=8
[0]2y0]5r0300n010ce0000 00601000010000L0000L00=0L00=4y0]61r0000n0100 000010000L0000L0000L0000
0000L0008
[0]2y0]3r0371t0901t0d00n010cn010ce010cn0100e0000]01tp
 FDT d con


Home | Main Index | Thread Index | Old Index