All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] #raspberrypi
       [not found] <W5UD.1576533409237003637.6umO@lists.yoctoproject.org>
@ 2019-12-17  4:48 ` Khem Raj
  2019-12-17  9:15   ` Stefano Babic
       [not found] ` <CAMKF1sqYnuJ_QY6uyw1jTrVwni=oeOECrtx7LJVvVFnEq3xsFA@mail.gmail.com-LwHB5UB----1>
  1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2019-12-17  4:48 UTC (permalink / raw)
  To: wojciech.st; +Cc: yocto

On Mon, Dec 16, 2019 at 1:56 PM <wojciech.st@tutanota.com> wrote:
>
> Problem with rootfs boot on my raspberrypi.
>
> Hi
> I am building simple image for my raspbery pi 3 A+ and connect to the pi via USB-UART converter and see the following in the console
> ...
> [ 2.071459] Run /bin/init as init process
> [ 2.076507] Run /bin/sh as init process
> sh: cannot set terminal process group (-1): Inappropriate ioctl for device
> sh: no job control in this shell
> sh-4.4#
>
>
>
> I build with the "bitbake core-image-base" and tried to run it on rpi 3A+, 3B, 3B+ and the problem is always the same it cannot switch to the rootfs on the sd card it seem like it stack at initramfs or some middle ground.
>
> I burn the *.rpi-sdimg image to SD card with dd from my Ubuntu16.04 host machine.
> I tried with two branches thud and warrior and the problem is exactly the same.
> The strange thing is that in this initramfs there are no tools like find grep modprobe etc. but I see my extra tools "i2c-tools vim"
>
> Here is my local.conf adjustments:
> MACHINE ?= "raspberrypi3"
> ENABLE_I2C = "1"
> ENABLE_UART = "1"
> IMAGE_INSTALL += "i2c-tools vim"

Can you turn this into
IMAGE_INSTALL_append = " i2c-tools vim"

>
> and the bblayer.conf
> BBLAYERS ?= " \
>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta \
>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-poky \
>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-yocto-bsp \
>   /media/dave/Develop/yoctopi/warrior/sources/meta-openembedded/meta-oe \
>   /media/dave/Develop/yoctopi/warrior/sources/meta-raspberrypi \
>   "
>
> I tried also to build with the deprecated image "bitbake rpi-basic-image" but then I did not get my extra tools "i2c-tools vim".
>
> Anyone have any idea what can be wrong with my approach ?
>
> Regards,
>
> Wojciech
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#47702): https://lists.yoctoproject.org/g/yocto/message/47702
> Mute This Topic: https://lists.yoctoproject.org/mt/68744766/1997914
> Mute #raspberrypi: https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692173
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] #raspberrypi
  2019-12-17  4:48 ` [yocto] #raspberrypi Khem Raj
@ 2019-12-17  9:15   ` Stefano Babic
  2019-12-17 16:00     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Stefano Babic @ 2019-12-17  9:15 UTC (permalink / raw)
  To: Khem Raj, wojciech.st; +Cc: yocto

Hi Khem, Wojciech,

On 17/12/19 05:48, Khem Raj wrote:
> On Mon, Dec 16, 2019 at 1:56 PM <wojciech.st@tutanota.com> wrote:
>>
>> Problem with rootfs boot on my raspberrypi.
>>
>> Hi
>> I am building simple image for my raspbery pi 3 A+ and connect to the pi via USB-UART converter and see the following in the console
>> ...
>> [ 2.071459] Run /bin/init as init process
>> [ 2.076507] Run /bin/sh as init process
>> sh: cannot set terminal process group (-1): Inappropriate ioctl for device
>> sh: no job control in this shell
>> sh-4.4#
>>
>>
>>
>> I build with the "bitbake core-image-base" and tried to run it on rpi 3A+, 3B, 3B+ and the problem is always the same it cannot switch to the rootfs on the sd card it seem like it stack at initramfs or some middle ground.
>>
>> I burn the *.rpi-sdimg image to SD card with dd from my Ubuntu16.04 host machine.
>> I tried with two branches thud and warrior and the problem is exactly the same.
>> The strange thing is that in this initramfs there are no tools like find grep modprobe etc. but I see my extra tools "i2c-tools vim"
>>
>> Here is my local.conf adjustments:
>> MACHINE ?= "raspberrypi3"
>> ENABLE_I2C = "1"
>> ENABLE_UART = "1"
>> IMAGE_INSTALL += "i2c-tools vim"
> 
> Can you turn this into
> IMAGE_INSTALL_append = " i2c-tools vim"
> 
>>
>> and the bblayer.conf
>> BBLAYERS ?= " \
>>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta \
>>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-poky \
>>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-yocto-bsp \
>>   /media/dave/Develop/yoctopi/warrior/sources/meta-openembedded/meta-oe \
>>   /media/dave/Develop/yoctopi/warrior/sources/meta-raspberrypi \
>>   "
>>
>> I tried also to build with the deprecated image "bitbake rpi-basic-image" but then I did not get my extra tools "i2c-tools vim".
>>
>> Anyone have any idea what can be wrong with my approach ?
>>

Strange enough, I had the same behaviour a couple of days ago but I
thought it was something on my setup. I built core-iage-full-cmdline on
TOT, and systemd as init manager. The issue was due because adding
"userland", bash was added due RDEPENDS to the image and busybox with
all related tools was dropped. After removing bash from image, it works
again - but I have not git-bisect to check which is the cause.

Regards,
Stefano

>> Regards,
>>
>> Wojciech
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#47702): https://lists.yoctoproject.org/g/yocto/message/47702
>> Mute This Topic: https://lists.yoctoproject.org/mt/68744766/1997914
>> Mute #raspberrypi: https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692173
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#47712): https://lists.yoctoproject.org/g/yocto/message/47712
>> Mute This Topic: https://lists.yoctoproject.org/mt/68752649/3618551
>> Mute #raspberrypi: https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692235
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [sbabic@denx.de]
>> -=-=-=-=-=-=-=-=-=-=-=-


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] #raspberrypi
       [not found] ` <CAMKF1sqYnuJ_QY6uyw1jTrVwni=oeOECrtx7LJVvVFnEq3xsFA@mail.gmail.com-LwHB5UB----1>
