2014-10-28 91 views
0

內核我遵循的程序編譯爲beaglebone黑 混帳混帳克隆內核://github.com/beagleboard/kernel.git編譯Beaglebone的黑色

cd kernel 
git checkout 3.8 
./patch.sh 
cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig 
wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin 
cd kernel 
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- beaglebone_defconfig -j4 
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs LOADADDR=0x80008000 -j4 
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack LOADADDR=0x80008000 -j4 

當我嘗試編譯這一步:

$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack LOADADDR=0x80008000 -j4,我得到了以下錯誤:

化妝:***沒有規則,使目標`的uImage-dtb.am335x-骨黑」。停止。

沒有這個的uImage-dtb.am335x,骨黑文件我不能夠從板

開機圖像,如果任何一個面臨這樣的問題..help解決這一解決

+0

嘗試在make目標中僅放入'uImage'而不是'uImage-dtb.am335x-boneblack',一旦獲得'uImage',將其重命名爲'uImage-dtb.am335x-boneblack'。 – raghav3276 2014-10-28 07:13:29

回答

0

而不是使用

$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack LOADADDR=0x80008000 -j4 

改變它

$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage am335x-boneblack.dtb LOADADDR=0x80008000 -j4 

它會被編譯

2

檢查「patch.sh」腳本的結果。 patch.sh腳本可能會失敗,因爲您沒有git user.email配置集。這是我收到的錯誤:

Switched to a new branch 'tmp-patching-branch-sha' 
v3.8.13 
/home/tkawamura/Development/kernel/patches/dma/0001-Without-MACH_-option-Early-printk-DEBUG_LL.patch: 
*** Please tell me who you are. 

Run 

    git config --global user.email "[email protected]" 
    git config --global user.name "Your Name" 

to set your account's default identity. 
Omit --global to set the identity only in this repository. 

fatal: unable to auto-detect email address (got '[email protected](none)') 
You need to set your committer info first 

我能夠設置我的user.email並重新運行patch.sh。完成後,我的uImage-dtb.am335x-boneblack編譯成功。

希望有幫助!