本帖最后由 gjianw217 于 2016-1-26 08:52 编辑
经过两天的时间,终于把内核下载下来,但还是出现了出错
1 首先按照官方的教程,搭建环境
Ubuntu14.04LTS 系统
sudo apt-get updatesudo apt-get upgrade
sudo apt-get install build-essential gcc-4.8-ARM-linux-gnueabihf-base g++-4.8-arm-linux-gnueabihf
sudo apt-get install gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf
git wget kpartx fakeroot libncurses5-dev
由于本人使用的是32位系统,且已经安装了交叉编译器,故32位的兼容包和交叉编译器没有安装
2 下载内核源码
git clone https://github.com/LeMaker/linux-actions-bsp.git
Cloning into 'linux-actions-bsp'...
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 17 (delta 2), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (17/17), done.
cd linux-actions-bsp/
./configure
Submodule 'linux-actions' (https://github.com/LeMaker/linux-actions.git) registered for path 'linux-actions'
Submodule 'owl-actions' (https://github.com/LeMaker/owl-actions.git) registered for path 'owl-actions'
Submodule 'u-boot-actions' (https://github.com/LeMaker/u-boot-actions.git) registered for path 'u-boot-actions'
Cloning into 'owl-actions'...
remote: Counting objects: 35, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 35 (delta 8), reused 35 (delta 8), pack-reused 0
Unpacking objects: 100% (35/35), done.
Submodule path 'owl-actions': checked out ************************************************
Select board type:
1. lemaker_guitar_bbb
2. lemaker_guitar_bbc
3. lemaker_guitar_bbd
Which would you like? [lemaker_guitar_bbb] 1
s500 lemaker_guitar_bbb configured. Now run `make`
lemaker_guitar_bbb是LeMaker Guitar 底板B型;
lemaker_guitar_bbc是LeMaker Guitar 底板C型;
lemaker_guitar_bbd是LeMaker Guitar 底板D型。
3 编译内核
make hwpack
4 出现如下错误:
5 在LeMaker SBC 开发群中月亮河和Peter两位仁兄的帮助,终于找到了问题的所在,在此对他们表示诚挚的感谢:
即本人安装的是32位的Ubuntu,而官方提供的bootloader_pack是基于64位的,所以出错了,所以要想执行make hwpack成功:
1 安装64位的Ubuntu
2 官方是否可以提供32位Ubuntu的bootloader_pack
其实在执行make hwpack命令时,已经编译成功了linux镜像和uboot镜像,只是没有编译成bootloader。而要想制作xx.img的镜像文件,必须得执行make hwpack成功。