mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-24 14:06:15 +00:00
924a5aabc7
Add support for NXP LS1028ARDB reference board. It's a dual core Coretex-A53 board with 4G RAM and 5 Eternet ports (4 ports are connected to MSCC Felix switch). The original layout of NXP board has been kept but firmware images are adapted to be more sysupgrade friendly. At the moment NOR and SD boots are supported. NOR flash instructions: * make sd card with sdboot image * boot * write firmware image to spi flash $ mtd write /tmp/openwrt-layerscape-armv8_64b-fsl_ls1028a-rdb- squashfs-firmware.bin /dev/mtd0 * change jumper to NOR boot and reset V3: * Added board specific network defaults for lan/wan v2: * Added INA220 curent monitor, PCF2129 RTC clock and NXP SA56004ED temperature sensor to default packages * removed compat fixups for thist board Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@protonmail.ch>
29 lines
597 B
Plaintext
29 lines
597 B
Plaintext
. /lib/functions.sh
|
|
. /lib/upgrade/common.sh
|
|
|
|
BOOTPART=/dev/mmcblk0p1
|
|
|
|
move_config() {
|
|
local board=$(board_name)
|
|
|
|
case "$board" in
|
|
fsl,ls1012a-frwy-sdboot | \
|
|
fsl,ls1021a-iot-sdboot | \
|
|
fsl,ls1021a-twr-sdboot | \
|
|
fsl,ls1028a-rdb-sdboot | \
|
|
fsl,ls1043a-rdb-sdboot | \
|
|
fsl,ls1046a-frwy-sdboot | \
|
|
fsl,ls1046a-rdb-sdboot | \
|
|
fsl,ls1088a-rdb-sdboot)
|
|
if [ -b $BOOTPART ]; then
|
|
mkdir -p /boot
|
|
mount -t ext4 -o rw,noatime $BOOTPART /boot 2>&1
|
|
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
|
|
umount /boot
|
|
fi
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_mount_root move_config
|