编译Beaglebone black的内核 [英] Compiling the kernel of Beaglebone black

查看:291
本文介绍了编译Beaglebone black的内核的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了为beaglebone black编译内核的过程 git clone git://github.com/beagleboard/kernel.git

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,出现以下错误:

make:***没有规则可以使目标`uImage-dtb.am335x-boneblack'.停止.

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

没有这个uImage-dtb.am335x-boneblack文件,我无法从板上启动图像

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

如果有人遇到此类问题..help可以解决此问题

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

推荐答案

检查"patch.sh"脚本的结果.由于您没有设置git user.email配置,所以patch.sh脚本可能失败.这是我收到的错误:

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

我能够设置user.email并重新运行patch.sh.完成后,我的uImage-dtb.am335x-boneblack编译成功.

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

希望有帮助!

这篇关于编译Beaglebone black的内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