Modify the configuration to support RPI4 model 77/218677/1 accepted/tizen/unified/20191127.054202 submit/tizen/20191127.020056
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 27 Nov 2019 00:35:20 +0000 (09:35 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 27 Nov 2019 00:35:20 +0000 (09:35 +0900)
Change-Id: I3250a5d21c3d1faad778c57389eab4eb5ab2ac13
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
scripts/bt-dev-start-rpi3.sh

index aab1b91..c89346d 100644 (file)
@@ -29,16 +29,19 @@ GEN_BDADDR(){
        BT_MAC=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))`
 }
 
+PIVERSION=`cat /proc/device-tree/model | awk '{print $3}'`
 PIMODEL=`cat /proc/device-tree/model | awk '{print $5}'`
-echo "$PIMODEL"
+echo "$PIVERSION $PIMODEL"
 
-if [ "$PIMODEL" = "B" ]
+if [ "$PIVERSIOM" = "3" ] && [ "$PIMODEL" = "B" ]
 then
-       FLOW_CONTROL=noflow
-       UART_SPEED=460800
+        echo "RPI3 B model"
+        FLOW_CONTROL=noflow
+        UART_SPEED=460800
 else
-       FLOW_CONTROL=flow
-       UART_SPEED=2000000
+        echo "RPI3 B+ or RPI4 model"
+        FLOW_CONTROL=flow
+        UART_SPEED=2000000
 
 fi