@ 2019-12-17 12:19   ` wojciech.st
  0 siblings, 0 replies; 4+ messages in thread
From: wojciech.st @ 2019-12-17 12:19 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3050 bytes --]

Hi Khem

Replacing 
IMAGE_INSTALL += "i2c-tools vim"
withIMAGE_INSTALL_append = " i2c-tools vim"

in my local.conf solve the problem.

More than half of the sources were rebuild.

Thanks a lot.

Now I found also the info in the manual "Using IMAGE_INSTALL with the += operator from the /conf/local.conf file or from within                    an image recipe is not recommended as it can cause ordering                    issues."

Regards,

Wojciech 
-- 
 Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: 
 https://tutanota.com


Dec 17, 2019, 05:48 by raj.khem@gmail.com:

> On Mon, Dec 16, 2019 at 1:56 PM <wojciech.st@tutanota.com> wrote:
>
>>
>> Problem with rootfs boot on my raspberrypi.
>>
>> Hi
>> I am building simple image for my raspbery pi 3 A+ and connect to the pi via USB-UART converter and see the following in the console
>> ...
>> [ 2.071459] Run /bin/init as init process
>> [ 2.076507] Run /bin/sh as init process
>> sh: cannot set terminal process group (-1): Inappropriate ioctl for device
>> sh: no job control in this shell
>> sh-4.4#
>>
>>
>>
>> I build with the "bitbake core-image-base" and tried to run it on rpi 3A+, 3B, 3B+ and the problem is always the same it cannot switch to the rootfs on the sd card it seem like it stack at initramfs or some middle ground.
>>
>> I burn the *.rpi-sdimg image to SD card with dd from my Ubuntu16.04 host machine.
>> I tried with two branches thud and warrior and the problem is exactly the same.
>> The strange thing is that in this initramfs there are no tools like find grep modprobe etc. but I see my extra tools "i2c-tools vim"
>>
>> Here is my local.conf adjustments:
>> MACHINE ?= "raspberrypi3"
>> ENABLE_I2C = "1"
>> ENABLE_UART = "1"
>> IMAGE_INSTALL += "i2c-tools vim"
>>
>
> Can you turn this into
> IMAGE_INSTALL_append = " i2c-tools vim"
>
>>
>> and the bblayer.conf
>> BBLAYERS ?= " \
>>  /media/dave/Develop/yoctopi/warrior/sources/poky/meta \
>>  /media/dave/Develop/yoctopi/warrior/sources/poky/meta-poky \
>>  /media/dave/Develop/yoctopi/warrior/sources/poky/meta-yocto-bsp \
>>  /media/dave/Develop/yoctopi/warrior/sources/meta-openembedded/meta-oe \
>>  /media/dave/Develop/yoctopi/warrior/sources/meta-raspberrypi \
>>  "
>>
>> I tried also to build with the deprecated image "bitbake rpi-basic-image" but then I did not get my extra tools "i2c-tools vim".
>>
>> Anyone have any idea what can be wrong with my approach ?
>>
>> Regards,
>>
>> Wojciech
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>>
>> View/Reply Online (#47702): https://lists.yoctoproject.org/g/yocto/message/47702
>> Mute This Topic: https://lists.yoctoproject.org/mt/68744766/1997914
>> Mute #raspberrypi: https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692173
>> Group Owner: yocto+owner@lists.yoctoproject.org
>> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>


[-- Attachment #2: Type: text/html, Size: 4734 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [yocto] #raspberrypi
  2019-12-17  9:15   ` Stefano Babic
