lichee开发环境配置(Allwinner A80)

编程入门 行业动态 更新时间:2024-10-24 18:18:18

lichee开发<a href=https://www.elefans.com/category/jswz/34/1771403.html style=环境配置(Allwinner A80)"/>

lichee开发环境配置(Allwinner A80)

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 licheeExamples:
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 configWelcome to mkscript setup progress
All available chips:0. sun9iw1p1
Choice: 0
All available platforms:0. android1. dragonboard2. linux
Choice: 2
All available kernel:0. linux-3.4
Choice: 0
All available boards:0. optimus1. p12. perf3. perf54. 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






更多推荐

lichee开发环境配置(Allwinner A80)

本文发布于:2024-03-24 00:09:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1744474.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:环境   lichee   Allwinner

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!