Installing FreeBSD on Allwinner H3 (Orange Pi Lite)

123rfou809

New Member


Messages: 5

Hello everyone!

I am a new member of the community and I'm really interested in getting a BSD server running on an Orange Pi Lite (Allwinner H3) to learn more about it.

I come from a Linux background, and I'm a little confused on how to install BSD. I've seen many pages here that tell you "how to install" it but to be honest it all goes over my head and it is unclear which image to use and how to write it properly (it is not just a simple Etcher write?) Can anyone tell me how to install it on an SD card to be used on an H3 in English?

Thanks in advance.
 

T-Daemon

Well-Known Member

Reaction score: 152
Messages: 441

I am a new member of the community and I'm really interested in getting a BSD server running on an Orange Pi Lite (Allwinner H3) to learn more about it.
Reading the Handbook and FAQ would be a good starting point

... it is unclear which image to use ...
From the FreeBSD wiki page FreeBSD on Allwinner (sunxi) systems armv7 would be the right image. Since the Orange Pi is not listed I would try FreeBSD-12.1-RELEASE-arm-armv7-GENERICSD.img.xz from https://download.freebsd.org/ftp/releases/arm/armv7/ISO-IMAGES/12.1/

... how to write it properly (it is not just a simple Etcher write?) Can anyone tell me how to install it on an SD card to be used on an H3
How to write with Etcher I can't say, but from linux for example: After unxz(1) the compressed image dd if=FreeBSD-12.1-RELEASE-arm-armv7-GENERICSD.img of=/dev/da0 bs=1m conv=sync
Change /dev/da0 according to the system inserted SD card's device name, and double check it's the correct device.

After the image is written on SD card insert it in the Orange Pi and boot.
 
OP
OP
1

123rfou809

New Member


Messages: 5

Unfortunately it did not boot. Is there a way to debug the process? Or find out where the issue is coming from?
 
OP
OP
1

123rfou809

New Member


Messages: 5

For the sake of documentation, I tried Rasbpberry-pi armv6, generics armv7, and raspberry pi 2 armv7. None worked.
 
OP
OP
1

123rfou809

New Member


Messages: 5

I made some progress, but I need some help. I wrote the genericSD version of the 13.0-CURRENT image to the sd card, and then applied a board-specific u-boot to it, and it started booting, but I got the panic shown below:

Code:
WARNING: Some AP's failed to start
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
panic: Built bad topology at 0xc0ab4a34.  CPU mask (f) != (1)
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self() at db_trace_self
         pc = 0xc05d329c  lr = 0xc007a5c0 (db_trace_self_wrapper+0x30)
         sp = 0xc0e14c98  fp = 0xc0e14db0
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
         pc = 0xc007a5c0  lr = 0xc02b1130 (vpanic+0x164)
         sp = 0xc0e14db8  fp = 0xc0e14dd8
         r4 = 0x00000100  r5 = 0xc0b1b920
         r6 = 0xc073aab8  r7 = 0x00000000
vpanic() at vpanic+0x164
         pc = 0xc02b1130  lr = 0xc02b0efc (doadump)
         sp = 0xc0e14de0  fp = 0xc0e14de4
         r4 = 0xc0ab4a34  r5 = 0xc0e14e0a
         r6 = 0x00800001  r7 = 0x00000000
         r8 = 0x02400000  r9 = 0xc0b1bdf4
        r10 = 0xc0b18a40
doadump() at doadump
         pc = 0xc02b0efc  lr = 0xc03125e8 ($a.2+0x3f0)
         sp = 0xc0e14dec  fp = 0xc0e14e30
         r4 = 0xc0b18a40  r5 = 0xc0e14de4
         r6 = 0xc02b0efc r10 = 0xc0e14dec
$a.2() at $a.2+0x3f0
         pc = 0xc03125e8  lr = 0xc02e5c0c (sched_setup+0x10)
         sp = 0xc0e14e38  fp = 0xc0e14e60
         r4 = 0xc2291a84  r5 = 0xc0a9e5d4
         r6 = 0x00800001  r7 = 0x00000000
         r8 = 0x02400000  r9 = 0xc0b1b90c
        r10 = 0xc0b1b8fc
sched_setup() at sched_setup+0x10
         pc = 0xc02e5c0c  lr = 0xc024ae9c (mi_startup+0x2a4)
         sp = 0xc0e14e68  fp = 0xc0e14e90
         r4 = 0xc2291a84  r5 = 0xc0a9e5d4
         r6 = 0x00800001  r7 = 0x00000000
         r8 = 0x02400000  r9 = 0xc0b1b90c
        r10 = 0xc0b1b8fc
mi_startup() at mi_startup+0x2a4
         pc = 0xc024ae9c  lr = 0xc00002c4 (_start+0x144)
         sp = 0xc0e14e98  fp = 0x00000000
         r4 = 0xc00003f8  r5 = 0xc0b78000
         r6 = 0x00000000  r7 = 0x00c52078
         r8 = 0xc0d4b000  r9 = 0x58f3a180
        r10 = 0x00000000
_start() at _start+0x144
         pc = 0xc00002c4  lr = 0xc00002c4 (_start+0x144)
         sp = 0xc0e14e98  fp = 0x00000000
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      kdb_enter+0x58: ldrb    r15, [r15, r15, ror r15]!
db>
Has anyone encountered this before?
 
Top