Skip to content
hno edited this page May 20, 2012 · 71 revisions

u-boot for Allwinner A10

Branch information:

sunxi Default branch. Most up to date. Supports booting from MMC only.

lichee/* Unmodified mirrors of original Allwinner sources

How to make a bootable SD-card

A10 boots the SPL loader from block 8. This then loads actual u-boot from block 32 onwards.

make sun4i CROSS_COMPILE=arm-none-linux-gnueabi-
dd if=spl/sun4i-spl.bin of=/dev/sdc bs=1024 seek=8
dd if=uboot.bin of=/dev/sdc bs=1024 seek=32

You also need to partition the card. First partition should start at sector 2048.

This version of u-boot supports boot.scr, and will look for it in the first partition FAT /boot.scr or extX /boot.scr or extX /boot/boot.scr.

If no boot.scr is found then it will fall back on a default boot action which is

fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 ${kernel}; bootm 0x48000000

Default environment

    console=ttyS0,115200
    root=/dev/mmcblk0p2
    panic=10
    extra=
    init=/init
    loglevel=8
    setargs=setenv bootargs console=${console} root=${root} init=${init} loglevel=${loglevel} panic=${panic} ${extra}
    kernel=uImage
    boot.scr=if fatload mmc 0 0x44000000 boot.scr || ext2load mmc 0 0x44000000 boot.scr || ext2load mmc 0 0x44000000 boot/boot.scr; then source 0x44000000; fi; true
    boot_mmc=fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 ${kernel}; bootm 0x48000000
    bootcmd=run boot.scr setargs boot_mmc

Clone this wiki locally