3 ##################################################################
5 # Russellville CrownBay CrossvilleOKI ML7213 NexCOM
6 #monitor LVDS 7 LVDS 13 LVDS 7 LVDS 13 LVDS 7
7 #Gfx 8086:8108 8086:4108 8086:4108 8086:4108 8086:4108
9 #################################################################
12 # 1 Russellville DEVICE has 8086:8108
13 # 2 CrownBay VENDOR !has 10db && DEVICE has 8086:4108
14 # 3 CrossivilleOKI VENDOR has 10db && DEVICE has 8086:4108
16 DEVICE_LSPCI=`lspci -n | cut -d$' ' -f3`
20 local _board_type="unknown"
27 for entry in $DEVICE_LSPCI; do
34 if [ $VENDOR == '8086' ]; then
35 if [ $DEVICE == '8108' ]; then
38 elif [ $DEVICE == '4108' ]; then
41 elif [ $VENDOR == '10db' ]; then
43 elif [ $VENDOR == '12d8' ]; then
49 if [ $IS_8108 == '1' ]; then
50 _board_type='Russellville'
51 elif [ $IS_4108 == '1' ]; then
52 if [ $IS_ML7213 == '1' ]; then
53 _board_type='CrossvilleOKI'
54 elif [ $IS_CROWNBAY == '1' ]; then
55 _board_type='CrownBay'
63 # This logic is stupid and the reliable method is to query the firmware interface, which now is not available yet.
70 boardname=`find_board_type $platform`
72 if [ $boardname == 'CrownBay' ]
75 elif [ $boardname == 'Russellville' ] || [ $boardname == 'CrossvilleOKI' ]
80 # If an appropriate weston configuration file has not been created then create it
81 if [ ! -f /root/.config/weston.ini ]; then
82 /bin/mkdir -p /root/.config
83 cat > /root/.config/weston.ini <<EOF
89 icon=/usr/share/weston/terminal.png
90 path=/usr/bin/weston-terminal
94 mode= 60.00 800 864 976 1088 480 486 494 517 -hsync +vsync ==
99 echo "Boardname is $boardname, configid=$configid"
100 /sbin/modprobe emgd configid=$configid