lichee开发环境配置(Allwinner A80)
2016-01-05 20:56
791 查看
Allwinner A80目前还没有在sunxi中支持,官方最新的开发包是A80_SDK_20140728_lichee.tar.gz。
这里记录一下lichee在我的gentoo系统中如何配置使用
宿主系统需要安装的软件:fakeroot,其它的软件gentoo默认都已经安装了
查看帮助
工具链需要32位的zlib,不然会报错
选择配置
定制内核
定制buildroot产生的软件包
指定使用哪个config文件:scripts/mkrule
源码包存放在buildroot/dl/
编译脚本以及patch在buildroot/package
编译rootfs
编译host-m4-1.4.15时报错:
编译A80的uboot
Configuring for sun9iw1p1 board...
~/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
这里记录一下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
相关文章推荐
- mybatis blob与clob处理
- arch Linux not found device 错误解决
- (笔记)Mysql命令grant on:增加新用户并控制其权限
- 【ThinkPHP3.2.3】学习ThinkPHP笔记:熟悉框架目录结构(2)
- HDU 1003 Max Sum (DP)
- DVWA系列之22 low级别上传漏洞
- UIImage与UIbutton相关
- IoU overlap
- OpenHEVC在Linux Eclipse 下的配置过程
- Mybatis多参数查询映射
- (笔记)Mysql命令mysqladmin:修改用户密码
- 用SSH 上传文件的时候,出现 encountered * errors during the transfer 错误
- centos7systemd详解
- Windows 下redis安装与使用
- 简析java.lang.String类
- AppCompat does not support the current theme features: { windowActionBar: false, windowActionBarOver
- 1009. 说反话 (20)
- iOS [<NSObject 0x170204110> setValue:forUndefineKey:]: this class is not key value coding-compliant
- Mybatis SQL映射语句中参数注释规则
- (笔记)Mysql命令mysql:连接Mysql数据库