@ 2019-12-17 16:00     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2019-12-17 16:00 UTC (permalink / raw)
  To: Stefano Babic; +Cc: wojciech.st, yocto

[-- Attachment #1: Type: text/plain, Size: 4184 bytes --]

On Tue, Dec 17, 2019 at 1:15 AM Stefano Babic <sbabic@denx.de> wrote:

> Hi Khem, Wojciech,
>
> On 17/12/19 05:48, Khem Raj wrote:
> > On Mon, Dec 16, 2019 at 1:56 PM <wojciech.st@tutanota.com> wrote:
> >>
> >> Problem with rootfs boot on my raspberrypi.
> >>
> >> Hi
> >> I am building simple image for my raspbery pi 3 A+ and connect to the
> pi via USB-UART converter and see the following in the console
> >> ...
> >> [ 2.071459] Run /bin/init as init process
> >> [ 2.076507] Run /bin/sh as init process
> >> sh: cannot set terminal process group (-1): Inappropriate ioctl for
> device
> >> sh: no job control in this shell
> >> sh-4.4#
> >>
> >>
> >>
> >> I build with the "bitbake core-image-base" and tried to run it on rpi
> 3A+, 3B, 3B+ and the problem is always the same it cannot switch to the
> rootfs on the sd card it seem like it stack at initramfs or some middle
> ground.
> >>
> >> I burn the *.rpi-sdimg image to SD card with dd from my Ubuntu16.04
> host machine.
> >> I tried with two branches thud and warrior and the problem is exactly
> the same.
> >> The strange thing is that in this initramfs there are no tools like
> find grep modprobe etc. but I see my extra tools "i2c-tools vim"
> >>
> >> Here is my local.conf adjustments:
> >> MACHINE ?= "raspberrypi3"
> >> ENABLE_I2C = "1"
> >> ENABLE_UART = "1"
> >> IMAGE_INSTALL += "i2c-tools vim"
> >
> > Can you turn this into
> > IMAGE_INSTALL_append = " i2c-tools vim"
> >
> >>
> >> and the bblayer.conf
> >> BBLAYERS ?= " \
> >>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta \
> >>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-poky \
> >>   /media/dave/Develop/yoctopi/warrior/sources/poky/meta-yocto-bsp \
> >>   /media/dave/Develop/yoctopi/warrior/sources/meta-openembedded/meta-oe
> \
> >>   /media/dave/Develop/yoctopi/warrior/sources/meta-raspberrypi \
> >>   "
> >>
> >> I tried also to build with the deprecated image "bitbake
> rpi-basic-image" but then I did not get my extra tools "i2c-tools vim".
> >>
> >> Anyone have any idea what can be wrong with my approach ?
> >>
>
> Strange enough, I had the same behaviour a couple of days ago but I
> thought it was something on my setup. I built core-iage-full-cmdline on
> TOT, and systemd as init manager. The issue was due because adding
> "userland", bash was added due RDEPENDS to the image and busybox with
> all related tools was dropped. After removing bash from image, it works
> again - but I have not git-bisect to check which is the cause.


This would be a serious problem can you dive into it and see if we missed
some Symlink

>
>
> Regards,
> Stefano
>
> >> Regards,
> >>
> >> Wojciech
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >>
> >> View/Reply Online (#47702):
> https://lists.yoctoproject.org/g/yocto/message/47702
> >> Mute This Topic: https://lists.yoctoproject.org/mt/68744766/1997914
> >> Mute #raspberrypi:
> https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692173
> >> Group Owner: yocto+owner@lists.yoctoproject.org
> >> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> raj.khem@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >>
> >> View/Reply Online (#47712):
> https://lists.yoctoproject.org/g/yocto/message/47712
> >> Mute This Topic: https://lists.yoctoproject.org/mt/68752649/3618551
> >> Mute #raspberrypi:
> https://lists.yoctoproject.org/mk?hashtag=raspberrypi&subid=6692235
> >> Group Owner: yocto+owner@lists.yoctoproject.org
> >> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [
> sbabic@denx.de]
> >> -=-=-=-=-=-=-=-=-=-=-=-
>
>
> --
> =====================================================================
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
> =====================================================================
>

[-- Attachment #2: Type: text/html, Size: 6455 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-17 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <W5UD.1576533409237003637.6umO@lists.yoctoproject.org>
2019-12-17  4:48 ` [yocto] #raspberrypi Khem Raj
2019-12-17  9:15   ` Stefano Babic
2019-12-17 16:00     ` Khem Raj
     [not found] ` <CAMKF1sqYnuJ_QY6uyw1jTrVwni=oeOECrtx7LJVvVFnEq3xsFA@mail.gmail.com-LwHB5UB----1>
2019-12-17 12:19   ` wojciech.st

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.