标签:style linu stc htm tmpfs mnt word chmod dtb
下载kernel ,解压缩后编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=../tl distclean
make vexpress_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- O=../tl
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8 O=../tl
下载busybox代码,
make ARCH=arm menuconfig 配置下编译器,配置成静态busybox.
make
make install
安装到_intall目录下面
sudo mkdir tmpfs
sudo mount -t ext3 a9rootfs.ext3 tmpfs/ -o loop
cp -r busybox/_install/* tmpfs/
从https://github.com/mahadevvinay/Embedded_Linux_Files.git下载fstab inittab rcs文件
cd tmpfs
mkdir -p etc etc/init.d mkdir proc sys home dev tmp root var mnt
cd ..
cp fstab tmpfs/etc
cp inittab tmpfs/etc
cp rcS tmpfs/etc/init.d
sudo chmod a+x tmpfs/etc/init.d/rcS
sudo umount tmpfs
qemu-system-arm -M vexpress-a9 -m 512M -nographic -append "root=/dev/mmcblk0 console=ttyAMA0" -kernel ../tl/arch/arm/boot/zImage -dtb ../tl/arch/arm/boot/dts/vexpress-v2p-ca9.dtb -sd ../a9rootfs.ext3
https://learningfromyoublog.wordpress.com/2016/04/05/131/
http://blog.csdn.net/kevin_mr/article/details/52754757
http://abiaog.github.io/jekyll/update/2017/01/18/QEMU.html
vexpress ca9 linux kernel qemu环境搭建记录
标签:style linu stc htm tmpfs mnt word chmod dtb
原文地址:http://www.cnblogs.com/wjx321/p/7966257.html