68caaff15fe72b33ea57a9c42eff38f654a16a87
3 # Copyright (C) 2010-2013 OpenWrt.org
10 local cmdline
=$
(cat /proc
/cmdline
)
11 local bootpart
=${cmdline##*root=}
12 bootpart
=${bootpart%% *}
13 local uuid
=${bootpart#PARTUUID=}
18 blkid |
grep "PTUUID=\"$(rootpartuuid)\"" | cut
-d : -f1
21 bootpart_from_uuid
() {
22 blkid |
grep $
(rootpartuuid
)-01 | cut
-d : -f1
25 rootpart_from_uuid
() {
26 blkid |
grep $
(rootpartuuid
)-02 | cut
-d : -f1
31 [ -f /boot
/uImage
] ||
{
32 mount
-o rw
,noatime $
(bootpart_from_uuid
) /boot
> /dev
/null
40 machine
=$
(cat /proc
/device-tree
/model
)
43 "Gateworks Ventana i.MX6 DualLite/Solo GW51XX" |\
44 "Gateworks Ventana i.MX6 Dual/Quad GW51XX")
48 "Gateworks Ventana i.MX6 DualLite/Solo GW52XX" |\
49 "Gateworks Ventana i.MX6 Dual/Quad GW52XX")
53 "Gateworks Ventana i.MX6 DualLite/Solo GW53XX" |\
54 "Gateworks Ventana i.MX6 Dual/Quad GW53XX")
58 "Gateworks Ventana i.MX6 DualLite/Solo GW54XX" |\
59 "Gateworks Ventana i.MX6 Dual/Quad GW54XX" |\
60 "Gateworks Ventana GW5400-A")
64 "Gateworks Ventana i.MX6 Dual/Quad GW551X" |\
65 "Gateworks Ventana i.MX6 DualLite/Solo GW551X")
69 "Gateworks Ventana i.MX6 DualLite/Solo GW552X" |\
70 "Gateworks Ventana i.MX6 Dual/Quad GW552X")
74 "Gateworks Ventana i.MX6 DualLite/Solo GW553X" |\
75 "Gateworks Ventana i.MX6 Dual/Quad GW553X")
79 "Gateworks Ventana i.MX6 DualLite/Solo GW5904" |\
80 "Gateworks Ventana i.MX6 Dual/Quad GW5904")
84 "SolidRun Cubox-i Solo/DualLite" |\
85 "SolidRun Cubox-i Dual/Quad")
89 "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board" |\
90 "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board V1.1")
94 "Toradex Apalis iMX6Q/D Module on Apalis Evaluation Board")
98 "Wandboard i.MX6 Dual Lite Board")
107 [ -z "$IMX6_BOARD_NAME" ] && IMX6_BOARD_NAME
="$name"
108 [ -z "$IMX6_MODEL" ] && IMX6_MODEL
="$machine"
110 [ -e "/tmp/sysinfo/" ] || mkdir
-p "/tmp/sysinfo/"
112 echo "$IMX6_BOARD_NAME" > /tmp
/sysinfo
/board_name
113 echo "$IMX6_MODEL" > /tmp
/sysinfo
/model