Bug 445

Summary: [Netbook] directdisk image can not boot from harddisk
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Darren Hart <dvhart>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: High CC: bruce.ashfield, dongxiao.xu, jessica.zhang, kevin.tian, kunwei.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: Netbook   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Jiajun Xu 2010-10-12 22:46:51 UTC
Testing Env:    
Hardware: netbook
Images from milestone build (20100728) on autobuilder,
http://yoctobuild01.jf.intel.com/build-areas/atom-emenlow/build/build/tmp/deploy/images/.
poky commit info: 7b7adcedd68adf2449a45302f2348d2c9f1f19c8 from poky master
tree

If we dd directdisk image into internal hardisk on netbook, and boot system from the harddisk, it can not boot up.

There are two phenomenons with different boot parameters:
a) no boot parameter: It will show kernel panic information.
b) boot parameter: "boot rootwait root=/dev/sda2". (Though we think for internal harddisk, the "rootwait" is not needed as it is for external USB disk use only), system will hang at the place printing "waiting for root device /dev/sda2..."

BTW, emenlow can boot up with directdisk image burned into internal harddisk.
Comment 1 Darren Hart 2010-10-13 12:25:03 UTC
So it isn't finding the disk. Turns out my netbook BIOS has a SATA Mode option: AHCI or Compatible. SATA_AHCI is not set in the current kernel. By choosing compatible in the BIOS, I was able to boot with the existing directdisk image. I'll build a kernel with SATA_AHCI enabled and see if that resolves the problem.
Comment 2 Darren Hart 2010-10-13 13:35:07 UTC
Adding CONFIG_SATA_AHCI=y to the kernel config enables the Toshiba NB305 to boot with a directdisk image dd'd to the HDD.

Bruce will be incorporating this change into the common_pc base config. An image with this change is available here:

http://fear.pdx.intel.com/images/poky-image-sdk-directdisk-atom-pc-20101013194716.hdddirect

Please confirm this resolves the bug for the HP mini as well.
Comment 4 Darren Hart 2010-10-21 20:10:52 UTC
I'm waiting for someone in PRC to confirm this is fixed on the HP Mini netbook before marking this as verified.
Comment 5 Dongxiao Xu 2010-10-22 16:24:52 UTC
Jiajun and I verified it on HP mini netbook.