需要的材料
硬件方面
嵌入式linux开发板(又称为目标机):arm9 ,arm11 ,arm cortex A系列开发板均可
个人PC(又称为上位机或宿主机):一般的个人PC均可,搭载操作系统为windows或者linux 。本文为搭载linux的x86PC。
开发板与上位机通信工具:串口,网线,USB
软件方面
linux kernel 内核源码树
交叉编译工具连
linux kernel 内核开发环境的搭建
编译linux kernel 的软件要求:
编译和运行3.x kernel 要求多种最新版本的软件包。查阅 Document/Changes 可以得到要求的最小版本号以及如何更新这些软件包。小心过旧的软件包版本会间接造成某些难以解决的错误,因此不要设想在编译时出现错误的时候再去更新软件包。
Current Minimal Requirements ============================ Upgrade to at *least* these software revisions before thinking you've encountered a bug! If you're unsure what version you're currently running, the suggested command should tell you. Again, keep in mind that this list assumes you are already functionally running a Linux kernel. Also, not all tools are necessary on all systems; obviously, if you don't have any ISDN hardware, for example, you probably needn't concern yourself with isdn4k-utils. o Gnu C 3.2 # gcc --version o Gnu make 3.80 # make --version o binutils 2.12 # ld -v o util-linux 2.10o # fdformat --version o module-init-tools 0.9.10 # depmod -V o e2fsprogs 1.41.4 # e2fsck -V o jfsutils 1.1.3 # fsck.jfs -V o reiserfsprogs 3.6.3 # reiserfsck -V o xfsprogs 2.6.0 # xfs_db -V o squashfs-tools 4.0 # mksquashfs -version o btrfs-progs 0.18 # btrfsck o pcmciautils 004 # pccardctl -V o quota-tools 3.09 # quota -V o PPP 2.4.0 # pppd --version o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version o nfs-utils 1.0.5 # showmount --version o procps 3.2.0 # ps --version o oprofile 0.9 # oprofiled --version o udev 081 # udevd --version o grub 0.93 # grub --version || grub-install --version o mcelog 0.6 # mcelog --version o iptables 1.4.2 # iptables -V |