android uboot 内核,RK3288 android7.1.2 kernel 更改uboot 环境变量完整详细步骤 make env(解决遇到的大问题)(进阶篇四)...

准备工作:

1.搭建adbwireless 环境

参考:https://blog.csdn.net/Chhjnavy/article/details/97643584

https://blog.csdn.net/Chhjnavy/article/details/98845930

目标板:rk3288 android

编译环境:android7.1.2

编译路径:源码根目录u-boot/ 以及 /u-boot/tools/env

a570fba8e5cd0023216dac5f4dc0002d.png

2.产生fw_printenv 执行文件并下载到目标版中

1)u-boot/目录下make env  可能会出错如下:

解决办法:添加交叉编译工具: make CROSS_COMPILE=arm-linux-gnueabihf- env

1e7a8c3dc6886413a28ce15bec2c05de.png

编译通过后,产生fw_printenv 以及fw_env.config 文件。

2)根据目标版属性修改fw_env.config 文件

fw_env.config 文件如下:

# Configuration file for fw_(printenv/setenv) utility.

# Up to two entries are valid, in this case the redundant

# environment sector is assumed present.

# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.

# Futhermore, if the Flash sector size is ommitted, this value is assumed to

# be the same as the Environment size, which is valid for NOR and SPI-dataflash

# NOR example

# MTD device nameDevice offsetEnv. sizeFlash sector sizeNumber of sectors

#/dev/mtd10x00000x40000x4000

#/dev/mtd20x00000x40000x4000

# MTD SPI-dataflash example

# MTD device nameDevice offsetEnv. sizeFlash sector sizeNumber of sectors

#/dev/mtd50x42000x4200

#/dev/mtd60x42000x4200

# NAND example

#/dev/mtd00x40000x40000x200002

# Block device example

/dev/block/mmcblk00xc00000x20000

通过目标版终端查询:使用的是 /dev/block/mmcblk0  ,因此在fw_env.config 文件中将开启Block device

e9996800b0ed3df4da386d81aceab83a.png

该文件对应的设备一定要修改对,否则会出现:Cannot access MTD device /dev/mtd1: No such file

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值