forked from mirror/openwrt
Add support for Nokia Valyrian based on Airoha AN7581 SoC. Device specification -------------------- SoC Type: Airoha AN7581 RAM: 2x DDR4 Nanya NT5AD256M16E4-JR (1GB) Flash: eMMC Macronix MX52LM08A11XVW (1GB) Ethernet: 3x gigabit via AN7581, 1x 10g via AS21x1x, 1x SFP cage Wi-Fi: MT7996 - BE19000 LEDs: 11 LED via 2x 74HC595 shift register Button: Reset, WPS, WiFi USB ports: 1x 2.0 Miscellaneous: 1x Power Monitor via RTQ6059, 2x FXS port Device is unfused and is originally flashed with Airoha SDK bootloader that require signed images. Bootloader is username/password protected and use the leaked auth combo that can be found online. From the bootloadet instruction on how to flash custom bootloader are: 1. mmc erase 0 0x800 2. tftpboot 192.168.1.10:airoha/an7581/openwrt-airoha-an7581-nokia_valyrian-preloader.bin 3. mmc write $loadaddr 0x4 0xfc 4. tftpboot 192.168.1.10:airoha/an7581/openwrt-airoha-an7581-nokia_valyrian-bl31-uboot.fip 5. mmc write $loadaddr 0x100 0x700 It's also possible to use the Emergency Recovery procedure: From powered OFF device: 1. Keep the reset button pressed (middle button) 2. Power on the device 3. Notice the "Press x" prompt 4. Press x 5. Notice the "C" char waiting for XMODEM load 6. Load the preloader binary with XMODEM protocol 7. Notice the "Press x to load BL31 + U-Boot FIP" 8. Press x 9. Notice the "C" char waiting for XMODEM load 10. Load the fip binary with XMODEM protocol 11. You are now in U-Boot loaded from serial 12. Follow normal procedure to flash bootloader Due to BOOTROM limitation. the device can't have a standard GPT table implementation. Because of this fixed-partitions are used to handle this. U-Boot still doesn't have support for this (it's planned) and currently to flash and load and image it's needed to write and read from static address in eMMC. The GPT partition table follow Prpl guidelines with dual partition table with kernel and rootfs split. The address for kernel is 0xb00000 and the address for rootfs is 0x1b00000. Link: https://github.com/openwrt/openwrt/pull/21761 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> |
||
|---|---|---|
| .. | ||
| an7581.mk | ||
| an7583.mk | ||
| en7523.mk | ||
| Makefile | ||