Bug 3960

Summary: X fails to start on atom-pc image
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: coreAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, meta.mr.watcher, meta.watcher, ross.burton, tom.zanussi
Version: 1.4   
Target Milestone: 1.4 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
xorg log atom-pc none

Description Alexandru Georgescu 2013-02-28 13:57:53 UTC
Created attachment 1094 [details]
xorg log atom-pc

BB_VERSION        = "1.17.1" 
BUILD_SYS         = "x86_64-linux" 
NATIVELSBSTRING   = "Unknown" 
TARGET_SYS        = "i586-poky-linux" 
MACHINE           = "atom-pc" 
DISTRO            = "poky" 
DISTRO_VERSION    = "1.3+snapshot-20130228" 
TUNE_FEATURES     = "m32 core2" 
TARGET_FPU        = "" 
meta 
meta-yocto 
meta-yocto-bsp    = "(nobranch):4f4d82c62c56e182907244b98497ba3cfd848eed 

HARDWARE USED: Lenovo S10-3 netbook


STEPS TO REPRODUCE:
1. prepare a core-image-sato with the above configuration
2. write the image to an USB stick and install it on the netbook
3. Boot netbook after image is installed.

EXPECTED RESULTS
3. Image boots and Matchbox desktop is displayed

ACTUAL RESULTS:
3. Image boots but X fails to start.
Errors from Xorg.0.log (see attachment for full log): 



Fatal server error:
[553986.852] xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[553986.852] 
[553986.852] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[553986.852] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[553986.852] (EE)
Comment 1 Darren Hart 2013-03-07 16:10:01 UTC
As I don't have the hardware and it works on the NB-305 and the Blacksand, I'm reassigning to Alex who has hardware. I'll help as I can, but someone with the hardware needs to own it.
Comment 2 Alexandru Georgescu 2013-03-19 11:53:17 UTC
Mihai will help with this.
Comment 3 Mihai Lindner 2013-03-25 10:28:39 UTC
At the time X starts /dev/tty0 does not exist as /dev/* is not populated by udev, as the udev daemon starts after X attempts to start.

The cause might be the way the init scripts are added to RC:
rc5.d/S09xserver-nodm
rc5.d/S20udev

It seems that udev is update-rc.d -ed with defaults, instead of:
meta/recipes-core/udev/udev.inc:53:INITSCRIPT_PARAMS_udev = "start 03 S ."
Comment 4 Darren Hart 2013-03-27 17:11:19 UTC
If that is the problem, then this is not a BSP bug, but a broader udev/X/init issue.
Comment 5 Alexandru Georgescu 2013-04-01 12:57:57 UTC
(In reply to comment #4)
> If that is the problem, then this is not a BSP bug, but a broader
> udev/X/init issue.

Hi Darren,
Who can we address this issue?

Thanks,
Alex.
Comment 6 Ross Burton 2013-04-10 10:27:05 UTC
Fix sent to oe-core, "update-rc.d: correctly look up the initscript params with overrides".
Comment 7 Ross Burton 2013-04-10 17:03:58 UTC
Fixed in oe-core rev b016bc9aaabc90fe4dc98af8c5e73dfcb4526ef4.
Comment 8 Alexandru Georgescu 2013-04-17 13:21:36 UTC
Verified.