Skip to contentSkip to conversation

image.bbclass: default USE_DEVFS to '1'

PATCH Superseded [email protected] 4 participants 7 messages Dec 9, 2013 – Dec 10, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover image.bbclass: default USE_DEVFS to '1'

From: Chen Qi <[email protected]>

The following changes since commit 184038bedb20f74ba4dcad6ef2d92e87a9ba5f9a:

bitbake: fetch2/git: Ensure check is made in the correct directory (2013-12-06 14:10:15 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/USE_DEVFS
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/USE_DEVFS

Chen Qi (1):
image.bbclass: default USE_DEVFS to '1'

 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 image.bbclass: default USE_DEVFS to '1'

From: Chen Qi <[email protected]>

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.
2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 # Images are generally built explicitly, do not need to be part of world.
 EXCLUDE_FROM_WORLD = "1"
 
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
 PID = "${@os.getpid()}"
 
Signature · 1 line
1.7.9.5
#2 lore raw

Hello,

I agree with the commit but ...

Quoted 5 lines · On Mon, Dec 9, 2013 at 1:17 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.

Can you elaborate this error? is it something we can/should fix?

Quoted 28 lines

2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -2
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 # Images are generally built explicitly, do not need to be part of world.
 EXCLUDE_FROM_WORLD = "1"
 
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
 PID = "${@os.getpid()}"
 
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw
Quoted 37 lines · Otavio Salvador

Hello,

I agree with the commit but ...

Quoted 5 lines · On Mon, Dec 9, 2013 at 1:17 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.

Can you elaborate this error? is it something we can/should fix?

Quoted 24 lines

2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -2
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
 # Images are generally built explicitly, do not need to be part of world.
 EXCLUDE_FROM_WORLD = "1"
 
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
 PID = "${@os.getpid()}"
 
--

1.7.9.5

Quoted 15 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

The underlying issue here is the extra pass of makedevs " makedevs:
No entry for root in search list "

At first I could not understand why that was *not* happening on my builds then I realized we set
IMAGE_DEVICE_TABLES = "" in our machine.conf because we use devtmpfs for all images.

qemux86 does instead inherit the default setting of image.bbclass so it uses "files/device_table-minimal.txt"

Cheers

Andrea

author
#4 lore raw
Quoted 61 lines · Andrea Adami
Quoted 36 lines · Otavio Salvador

Hello,

I agree with the commit but ...

Quoted 5 lines · On Mon, Dec 9, 2013 at 1:17 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.

Can you elaborate this error? is it something we can/should fix?

Quoted 24 lines

2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
  meta/classes/image.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -2
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
  # Images are generally built explicitly, do not need to be part of world.
  EXCLUDE_FROM_WORLD = "1"
 
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
  PID = "${@os.getpid()}"
 
--

1.7.9.5

Quoted 14 lines
Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

The underlying issue here is the extra pass of makedevs " makedevs:
No entry for root in search list "

At first I could not understand why that was *not* happening on my builds then I realized we set
IMAGE_DEVICE_TABLES = "" in our machine.conf because we use devtmpfs for all images.

Quoted 9 lines

qemux86 does instead inherit the default setting of image.bbclass so it uses "files/device_table-minimal.txt"

Cheers

Andrea

Thanks for you extra information.

Best Regards,
Chen Qi

author
#5 lore raw
In reply to Otavio Salvador
Quoted 11 lines · Otavio Salvador

Hello,

I agree with the commit but ...

Quoted 5 lines · On Mon, Dec 9, 2013 at 1:17 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.

Can you elaborate this error? is it something we can/should fix?

It's "makedevs: No entry for root in search list ", just as Andrea said. I've updated the commit message in remote tree.
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ChenQi/USE_DEVFS&id=435b6e6e34c4c65022e57b78a246cfd8fcd2d71f

Thanks,
Chen Qi

Quoted 30 lines
Quoted 28 lines

2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
  meta/classes/image.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -2
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}"
  # Images are generally built explicitly, do not need to be part of world.
  EXCLUDE_FROM_WORLD = "1"
 
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
  PID = "${@os.getpid()}"
 
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw
Quoted 8 lines · ChenQi
Quoted 7 lines · Otavio Salvador

Hello,

I agree with the commit but ...

Quoted 2 lines · On Mon, Dec 9, 2013 at 1:17 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

Quoted 9 lines
Quoted 4 lines
Quoted 3 lines

Default USE_DEVFS to "1" so that the `makedevs' command is not run at rootfs time by default. There are mainly two reasons to do so.
1. This will fix a build failure with initramfs-kexecboot-klibc-image.

Can you elaborate this error? is it something we can/should fix?

It's "makedevs: No entry for root in search list ", just as Andrea said. I've updated the commit message in remote tree.
http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ChenQi/USE_DEVFS&id=435b6e6e34c4c65022e57b78a246cfd8fcd2d71f

Please resend as a V2

Sau!

Quoted 43 lines

Thanks,
Chen Qi

Quoted 23 lines
Quoted 23 lines

2. Most of our images use a filesystem over /dev. Most of the time, it's just devtmpfs. So we actually are using a filesystem over /dev.

---
  meta/classes/image.bbclass |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +0 -0
index cc65e35..b8bd462 100644
@@ -77,7 +77,7 @@ PACKAGE_INSTALL_ATTEMPTONLY ?=

"${FEATURE_INSTALL_OPTIONAL}"
# Images are generally built explicitly, do not need to be part of
world.
EXCLUDE_FROM_WORLD = "1"

meta/classes/image.bbclass +1 -1
-USE_DEVFS ?= "0"
+USE_DEVFS ?= "1"
 
  PID = "${@os.getpid()}"
Quoted 9 lines
Quoted 7 lines

--
1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core