A33 Manual build howto

From linux-sunxi.org
Jump to: navigation, search

This is currently a placeholder for an A33 specific rework of the Manual build howto.

This page describes the process to combine Allwinners binary boot0, an SDK U-Boot, an SDK linux kernel and other bits together to create a useful SD-card from scratch, the basis for further hacking.

This page is only suited for A33 based devices, please look under See also for other manual build howtos.

We of course do not build a whole distribution, we only build U-Boot, the kernel and a handful of tools, and then use an existing rootfs to get a useful system. Depending on the rootfs size, you might want to use a 2GB or larger SD Card. SD-card partitioning and formatting will be taken care of later.

Contents

Getting a cross toolchain

For this part, you need to refer to our toolchain page.

Installing boot0

TODO

Building u-boot

TODO

Building script.bin

This section should refer to the Manual_build_howto#Building_script.bin as much as possible.

Building the kernel

TODO

Setting up the boot partition

This section should refer to the Manual_build_howto#Setting_up_the_boot_partition as much as possible.

Setting up the rootfs

Please refer to Bootable_SD_card#Rootfs

As a last step you need to copy the kernel modules into the newly created rootfs. Change into the top level directory of the newly created rootfs and run:

mount ${cardroot} /mnt
mkdir -p /mnt/lib/modules
rm -rf /mnt/lib/modules/
cp -r <PATH_TO_KERNEL_TREE>/output/lib /mnt/
umount /mnt

(Replace <PATH_TO_KERNEL_TREE> with the directory you have built your kernel in as described above.)

Boot!

Now you should be able to unmount your SDCard filesystems, and you should be able to boot your brand new installation.

See also

We have Manual build howtos for all SoCs:

Personal tools
Namespaces

Variants
Actions
Navigation
Tools