| Summary: | atom-pc - cannot boot image on netbook after install | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BSPs | Reporter: | Alexandru Georgescu <alexandru.c.georgescu> |
| Component: | bsps-meta-yocto | Assignee: | Darren Hart <dvhart> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | High | CC: | cristian.iorga, dvhart |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M4 | ||
| Hardware: | Netbook | ||
| OS: | x86 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Alexandru Georgescu
2013-02-08 13:21:19 UTC
Without hardware this is going to be rather difficult for me to debug. I would start by clearing the grub config and trying to boot from the grub shell. Use tab completion to determine which HD device GRUB uses for the installed media and compare that to what the installer put in the grub config it installed. Ultimately I think we'll find that this is a bug in our less-than-stellar installer :-) Alex I suggest you own this if you want to see it fixed. I'll happyily offer suggestions, but without that particular machine, I won't make much progress on my own and you'll be on the hook to run my suggestions anyway. Please try on the default n450 hardware and report back After the discussion between me and Darren, resulted that I should check if grub.cfg file is configured correctly with the correct kernel path. After my investigation I have found that no config.cfg file was found installed on the system. e.g. in: a) grub> linux (hd0,1)/boot/grub/ folder no grub.cfg was found b) grub> linux (hd0,2)/boot/ folder no grub folder or grub.cfg file was found Thanks, Alex. The problem here is that grub2 is installed but a grub 1 menu.lst is
created at install time. At boot, grub2 doesn't find a grub.cfg file and
drops to the grub shell.
This happens because the installer is looking for 40_custom (a grub2
file) on the rootfs, but grub2 isn't installed on the rootfs. It exists
in the initramfs. Patching the installer to look on the initramfs
resolves the problem.
Note that the problem may have occurred if grub2 used to be installed on
the rootfs but was later removed. In any case, the installer is HORRIBLE
and really needs to be completely redesigned as part of the deployment
effort. For now, this should get the live image installer limping along
again.
commit 4f4d82c62c56e182907244b98497ba3cfd848eed Author: Darren Hart <dvhart@linux.intel.com> Date: Thu Feb 21 09:28:02 2013 -0800 install: Look for grub2 files on the initramfs, not rootfs Fixes [YOCTO #3870] atom-pc - cannot boot image on netbook after install Thank Darren, Grub now it's fixed, and the image can boot. |