TA的每日心情 | 衰 2014-5-29 02:52 |
---|
签到天数: 167 天 [LV.7]常住居民III
普通用户
|
发表于 2013-6-4 11:56:30
|
显示全部楼层
Part 1. Pre-requisites
Linux OS with x86_64 architecture (we use Ubuntu 12.10)
Additional tools and libraries: git, libc6-i386, ncurses, build-essential archivemount
sudo apt-get install git libc6-i386 build-essential libncurses5-dev
DSM 4.1 tool chain. It can be downloaded from http://sourceforge.net/projects/dsgpl/files/ and unpacked to the /usr/local folder. For XPEnology we use “Intel x86 Linux 3.2.11 (Bromolow)” version of toolchain and its archive file name is gcc420_glibc236_x64_bromolow-GPL.tgz.
Copy of XPEnology linux 3.x kernel source code from https://github.com/andy928/xpenology
git clone https://github.com/andy928/xpenology.git linux-3.x
Part 2. Kernel compiling
By default we have enabled a lot of different hardware in kernel, but if you need to enable or disable anything else, you can do it by using an interactive menu:
make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- menuconfig
Now we can compile our XPEnology kernel:
make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- modules
And finally, build the bzImage file:
make ARCH=x86_64 CROSS_COMPILE=/usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu- bzImage
Result will be placed to the “linux-3.x/arch/x86/boot/” folder. When building is done, you must rename “bzImage” to “zImage”
然后把 zImage 换了u盘中的
启动提示
Error 13: Invalid or unsupported executable format
请问自己编译有什么要注意的问题? |
|