All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ayoub Zaki <ayoub.zaki@embexus.com>
To: Gerard van den Bosch <gvandenbosch@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Warning: unable to open an initial console
Date: Fri, 26 May 2017 16:35:01 +0200	[thread overview]
Message-ID: <243cabe6-7e72-446e-cf07-48de3f61f3f7@embexus.com> (raw)
In-Reply-To: <CADqNDzordhf-nQ=fuC=nT+hZyofbx_xeuZyQauKgtTAx1c6EBg@mail.gmail.com>

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

Hi Gerard,

indeed your Kernel it's quite outdated.

you can try to add a recipe like that in your image :

SUMMARY = "basic initramfs image init script"
LICENSE = "MIT"
LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://init-boot.sh"


S = "${WORKDIR}"

do_install() {
         install -d ${D}${base_sbindir}
         install -m 0755 ${WORKDIR}/init-boot.sh ${D}${base_sbindir}/init
}

do_install_append() {
         install -d ${D}/dev
         mknod -m 622 ${D}/dev/console c 5 1
         mknod -m 666 ${D}/dev/null c 1 3
}

inherit allarch

FILES_${PN} += "/dev /sbin/init "


Regards,

Ayoub



On 26.05.2017 16:27, Gerard van den Bosch wrote:
> Hello Ayoub,
>
> The kernel is quite old 2.6.20 and this variable is not available in 
> the config.
> On the internet I saw this is only introduced with kernel version 2.6.32.
>
> Cheers,
> Gerard
>
> On Fri, May 26, 2017 at 10:20 PM, Ayoub Zaki <ayoub.zaki@embexus.com 
> <mailto:ayoub.zaki@embexus.com>> wrote:
>
>     Hi Gerard,
>
>     did you try to set CONFIG_DEVTMPFS=y in your Kernel config ?
>
>     Cheers
>
>
>     On 26.05.2017 15:52, Gerard van den Bosch wrote:
>>     Hello Andrea,
>>
>>     I have tried to add the line to my machine config:
>>     IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt"
>>
>>     But this didn't help, then I looked a bit further and also tried
>>     to set the following:
>>
>>     USE_DEVFS="0"
>>     VIRTUAL_RUNTIME_dev_manager = "mdev"
>>
>>     Unfortunately this doesn't seem to change anything.
>>
>>     Cheers,
>>     Gerard
>>
>>     On Fri, May 26, 2017 at 7:27 PM, Andrea Adami
>>     <andrea.adami@gmail.com <mailto:andrea.adami@gmail.com>> wrote:
>>
>>         On Fri, May 26, 2017 at 1:05 PM, Gerard van den Bosch
>>         <gvandenbosch@gmail.com <mailto:gvandenbosch@gmail.com>> wrote:
>>         > Hello,
>>         >
>>         > I have build my vendor custom kernel 2.6.20 with yocto daisy.
>>         > Daisy is used because seems to be last release supporting
>>         this old kernel.
>>         >
>>         > I tried building core-image-minimal and core-image-base.
>>         >
>>         > The kernel boots and the rootfs is mounted but then I get:
>>         >
>>         > "Warning: unable to open an initial console."
>>         >
>>         >
>>         > I found on the internet this is because "/dev/console"
>>         doesn't exists.
>>         > The dev folder in my generated rootfs is empty.
>>         >
>>         > On internet found can do the following commands:
>>         > "mknod -m 600 /dev/console c 5 1 "
>>         > "mknod -m 666 /dev/null c 1 3"
>>         >
>>         > But if this is the problem how do I add this to my recipe?
>>         > Or is there a proper way to populate this devices?
>>         >
>>         > Cheers,
>>         > Gerard
>>         >
>>         > --
>>         > _______________________________________________
>>         > yocto mailing list
>>         > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>>         > https://lists.yoctoproject.org/listinfo/yocto
>>         <https://lists.yoctoproject.org/listinfo/yocto>
>>         >
>>
>>         Hello Gerard,
>>
>>         if your old kernel lacks devtmpfs you need a "device table".
>>         You need to set at least
>>         IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt"
>>
>>         This is a default set in image.bbclass before and after
>>         daisy...dunno
>>         what's happened with this release.
>>
>>         Cheers
>>         Andrea
>>
>>
>>
>>
>
>     -- 
>
>     Ayoub Zaki
>
>     ayoub.zaki@embexus.com <mailto:ayoub.zaki@embexus.com>
>     Mobile:+49(0)176-62901545 <tel:+49%20176%2062901545>
>     https://embexus.com
>
>

-- 

Ayoub Zaki

ayoub.zaki@embexus.com
Mobile: +49(0)176-62901545
https://embexus.com


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

  reply	other threads:[~2017-05-26 14:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26 11:05 Warning: unable to open an initial console Gerard van den Bosch
2017-05-26 11:27 ` Andrea Adami
2017-05-26 13:52   ` Gerard van den Bosch
2017-05-26 14:20     ` Ayoub Zaki
2017-05-26 14:27       ` Gerard van den Bosch
2017-05-26 14:35         ` Ayoub Zaki [this message]
2017-05-26 15:07           ` Gerard van den Bosch
  -- strict thread matches above, loose matches on Subject: below --
2010-10-25 21:30 Timur Tabi
2009-09-30 17:24 Steven A. DuChene
2009-09-30 17:05 Steven A. DuChene
2009-09-30 17:44 ` Arjan van de Ven
2007-04-02 19:04 Tom Strader
2007-04-02 22:49 ` Chris Wedgwood
2007-04-02 23:20   ` Tom Strader
2007-04-03  1:34     ` young dave
2007-04-03 18:35       ` Tom Strader
2007-04-04  1:53         ` young dave
2007-04-05 15:57           ` Tom Strader
2000-11-02 15:11 John Jones
2000-11-02 17:33 ` Matthew Locke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=243cabe6-7e72-446e-cf07-48de3f61f3f7@embexus.com \
    --to=ayoub.zaki@embexus.com \
    --cc=gvandenbosch@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.