内核编译
# 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
apt-get install usbutils --使用lsusb查看usb设备是否接入
dmesg | grep usb --查看registered new interface driver ch34x和ch34x converter now attached to ttyUSB0
apt-get install python-pip
apt-get install vim