0ac00c931c
To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we need to gunzip the generated firmware to do fwtool check. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
17 lines
343 B
Bash
17 lines
343 B
Bash
#!/bin/sh
|
|
. /lib/sunxi.sh
|
|
|
|
do_b53_hack() {
|
|
# hack: enable switch on Lamobo R1 and reset counters
|
|
case "$( sunxi_board_name )" in
|
|
"lamobo,lamobo-r1")
|
|
ifconfig eth0 up
|
|
sleep 1
|
|
swconfig dev switch0 set reset 1
|
|
swconfig dev switch0 set reset_mib 1
|
|
swconfig dev switch0 set apply 1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main do_b53_hack
|