Allwinner A13 support (patches attached)

Jakob Alvermark jakob at alvermark.net
Tue Oct 7 20:45:34 UTC 2014


Hello people!

I have been sitting on this for too long now. (Thanks Arun Thomas for
encouraging me to send this!)
I have this Allwinner A13 board from Olimex,
https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino/open-source-hardware

I have made it boot FreeBSD-current, and here are the patches. Hoping
anyone (committers?) might be interrested in looking at this.

It boots from the SD card, using this U-boot:
https://github.com/linux-sunxi/u-boot-sunxi
Adding CONFIG_CMD_ELF and CONFIG_API to allow ubldr to work.

It can boot to multi user, with root on a USB stick.

Wanting to get rid of the USB stick I added Alexander Fedorov's
MMC-driver,
http://lists.freebsd.org/pipermail/freebsd-arm/2013-June/005913.html
but it fails:

a10_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff
irq 32 on simplebus0
MMC0 MODE_CLK: 0x04dd1e00
mmc0: <MMC/SD bus> on a10_mmc0

vm_fault(0xc066ff50, 3197000, 1, 0) -> 1
Fatal kernel mode data abort: 'Translation Fault (S)'
trapframe: 0xc07cecd8
FSR=00000005, FAR=03197500, spsr=800001d3
r0 =c26bd400, r1 =03197500, r2 =00000400, r3 =c26bd409
r4 =00000000, r5 =00000008, r6 =c2674680, r7 =c2674b80
r8 =00000400, r9 =c26e2020, r10=c26bd800, r11=c07ced30
r12=c26bd408, ssp=c07ced28, slr=c0261810, pc =c0419ae0

[ thread pid 0 tid 100000 ]
Stopped at      strlcat+0x54:   ldrb    r4, [r1]

I am not an experienced kernel hacker, so I don't know how to debug this.

I also wanted to blink the onboard LED, so this is in the dts file:
---
        leds {
                compatible = "gpio-leds";

                led1 {
                        label = "led1";
                        gpios = <&gpio 201 1>;
                };
        };
---
I do not get a /dev/led/led1 as I expected, manually toggling the LED with
'gpioctl -t 201' works fine...

Thanks,
Jakob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a13.patch
Type: text/x-patch
Size: 57164 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20141007/72167ecd/attachment.bin>


More information about the freebsd-arm mailing list