Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Booting 9 on odroid-c1
On Mon, 28 Oct 2019 at 14:42, Jared McNeill <jmcneill%invisible.ca@localhost> wrote:
>
> 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"
Ah, thanks! While I suspect I could have DD'd u-boot.bin.odroidc1 all
over my SD card, I ended up building a new card (it seemed safer and
my root was on a separate USB disk).
Can https://wiki.netbsd.org/ports/evbarm/odroid-c1/ be updated?
- looks like console=fb is no longer the default
- I downloaded both u-boot.bin.odroidc1 and
u-boot-odroidc-v2011.03-20150308.tar.gz
next is figure out why the network didn't come up and then upgrade userland.
Thanks again.
For reference I used the following:
if test ! armv7.img -nt releasedir/evbarm/binary/gzimg/armv7.img.gz; then
gunzip < releasedir/evbarm/binary/gzimg/armv7.img.gz > armv7.img.tmp
mv armv7.img.tmp armv7.img
fi
url=http://ftp.netbsd.org/pub/NetBSD/misc/jmcneill/odroidc1/u-boot-odroidc-v2011.03-20150308.tar.gz
test -r $(basename $url) || ftp $url
test -r u-boot.bin || gunzip < $(basename $url) | tar xpvf -
url=http://www.netbsd.org/~jmcneill/u-boot.bin.odroidc1
test -r $(basename $url) || ftp $url
cp armv7.img odroid-c1.img
dd if=bl1.bin.hardkernel of=odroid-c1.img bs=1 count=442
conv=notrunc
dd if=bl1.bin.hardkernel of=odroid-c1.img bs=512 skip=1
seek=1 conv=notrunc
dd if=u-boot.bin.odroidc1 of=odroid-c1.img bs=512
seek=64 conv=notrunc
> 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