-
Clone kernel, u-boot and build scripts git repos:
- https://github.com/linux-sunxi/linux-sunxi.git:sunxi-next
- git://git.denx.de/u-boot.git
- https://github.com/ubob74/sunxi-build-scripts.git
-
Edit sunxirc config file in build scripts dir and set required variables.
-
Prepare SD card:
- format it to vfat
- mount to MPOINT
- create /boot dir (mkdir /boot)
-
Prepare busybox - copy bbox/newrootfs.img.gz to $BBOX_DIR dir and unpack it:
cd bbox
sh -x unpack_bbox.sh.
Then rename $BBOX_DIR/bbox.XXX to $BBOX_DIR/bbox cause unpack_bbox.sh adds suffix to the name
- Build and install kernel
cd kernel
sh -x build_kernel.sh
sudo sh -x install_kernel.sh
- Install busybox
cd bbox
sudo sh -x install_bbox.sh
- Build and install u-boot
cd u-boot
sh -x build_uboot.sh
sudo sh -x install_uboot.sh