All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eren Türkay" <eren@hambedded.org>
To: openembedded-devel <openembedded-devel@lists.openembedded.org>
Cc: yocto@yoctoproject.org
Subject: Re: [FIXED] Partitioned Image Creation and Initramfs Problem for ALIX3D3
Date: Mon, 2 Sep 2013 12:11:19 +0200	[thread overview]
Message-ID: <20130902101119.GA75092@airo.local> (raw)
In-Reply-To: <20130829162014.GA52370@airo.local>

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

On Thu, Aug 29, 2013 at 06:20:14PM +0200, Eren Türkay wrote:
> Hello all,

Hi again,

> The possible solution that came to my mind is to get
> "boot-directdisk.bbclass", add initramfs installation, put the code
> in a seperate bbclass, rename the function as IMAGE_CMD_alix-hddimage,
> and add "alix-hddimage" to IMAGE_FSTYPES. The same technique is used by
> meta-raspberrypi layer [1]

> However, the problem with this is that "core-image-minimal-initramfs"
> includes "initramfs-live-boot" by default. This script tries to find
> rootfs.img and if it cannot find, it fails to boot the board. In this
> case, we will have extracted rootfs in /dev/sda2, so rootfs.img will not
> be there.
> 
> I looked at "initramfs-framework" recipe and it seems to fit for it. For
> initramfs problem, should I create "alix3d3-minimal-initramfs" recipe,
> add "initramfs-framework-base initramfs-module-udev" to IMAGE_INSTALL
> and make "IMAGE_CMD_alix-hddimage" depend on
> "alix3d3-minimal-initramfs"? Would it be a proper solution?

I applied the solution here and the generated image works as expected. I
needed to create seperate initramfs image for the board, and have a
bbclass file for image creation (IMAGE_CMD_alix-hddimage). This bbclass
for image creation is the mix of boot-directdisk.bbclass and
sdimage_rpi.

https://github.com/eren/meta-alix3d3

Initramfs image is in "recipes-core/images", and the bbclass file is in
"classes" directory. For those who are interested, taking a look at
"conf/machine/alix3d3.conf" would be helpful as well.

Cheers,
Eren

-- 
    . 73! DE TA1AET
      http://linkedin.com/in/erenturkay

[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]

      reply	other threads:[~2013-09-02 10:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 16:20 Partitioned Image Creation and Initramfs Problem for ALIX3D3 Eren Türkay
2013-09-02 10:11 ` Eren Türkay [this message]

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=20130902101119.GA75092@airo.local \
    --to=eren@hambedded.org \
    --cc=openembedded-devel@lists.openembedded.org \
    --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.