Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] AT91SAM9263 JFFS2 problems
Date: Thu, 25 Sep 2008 09:10:05 +0200	[thread overview]
Message-ID: <20080925091005.3bf2eaaa@atmel.com> (raw)
In-Reply-To: <20080924140533.7230@gmx.net>

On Wed, 24 Sep 2008 16:05:33 +0200
"Matt Wood" <mattwood2000@gmx.net> wrote:

Hi Matt (-;

> Hi, has anyone seen problems booting an AT91SAM9263-EK board with the
> JFFS2 filesystem created by buildroot?  I used to be able to boot no
> problem with an older version of buildroot, but not with the latest.
> I'm getting the following kernel panic:
> 
> VFS: Mounted root (jffs2
> filesystem). Freeing init memory:
> 136K Warning: unable to open an initial
> console. Kernel panic - not syncing: No init found.  Try passing
> init= option to kernel.
> 
> I've loaded the NAND flash as follows:
> 

If your NAND flash is properly partitioned in the board code, the
layout will show up as the following below.

> 0x00000000 - at91bootstrap
>

mtd0

> 0x00020000 - u-boot
>

mtd1

> 0x00200000 - kernel
>

mtd2

> 0x00400000 - JFFS2
> 

mtd3

> My bootargs are "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw
> rootfstype=jffs2"
> 

Try root=mtd3, you do not need to specify /dev/mtdblock1.

> The strange thing is if I change the bootargs to root=/dev/mtdblock0,
> I get a ton of jffs2 oob and ecc errors, but after a while, it gives
> me the login prompt.
> 

This is just weird, could you post the output from the kernel boot at
http://pastebin.org/ or something similar?

> My JFFS2 memory type options are:
> Page Size:  0x800
> Erase Block Size:  0x20000
> Not using clean marker.
> 

These options seems right, 2048 bytes pages and 128 kB erase blocks.

> These options never gave me a problem before.
> 
> The only other thing I can think of is a message I get after a build
> of buildroot about skipping dev, tmp, and etc while creating the RFS:
> 
> table='target/device/Atmel/root/device_table.txt'
> mkfs.jffs2: skipping device_table entry '/dev': no parent directory!
> mkfs.jffs2: skipping device_table entry '/tmp': no parent directory!
> mkfs.jffs2: skipping device_table entry '/etc': no parent directory!

I see these as well, but they do not impact the generated image.

<snipp>

-- 
Best regards,
Hans-Christian Egtvedt

      reply	other threads:[~2008-09-25  7:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 14:05 [Buildroot] AT91SAM9263 JFFS2 problems Matt Wood
2008-09-25  7:10 ` Hans-Christian Egtvedt [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=20080925091005.3bf2eaaa@atmel.com \
    --to=hans-christian.egtvedt@atmel.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