cfe880bb3cfcfb5f5793772e319fea3dfee58c68
3 # Copyright (C) 2013-2015 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
10 mvebu_board_detect
() {
14 machine
=$
(cat /proc
/device-tree
/model
)
17 *"Marvell Armada 370 Evaluation Board")
20 *"Globalscale Marvell ESPRESSOBin Board")
21 name
="globalscale,espressobin"
23 *"Marvell Armada 3720 Development Board DB-88F3720-DDR3")
24 name
="marvell,armada-3720-db"
26 *"Marvell 8040 MACCHIATOBin")
27 name
="marvell,armada8040-mcbin"
29 *"Marvell Armada 8040 DB board")
30 name
="marvell,armada8040-db"
32 *"Marvell Armada 7040 DB board")
33 name
="marvell,armada7040-db"
35 *"Globalscale Mirabox")
38 *"Marvell Armada 370 Reference Design")
41 *"Marvell Armada XP Evaluation Board")
44 *"PlatHome OpenBlocks AX3-4 board")
45 name
="openblocks-ax3-4"
47 *"Marvell Armada XP GP Board")
51 name
="armada-385-linksys-caiman"
54 name
="armada-xp-linksys-mamba"
56 *"Linksys WRT1900ACv2")
57 name
="armada-385-linksys-cobra"
59 *"Linksys WRT1900ACS")
60 name
="armada-385-linksys-shelby"
62 *"Linksys WRT3200ACM")
63 name
="armada-385-linksys-rango"
66 name
="armada-385-linksys-venom"
68 *"Marvell Armada 385 Access Point Development Board")
69 name
="armada-385-db-ap"
71 *"Marvell Armada XP Development Board DB-MV784MP-GP")
74 *"SolidRun Clearfog Pro A1")
75 name
="armada-388-clearfog-pro"
77 *"SolidRun Clearfog Base A1")
78 name
="armada-388-clearfog-base"
81 name
="armada-385-turris-omnia"
85 [ -z "$name" ] && name
="unknown"
87 [ -z "$MVEBU_BOARD_NAME" ] && MVEBU_BOARD_NAME
="$name"
88 [ -z "$MVEBU_MODEL" ] && MVEBU_MODEL
="$machine"
90 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
92 echo "$MVEBU_BOARD_NAME" > /tmp
/sysinfo
/board_name
93 echo "$MVEBU_MODEL" > /tmp
/sysinfo
/model