From: Kees Jongenburger Date: Fri, 10 Jan 2014 11:20:59 +0000 (+0100) Subject: arm-refactor:use sysenv board to determine what driver to start. X-Git-Tag: v3.3.0~650 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/CHANGES?a=commitdiff_plain;h=df28b6a5c05770ddf021fd1b2890d2d6549a3f29;p=minix.git arm-refactor:use sysenv board to determine what driver to start. Change-Id: Ib2f273a4ff666a7417a13e39be0b89075f61c31b --- diff --git a/etc/usr/rc b/etc/usr/rc index 51f802a98..283b25bfb 100644 --- a/etc/usr/rc +++ b/etc/usr/rc @@ -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.