All of lore.kernel.org
 help / color / mirror / Atom feed
* Building a rootfs, without building a kernel
@ 2008-06-24 20:04 Philip Balister
  2008-06-24 20:16 ` Koen Kooi
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Philip Balister @ 2008-06-24 20:04 UTC (permalink / raw)
  To: openembedded-devel

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

I am trying to build a powerpc root file system for a xilinx ml403 
board. Since we do not have a working kernel build for this machine, I 
tried commenting out the PREFERRED_PROVIDER for virtual/linux. The build 
then tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel 
when the preferred provider is not commented out and it still tries to 
build the kernel.

Looking at the dependency graphs seems to suggest the requirement comes 
from the do_rootfs task.

Does anyone know how to build an image, without building a kernel for a 
machine?

Philip

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

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

* Re: Building a rootfs, without building a kernel
  2008-06-24 20:04 Building a rootfs, without building a kernel Philip Balister
@ 2008-06-24 20:16 ` Koen Kooi
  2008-06-24 21:01   ` Philip Balister
  2008-06-26 12:03 ` Welch, Martyn (GE EntSol, Intelligent Platforms)
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Koen Kooi @ 2008-06-24 20:16 UTC (permalink / raw)
  To: openembedded-devel

Philip Balister wrote:
> I am trying to build a powerpc root file system for a xilinx ml403
> board. Since we do not have a working kernel build for this machine, I
> tried commenting out the PREFERRED_PROVIDER for virtual/linux. The build
> then tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel
> when the preferred provider is not commented out and it still tries to
> build the kernel.
>
> Looking at the dependency graphs seems to suggest the requirement comes
> from the do_rootfs task.
>
> Does anyone know how to build an image, without building a kernel for a
> machine?

bitbake -b foo-image.bb is what I use, since I'm lazy ;)




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

* Re: Building a rootfs, without building a kernel
  2008-06-24 20:16 ` Koen Kooi
@ 2008-06-24 21:01   ` Philip Balister
  0 siblings, 0 replies; 11+ messages in thread
From: Philip Balister @ 2008-06-24 21:01 UTC (permalink / raw)
  To: openembedded-devel

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

Koen Kooi wrote:
> Philip Balister wrote:
>> I am trying to build a powerpc root file system for a xilinx ml403
>> board. Since we do not have a working kernel build for this machine, I
>> tried commenting out the PREFERRED_PROVIDER for virtual/linux. The build
>> then tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel
>> when the preferred provider is not commented out and it still tries to
>> build the kernel.
>>
>> Looking at the dependency graphs seems to suggest the requirement comes
>> from the do_rootfs task.
>>
>> Does anyone know how to build an image, without building a kernel for a
>> machine?
> 
> bitbake -b foo-image.bb is what I use, since I'm lazy ;)

Sadly, this does not build all the dependencies needed for the image and 
I am really lazy.

Philip

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

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

* Re: Building a rootfs, without building a kernel
  2008-06-24 20:04 Building a rootfs, without building a kernel Philip Balister
  2008-06-24 20:16 ` Koen Kooi
@ 2008-06-26 12:03 ` Welch, Martyn (GE EntSol, Intelligent Platforms)
  2008-06-29 22:29 ` Michael 'Mickey' Lauer
  2008-06-29 23:08 ` David Baird
  3 siblings, 0 replies; 11+ messages in thread
From: Welch, Martyn (GE EntSol, Intelligent Platforms) @ 2008-06-26 12:03 UTC (permalink / raw)
  To: openembedded-devel

Philip Balister wrote:
> I am trying to build a powerpc root file system for a xilinx ml403
> board. Since we do not have a working kernel build for this machine, I
> tried commenting out the PREFERRED_PROVIDER for virtual/linux. The
> build 
> then tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel
> when the preferred provider is not commented out and it still tries to
> build the kernel.
> 
> Looking at the dependency graphs seems to suggest the requirement
> comes 
> from the do_rootfs task.
> 
> Does anyone know how to build an image, without building a kernel for
> a 
> machine?
> 

How about just including a kernel recipe for a similar device?

That's what I tend to do just to get a root filesystem which I can use
for development.

Martyn

