内核编译
# make ARCH=arm menuconfig
# make -j5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage
modules
内核安装到ROOTFS
# cp ${WORK_DIR}/linux-sunxi/arch/arm/boot/uImage ${ROOTFS_DIR}/boot/
#
make -C ${WORK_DIR}/linux-sunxi INSTALL_MOD_PATH=${ROOTFS_DIR} ARCH=arm
\
CROSS_COMPILE=arm-linux-gnueabihf- modules_install
拷贝到TF卡
cd
${ROOTFS_DIR}
mount ${CARD}2 /mnt
mkdir /mnt/boot
mount ${CARD}1
/mnt/boot
tar --exclude=qemu-arm-static -cf - . | tar -C /mnt -xvf -
sync
&& umount /mnt/boot && umount /mnt
如果无法从TF卡启动,再跑一次末尾命令
# cd
${WORK_DIR}/u-boot-sunxi
# dd
if=/dev/zero of=$CARD bs=1k count=1024
#
dd if=u-boot-sunxi-with-spl.bin of=$CARD bs=1024 seek=8
mknod /dev/ttyUSB0 c 188 0
原文地址:http://www.cnblogs.com/Amagasaki/p/3748263.html