Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Booting from cramfs image
Date: Fri, 12 Feb 2016 14:50:06 +0100	[thread overview]
Message-ID: <20160212145006.77bfa2fa@free-electrons.com> (raw)
In-Reply-To: <CAJrvd8PF5qwZxm3N0b73fJ+Ea4OFMTf-1unN1uhf7FdZBivvSA@mail.gmail.com>

Hajime,

On Thu, 11 Feb 2016 21:36:38 +0100, Hajime Yamasaki Vukelic wrote:

> I have an amlogic board (WetekPlay if anyone's familiar with it), and I
> have a kernel image with initramfs, and a rootfs image in cramfs format.
> The files involved are `boot.img` which is built using kernel uImage file,
> DTB, and initramfs in cpio.gz format, and `rootfs.cramfs`. Both are written
> to a FAT32 microSD card.
> 
> I'm trying to get the initramfs loop mount the cramfs image and switch_root
> to it, but I keep getting kernel panic. The init script looks like this:
> 
>     https://gist.github.com/foxbunny/936438bf2ba67c2a5879
> 
> The error message:
> 
>     https://gist.github.com/foxbunny/fd9ceb120e8fe5a631aa
> 
> If someone could give me pointers on how to debug or fix this, I would
> greatly appreciate it.

Well, it essentially means that your init program on your real root
filesystem (in the cramfs image) does not work. Built for the wrong
architecture variant, missing libraries, etc. Could be lots of things.

Also, why use a cramfs filesystem rather than the modern modern and
efficient squashfs?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2016-02-12 13:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 20:36 [Buildroot] Booting from cramfs image Hajime Yamasaki Vukelic
2016-02-12 13:50 ` Thomas Petazzoni [this message]
2016-02-13 10:22   ` Hajime Yamasaki Vukelic
2016-02-13 16:11     ` Hajime Yamasaki Vukelic

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=20160212145006.77bfa2fa@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox