Allwinner A13 support (patches attached)

Ganbold Tsagaankhuu ganbold at gmail.com
Thu Oct 9 04:46:41 UTC 2014


Jakob,

On Wed, Oct 8, 2014 at 4:18 AM, Jakob Alvermark <jakob at alvermark.net> wrote:

> 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...
>

Cool.

Can a10_gpio.c and a13_gpio.c combined into one?
Also you disabled some gpio settings in a10_ehci.c I guess olinuxino has
u-boot and u-boot sets that, or maybe different pins.
I think instead of disabling better make it work for both cubieboard and
olinuxino.

As for mmc I think Martin Galvan is also working on it so I think we can
add that later when it is in good shape.

thanks,

Ganbold



>
> Thanks,
> Jakob
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list