----
Martyn Welch MEng MPhil MIET
Principal Software Engineer

GE Fanuc Intelligent Platforms
Tove Valley Business Park, Towcester,
Northants, NN12 6PF, United Kingdom

Telephone: +44 (0) 1327 359444
Direct Dial: +44 (0) 1327 322748
Fax: +44 (0) 1327 322800
email: martyn.welch@gefanuc.com
web: www.gefanuc.com

GE Fanuc Intelligent Platforms Ltd, registered in England and Wales
(3828642) at 100 Barbirolli Square, Manchester, M2 3AB, VAT GB 729 849
476

GE Fanuc Intelligent Platforms Confidential and Proprietary. If you
have received this message in error please notify us immediately and
permanently remove it from your system and destroy any printed
hardcopies.  



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

* Re: Building a rootfs, without building a kernel
  2008-06-24 20:04 Building a rootfs, without building a kernel Philip Balister
  2008-06-24 20:16 ` Koen Kooi
  2008-06-26 12:03 ` Welch, Martyn (GE EntSol, Intelligent Platforms)
@ 2008-06-29 22:29 ` Michael 'Mickey' Lauer
  2008-06-29 23:08 ` David Baird
  3 siblings, 0 replies; 11+ messages in thread
From: Michael 'Mickey' Lauer @ 2008-06-29 22:29 UTC (permalink / raw)
  To: openembedded-devel

Am Dienstag 24 Juni 2008 22:04:15 schrieb Philip Balister:
> Does anyone know how to build an image, without building a kernel for a
> machine?

Can't you just include a dummy kernel recipe?

:M:



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

* Re: Building a rootfs, without building a kernel
  2008-06-24 20:04 Building a rootfs, without building a kernel Philip Balister
                   ` (2 preceding siblings ...)
  2008-06-29 22:29 ` Michael 'Mickey' Lauer
@ 2008-06-29 23:08 ` David Baird
  2008-07-01 18:14   ` Philip Balister
  3 siblings, 1 reply; 11+ messages in thread
From: David Baird @ 2008-06-29 23:08 UTC (permalink / raw)
  To: openembedded-devel

2008/6/24 Philip Balister <philip@balister.org>:
> I am trying to build a powerpc root file system for a xilinx ml403 board.
> Since we do not have a working kernel build for this machine, I tried
> commenting out the PREFERRED_PROVIDER for virtual/linux. The build then
> tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel when the
> preferred provider is not commented out and it still tries to build the
> kernel.
>
> Looking at the dependency graphs seems to suggest the requirement comes from
> the do_rootfs task.
>
> Does anyone know how to build an image, without building a kernel for a
> machine?

I have been using this pattern in my BBMASK:

    BBMASK = "(linux-ml403-slab-2.6.x_git[.].*)"

and then I made up my own task and image .bb files to establish what
files I want in my rootfs.  I would also appreciate suggestions on a
better way to do what to do this.



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

* Re: Building a rootfs, without building a kernel
  2008-06-29 23:08 ` David Baird
@ 2008-07-01 18:14   ` Philip Balister
  2008-07-02  7:36     ` Ben Lau
  0 siblings, 1 reply; 11+ messages in thread
From: Philip Balister @ 2008-07-01 18:14 UTC (permalink / raw)
  To: openembedded-devel

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

David Baird wrote:
> 2008/6/24 Philip Balister <philip@balister.org>:
>> I am trying to build a powerpc root file system for a xilinx ml403 board.
>> Since we do not have a working kernel build for this machine, I tried
>> commenting out the PREFERRED_PROVIDER for virtual/linux. The build then
>> tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel when the
>> preferred provider is not commented out and it still tries to build the
>> kernel.
>>
>> Looking at the dependency graphs seems to suggest the requirement comes from
>> the do_rootfs task.
>>
>> Does anyone know how to build an image, without building a kernel for a
>> machine?
> 
> I have been using this pattern in my BBMASK:
> 
>     BBMASK = "(linux-ml403-slab-2.6.x_git[.].*)"
> 
> and then I made up my own task and image .bb files to establish what
> files I want in my rootfs.  I would also appreciate suggestions on a
> better way to do what to do this.

I pushed changes to linux-ml403-slab (I think I renamed the recipe 
linux-xilinx-slab) so the compile completes. I don't do anything to 
prepare the kernel for actual use. This lets the images build. When I 
finally figure out how to build kernels for Xilinx FPGA based PPC 
boards, I'll worry about creating a bootable kernel. (Unless someone 
beats me to it)

Possibly, we should create a dummy kernel bb file since this may be the 
best solution for the general case of people building images without a 
working kernel bb file.

Philip

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

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

* Re: Building a rootfs, without building a kernel
  2008-07-01 18:14   ` Philip Balister
@ 2008-07-02  7:36     ` Ben Lau
  2008-07-03 15:03       ` Welch, Martyn (GE EntSol, Intelligent Platforms)
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Lau @ 2008-07-02  7:36 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Jul 2, 2008 at 2:14 AM, Philip Balister <philip@balister.org> wrote:
> David Baird wrote:
>>
>> 2008/6/24 Philip Balister <philip@balister.org>:
>>>
>>> I am trying to build a powerpc root file system for a xilinx ml403 board.
>>> Since we do not have a working kernel build for this machine, I tried
>>> commenting out the PREFERRED_PROVIDER for virtual/linux. The build then
>>> tries to build linux-rt. I tried ASSUME_PROVIDED for the kernel when the
>>> preferred provider is not commented out and it still tries to build the
>>> kernel.
>>>
>>> Looking at the dependency graphs seems to suggest the requirement comes
>>> from
>>> the do_rootfs task.
>>>
>>> Does anyone know how to build an image, without building a kernel for a
>>> machine?
>>
>> I have been using this pattern in my BBMASK:
>>
>>    BBMASK = "(linux-ml403-slab-2.6.x_git[.].*)"
>>
>> and then I made up my own task and image .bb files to establish what
>> files I want in my rootfs.  I would also appreciate suggestions on a
>> better way to do what to do this.
>
> I pushed changes to linux-ml403-slab (I think I renamed the recipe
> linux-xilinx-slab) so the compile completes. I don't do anything to prepare
> the kernel for actual use. This lets the images build. When I finally figure
> out how to build kernels for Xilinx FPGA based PPC boards, I'll worry about
> creating a bootable kernel. (Unless someone beats me to it)
>
> Possibly, we should create a dummy kernel bb file since this may be the best
> solution for the general case of people building images without a working
> kernel bb file.
>
> Philip
>

I am not quite understand why OpenEmbedded force to generate kernel
and the dependence would force it to be installed in the user land. As
the kernel is usually installed on another partition. It should not be
a part of the file system image.

Therefore, I usually comment out few lines in task-base and task-boot
to avoid the dependence.



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

* Re: Building a rootfs, without building a kernel
  2008-07-02  7:36     ` Ben Lau
@ 2008-07-03 15:03       ` Welch, Martyn (GE EntSol, Intelligent Platforms)
  2008-07-03 17:20         ` Philip Balister
  0 siblings, 1 reply; 11+ messages in thread
From: Welch, Martyn (GE EntSol, Intelligent Platforms) @ 2008-07-03 15:03 UTC (permalink / raw)
  To: openembedded-devel

Ben Lau wrote:
>> Possibly, we should create a dummy kernel bb file since this may be
>> the best solution for the general case of people building images
>> without a working kernel bb file. 
>> 
>> Philip
>> 
> 
> I am not quite understand why OpenEmbedded force to generate kernel
> and the dependence would force it to be installed in the user land. As
> the kernel is usually installed on another partition. It should not be
> a part of the file system image.
> 

But any drivers, etc. built as modules would need to be included in the
system's image and that at least would be a dependence.

Martyn

----
Martyn Welch MEng MPhil MIET
Principal Software Engineer

GE Fanuc Intelligent Platforms
Tove Valley Business Park, Towcester,
Northants, NN12 6PF, United Kingdom

Telephone: +44 (0) 1327 359444
Direct Dial: +44 (0) 1327 322748
Fax: +44 (0) 1327 322800
email: martyn.welch@gefanuc.com
web: www.gefanuc.com

GE Fanuc Intelligent Platforms Ltd, registered in England and Wales
(3828642) at 100 Barbirolli Square, Manchester, M2 3AB, VAT GB 729 849
476

GE Fanuc Intelligent Platforms Confidential and Proprietary. If you
have received this message in error please notify us immediately and
permanently remove it from your system and destroy any printed
hardcopies.  



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

* Re: Building a rootfs, without building a kernel
  2008-07-03 15:03       ` Welch, Martyn (GE EntSol, Intelligent Platforms)
@ 2008-07-03 17:20         ` Philip Balister
  2008-07-04 13:59           ` Rodrigo Vivi
  0 siblings, 1 reply; 11+ messages in thread
From: Philip Balister @ 2008-07-03 17:20 UTC (permalink / raw)
  To: openembedded-devel

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

Welch, Martyn (GE EntSol, Intelligent Platforms) wrote:
> Ben Lau wrote:
>>> Possibly, we should create a dummy kernel bb file since this may be
>>> the best solution for the general case of people building images
>>> without a working kernel bb file. 
>>>
>>> Philip
>>>
>> I am not quite understand why OpenEmbedded force to generate kernel
>> and the dependence would force it to be installed in the user land. As
>> the kernel is usually installed on another partition. It should not be
>> a part of the file system image.
>>
> 
> But any drivers, etc. built as modules would need to be included in the
> system's image and that at least would be a dependence.

Agreed. The image recipes have most modules included as RECOMMENDS so 
the image builds even if the module is not present. The technique I am 
using is for cases when you need a rootfs, before you have a working 
kernel recipe. You can copy the modules onto the rootfs if needed.

Philip

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3303 bytes --]

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

* Re: Building a rootfs, without building a kernel
  2008-07-03 17:20         ` Philip Balister
@ 2008-07-04 13:59           ` Rodrigo Vivi
  0 siblings, 0 replies; 11+ messages in thread
From: Rodrigo Vivi @ 2008-07-04 13:59 UTC (permalink / raw)
  To: openembedded-devel

I'm using
ASSUME_PROVIDED += "linux virtual/kernel"

It is enough when you don't want to build a package like iptables that has
RRECOMMENDS = "kernel-module-ip-tables kernel-module-iptable-filter"

But I believe that in this case you could add this recommends to
assume_provided.

On Thu, Jul 3, 2008 at 2:20 PM, Philip Balister <philip@balister.org> wrote:
> Welch, Martyn (GE EntSol, Intelligent Platforms) wrote:
>>
>> Ben Lau wrote:
>>>>
>>>> Possibly, we should create a dummy kernel bb file since this may be
>>>> the best solution for the general case of people building images
>>>> without a working kernel bb file.
>>>> Philip
>>>>
>>> I am not quite understand why OpenEmbedded force to generate kernel
>>> and the dependence would force it to be installed in the user land. As
>>> the kernel is usually installed on another partition. It should not be
>>> a part of the file system image.
>>>
>>
>> But any drivers, etc. built as modules would need to be included in the
>> system's image and that at least would be a dependence.
>
> Agreed. The image recipes have most modules included as RECOMMENDS so the
> image builds even if the module is not present. The technique I am using is
> for cases when you need a rootfs, before you have a working kernel recipe.
> You can copy the modules onto the rootfs if needed.
>
> Philip
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>



-- 
Rodrigo Vivi
INdT - Instituto Nokia de Tecnologia
Blog: http://blog.vivi.eng.br
GPG: 0x905BE242 @ wwwkeys.pgp.net



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

end of thread, other threads:[~2008-07-04 14:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-24 20:04 Building a rootfs, without building a kernel Philip Balister
2008-06-24 20:16 ` Koen Kooi
2008-06-24 21:01   ` Philip Balister
2008-06-26 12:03 ` Welch, Martyn (GE EntSol, Intelligent Platforms)
2008-06-29 22:29 ` Michael 'Mickey' Lauer
2008-06-29 23:08 ` David Baird
2008-07-01 18:14   ` Philip Balister
2008-07-02  7:36     ` Ben Lau
2008-07-03 15:03       ` Welch, Martyn (GE EntSol, Intelligent Platforms)
2008-07-03 17:20         ` Philip Balister
2008-07-04 13:59           ` Rodrigo Vivi

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.