Port-arm archive

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

Re: Booting 9 on odroid-c1



You need a new U-Boot that can deal with start address 0 images.

Source: https://github.com/jaredmcneill/u-boot-odroid
Binary: http://www.netbsd.org/~jmcneill/u-boot.bin.odroidc1

You also need to load the board's dtb and pass it to the kernel:

  setenv bootcmd "fatload mmc 0:1 0x21000000 netbsd.img; fatload mmc 0:1 0x20000000 meson8b-odroidc1.dtb; bootm 0x21000000 - 0x20000000"

HTH,
Jared

On Mon, 28 Oct 2019, Andrew Cagney wrote:

I'm just wondering what the new formula is.  The ODROID-C1 kernel
config was merged (shame as #options        EARLYCONS=meson,
CONSADDR=0xc81004c0 looks useful).  If I throw netbsd.ub at it I get
the below (note the wrong start address for starters):

Loading boot.ini from mmc0:1 (vfat)
Executing the script...
setenv bootargs "root=sd0a awge0.mac-address=${ethaddr}"
setenv bootcmd "fatload mmc 0:1 0x21000000 netbsd-ODROID-C1.ub; bootm
0x21000000"
run bootcmd
reading netbsd-ODROID-C1.ub
9355732 bytes read
## Booting kernel from Legacy Image at 21000000 ...
  Image Name:   NetBSD/earmv7hf 9.0_BETA
  Image Type:   ARM Linux Unknown Image (uncompressed)
  Data Size:    9355668 Bytes = 8.9 MiB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK
Wrong Image Type for bootm command
ERROR: can't get kernel image!
MMC read: dev # 0, block # 1216, count 16384 ... 16384 blocks read: OK
MMC read: dev # 0, block # 1088, count 128 ... 128 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!

vs:

odroidc#fatload mmc 0:1 0x21000000 netbsd-ODROID-C1.20190511.ub; bootm
0x21000000
reading netbsd-ODROID-C1.20190511.ub
5948244 bytes read
## Booting kernel from Legacy Image at 21000000 ...
  Image Name:   NetBSD/amlogic 8.0_STABLE
  Image Type:   ARM NetBSD Kernel Image (uncompressed)
  Data Size:    5948180 Bytes = 5.7 MiB
  Load Address: 00100000
  Entry Point:  00100000
  Verifying Checksum ... OK
  Loading Kernel Image ... OK
OK
uboot time: 328779122 us.
## Transferring control to NetBSD stage-2 loader (at address 00100000) ...




Home | Main Index | Thread Index | Old Index