[yocto] [genericx86-jethro] core-image-sato HDDIMG 'install' - no hard drive selected - /etc/fstab no such file or directory

Khem Raj raj.khem at gmail.com
Wed Jul 13 07:56:11 PDT 2016


On Wed, Jul 13, 2016 at 4:57 AM, Simon Bolek <simon.bolek at googlemail.com> wrote:
> Hi Raj,
>
> So i tried to do manually, what init script does and udev definitely does
> not recognize the SSD drive.
> I ran
>  /lib/udev/udevd --daemon --debug > udev.debug 2>&1 &
> from the cli and there is no trace of recognizing the SSD. Only the
> /dev/sda, which is the USB stick I am running the installation from.
>
> I used 'meld' to compare the /initrd from current jethro image and previous
> working fido image.
> They are almost the same:
> - in jethro /lib/modules... file structure is missing with:
> modules.alias
> modules.alias.bin
> modules.builtin.bin
> modules.dep
> modules.dep.bin
> modules.devname
> modules.softdep
> modules.symbols
> modules.symbols.bin

this means depmod did not run during initramfs image creation

>
> - there are slight differences between
> /etc/init.d/udev
> /etc/udev/scripts/mount.sh
> , but I cannot tell, if this is the reason.

what are the differences ?
>
> Unfortunately I did not dig inside binary /lib/udev/udevd.
>
> So do you have any other ideas, what might be the reason for not recognizing
> the SSD? Maybe there are some additional recipes needed from jethro on?
>
>
> thanks & kind regards
> Simon :-)
>
> mit freundlichem Gruss / kind regards / pozdrawiam
> Simon P. Bolek
> ------------------------------------------------------
> Dipl. Inf. Simon P. Bolek
> SAP Integration Architect
> Business Mobile and IVI Solutions
> mailto: simon.bolek at arcom-ivi.de
> http://www.arcom-ivi.de/
> XING: https://www.xing.com/profile/SimonP_Bolek
>
> On Wed, Jul 13, 2016 at 9:03 AM, Simon Bolek <simon.bolek at googlemail.com>
> wrote:
>>
>> Thank you,
>>
>> I just guess, that it is the following function in init script to put the
>> echos to? Is it?
>>
>> udev_daemon() {
>>     OPTIONS="/sbin/udev/udevd /sbin/udevd /lib/udev/udevd
>> /lib/systemd/systemd-udevd"
>>
>>     for o in $OPTIONS; do
>>         if [ -x "$o" ]; then
>>             echo $o
>>             return 0
>>         fi
>>     done
>>
>>     return 1
>> }
>>
>>
>> cheers
>> Simon:-)
>>
>> Viele Grüsse
>> Simon Bolek :-)
>>
>> mit freundlichem Gruss / kind regards / pozdrawiam
>> Simon P. Bolek
>> ------------------------------------------------------
>> Dipl. Inf. Simon P. Bolek
>> SAP Integration Architect
>> Business Mobile and IVI Solutions
>> mailto: simon.bolek at arcom-ivi.de
>> http://www.arcom-ivi.de/
>> XING: https://www.xing.com/profile/SimonP_Bolek
>>
>> On Wed, Jul 13, 2016 at 8:36 AM, Khem Raj <raj.khem at gmail.com> wrote:
>>>
>>> On Tue, Jul 12, 2016 at 11:28 PM, Simon Bolek
>>> <simon.bolek at googlemail.com> wrote:
>>> > Thank you Raj,
>>> >
>>> > Is there a standard way to activate these initramfs logs, or do I have
>>> > to
>>> > implement it myself somewhere?
>>>
>>> you have to add printf etc. yourself into the init script in initramfs
>>> image
>>>
>>> >
>>> > thank you and kind regards
>>> > Simon :-)
>>> >
>>> > Viele Grüsse
>>> > Simon Bolek :-)
>>> >
>>> > mit freundlichem Gruss / kind regards / pozdrawiam
>>> > Simon P. Bolek
>>> > ------------------------------------------------------
>>> > Dipl. Inf. Simon P. Bolek
>>> > SAP Integration Architect
>>> > Business Mobile and IVI Solutions
>>> > mailto: simon.bolek at arcom-ivi.de
>>> > http://www.arcom-ivi.de/
>>> > XING: https://www.xing.com/profile/SimonP_Bolek
>>> >
>>> > On Wed, Jul 13, 2016 at 1:36 AM, Khem Raj <raj.khem at gmail.com> wrote:
>>> >>
>>> >> On Tue, Jul 12, 2016 at 3:45 AM, Simon Bolek
>>> >> <simon.bolek at googlemail.com>
>>> >> wrote:
>>> >> > Hello everyone!
>>> >> >
>>> >> > I am trying to install genericx86 core-image-sato (jethro) HDDIMG to
>>> >> > an
>>> >> > atom-pc.
>>> >> > For this 2GB USB stick is used.
>>> >> > When choosing 'install' option from boot menu I get the message:
>>> >> >
>>> >> > "Searching for hard drives...
>>> >> > No hard drive selected. Installation aborted."
>>> >> >
>>> >> > Installatiion stops and i get the console.
>>> >> > When I try to run fsck, it says: can't read '/etc/fstab': No such
>>> >> > file
>>> >> > or
>>> >> > directory
>>> >> >
>>> >> > fdisk -l  shows only the partitions of USB stick.
>>> >> >
>>> >> > After I choose 'boot' option to boot into live image, SDD drive is
>>> >> > under
>>> >> > /dev/sdb and USB installation stick under /dev/sda,
>>> >> >
>>> >> > What recipe/package is my installation missing? The SSD hard drive
>>> >> > is
>>> >> > not
>>> >> > recognized for some reason. With previous yocto releases this
>>> >> > package
>>> >> > list
>>> >> > DID work fine.
>>> >> > So there is something missing in the background.
>>> >> > Do you have any idea what this might be?
>>> >>
>>> >> udev should have run and found your hdd. So it seems its not finding
>>> >> it when running from initramfs. Can you try to add logs to initramfs
>>> >> and see what udev is doing ?
>>> >>
>>> >> >
>>> >> > Below is my package list from local.conf.
>>> >> >
>>> >> > thank you and kind regards
>>> >> > Simon :-)
>>> >> >
>>> >> > EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh"
>>> >> > IMAGE_INSTALL_append = " make \
>>> >> >      initscripts \
>>> >> >      grub \
>>> >> >      initramfs-boot \
>>> >> >      syslinux \
>>> >> >      initramfs-live-install \
>>> >> >      initramfs-live-install-efi \
>>> >> >      initramfs-live-boot \
>>> >> >      xinit \
>>> >> >      xwininfo \
>>> >> >      openssh-sftp \
>>> >> >      openssh-sftp-server \
>>> >> >      qtbase-plugins \
>>> >> >      qtconnectivity \
>>> >> >      qtdeclarative \
>>> >> >      qtdeclarative-plugins \
>>> >> >      qtdeclarative-tools \
>>> >> >      qtdeclarative-qmlplugins \
>>> >> >      qtenginio \
>>> >> >      qtlocation \
>>> >> >      qtmultimedia \
>>> >> >      qtmultimedia-plugins \
>>> >> >      qtmultimedia-qmlplugins \
>>> >> >      qtsystems \
>>> >> > "
>>> >> >
>>> >> > Viele Grüsse
>>> >> > Simon Bolek :-)
>>> >> >
>>> >> > mit freundlichem Gruss / kind regards / pozdrawiam
>>> >> > Simon P. Bolek
>>> >> > ------------------------------------------------------
>>> >> > Dipl. Inf. Simon P. Bolek
>>> >> > SAP Integration Architect
>>> >> > Business Mobile and IVI Solutions
>>> >> > mailto: simon.bolek at arcom-ivi.de
>>> >> > http://www.arcom-ivi.de/
>>> >> > XING: https://www.xing.com/profile/SimonP_Bolek
>>> >> >
>>> >> > --
>>> >> > _______________________________________________
>>> >> > yocto mailing list
>>> >> > yocto at yoctoproject.org
>>> >> > https://lists.yoctoproject.org/listinfo/yocto
>>> >> >
>>> >
>>> >
>>
>>
>



More information about the yocto mailing list