diff options
author | Wojciech Dubowik <Wojciech.Dubowik@protonmail.ch> | 2022-07-19 13:35:12 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-05-07 14:50:50 +0200 |
commit | 924a5aabc708d2ab84ae9c05a580db75b188534f (patch) | |
tree | a5a43ef85849c900121213b45943b910bee6c2b7 /target/linux/layerscape/base-files | |
parent | 7700a6f8266cb12fbfd32456a3ae8181bc1cf347 (diff) | |
download | upstream-924a5aabc708d2ab84ae9c05a580db75b188534f.tar.gz upstream-924a5aabc708d2ab84ae9c05a580db75b188534f.tar.bz2 upstream-924a5aabc708d2ab84ae9c05a580db75b188534f.zip |
layerscape: Add ls1028ardb support
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>
Diffstat (limited to 'target/linux/layerscape/base-files')
3 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/layerscape/base-files/etc/board.d/02_network b/target/linux/layerscape/base-files/etc/board.d/02_network index b46f0b0621..172172c12c 100644 --- a/target/linux/layerscape/base-files/etc/board.d/02_network +++ b/target/linux/layerscape/base-files/etc/board.d/02_network @@ -5,6 +5,10 @@ board_config_update case "$(board_name)" in + fsl,ls1028a-rdb|\ + fsl,ls1028a-rdb-sdboot) + ucidef_set_interfaces_lan_wan "swp0 swp1 swp2 swp3" "eth0" + ;; traverse,ls1043v) ucidef_set_interface_lan "eth0 eth1 eth2 eth3" ucidef_set_interface_wan "eth4" diff --git a/target/linux/layerscape/base-files/lib/preinit/79_move_config b/target/linux/layerscape/base-files/lib/preinit/79_move_config index 901a289b66..5519e059d9 100644 --- a/target/linux/layerscape/base-files/lib/preinit/79_move_config +++ b/target/linux/layerscape/base-files/lib/preinit/79_move_config @@ -10,6 +10,7 @@ move_config() { 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 | \ diff --git a/target/linux/layerscape/base-files/lib/upgrade/platform.sh b/target/linux/layerscape/base-files/lib/upgrade/platform.sh index 857be5a744..e88dfdf145 100644 --- a/target/linux/layerscape/base-files/lib/upgrade/platform.sh +++ b/target/linux/layerscape/base-files/lib/upgrade/platform.sh @@ -71,6 +71,7 @@ platform_copy_config() { 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 | \ @@ -95,6 +96,8 @@ platform_check_image() { fsl,ls1021a-iot-sdboot | \ fsl,ls1021a-twr | \ fsl,ls1021a-twr-sdboot | \ + fsl,ls1028a-rdb | \ + fsl,ls1028a-rdb-sdboot | \ fsl,ls1043a-rdb | \ fsl,ls1043a-rdb-sdboot | \ fsl,ls1046a-frwy | \ @@ -130,6 +133,7 @@ platform_do_upgrade() { fsl,ls1012a-frdm | \ fsl,ls1012a-rdb | \ fsl,ls1021a-twr | \ + fsl,ls1028a-rdb | \ fsl,ls1043a-rdb | \ fsl,ls1046a-frwy | \ fsl,ls1046a-rdb | \ @@ -142,6 +146,7 @@ platform_do_upgrade() { 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 | \ |