[poky] [meta] live image booting pauses with 'waiting for removable media' on Krogoth
Tan, Raymond
raymond.tan at intel.com
Tue Sep 20 05:59:38 PDT 2016
Hi Robert,
Thanks for the suggestion. However, I'm running with initrd, thus I'm using root=/dev/ram0.
After some debugging today, I found out that the mount.sh script was indeed called with the add event fired from "udevadm trigger --action=add",
but the failure happened due to the condition [ -n "$ID_FS_TYPE" -o "$media_type" = "cdrom" ] is not satisfied.
I'm getting blank for $ID_FS_TYPE udev property on /dev/hda. I tested by changing the overall IF logic to the following:
if [ "$ACTION" = "add" ] && [ -n "$DEVNAME" ]; then
And the rebuilt live image is booting up fine. With the image booted, I rechecked the ID_FS_TYPE property of the drive in both Krogoth and Jethro image,
I'm getting different results. In Krogoth, there's no property with ID_FS_TYPE at all with " udevadm info -q all -n /dev/hda ". But if I'm using blkid to get
fs type, I'm able to get the vfat type from it.
I checked the changes on udev from Jethro to Krogoth, I noticed that udev was replaced with eudev, could this be the implementation varies between them?
Warm Regards,
Raymond Tan
> -----Original Message-----
> From: Robert Yang [mailto:liezhi.yang at windriver.com]
> Sent: Tuesday, September 20, 2016 5:02 PM
> To: Tan, Raymond <raymond.tan at intel.com>; poky at yoctoproject.org
> Subject: Re: [poky] [meta] live image booting pauses with 'waiting for
> removable media' on Krogoth
>
>
>
> On 09/19/2016 09:52 PM, Tan, Raymond wrote:
> > Dear All,
> >
> > While booting live image with core-image-sato.hddimg, the boot stalls with
> the message "waiting for removable media".
> > If I set "debugshell" in the kernel boot parameter, after the default 30
> seconds sleep to wait for mounted device, I will get the error "Cannot find
> rootfs.img file in /run/media/*, dropping to shell".
> >
> > If I edit the init-live.sh to manually mount the /dev/hda drive, the boot will
> complete successfully. It seems that the udev isn't mounting the /dev/hda.
>
> Try to edit the boot menu when starting boot, for grub, press "e", for
> syslinux, press "tab", IIRC. Then change root=/dev/foo to root=/dev/hdaX, It
> is root=/dev/sda2 by default ? If you can't boot it, does your kernel support
> scsi drive ? Or you can set ROOT_VM = "root=/dev/hdaX" in local.conf and
> rebuild the image.
>
> // Robert
>
> >
> > This issue is only seen in Krogoth branch, but not on Jethro.
> >
> > What could possibly be the problem?
> >
> > Warm Regards,
> >
> > Raymond Tan
> >
> >
More information about the poky
mailing list