Compiling the kernel of Beaglebone black

拟墨画扇 提交于 2019-12-12 04:34:21

问题


I followed the procedures to compile the kernel for beaglebone black git clone git://github.com/beagleboard/kernel.git

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

when i try to compile this step:

$make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack LOADADDR=0x80008000 -j4, i got the following error:

make: *** No rule to make target `uImage-dtb.am335x-boneblack'. Stop.

without this uImage-dtb.am335x-boneblack file i'm not able to boot the image from board

if any one faced such issues ..help to resolve this resolve


回答1:


Check the results of the "patch.sh" script. It is possible that the patch.sh script failed because you did not have the git user.email configuration set. Here was the error I received:

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 "you@example.com"
  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 'tkawamura@kawamura-ubuntu.(none)')
You need to set your committer info first

I was able to set my user.email and rerun patch.sh. Once completed, my compile of uImage-dtb.am335x-boneblack was successful.

Hope that helps!




回答2:


Instead of using

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

change it to

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

it will get compiled



来源:https://stackoverflow.com/questions/26601932/compiling-the-kernel-of-beaglebone-black

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!