x86_64的debian(wheezy)下使用qemu和busybox运行linux

1.编译kernel

进入源码根目录

make defconfig //这一步生成了默认的内核配置,请参考make help生成的信息。

make //这一步生成了bzImage

2.制作根文件系统

dd if=/dev/zero of=rootfs.img bs=1M count=10
//生成了rootfs.img,大小10M

mkfs.ext4 rootfs.img //在rootfs.img上制作ext4文件系统

mkdir rootfs

sudo mount -t ext4 -o loop rootfs.img rootfs

3.编译busybox

sudo apt-get install libncurses5-dev //make
menuconfig需要这个库,否则编译报错

make menuconfig
(将busybox编译为静态连接方式)
- Busybox Settings
- Build
options
- Build Busybox as a static binary
make
make install
CONFIG_PREFIX=<path to rootfs>

sudo umount <path to rootfs>

4.安装qemu

sudo apt-get install qemu

5.运行qemu

qemu-system-x86_64 -kernel bzImage -hda rootfs.img -append "root=/dev/sda
init=/bin/ash"

本文参考http://leave001.blog.163.com/blog/static/162691293201243110252209/

x86_64的debian(wheezy)下使用qemu和busybox运行linux,布布扣,bubuko.com

时间: 2024-08-09 23:52:39

x86_64的debian(wheezy)下使用qemu和busybox运行linux的相关文章

HowTo: Xen 4.1.3 Windows 8 HVM domU with Intel HD4000 VGA Passthrough on Debian Wheezy

http://linux-bsd-sharing.blogspot.com/2012/10/howto-xen-413-windows-8-hvm-domu-with.html Update 05/07/2013:Despite the HowTo being close to 1 year it applies perfectly to this day. At the time Wheezy was Debian's Testing distribution and has since mo

[Linux]一些Debian系统下的自定义

163镜像的sources.list deb http://mirrors.163.com/debian/ wheezy main non-free contrib deb http://mirrors.163.com/debian/ wheezy-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian/ wheezy main non-free contrib deb-src http://mir

Xfce 触摸板启用“点击”(Debian Wheezy)

问题描述 系统:Debian Wheezy Xfce. 问题:虽然安装了 Xorg 触摸板输入的驱动(synaptics),但是“点击”触摸板中间部分,仍然无法启用其相当于鼠标的“单击”功能. 解决方法 1.首先,保证安装了 synaptics 驱动: $ sudo apt-get install xserver-xorg-input-synaptics 2.复制 /usr/share/X11/xorg.conf.d 到 /etc/X11 $ sudo cp -R /usr/share/X11/

debian(wheezy)gnome-keyring:: couldn&#39;t connect to: /home/username/.cache/keyring-XXXXXX/pkcs11

在打开某些应用时,在terminal弹出了一个warning WARNING: gnome-keyring:: couldn't connect to: /home/username/.cache/keyring-XXXXXX/pkcs11: No such file or directory 这个错是你的系统存在多个桌面的时候,你现在不在gnome桌面下,但是引用了某些gnome的组件.导致的一个当前桌面公钥丢失的问题. 解决它很简单. 用编辑器打开 /etc/xdg/autostart/gn

debian wheezy 7.8无线网卡的安装

Linux xxx 3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u1 i686 GNU/Linux 前情提要: 我家的minipc安装debian的经过记录 安装完毕后一直用的是有线拨号,wifi一直没用过,今天心血来潮配置下无线. 查找网上很多教程都是有关wpe的,安装测试都不得法导致用不起来,想其以前写过的文档debian7安装和配置小经验,去https://wiki.debian.org/WiFi 找答案. 首先找到 因为我这个是pci模式的网卡,

debian wheezy 安装nginx+hhvm

官网源被墙,可以使用一个国内源进行安装,如果不行,可以参考github的wiki 页面. https://github.com/facebook/hhvm/wiki/Mirror 以debian wheezy安装环境为例. 1.修改软件源 echo "deb http://mirrors.163.com/debian/ wheezy main non-free contrib" > /etc/apt/sources.list echo "deb http://mirro

Python编写的Linux网络设置脚本,Debian Wheezy上测试通过

hon编写的Linux网络设置脚本,Debian Wheezy上测试通过 阿里百川梦想创业大赛,500万创投寻找最赞的APP 技术细节参见Linux网络设置高级指南 注意事项参见程序注释 快速使用指南: 根菜单下,直接回车意味着刷新 其它输入的时候,除了标明特定含义外,直接回车通常意味着取消或者跳过 net-config.py ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

VELT-0.1.6开发:在VS2013下用QEMU调试x86 Linux内核

快乐虾 http://blog.csdn.net/lights_joy/(QQ群:Visual EmbedLinux Tools 375515651) 欢迎转载,但请保留作者信息 VELT的全称是Visual EmbedLinuxTools,它是一个visual studio插件,用以辅助完成Linux开发.利用这个插件,将可以在visualstudio的IDE中进行Linux应用程序的开发(包括编译和调试),也可以进行uboot和linux内核的编译和调试,并根据编译时的错误信息正确定位到源码

debian下为stm32f429i-discovery编译uboot、linux内核和根文件系统

交叉编译器:arm-uclinuxeabi-2010q1 交叉编译器下载下来后解压,然后将其中bin文件夹路径加入到PATH变量中. 根据<debian下烧写stm32f429I discovery裸机程序>安装openocd. 安装genromfs,使用下面命令: sudo apt-get install genromfs 已经有人提供好脚本,只要执行几条命令即可.使用git下载文件并进行编译: git clone https://github.com/jserv/stm32f429-lin