OpenDingux 编译

来源:互联网 发布:88端口怎么起 编辑:程序博客网 时间:2024/05/17 18:11
一、安装编译依赖 (ubuntu)
sudo apt-get install g++
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install gettext
sudo apt-get install texinfo
sudo apt-get install mercurial
sudo apt-get install subversion
sudo apt-get install libncurses5-dev


二、编译Kernel (zImage)

配置LCD
/qi-kernel/arch/mips/configs/a320_defconfig
#CONFIG_JZ_SLCD_ILI9331=y
#CONFIG_JZ_SLCD_ILI9338=y
#CONFIG_JZ_SLCD_ILI9325=y

编译
$ git clone git://projects.qi-hardware.com/qi-kernel.git
$ cd qi-kernel
$ git checkout jz-3.3
$ make ARCH=mips a320_defconfig
$ make ARCH=mips vmlinuz.bin

生成文件
/qi-kernel/vmlinuz.bin


三、编译Root file system (rootfs.bin)
$ cd opendingux-buildroot-opendingux-2010.11
$ make a320_defconfig
$ make

删除文件夹
/opendingux-buildroot-opendingux-2010.11/output/package/gmenu2x
/opendingux-buildroot-opendingux-2010.11/output/package/pwswd

/opendingux-buildroot-opendingux-2010.11/package/Config.in
删除以下行

source "package/gmenu2x/Config.in"
source "package/pwswd/Config.in"

生成文件
/opendingux-buildroot-opendingux-2010.11/output/images/rootfs.squashfs
0 0