Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

AN758x U-Boot

U-Boot for Airoha AN7581/AN7583 with a bilingual Web recovery interface.

面向 Airoha AN7581/AN7583 的 U-Boot,集成中英文 Web 恢复页面。

Hold Reset about one second after power-on to enter Web recovery.

上电约一秒后按住 Reset,即可进入 Web 恢复页面。

Supported devices / 支持机型

Target / 构建目标Device / 设备SoCStorage / 存储
hg5382aFiberHome HG5382AAN7581Parallel NAND
hg5585f-ctFiberHome HG5585F CTAN7581Parallel NAND
hg5585f-cuFiberHome HG5585F CUAN7581Parallel NAND
xg2010gGemtek XG2010GAN7581SPI NAND
xr1710gGemtek XR1710GAN7581SPI NAND
zn504xg-dZNXT ZN504XG-DAN7581SPI NAND
zn515xg-dZNXT ZN515XG-DAN7581SPI NAND
ung00aUnionMan UNG00AAN7581SPI NAND
xg-040g-mdNokia XG-040G-MDAN7581SPI NAND
xg-040g-tfNokia XG-040G-TFAN7581SPI NAND
xg-040g-mfNokia XG-040G-MFAN7583SPI NAND

Build / 构建

export CROSS_COMPILE=/path/to/aarch64-linux-musl-
export ARM32_CROSS_COMPILE=/path/to/arm-none-eabi-
export MBEDTLS_DIR=/path/to/mbedtls-3.4.1
export BUILD_JOBS=$(nproc)

./scripts/build-an758x.sh hg5585f-ct

Artifacts are written to output/<target>/ / 产物位于 output/<target>/

Installation / 刷入

Automatic / 自动刷机

Run AN758x-Stock2UBI from the stock system. Back up the needed partitions, then upload *-preloader.bin or *-firstblock.bin together with *-bl31-u-boot.fip. The tool writes the recovery bootloader and reboots.
在原厂系统中运行 AN758x-Stock2UBI, 备份需要保留的分区,然后上传 *-preloader.bin 或 *-firstblock.bin,以及 *-bl31-u-boot.fip。工具写入恢复引导后自动重启。

Manual / 手动刷机

  1. Back up every MTD partition and UBI volume.
    备份全部 MTD 分区和 UBI 卷。

  2. Write one BL2 image at the beginning of NAND:
    在 NAND 开头写入以下一种 BL2 镜像:

    • Write *-firstblock.bin from NAND offset 0x0.
      从 NAND 0x0 偏移写入 *-firstblock.bin。
    • Leave the first 0x800 bytes erased and write *-preloader.bin from NAND offset 0x800.
      保持前 0x800 字节为擦除态,从 NAND 0x800 偏移写入 *-preloader.bin。
  3. Boot the device. When BL2 requests a FIP, press x and send *-bl31-u-boot.fip through XMODEM.
    启动设备;BL2 请求 FIP 时按 x,通过 XMODEM 发送 *-bl31-u-boot.fip,临时进入 U-Boot。

With either method, connect Ethernet and open http://192.168.0.1/ (the first boot may take about one minute). For the first installation, select Rebuild UBI / 重建 UBI, then write *-bl31-u-boot.fip, restore the board-data volumes, upload the sysupgrade image, and select Boot system / 启动系统.
通过以上任一方法进入 U-Boot 后,连接网线并打开 http://192.168.0.1/(首次启动 可能需要约一分钟)。首次安装选择 重建 UBI,随后写入 *-bl31-u-boot.fip、 恢复板级数据卷、上传 sysupgrade 镜像,最后选择 启动系统。

Subsequent upgrades use Install system / 刷写系统 directly.

后续升级直接使用 刷写系统。

TF-A sources / TF-A 来源

关于 About

U-boot for AN758X ONU
an7581an7583en7581en7583uboot

语言 Languages

C93.0%
Python2.3%
Assembly1.6%
Makefile1.1%
C++0.7%
C#0.3%
Perl0.3%
ASL0.2%
Shell0.1%
CMake0.1%
Pawn0.1%
Java0.1%
Linker Script0.1%
Yacc0.0%
HTML0.0%
XProc0.0%
SmPL0.0%
Lex0.0%
Dockerfile0.0%
Smarty0.0%
JavaScript0.0%
Batchfile0.0%
Roff0.0%
Go Template0.0%
GDB0.0%
Awk0.0%
sed0.0%
Handlebars0.0%
CSS0.0%
Tcl0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
48
Total Commits
峰值: 41次/周
Less
More

核心贡献者 Contributors