f1c100s编译c600的linux包
准备工作:apt install bison flex texinfo
root@szddt:/opt/f1c100s/C600_Linux# ./build.sh config
Welcome to mkscript setup progress
All available chips:
0. sun50iw1p1
1. sun8iw10p1
2. sun8iw1p1
3. sun8iw3p1
4. sun8iw5p1
5. sun8iw6p1
6. sun8iw7p1
7. sun8iw8p1
8. sun8iw9p1
9. sun9iw1p1
10. sunivw1p1
Choice: 10
All available platforms:
0. android
1. dragonboard
2. linux
3. camdroid
Choice: 2
All available kernel:
0. linux-3.10
Choice: 0
All available boards:
0. evb
Choice: 0
root@szddt:/opt/f1c100s/C600_Linux# ./build.sh
./build.sh pack
编译出错,提示:
hechen@szddt:/opt/f1c100s/lv7_rtthread_f1c100s/rt-thread/bsp/allwinner_tina$ scons -c
scons: Reading SConscript files ...
Error: the toolchain path (../../../tools/gcc-arm-none-eabi/bin) is not exist, please check 'EXEC_PATH' in path or rtconfig.py.
hechen@szddt:/opt/f1c100s/lv7_rtthread_f1c100s/rt-thread/bsp/allwinner_tina$
修改rtconfig.py的内容:
if CROSS_TOOL == ‘gcc’:
PLATFORM = ‘gcc’
EXEC_PATH = r’../../../tools/gcc-arm-none-eabi/bin’
改为:
if CROSS_TOOL == ‘gcc’:
PLATFORM = ‘gcc’
EXEC_PATH = r’/opt/f1c100s/arm-2014.05/bin’
系统默认的位置与实际的不同,修改为实际的即可。
编译出现lzo包的bug:
checking for strrchr… yes
checking for strstr… yes
checking for time… yes
checking for umask… yes
checking for utime… yes
checking for vsnprintf… yes
checking whether your compiler passes the ACC conformance test… FAILED
configure:
configure: Your compiler failed the ACC conformance test – for details see
configure: `config.log’. Please check that log file and consider sending
configure: a patch or bug-report to markus@oberhumer.com.
configure: Thanks for your support.
configure:
configure: error: ACC conformance test failed. Stop.
make: *** [package/Makefile.package.in:283: /opt/f1c100s/C600_Linux/out/sunivw1p1/linux/common/buildroot/build/host-lzo-2.03/.stamp_configured] Error 1
make: Leaving directory ‘/opt/f1c100s/C600_Linux/buildroot
进入lzo目录下,修改configure的命令即可。
root@szddt:/#cd /opt/f1c100s/C600_Linux/out/sunivw1p1/linux/common/buildroot/build/host-lzo-2.03
root@szddt:/opt/f1c100s/C600_Linux/out/sunivw1p1/linux/common/buildroot/build/host-lzo-2.03# ./configure CPPFLAGS=”$CPPFLAGS -std=c90 -fPIC”