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 CrossvilleOKI VENDOR has 10db && DEVICE has 8086:4108
16 PATH=$PATH:/bin:/sbin:/usr/bin
17 DEVICE_LSPCI=`lspci -n | cut -d$' ' -f3 -s`
21 local _board_type="unknown"
28 for entry in $DEVICE_LSPCI; do
35 if [ $VENDOR == '8086' ]; then
36 if [ $DEVICE == '8108' ]; then
39 elif [ $DEVICE == '4108' ]; then
42 elif [ $VENDOR == '10db' ]; then
44 elif [ $VENDOR == '12d8' ]; then
50 if [ $IS_8108 == '1' ]; then
51 _board_type='Russellville'
52 elif [ $IS_4108 == '1' ]; then
53 if [ $IS_ML7213 == '1' ]; then
54 _board_type='CrossvilleOKI'
55 elif [ $IS_CROWNBAY == '1' ]; then
56 _board_type='CrownBay'
64 # This logic is stupid and the reliable method is to query the firmware interface, which now is not available yet.
72 for entry in $DEVICE_LSPCI; do
73 VENDOR_ID=0x`echo $entry | cut -d':' -f1`
74 DEVICE_ID=0x`echo $entry | cut -d':' -f2`
75 if [[ $VENDOR_ID -eq 0x8086 ]]; then
77 0x410[8-f] | 0x8108 | 0x8182 )
78 # This should cover all Intel Poulsbo and E6xx (Tunnel Creek) graphics core
79 echo "Found a Graphics core supported by EMGD: $entry"
86 if [[ $IS_EMGD_NEEDED -ne 0 ]]; then
87 IS_CONFIGID_SET=`modprobe -c | grep 'options emgd' | grep configid -c`
88 if [[ $IS_CONFIGID_SET -eq 0 ]]; then
89 # Trying to get a good value by default based on board type
90 boardname=`find_board_type $platform`
92 if [ $boardname == 'NexCom' ];
95 elif [ $boardname == 'CrownBay' ];
98 elif [ $boardname == 'Russellville' ] || [ $boardname == 'CrossvilleOKI' ];
103 if [ $boardname != 'unknown' ];
105 echo "Boardname is $boardname, configid=$configid"
106 modprobe emgd configid=$configid
108 echo "Could not determine what board we are running on, please set configid manually"
111 # There is a specific configuration given in /etc/modprobe.d/, use that one
112 echo "configid parameter set by user (via /etc/modprobe.d/)"
116 # If an appropriate weston configuration file has not been created then create it
117 if [ ! -f /root/.config/weston.ini ]; then
118 mkdir -p /root/.config
119 cat > /root/.config/weston.ini <<EOF
121 type=desktop-shell.so
125 icon=/usr/share/weston/terminal.png
126 path=/usr/bin/weston-terminal
130 mode= 60.00 800 864 976 1088 480 486 494 517 -hsync +vsync ==