diff options
author | Mathew McBride <matt@traverse.com.au> | 2018-04-30 22:42:39 +1000 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 10:53:57 +0200 |
commit | 08714738d2c8d7710f8fd2b7deac795f49e7d7c2 (patch) | |
tree | da058038a138d0ab98d7928d9806f4f77ddbef65 /target/linux/layerscape/base-files/lib/preinit | |
parent | 481f870a02a29974eca943f3b926434d5e517679 (diff) | |
download | upstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.tar.gz upstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.tar.bz2 upstream-08714738d2c8d7710f8fd2b7deac795f49e7d7c2.zip |
layerscape: add Traverse LS1043-S support
The Traverse LS1043-S board is a router board based on
NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+,
as well as miniPCIe and M.2 LTE.
Unlike the Layerscape reference boards, the LS1043-S board has
NAND flash and uses the mainline U-Boot.
This patch implements support for the LS1043-S board, as well as
the earlier LS1043-V board. It is our intention that all boards
in this family (LS1043-S and later, Five64) will boot the same binary.
Not included in this patchset are the hwmon drivers not in the kernel
(emc1704,pac1934) or the bootloader.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
Diffstat (limited to 'target/linux/layerscape/base-files/lib/preinit')
-rw-r--r-- | target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth b/target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth new file mode 100644 index 0000000000..c4feec42bc --- /dev/null +++ b/target/linux/layerscape/base-files/lib/preinit/05_layerscape_reorder_eth @@ -0,0 +1,28 @@ +#!/bin/sh + +reorder_layerscape_interfaces() { + if [ ! -f /tmp/sysinfo/board_name ]; then + echo "No board name found, not doing reorder_layerscape_interfaces" + return 0 + fi + + board=$(cat /tmp/sysinfo/board_name) + case "$board" in + "traverse,ls1043v" | \ + "traverse,ls1043s") + + # Reorder ethernet interfaces to match the physical order + ip link set eth2 name fm1-mac3 + ip link set eth4 name eth2 + ip link set eth3 name fm1-mac4 + ip link set eth5 name eth3 + ip link set fm1-mac3 name eth4 + ip link set fm1-mac4 name eth5 + ;; + default) + echo "Unknown board $board" + ;; + esac +} + +boot_hook_add preinit_main reorder_layerscape_interfaces |