Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rhodesepass/buildroot

Repository files navigation

明日方舟 电子通行证 Buildroot SDK

基于aodzip老师的buildroot-tiny200 发行版,更改rootfs文件系统为UBIFS,在Uboot层做了dtoverlay,并进行硬件解码相关的修补。

本buildroot是"四合一"buildroot,可以生成Kernel、U-boot、rootfs、epass_drm_app。

默认用户名:root 默认密码:toor

电子通行证文件相关位于:buildroot-epass/board/rhodesisland/epass目录下

如何构建系统

以下指令仅在ubuntu 24.04测试可用,如果您使用了其他发行版可能有所不同,请自行解决。

安装工具包

sudo apt install wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev mtd-utils
sudo apt install python3-distutils fakeroot

克隆本仓库

git clone https://github.com/inapp123/buildroot-epass

应用 defconfig

请注意:应用defconfig会覆盖你之前的所有的配置!!

一般来说只需要应用一次

cd buildroot-epass
make rhodesisland_epass_defconfig

构建

Buildroot在构建时会下载所有源码。对于国内等网络环境特殊的情况,可使用相关手段连接网络,或下载编译源码包:

通过网盘分享的文件:epass-dl.tar.gz
链接: https://pan.baidu.com/s/1eCxZEsx1CHZdeZn9TVkyzg?pwd=34qg 提取码: 34qg 
--来自百度网盘超级会员v4的分享

放到buildroot目录下然后解压:

tar xzvf epass-dl.tar.gz

开始构建

make

构建的结果在output/images中。其中:

  • U-boot: u-boot-sunxi-with-nand-spl.bin
  • Boot分区(包括kernel和设备树): boot_ubi.img
  • Rootfs(包括epass_drm_app等): rootfs_ubi.img

重新构建内核及设备树

./rebuild-kernel.sh

重新构建U-boot

./rebuild-uboot.sh

直接烧录系统

需要先安装XFEL和dfu-util

首先准备bootenv.txt,内容为:

device_rev=0.3
screen=hsd
(这里加一个换行,然后加一个\0円x00)

注意:这里的device_rev和screen需要根据你的设备实际情况填写。 device_rev: 0.2/0.3/0.5/0.6 screen: boe/hsd/laowu

然后执行:

xfel spinand erase 0 0x8000000
xfel spinand write 0 u-boot-sunxi-with-nand-spl.bin
xfel spinand write 0xfa000 bootenv.txt
xfel reset
dfu-util -R -a boot -D boot_ubi.img
dfu-util -R -a rootfs -D rootfs_ubi.img

更新说明

当更新了epass_drm_app后,需要bump这里的buildroot package:

在package/epass_drm_app/epass_drm_app.mk中,将EPASS_DRM_APP_VERSION改为新的版本号。

使用docker 启动构建环境

dockerfile会把APT源替换为国内源,以提高下载速度。 如果你需要使用国外源,请手动注释Dockerfile中的APT源替换的命令。

docker build \
 --build-arg UID=$(id -u) \
 --build-arg GID=$(id -g) \
 --build-arg USERNAME=$(whoami) \
 -t epass-buildroot .

然后进入容器:

docker run -it --rm \
 --user $(id -u):$(id -g) \
 -v $(pwd):/buildroot \
 epass-buildroot

然后就可以在容器中进行构建了。

make rhodesisland_epass_defconfig
make -j$(nproc)

Buildroot Package for Allwinner SIPs

Opensource development package for Allwinner F1C100s & F1C200s

Driver support

Check this file to view current driver support progress for F1C100s/F1C200s: PROGRESS-SUNIV.md

Check this file to view current driver support progress for V3/V3s/S3/S3L: PROGRESS-V3.md

Install

Install necessary packages

sudo apt install wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev
sudo apt install python3-distutils

Download BSP

Notice: Root permission is not necessery for download or extract.

git clone https://github.com/aodzip/buildroot-tiny200

Make the first build

Notice: Root permission is not necessery for build firmware.

Apply defconfig

Caution: Apply defconfig will reset all buildroot configurations to default values.

Generally, you only need to apply it once.

cd buildroot-tiny200
make widora_mangopi_r3_defconfig

Regular build

make

Speed up build progress

Download speed

Buildroot will download sourcecode when compiling the firmware. You can grab a TRUSTWORTHY archive of 'dl' folder for speed up.

Compile speed

If you have a multicore CPU, you can try

make -j ${YOUR_CPU_COUNT}

or buy a powerful PC for yourself.

Flashing firmware to target

You can flash a board by Linux (Recommended) or Windows system.

Helper Scripts

  • rebuild-uboot.sh: Recompile U-Boot when you direct edit U-Boot sourcecode.
  • rebuild-kernel.sh: Recompile Kernel when you direct edit Kernel sourcecode.
  • emulate-chroot.sh: Emulate target rootfs by chroot.

About

方舟电子通行证 u-boot+linux+rootfs+drmapp 四合一超级构建环境(x

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Makefile 71.8%
  • C 9.1%
  • Python 8.4%
  • Shell 6.3%
  • C++ 1.1%
  • BitBake 1.0%
  • Other 2.3%

AltStyle によって変換されたページ (->オリジナル) /