Clone the repository by
git clone -b sunxi https://github.com/androportal/uboot-allwinner.git
cd
intouboot-allwinner
cd uboot-allwinner
To compile uboot download and install
Sourcery CodeBench Lite Edition
, then issue:make a13_olinuxino CROSS_COMPILE=arm-none-linux-gnueabi-
After successful compilation
u-boot.bin
will be available at root of the directory andsunxi-spl.bin
will be inspl
directory
Insert
sdcard
in card reader or MMC reader available in laptops/netbooksBackup all your sdcard data, and issue the following commands carefully, replace X in /dev/sdX with suitable letter(a lower case alphabet) alloted for your sdcard, remember X will never be a if you have a hard disk installed, so keep in mind it must be something like
/dev/sdb
or /dev/sdc
etc. Please check twice and if you are still unsure leave this README right now otherwise you may end up with non bootable machine:sudo fdisk -u=sectors /dev/sdX
First clear the previous u-boot and its configurations if any:
sudo dd if=/dev/zero of=/dev/sdX bs=1024 seek=544 count=128
Now from same
uboot-allwinner
directory issue these commands, again replace X with suitable value, now to burnsunxi-spl.bin
to sdcard issue:sudo dd if=spl/sunxi-spl.bin of=/dev/sdX bs=1024 seek=8
Similarly to burn
u-boot.bin
issuesudo dd if=u-boot.bin of=/dev/sdX bs=1024 seek=32
At this point we have a bootable sdcard readly. Get kernel and rootfs to make a usuable Linux for your tablet.
Next topic: Compiling kernel