[OpenWrt-Devel] Board detection for Lamobo R1 fails

Vasco Steinmetz openwrt at kyberraum.net
Wed Dec 9 12:44:57 EST 2015


Hi,

I'm trying to use the /etc/board.d/02_network board specific defaults for the 
Lamobo R1 (like the integrated switch) which got recently committed.

Apparently in sunxi_board_detect() the following case does not match:

  model="$( cat /proc/device-tree/model )"

        case "$model" in
                ...
          "Lamobo R1")
               board="lamobo-r1"
               ;;

as the output from /proc/device-tree/model is

root at OpenWrt:/etc/board.d# cat /proc/device-tree/model
Lamobo Banana Pi R1

which is the value from

linux-sunxi/u-boot-Lamobo_R1/u-boot-2015.07/arch/arm/dts/sun7i-a20-lamobo-
r1.dts

In the end the board name in /tmp/sysinfo/model ends up being "generic" and 
the 02_network script does nothing.


Kind regards,
Vasco
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list