From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5AB17E00E93; Wed, 13 Jul 2016 23:32:48 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (simon.bolek[at]googlemail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.214.44 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1C2F7E00E88 for ; Wed, 13 Jul 2016 23:32:45 -0700 (PDT) Received: by mail-it0-f44.google.com with SMTP id h190so64004989ith.1 for ; Wed, 13 Jul 2016 23:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=punCgx6l5jpdfGrsxma0CcT9OHAdE3+Je3mmlZmyVA4=; b=VviOxMKoNw+THUTWOpjEJ+9VJcEX6/z7AHS1SeVDzq6YWFwDSsuTvRchNdV+83zjzF 1mguhy5dMhGFMPDnQ/9vspYrGcSBhqzQbLky3Gtpl56bpoMg3Wv6AThUEku/XnldsOfl Z3WdbbNh1VPD5nt/rlrWTJIo4S/3z081nhKbjYnO2bfawiBTkamiKPxTFDKwlpHYQKHB mnCTwdgm2U1PdBh3SCORIRekRq74lvERIR9CBdqCnjNn5arzfHBPHfzXk0KJZlYegRWY mk7PzpLpirwmsh//wjCHLi2ZU3Rzw15fN5+DCJbnAONMHrjQRj6T01snOfgQCENXq+Rt 6/zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=punCgx6l5jpdfGrsxma0CcT9OHAdE3+Je3mmlZmyVA4=; b=GlpNokYAv7ZFy3iyGFZCzr3fl1zpDc+RhjIoZhBghXDiuy7gn/1jvAarF3giuTmO5g kqll1I1yjQPhSVKuJKLDltv3EByEzwViUiVzXKc26LYRR2fESnAzcyCvrQdRehtS060m M4NCiG3AiJJ5fzuKkX9ZUeXVVYUBM4NPVeOeUr2zmm2djnPe111LoiLqqWxb0keQjbxk Pgmc44akdxAIFOS94XthfGr1Z0jw1JrUqx9C+zsyZEWBwwnaI5J9SvnUYOQkuLnscw4Z Ds/WqJZU7LdX0og0ctmY2c0BA7PggCJQBJCigGS2c9KIqOxFMolwS4vHzaP1DN7URE+u kaqA== X-Gm-Message-State: ALyK8tLoQ/wjVP1pnm2tRZMhf9Iqsz2/zJ3CjDq3htgQNR2jUgKlS2ggXtyfOlNEokoI6J2YXHA/LRT1xZUmgA== X-Received: by 10.36.141.196 with SMTP id w187mr13245394itd.87.1468477965003; Wed, 13 Jul 2016 23:32:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.55.135 with HTTP; Wed, 13 Jul 2016 23:32:25 -0700 (PDT) In-Reply-To: References: From: Simon Bolek Date: Thu, 14 Jul 2016 08:32:25 +0200 Message-ID: To: Khem Raj Cc: "yocto@yoctoproject.org" Subject: Re: [genericx86-jethro] core-image-sato HDDIMG 'install' - no hard drive selected - /etc/fstab no such file or directory X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 06:32:48 -0000 Content-Type: multipart/alternative; boundary=94eb2c07ab4876f0d2053792abed --94eb2c07ab4876f0d2053792abed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Jul 13, 2016 at 4:56 PM, Khem Raj wrote: > On Wed, Jul 13, 2016 at 4:57 AM, Simon Bolek > wrote: > > Hi Raj, > > > > So i tried to do manually, what init script does and udev definitely do= es > > 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 > How can I make this happen during bitbake, so i have those files in the HDDIMG? > > > > - 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 ? > Sorry for this patch-like copy/paste, but this was the simplest way of presenting the changes. Do you see something important here, that might cause the SDD not beeing recognized? --- /home/simon/Development/Yocto-Project/initrd-ok/etc/init.d/udev +++ /home/simon/Development/Yocto-Project/initrd-jethro/etc/init.d/udev @@ -14,20 +14,27 @@ [ -d /sys/class ] || exit 1 [ -r /proc/mounts ] || exit 1 [ -x /lib/udev/udevd ] || exit 1 +SYSCONF_CACHED=3D"/etc/udev/cache.data" +SYSCONF_TMP=3D"/dev/shm/udev.cache" +DEVCACHE_REGEN=3D"/dev/shm/udev-regen" # create to request cache regen + +# A list of files which are used as a criteria to judge whether the udev cache could be reused. +CMP_FILE_LIST=3D"/proc/version /proc/cmdline /proc/devices" +[ -f /proc/atags ] && CMP_FILE_LIST=3D"$CMP_FILE_LIST /proc/atags" + +# List of files whose metadata (size/mtime/name) will be included in cache= d +# system state. +META_FILE_LIST=3D"lib/udev/rules.d/* etc/udev/rules.d/*" + +# Command to compute system configuration. +sysconf_cmd () { + cat -- $CMP_FILE_LIST + stat -c '%s %Y %n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}' +} + [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache [ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf [ -f /etc/default/rcS ] && . /etc/default/rcS - -readfiles () { - READDATA=3D"" - for filename in $@; do - if [ -r $filename ]; then - while read line; do - READDATA=3D"$READDATA$line" - done < $filename - fi - done -} kill_udevd () { pid=3D`pidof -x udevd` @@ -57,38 +64,35 @@ # the automount rule for udev needs /tmp directory available, as /tmp is a symlink # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure # /var/volatile/tmp directory to be available. - mkdir -p /var/volatile/tmp + mkdir -m 1777 -p /var/volatile/tmp # Cache handling. - # A list of files which are used as a criteria to judge whether the udev cache could be reused. - CMP_FILE_LIST=3D"/proc/version /proc/cmdline /proc/devices /proc/atags= " if [ "$DEVCACHE" !=3D "" ]; then if [ -e $DEVCACHE ]; then - readfiles $CMP_FILE_LIST - NEWDATA=3D"$READDATA" - readfiles /etc/udev/cache.data - OLDDATA=3D"$READDATA" - if [ "$OLDDATA" =3D "$NEWDATA" ]; then - (cd /; tar xf $DEVCACHE > /dev/null 2>&1) + sysconf_cmd > "$SYSCONF_TMP" + if cmp $SYSCONF_CACHED $SYSCONF_TMP >/dev/null; then + tar xmf $DEVCACHE -C / -m not_first_boot=3D1 [ "$VERBOSE" !=3D "no" ] && echo "udev: using cache file $DEVCACHE" - [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache + [ -e $SYSCONF_TMP ] && rm -f "$SYSCONF_TMP" + [ -e "$DEVCACHE_REGEN" ] && rm -f "$DEVCACHE_REGEN" else # Output detailed reason why the cached /dev is not used - if [ "$VERBOSE" !=3D "no" ]; then - echo "udev: udev cache not used" - echo "udev: we use $CMP_FILE_LIST as criteria to judge whether the cache /dev could be resued" - echo "udev: olddata: $OLDDATA" - echo "udev: newdata: $NEWDATA" - fi - echo "$NEWDATA" > /dev/shm/udev.cache + cat < /dev/shm/udev.cache + touch "$DEVCACHE_REGEN" fi fi fi @@ -97,7 +101,7 @@ kill_udevd > "/dev/null" 2>&1 # trigger the sorted events - echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug + [ -e /proc/sys/kernel/hotplug ] && echo -e '\000' >/proc/sys/kernel/hotplug /lib/udev/udevd -d udevadm control --env=3DSTARTUP=3D1 > > > > 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@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 > > > 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=3D"/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=C3=BCsse > >> 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@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 wrote: > >>> > >>> On Tue, Jul 12, 2016 at 11:28 PM, Simon Bolek > >>> 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 initramf= s > >>> image > >>> > >>> > > >>> > thank you and kind regards > >>> > Simon :-) > >>> > > >>> > Viele Gr=C3=BCsse > >>> > 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@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 > wrote: > >>> >> > >>> >> On Tue, Jul 12, 2016 at 3:45 AM, Simon Bolek > >>> >> > >>> >> wrote: > >>> >> > Hello everyone! > >>> >> > > >>> >> > I am trying to install genericx86 core-image-sato (jethro) HDDIM= G > 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 suc= h > >>> >> > 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 dri= ve > >>> >> > 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 findi= ng > >>> >> it when running from initramfs. Can you try to add logs to initram= fs > >>> >> and see what udev is doing ? > >>> >> > >>> >> > > >>> >> > Below is my package list from local.conf. > >>> >> > > >>> >> > thank you and kind regards > >>> >> > Simon :-) > >>> >> > > >>> >> > EXTRA_IMAGE_FEATURES =3D "debug-tweaks ssh-server-openssh" > >>> >> > IMAGE_INSTALL_append =3D " 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=C3=BCsse > >>> >> > 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@arcom-ivi.de > >>> >> > http://www.arcom-ivi.de/ > >>> >> > XING: https://www.xing.com/profile/SimonP_Bolek > >>> >> > > >>> >> > -- > >>> >> > _______________________________________________ > >>> >> > yocto mailing list > >>> >> > yocto@yoctoproject.org > >>> >> > https://lists.yoctoproject.org/listinfo/yocto > >>> >> > > >>> > > >>> > > >> > >> > > > --94eb2c07ab4876f0d2053792abed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Wed, Jul 13, 2016 at 4:56 PM, Khem Raj <raj.khem@gmail.com> wrote:
On Wed, Jul 13, 2016 at 4:57 AM, Simon Bolek <simon.bolek@googlemail.com> wrote:
> Hi Raj,
>
> So i tried to do manually, what init script does and udev definitely d= oes
> not recognize the SSD drive.
> I ran
>=C2=A0 /lib/udev/udevd --daemon --debug > udev.debug 2>&1 &am= p;
> 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
How can I make this happen during bitbake, so i have those f= iles in the HDDIMG?


>
> - 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 ?

Sorry= for this patch-like copy/paste, but this was the simplest way of presentin= g the changes.
Do you see something important here, that might cause th= e SDD not beeing recognized?

--- /home/simon/Development/= Yocto-Project/initrd-ok/etc/init.d/udev
+++ /home/simon/Development/Yoct= o-Project/initrd-jethro/etc/init.d/udev
@@ -14,20 +14,27 @@
=C2=A0[ -= d /sys/class ] || exit 1
=C2=A0[ -r /proc/mounts ] || exit 1
=C2=A0[ = -x /lib/udev/udevd ] || exit 1
+SYSCONF_CACHED=3D"/etc/udev/cache.d= ata"
+SYSCONF_TMP=3D"/dev/shm/udev.cache"
+DEVCACHE_RE= GEN=3D"/dev/shm/udev-regen" # create to request cache regen
+<= br>+# A list of files which are used as a criteria to judge whether the ude= v cache could be reused.
+CMP_FILE_LIST=3D"/proc/version /proc/cmdl= ine /proc/devices"
+[ -f /proc/atags ] && CMP_FILE_LIST=3D&= quot;$CMP_FILE_LIST /proc/atags"
+
+# List of files whose metada= ta (size/mtime/name) will be included in cached
+# system state.
+MET= A_FILE_LIST=3D"lib/udev/rules.d/* etc/udev/rules.d/*"
+
+# = Command to compute system configuration.
+sysconf_cmd () {
+=C2=A0=C2= =A0=C2=A0 cat -- $CMP_FILE_LIST
+=C2=A0=C2=A0=C2=A0 stat -c '%s %Y %= n' -- $META_FILE_LIST | awk -F/ '{print $1 " " $NF;}'=
+}
+
=C2=A0[ -f /etc/default/udev-cache ] && . /etc/defau= lt/udev-cache
=C2=A0[ -f /etc/udev/udev.conf ] && . /etc/udev/ud= ev.conf
=C2=A0[ -f /etc/default/rcS ] && . /etc/default/rcS
-=
-readfiles () {
-=C2=A0=C2=A0 READDATA=3D""
-=C2=A0=C2= =A0 for filename in $@; do
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 if [ -r $fil= ename ]; then
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 while = read line; do
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0 READDATA=3D"$READDATA$line"
-=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 done < $filename
-=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0 fi
-=C2=A0=C2=A0 done
-}
=C2=A0
=C2=A0kill_udevd (= ) {
=C2=A0=C2=A0=C2=A0=C2=A0 pid=3D`pidof -x udevd`
@@ -57,38 +64,35 = @@
=C2=A0=C2=A0=C2=A0=C2=A0 # the automount rule for udev needs /tmp dir= ectory available, as /tmp is a symlink
=C2=A0=C2=A0=C2=A0=C2=A0 # to /va= r/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure=
=C2=A0=C2=A0=C2=A0=C2=A0 # /var/volatile/tmp directory to be available.=
-=C2=A0=C2=A0=C2=A0 mkdir -p /var/volatile/tmp
+=C2=A0=C2=A0=C2=A0 m= kdir -m 1777 -p /var/volatile/tmp
=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 # C= ache handling.
-=C2=A0=C2=A0=C2=A0 # A list of files which are used as a= criteria to judge whether the udev cache could be reused.
-=C2=A0=C2=A0= =C2=A0 CMP_FILE_LIST=3D"/proc/version /proc/cmdline /proc/devices /pro= c/atags"
=C2=A0=C2=A0=C2=A0=C2=A0 if [ "$DEVCACHE" !=3D &= quot;" ]; then
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 if [ -e $DEVCACHE ]; then
-=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 readfiles $CMP_FILE_LIST
-=C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 NEWDATA=3D"$READDATA&q= uot;
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 readfiles= /etc/udev/cache.data
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 OLDDATA=3D"$READDATA"
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 if [ "$OLDDATA" =3D "$NEWDATA&q= uot; ]; then
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (cd /; tar xf $DEVCACHE > /dev/null 2>= &1)
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 syscon= f_cmd > "$SYSCONF_TMP"
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 if cmp $SYSCONF_CACHED $SYSCONF_TMP >/dev/null; t= hen
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 tar xmf $DEVCACHE -C / -m
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 not_f= irst_boot=3D1
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [ "$VERBOSE" !=3D "no&q= uot; ] && echo "udev: using cache file $DEVCACHE"
-=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [ -e /dev/shm/udev.cache ] && rm -f /dev/shm/udev.cache+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 [ -e $SYSCONF_TMP ] && rm -f "$SYSCONF_TMP&quo= t;
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 [ -e "$DEVCACHE_REGEN" ] && rm -f &= quot;$DEVCACHE_REGEN"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= else
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 # Output detailed reason why the cached /dev is not used-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 if [ "$VERBOSE" !=3D "no" ]; then
-=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 echo "udev: udev cache not used"
-=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 echo "udev: we use $CMP_FILE_LIST as criteria to judge whether the= cache /dev could be resued"
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 echo "udev: = olddata: $OLDDATA"
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 echo "udev: newdata: $= NEWDATA"
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 fi
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 echo "$NEWDATA" > /dev/shm/udev.c= ache
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 cat <<EOF
+udev: Not using udev cache because of changes= detected in the following files:
+udev:=C2=A0=C2=A0=C2=A0=C2=A0 $CMP_FI= LE_LIST
+udev:=C2=A0=C2=A0=C2=A0=C2=A0 $META_FILE_LIST
+udev: The ude= v cache will be regenerated. To identify the detected changes,
+udev: co= mpare the cached sysconf at=C2=A0=C2=A0 $SYSCONF_CACHED
+udev: against t= he current sysconf at=C2=A0 $SYSCONF_TMP
+EOF
+=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 touch "$DEVCACHE= _REGEN"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fi
=C2= =A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 else
=C2=A0=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 if [ "$ROOTFS_READ_ONLY" != =3D "yes" ]; then
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 # If rootfs is not read-only, it'= s possible that a new udev cache would be generated;
=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 # otherwise= , we do not bother to read files.
-=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 readfiles $CMP_FILE_LIST
-=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 echo = "$READDATA" > /dev/shm/udev.cache
+=C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 touch "$DEVCACHE= _REGEN"
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 fi
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 fi
=C2=A0=C2=A0=C2=A0=C2=A0 fi
@@ -97,7 +101,7 @@
=C2=A0= =C2=A0=C2=A0=C2=A0 kill_udevd > "/dev/null" 2>&1
=C2= =A0
=C2=A0=C2=A0=C2=A0=C2=A0 # trigger the sorted events
-=C2=A0=C2= =A0=C2=A0 echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug<= br>+=C2=A0=C2=A0=C2=A0 [ -e /proc/sys/kernel/hotplug ] && echo -e &= #39;\000' >/proc/sys/kernel/hotplug
=C2=A0=C2=A0=C2=A0=C2=A0 /lib= /udev/udevd -d
=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 udevadm control --env= =3DSTARTUP=3D1

=C2=A0
>
> Unfortunately I did not dig inside binary /lib/udev/udevd.
>
> So do you have any other ideas, what might be the reason for not recog= nizing
> 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@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@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() {
>>=C2=A0 =C2=A0 =C2=A0OPTIONS=3D"/sbin/udev/udevd /sbin/udevd /l= ib/udev/udevd
>> /lib/systemd/systemd-udevd"
>>
>>=C2=A0 =C2=A0 =C2=A0for o in $OPTIONS; do
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if [ -x "$o" ]; then >>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $o
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return 0
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi
>>=C2=A0 =C2=A0 =C2=A0done
>>
>>=C2=A0 =C2=A0 =C2=A0return 1
>> }
>>
>>
>> cheers
>> Simon:-)
>>
>> Viele Gr=C3=BCsse
>> 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@ar= com-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@gmail.com> wrote:
>>>
>>> On Tue, Jul 12, 2016 at 11:28 PM, Simon Bolek
>>> <simon.bolek@= 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 i= nitramfs
>>> image
>>>
>>> >
>>> > thank you and kind regards
>>> > Simon :-)
>>> >
>>> > Viele Gr=C3=BCsse
>>> > 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@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@gmail.com> wrote:
>>> >>
>>> >> On Tue, Jul 12, 2016 at 3:45 AM, Simon Bolek
>>> >> <sim= on.bolek@googlemail.com>
>>> >> wrote:
>>> >> > Hello everyone!
>>> >> >
>>> >> > I am trying to install genericx86 core-image-sat= o (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.&qu= ot;
>>> >> >
>>> >> > 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=C2=A0 shows only the partitions of USB = stick.
>>> >> >
>>> >> > After I choose 'boot' option to boot int= o live image, SDD drive is
>>> >> > under
>>> >> > /dev/sdb and USB installation stick under /dev/s= da,
>>> >> >
>>> >> > 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 lo= gs 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 =3D "debug-tweaks ssh-= server-openssh"
>>> >> > IMAGE_INSTALL_append =3D " make \
>>> >> >=C2=A0 =C2=A0 =C2=A0 initscripts \
>>> >> >=C2=A0 =C2=A0 =C2=A0 grub \
>>> >> >=C2=A0 =C2=A0 =C2=A0 initramfs-boot \
>>> >> >=C2=A0 =C2=A0 =C2=A0 syslinux \
>>> >> >=C2=A0 =C2=A0 =C2=A0 initramfs-live-install \
>>> >> >=C2=A0 =C2=A0 =C2=A0 initramfs-live-install-efi \=
>>> >> >=C2=A0 =C2=A0 =C2=A0 initramfs-live-boot \
>>> >> >=C2=A0 =C2=A0 =C2=A0 xinit \
>>> >> >=C2=A0 =C2=A0 =C2=A0 xwininfo \
>>> >> >=C2=A0 =C2=A0 =C2=A0 openssh-sftp \
>>> >> >=C2=A0 =C2=A0 =C2=A0 openssh-sftp-server \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtbase-plugins \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtconnectivity \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtdeclarative \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtdeclarative-plugins \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtdeclarative-tools \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtdeclarative-qmlplugins \ >>> >> >=C2=A0 =C2=A0 =C2=A0 qtenginio \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtlocation \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtmultimedia \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtmultimedia-plugins \
>>> >> >=C2=A0 =C2=A0 =C2=A0 qtmultimedia-qmlplugins \ >>> >> >=C2=A0 =C2=A0 =C2=A0 qtsystems \
>>> >> > "
>>> >> >
>>> >> > Viele Gr=C3=BCsse
>>> >> > Simon Bolek :-)
>>> >> >
>>> >> > mit freundlichem Gruss / kind regards / pozdrawi= am
>>> >> > Simon P. Bolek
>>> >> > ------------------------------------------------= ------
>>> >> > Dipl. Inf. Simon P. Bolek
>>> >> > SAP Integration Architect
>>> >> > Business Mobile and IVI Solutions
>>> >> > mailto: simon.bolek@arcom-ivi.de
>>> >> > http://www.arcom-ivi.de/
>>> >> > XING: https://www.xing.com/profi= le/SimonP_Bolek
>>> >> >
>>> >> > --
>>> >> > _______________________________________________<= br> >>> >> > yocto mailing list
>>> >> > yocto@= yoctoproject.org
>>> >> > https://lists.yoctoproject.o= rg/listinfo/yocto
>>> >> >
>>> >
>>> >
>>
>>
>

--94eb2c07ab4876f0d2053792abed--