From: Nikolay Dimitrov <picmaster@mail.bg>
To: Lenivyy Viktor <Viktor.Lenivyy@author.kiev.ua>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: How to recreate rootfs image
Date: Wed, 26 Aug 2015 18:15:55 +0300 [thread overview]
Message-ID: <55DDD82B.6030804@mail.bg> (raw)
In-Reply-To: <f42259e1da79432a951109af8c20574d@E2013a.CORP.ICS.COM.UA>
Hi Lenivyy Viktor,
On 08/26/2015 05:37 PM, Lenivyy Viktor wrote:
> Hello.
>
> I have “altera-image-minimal” recipe which creates minimal rootfs based
> on Linux kernel provided by “linux-altera-local” recipe. This kernel is
> fetched from local directory.
>
> After first time building “altera-image-minimal”, it produced rootfs
> with modules version contained “-dirty” at the end. However kernel built
> from sources in local directory doesn’t have “-dirty” in version string.
> Thus kernel can’t run with produced rootfs.
>
> I opened directory which contains Yocto’s copy of Linux sources
>
> build/tmp/work/socfpga_socrates-poky-linux-gnueabi/linux-altera-local-1.0-r1/socrates_linux/
>
> then run “make ARCH=arm kernelrelease” to investigate kernel version.
> This command outputs the version with “-dirty”. I have found that
> “-dirty” string is appended from script in kernel sources. That script
> uses output from “git diff-index --name-only HEAD” to determine if
> working directory is “dirty”. To find changed files, I ran same command,
> it’s oddly but the output was empty. Then I rerun “make ARCH=arm
> kernelrelease”. This time it prints the version without “-dirty”.
>
> Does someone have any clue why it can be so?
>
> My main question is: how can I recreate rootfs image starting from the
> point after fetching Linux sources, so Yocto’s copy will remain intact?
>
> I spent lot of time trying to figure it out by myself with no luck. My
> idea was to find sequence of commands used to create image and run only
> commands after fetching kernel sources. Unfortunately I didn’t manage to
> find the sequence anywhere. How such things need to be solved in Yocto?
>
Can you please try this and share if it works for you:
bitbake -c cleanall dirtypackage myimage
bitbake myimage
Regards,
Nikolay
next prev parent reply other threads:[~2015-08-26 15:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 14:37 How to recreate rootfs image Lenivyy Viktor
2015-08-26 15:15 ` Nikolay Dimitrov [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-26 15:42 Lenivyy Viktor
2015-08-26 15:47 ` Nikolay Dimitrov
2015-08-26 16:13 Lenivyy Viktor
2015-08-26 16:17 ` Khem Raj
2015-08-27 8:25 Lenivyy Viktor
2015-08-28 10:06 ` Paul Eggleton
2015-08-28 13:32 ` Lenivyy Viktor
2015-08-28 13:53 ` Paul Eggleton
2015-08-28 15:06 ` Lenivyy Viktor
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=55DDD82B.6030804@mail.bg \
--to=picmaster@mail.bg \
--cc=Viktor.Lenivyy@author.kiev.ua \
--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.