]> Zhao Yanbai Git Server - minix.git/commitdiff
arm-refactor:use sysenv board to determine what driver to start. 07/1207/1
authorKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 10 Jan 2014 11:20:59 +0000 (12:20 +0100)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 20 Jan 2014 08:33:41 +0000 (09:33 +0100)
Change-Id: Ib2f273a4ff666a7417a13e39be0b89075f61c31b

etc/usr/rc

index 51f802a98e8a9fcf2877565de4c28be656c5339f..283b25bfb042daed0d2cacaafd952460aa8d2406 100644 (file)
@@ -238,11 +238,11 @@ start)
        done
        echo .
 
-       BOARD_NAME=`eepromread -i | sed -n 's/^BOARD_NAME      : \(.*\)$/\1/p'`
+       BOARD_NAME=`sysenv board`
        case "${BOARD_NAME}" in
 
-               A335BONE)
-                       echo "Detected BeagleBone"
+               ARM-ARMV7-TI-BB-WHITE)
+                       echo "Running on a BeagleBone"
                        echo -n "Starting i2c device drivers: "
 
                        # start EEPROM driver for reading board info
@@ -278,8 +278,8 @@ start)
 
                        ;;
 
-               A335BNLT)
-                       echo "Detected BeagleBone Black"
+               ARM-ARMV7-TI-BB-BLACK)
+                       echo "Running on a BeagleBone Black"
                        echo -n "Starting i2c device drivers: "
 
                        # start EEPROM driver for reading board info
@@ -306,8 +306,8 @@ start)
 
                        ;;
 
-               UNKNOWN)
-                       echo "Unable to detect board -- assuming BeagleBoard-xM"
+               ARM-ARMV7-TI-BBXM-GENERIC)
+                       echo "Running on a BeagleBoard-xM"
                        echo -n "Starting i2c device drivers: "
 
                        # Start TPS65950 driver for power management.