# Qemu_arm **Repository Path**: brightmind/qemu_arm ## Basic Information - **Project Name**: Qemu_arm - **Description**: 使用Qemu搭建ARM 开发环境 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-12-31 - **Last Updated**: 2020-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 搭建qemu模拟arm开发环境 linux-4.4: 原始内核 =====编译内核步骤========= 1 配置默认config make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm vexpress_defconfig 2. 配置menu config make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm menuconfig 2.1) 取消掉 Enable the L2x0 outer cache controller CONFIG_CACHE_L2X0: This option enables the L2x0 PrimeCell. │ Symbol: CACHE_L2X0 [=n] │ Type : boolean │ Prompt: Enable the L2x0 outer cache controller │ Location: │ -> System Type 2.2) 选择 Use the ARM EABI to compile the kernel CONFIG_AEABI: │ Symbol: AEABI [=y] │ Type : boolean │ Prompt: Use the ARM EABI to compile the kernel │ Location: │ -> Kernel Features 3. 编译 make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm -j2 Rootfs: 文件系统 sys_rootfs.tar.gz 制作好的文件系统, 需要使用sudo 权限解压才行 Shell: 脚本 mk_ramdisk.sh 将文件系统制作成ext3格式, 用于内核启动时加载 ramdisk 已经制作好的文件系统, 可以用于内核启动时加载 start.sh 启动qemu的脚本, 执行sudo ./start.sh 启动qemu 退出qemu的方法 1) Ctrl+A 再按X 2) ps -A | grep qemu-system-arm | awk '{print $1}' | xargs sudo kill -9 Tool: 工具包 arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 使用到的交叉编译器, 解压后交叉编译器的路径为 arm-2014.05/bin