您的位置:首页 > 其它

lichee开发环境配置(Allwinner A80)

2016-01-05 20:56 791 查看
Allwinner A80目前还没有在sunxi中支持,官方最新的开发包是A80_SDK_20140728_lichee.tar.gz。

这里记录一下lichee在我的gentoo系统中如何配置使用

宿主系统需要安装的软件:fakeroot,其它的软件gentoo默认都已经安装了

查看帮助

$cd lichee
~/Source/lichee $ ./build.sh -h
Top level build script for lichee

Examples:
1. Set the config option
$ ./build.sh config
2. Build lichee using preset config value
$ ./build.sh
3. Pack a linux, dragonboard image
$ ./build.sh pack
4. Build lichee using command argument
$ ./build.sh -p <platform>


工具链需要32位的zlib,不然会报错

Source/lichee/brandy/gcc-linaro/bin/../libexec/gcc/arm-linux-gnueabi/4.6.3/cc1:
error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Makefile:567: recipe for target 'lib/asm-offsets.s' failed
make: *** [lib/asm-offsets.s] Error 1


选择配置

~/Source/lichee $ ./build.sh config

Welcome to mkscript setup progress
All available chips:
0. sun9iw1p1
Choice: 0
All available platforms:
0. android
1. dragonboard
2. linux
Choice: 2
All available kernel:
0. linux-3.4
Choice: 0
All available boards:
0. optimus
1. p1
2. perf
3. perf5
4. perf-lpddr3
Choice: 0


定制内核

~/Source/lichee $cd linux-3.4
默认的一些配置:
~/Source/lichee/linux-3.4 $ ll arch/arm/configs/sun9iw1p1*
arch/arm/configs/sun9iw1p1-bL-defconfig
arch/arm/configs/sun9iw1p1_iks_defconfig
arch/arm/configs/sun9iw1p1smp_android_defconfig
arch/arm/configs/sun9iw1p1smp_defconfig
arch/arm/configs/sun9iw1p1smp_min_defconfig

~/Source/lichee/linux-3.4 $ARCH=arm make menuconfig
编译内核
./build.sh -p sun9iw1p1 -m kernel


定制buildroot产生的软件包

$cd buildroot
~/Source/lichee/buildroot $ARCH=arm make menuconfig
默认的config文件在buildroot/configs

指定使用哪个config文件:scripts/mkrule

源码包存放在buildroot/dl/

编译脚本以及patch在buildroot/package

编译rootfs
~/Source/lichee $./build.sh -p sun9iw1p1 -m buildroot
编译输出在out/sun9iw1p1/linux/common/buildroot/build


编译host-m4-1.4.15时报错:

Makefile:1279: recipe for target 'clean-temp.o' failed
make[4]: *** [clean-temp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from freadahead.h:18:0,
from freadahead.c:20:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
Makefile:1279: recipe for target 'freadahead.o' failed


编译A80的uboot

<pre name="code" class="plain">~/Source/lichee $cd brandy/u-boot-2011.09/
~/Source/lichee/brandy/u-boot-2011.09 $ BUILD_DIR=/tmp/uboot make sun9iw1p1_config

Configuring for sun9iw1p1 board...

~/Source/lichee/brandy/u-boot-2011.09 $ BUILD_DIR=/tmp/uboot make


~/Source/lichee $./build.sh -p sun9iw1p1 -m boot~/Source/lichee $ ll tools/pack/chips/sun9iw1p1/bin/total 800boot0_nand_sun9iw1p1.binboot0_sdcard_sun9iw1p1.binfes1_sun9iw1p1.binu-boot-sun9iw1p1.bin

打包img
~/Source/lichee $./build.sh pack
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: