* Assembling images to build a NOR boot image
@ 2014-08-07 17:07 Renaud Barbier
2014-08-08 8:19 ` Nicolas Dechesne
0 siblings, 1 reply; 3+ messages in thread
From: Renaud Barbier @ 2014-08-07 17:07 UTC (permalink / raw)
To: Yocto discussion list
Hello,
I am working on the creation of a boot image for a NOR flash.
The image assembles a boot loader and a ubi image containing the kernel
and device tree.
So far I have created a build area to install the kernel and device tree
and used IMAGE_CMD_ubi to create the ubi image.
Then I have added a python function do_norbuild that puts together the
boot loader and ubi image and adds padding.
Using bitbake, I can create the NOR image as follows:
bitbake -c norbuild core-image
However,
"bitbake core-image" will not call the norbuild task.
I have been through quite a lot of code and documentation and cannot
figure out why the task is not called.
If you have any idea of what couldbe wrong, please le me know.
Cheers,
Renaud
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Assembling images to build a NOR boot image
2014-08-07 17:07 Assembling images to build a NOR boot image Renaud Barbier
@ 2014-08-08 8:19 ` Nicolas Dechesne
2014-08-11 16:12 ` Renaud Barbier
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Dechesne @ 2014-08-08 8:19 UTC (permalink / raw)
To: Renaud Barbier; +Cc: Yocto discussion list
On Thu, Aug 7, 2014 at 7:07 PM, Renaud Barbier <renaud.barbier@ge.com> wrote:
> Hello,
> I am working on the creation of a boot image for a NOR flash.
> The image assembles a boot loader and a ubi image containing the kernel
> and device tree.
>
> So far I have created a build area to install the kernel and device tree
> and used IMAGE_CMD_ubi to create the ubi image.
>
> Then I have added a python function do_norbuild that puts together the
> boot loader and ubi image and adds padding.
> Using bitbake, I can create the NOR image as follows:
> bitbake -c norbuild core-image
>
> However,
> "bitbake core-image" will not call the norbuild task.
>
> I have been through quite a lot of code and documentation and cannot
> figure out why the task is not called.
>
> If you have any idea of what couldbe wrong, please le me know.
you seem to have created a task, not just a Python function, since you
can run it with -c norbuild. By default when running bitbake <recipe>,
bitbake will run do_build task. so when you create your own custom
task, you need to insert it into the task list, maybe you haven't done
that?
something like this should work in your case:
addtask norbuild before do_build after do_rootfs
alternatively, instead of creating your own task, you could use the
existing do_rootfs hook:
http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-ROOTFS_POSTPROCESS_COMMAND
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Assembling images to build a NOR boot image
2014-08-08 8:19 ` Nicolas Dechesne
@ 2014-08-11 16:12 ` Renaud Barbier
0 siblings, 0 replies; 3+ messages in thread
From: Renaud Barbier @ 2014-08-11 16:12 UTC (permalink / raw)
To: Yocto discussion list
On 08/08/2014 09:19, Nicolas Dechesne wrote:
> On Thu, Aug 7, 2014 at 7:07 PM, Renaud Barbier <renaud.barbier@ge.com> wrote:
>> > Hello,
>> > I am working on the creation of a boot image for a NOR flash.
>> > The image assembles a boot loader and a ubi image containing the kernel
>> > and device tree.
>> >
>> > So far I have created a build area to install the kernel and device tree
>> > and used IMAGE_CMD_ubi to create the ubi image.
>> >
>> > Then I have added a python function do_norbuild that puts together the
>> > boot loader and ubi image and adds padding.
>> > Using bitbake, I can create the NOR image as follows:
>> > bitbake -c norbuild core-image
>> >
>> > However,
>> > "bitbake core-image" will not call the norbuild task.
>> >
>> > I have been through quite a lot of code and documentation and cannot
>> > figure out why the task is not called.
>> >
>> > If you have any idea of what couldbe wrong, please le me know.
> you seem to have created a task, not just a Python function, since you
> can run it with -c norbuild. By default when running bitbake <recipe>,
> bitbake will run do_build task. so when you create your own custom
> task, you need to insert it into the task list, maybe you haven't done
> that?
>
> something like this should work in your case:
>
> addtask norbuild before do_build after do_rootfs
Thanks,
originally I had "addtask norbuild after do_rootfs" followed by other
desperate attempts. It did not work.
I just saw your email as I was looking at do_build.
Adding before do_build did resolve my problem.
Cheers,
Renaud
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-11 16:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-07 17:07 Assembling images to build a NOR boot image Renaud Barbier
2014-08-08 8:19 ` Nicolas Dechesne
2014-08-11 16:12 ` Renaud Barbier
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.