Other OS

FreeBSD 10.0 on Banana

21 21366
TooMeeK  
Booting Cubieboard2 images is even more fun.. no MMC device found
freebsd-cubieboard2-booting.png

TooMeeK  
Progress so far regarding Banana Pi and FreeBSD 10.x:
1. only 512MB of DRAM available
768MB configured in /usr/src/sys/boot/fdt/dts/bananapi.dts doesn't work, stops at:
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1cfff irq 72 on simplebus0

1024MB configured in /usr/src/sys/boot/fdt/dts/bananapi.dts doesn't work, stops at:
Cache level 1:
32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
32KB/32B 2-way instruction cache Read-Alloc
Cache level 2:
256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
panic: kmem_suballoc: bad status return of 3
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x4c: ldrb    r15, [r15, r15, ror r15]!
db>

DRAM details:
DRAM bank = 0x00000000
-> start = 0x40000000
-> size = 0x40000000

2. "Error reading cluster" during kernel load
u-boot-sunxi 2014.04-10704-gf625d1d for Allwinner A20 (SUN7I) Bananapi board
WORKAROUND: use u-boot.bin from Cubieboard's Wiki FreeBSD page

3. no HDMI output
4. no network devices detected
5. missing /dev/ttyv* files

6. no MMC support which means FreeBSD has to be started from MMC and then loaded from USB flash

TooMeeK  
Status update.

Both u-boot loaders aren't working on Banana Pi with FreeBSD.
# Original Banana Pi U-boot loader
dd if=/usr/src/u-boot-sunxi/spl/sunxi-spl.bin conv=notrunc of=banana.img bs=1024 seek=8
dd if=/usr/src/u-boot-sunxi/u-boot.bin conv=notrunc of=banana.img bs=1024 seek=40
# Lemaker's U-boot loader
dd if=/usr/src/u-boot-bananapi/spl/sunxi-spl.bin conv=notrunc of=banana.img bs=1024 seek=8
dd if=/usr/src/u-boot-bananapi/u-boot.bin conv=notrunc of=banana.img bs=1024 seek=40

Not booting with seek=32 too.

Output:
Original Banana Pi U-boot loader output:

U-Boot SPL 2014.04-10704-gf625d1d (Aug 16 2014 - 23:44:23)
Board: Bananapi
DRAM: 1024 MiB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
spl: not an uImage at 1600
spl: not an uImage at 80
### ERROR ### Please RESET the board ###

And Lemaker's:

U-Boot SPL 2014.04-10693-gf954935 (Aug 17 2014 - 21:41:27)
Board: Bananapi
DRAM: 1024 MiB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
spl: not an uImage at 1600
spl: not an uImage at 80
### ERROR ### Please RESET the board ###

TooMeeK  
Post Last Edited by TooMeeK at 2014-8-31 18:05

Status update:
WORKING:
1. compiled supported kernel for BANANAPI based on CUBIEBOARD2 config
2. 1024MB finally works
3. working console login
NOT WORKING:
1. no networking (no GMAC)
2. no HDMI output
3. no LED flashing as example for Lubuntu
bananapi-freebsd.png

When you have a working image i would just love to test it. I want to use my BPI-R1 as a  pfsense firewall.

vba  
Edited by vba at Sun Mar 22, 2015 16:14

status?

EDIT:

Mayby this can help you futher to your goal: netBSD on Banana Pi

jekader  
It's great that someone is trying to get other kernels working with these Alwinner boards. Keep up the good work!

0xicl33n replied at Tue Mar 3, 2015 17:10
When you have a working image i would just love to test it. I want to use my BPI-R1 as a  pfsense fi ...

This is exactly what I would like to do. However, I am completely lost for now.

TooMeeK  
Edited by TooMeeK at Wed Jun 24, 2015 00:26

Hello,

so far there was no update due busy work all-and-over & forum login changes (?!).
But someone has contacted me regarding BPI-R1 + FreeBSD combination, so we're about to join forces

I see there is still no GMAC update on Allwinner site info at:
https://wiki.freebsd.org/FreeBSD/arm/Allwinner

Please remember that BPI-R1 has built-in switch, so 1Gbps port will be shared across all ports on the board..

TooMeeK  
Sorry for digging topic - I'm unable to edit last post.
Right now all I can tell You is FreeBSD 11.x full operating system cross-compilation takes around ~19 hours to complete on same hardware as was used for FreeBSD 10.x. It's incredibly slow (4 vCPU 3.1GHz each).
There is different compiler:
was: arm-eabi-gcc, gcc47
is: arm-none-eabi-gcc, gcc48

You have to log in before you can reply Login | Sign Up

Points Rules