From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] need smaller filesystem for NOR
Date: Tue, 12 Feb 2013 18:31:58 +0100 [thread overview]
Message-ID: <511A7C8E.9010407@mind.be> (raw)
In-Reply-To: <1360628370.13529.110.camel@genx>
On 12/02/13 01:19, John Stile wrote:
> On Fri, 2013-02-08 at 13:34 -0800, John Stile wrote:
[snip]
> Next I changed from:
> root=/dev/mtdblock2
> to:
> root=/dev/mtdblock 13
A jffs2 filesystem should be mounted through /dev/mtdN, not through
/dev/mtdblockN. So root=/dev/mtd13 is a better idea.
>
> The kernel messages now show my desire layout at boot time, however, the
> the file system still does not mount, but the root file system is not
> found.
>
> Kernel boot messages for NAND and NOR:
> ...
> rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
> JFFS2 write-buffering enabled buffer (1056) erasesize (8448)
> Node at 0x00001cd8 with length 0x00000489 would run over the end of the erase block
> Perhaps the file system was created with the wrong erase size?
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001cdc: 0x0489 instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001ce0: 0x651a instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001ce4: 0x0006 instead
> ...
> Further such events for this erase block will not be printed
> VFS: Mounted root (jffs2 filesystem) on device 31:13.
> Freeing init memory: 104K
> Kernel panic - not syncing: Attempted to kill init!
> [<c0028678>] (unwind_backtrace+0x0/0xdc) from [<c0243990>] (panic+0x34/0x110)
>
> I think this means I am close.
>
> Next I tried to edit my jffs options in the .config for my recovery
> 'failsafe' buildroot:
> Filesystem images --->
> [*] jffs2 root filesystem
> Flash Type (Select custom page and erase size) --->
> (0x1065) Page Size
> (0xC60) Erase block size
Those numbers are unlikely. 0x1065 is a very odd number (literally).
Also, the erase block size is always larger than the page size, and for
NOR I think it's normally equal to it.
These questions are however more appropriate for
linux-mtd at lists.infradead.org because they are not buildroot related.
However, if you want a quick fix: you can also choose the
BR2_TARGET_ROOTFS_INITRAMFS ("initial RAM filesystem linked into linux
kernel") option. With your huge 5.5MB rootfs that will kill build and
boot time, but it means you don't have to bother with writing the JFFS2
to NOR or even partitioning your NOR. It's all in a single uImage.
You could even create a FIT image that includes both kernel and rootfs
(as a cpio archive, "cpio the root filesystem (for use as an initial RAM
filesystem)") but buildroot doesn't have support for that.
Regards,
Arnout
>
> I gleaned these numbers from the output o the sam-ba utility used to
> load the NOR flash, but they still don't work.
>
> This had no effect.
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2013-02-12 17:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 17:25 [Buildroot] need smaller filesystem for NOR John Stile
2013-02-08 17:38 ` Thomas Petazzoni
2013-02-08 21:34 ` John Stile
2013-02-12 0:19 ` John Stile
2013-02-12 17:31 ` Arnout Vandecappelle [this message]
2013-02-12 21:50 ` Thomas Petazzoni
2013-02-16 18:05 ` Peter Korsgaard
2013-02-12 18:24 ` John Stile
2013-02-08 17:38 ` Yann E. MORIN
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=511A7C8E.9010407@mind.be \
--to=arnout@mind.be \
--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