f1c100s开发笔记


2020-05-20 09:56:15 星期四

f1c100s芯片典型的产品应用

全志芯片相关的论坛帖

https://whycan.cn/t_3019.html#p25005

f1c100s移植帖

https://whycan.cn/t_3211.html

交叉编译器的安装

1、交叉编译器gcc获取链接

# 此处为获取7.2.1版本,您可获取其他版本或者通过链接直接下载
wget http://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabi/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz

tar -vxJf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz
sudo cp -r ./gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi /opt/

sudo vim /etc/bash.bashrc

# 在文件末尾 添加以下内容
PATH="$PATH:/opt/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin"
# 添加完毕

# 使路径生效
source /etc/bash.bashrc

#如果使用临时环境变量,执行以下命令即可
export PATH=$PATH:/home/ll/f1c100s/gcc/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin

uboot的编译适配

《1》git clone 速度特别慢解决方法

sudo apt-get install git
git clone https://github.com/Lichee-Pi/u-boot.git
cd u-boot

# 查看分支
git branch -a
# 切换到 Nano 分支
git checkout nano-v2018.01

#或者直接在http 下载
https://github.com/Lichee-Pi/u-boot/tree/nano-v2018.01
配置
# 此处告知make采用arm-linux-gnueabi下的所有交叉编译工具,目标架构为Arm,设定各项默认配置为 nano 的spiflash支持版
1、make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- licheepi_nano_spiflash_defconfig

# 若不带spi-flash的板子,请换成 licheepi_nano_defconfig
这2个默认 的预先设置的配置文件存放在configs目录下
# 进行可视化配置
2、make ARCH=arm menuconfig
开始编译

uboot-2018.05移植GCC报错:gcc is older than 6.0

编译报错 ,需要指定编译器
*** Your GCC is older than 6.0 and is not supported  
arch/arm/config.mk:66: recipe for target 'checkgcc6' failed  
make: *** [checkgcc6] Error 1  
# 开始编译,不能直接make 需要指定编译器,否则会提示gcc版本太老
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j1
uboot编译遇坑
error: command ‘swig’ failed with exit status 1
需要安装swig
apt install swig
  • 4
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值