https://github.com/JosefZIla/chip-arch-build.git
ubuntu16.04
仓库的地址换成ntc-chip-revived的
https://github.com/ntc-chip-revived/CHIP-linux/tree/a58ccbc30da8f1d9bcb4770af79bbbc41023908b
https://github.com/ntc-chip-revived/CHIP-u-boot/tree/c23364e2cd21ef74f7405fa03e537582f062c4c0
https://github.com/ntc-chip-revived/RTL8723BS/tree/1b4af26d8754150e420ba4a642610e97d904b8da
遇到的一些错误
bash: ./build.sh: /bin/env: 解释器错误: 没有那个文件或目录
删除#!/bin/env bash
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: dtc: 未找到
sudo apt-get install device-tree-compiler
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: fastboot: 未找到
ERROR: fastboot not found!
sudo apt-get install android-tools-adb android-tools-fastboot
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: sunxi-fel: 未找到
ERROR: sunxi-fel not found!
sudo apt-get install sunxi-tools
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: ubinize:未找到
ERROR: ubinize not found!
sudo apt install mtd-utils
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: img2simg:未找到
ERROR: img2simg not found!
sudo apt install img2simg
sudo apt install android-tools-fsutils
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: arm-linux-gnueabihf-gcc: 未找到
ERROR: arm-linux-gnueabihf-gcc not found!
sudo apt install gcc-arm-linux-gnueabihf
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: arm-none-eabi-gcc:未找到
sudo apt install gcc-arm-none-eabi
/home/xuefei/chip-arch-build/scripts/check_prereqs.sh: 第 20 行: hash: mkimage: 未找到
ERROR: mkimage not found!
sudo apt-get install u-boot-tools
正在解析主机 de7.mirror.archlinuxarm.org (de7.mirror.archlinuxarm.org)... 失败:未知的名称或服务。
wget: 无法解析主机地址 “de7.mirror.archlinuxarm.org”
Entering fakeroot and making image
^Cubinize: error!: cannot stat "ubifs.img" referred from section "ubifs"
error 2 (No such file or directory)
Cannot open input file ubi.img
Downloading generic armv7 image
--2022-05-06 23:23:44-- http://de7.mirror.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz
正在解析主机 de7.mirror.archlinuxarm.org (de7.mirror.archlinuxarm.org)... 失败:未知的名称或服务。
wget: 无法解析主机地址 “de7.mirror.archlinuxarm.org”
Entering fakeroot and making image
修改scripts下make_rootfs.sh第10行文件地址为http://mirror.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz
估计需要科学上网
整理相关依赖
sudo apt-get install device-tree-compiler android-tools-adb android-tools-fastboot sunxi-tools mtd-utils android-tools-fsutils gcc-arm-linux-gnueabihf gcc-arm-none-eabi u-boot-tools
Entering fakeroot and making image
ubinize: error!: error in section "ubifs": size of the image file "ubifs.img" is 598671360, which is larger than volume size 524288000
Cannot open input file ubi.img
configs文件夹下ubinize.cfg中vol_size=500MiB改成生成的ubifs.img的实际大小
我这里是598.7M,所以我改为600M
大佬,我跟你的教程走了一遍,uboot编译各种报错,如果可以的话能不能给我以下你编译完的镜像,谢谢了。
如果有可能的话,能把你的chip-arch-build目录发给我吗?
qq 2846554322
你这个QQ我搜不到啊……
我跟着步骤,在编译uboot的过程中出现了报错,尝试了各种解决方法后无果,请问能否分享一下最后生成出来的镜像文件?
如果可以的话,能否提供一下chip-arch-build文件目录以供参考。
谢谢了。
过去很久了,没啥印象了,我记得这个人的工程就算生成了好像安装后运行也有问题……
是吗?
还有,QQ号的话能把你的通过邮箱发给我吗?
已发送