Orange Pi Zero support

Emmanuel Vadot manu at bidouilliste.com
Sun Jun 25 11:21:11 UTC 2017


On Sun, 25 Jun 2017 13:14:11 +0200
Johnny Sorocil <jsorocil at gmail.com> wrote:

> I have built -CURRENT (63fd4c37fb976e1c00408fd95f168af12088f92b) but I am
> unable to boot the board with sun8i-h2-plus-orangepi-zero.dtb (there is
> nothing on serial console).
> If sun8i-h3-orangepi-one.dtb is loaded, then board boots normally.
> 
> Steps to reproduce:
> rm -rf /usr/obj
> make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null
> buildworld
> make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null
> KERNCONF=ALLWINNER buildkernel
> make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null
> KERNCONF=ALLWINNER DESTDIR=/mnt/sd2/ installkernel
> make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null
> KERNCONF=ALLWINNER DESTDIR=/mnt/sd2/ installworld

 You should use the GENERIC kernel, I'll remove ALLWINNER as it's not
needed anymore.

> cp -f /usr/obj/arm.armv6/usr/src/sys/boot/arm/uboot/ubldr{,.bin} /mnt/sd1
> umount /mnt/sd1 ; umount /mnt/sd2

 It is not needed.

> dd if=/usr/local/share/u-boot/u-boot-orangepi-one/u-boot-sunxi-with-spl.bin
> conv=notrunc,sync of=/dev/mmcsd0 bs=1024 seek=8

 I wouldn't use a different u-boot, see my last mail for compiling
u-boot yourself.

>   loader> load -t dtb sun8i-h2-plus-orangepi-zero.dtb
>   loader> boot
>   Booting...
>   Using DTB from loaded file '/boot/dtb/sun8i-h2-plus-orangepi-zero.dtb'.
>   Kernel entry at 0x42200100...
>   Kernel args: (null)
> and it will hang
> 
> If H3 dtb file is used:
> loader> load -t dtb sun8i-h3-orangepi-one.dtb
> loader> boot
> Booting...
> 
> Using DTB from loaded file
> '/boot/dtb/sun8i-h3-orangepi-one.dtb'.
> 
> Kernel entry at
> 0x42200100...
> 
> Kernel args:
> (null)
> 
> KDB: debugger backends:
> ddb
> 
> KDB: current backend:
> ddb
> 
> Copyright (c) 1992-2017 The FreeBSD
> Project.
> 
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
> 1994
> 
>         The Regents of the University of California. All rights
> reserved.
> 
> FreeBSD is a registered trademark of The FreeBSD
> Foundation.
> 
> FreeBSD 12.0-CURRENT #0 63fd4c37fb9(master): Sun Jun 25 12:03:35 CEST
> 2017
>     root at innovator:/usr/obj/arm.armv6/usr/src/sys/ALLWINNER
> arm
> 
> FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM
> 4.0.0)
> <...>

-- 
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>


More information about the freebsd-arm mailing list