Gentoo Archives: gentoo-embedded

From: wireless <wireless@×××××××××××.com>
To: gentoo-embedded@l.g.o
Cc: Kfir Lavi <lavi.kfir@×××××.com>
Subject: Re: [gentoo-embedded] What file system I should use with flash?
Date: Wed, 09 Aug 2006 16:27:06
Message-Id: 44DA0C65.1020303@tampabay.rr.com
In Reply to: Re: [gentoo-embedded] What file system I should use with flash? by Joshua Pollak
1 Joshua Pollak wrote:
2 > Mike Frysinger wrote:
3 >
4 >>On Wednesday 09 August 2006 01:39, Kfir Lavi wrote:
5 >>
6 >>>I have read about JFFS2 but it is not supported in gentoo (or is it?).
7 >>>What will be your recommendations for such filesystem?
8 >>
9 >>if you need rw, then jffs2 or yaffs2
10 >>
11 >>jffs2 is prob the easiest route since it's already in the kernel
12 >>
13 >>i dont know what you mean by "supported" as all you need is userspace
14 >>utilities to generate the jffs2 image (in the portage tree as mtd-utils) and
15 >>a kernel to mount it (in the mainline kernel)
16 >>-mike
17 >
18 > Do you use initrd to bootstrap, or do boot loaders like lilo and grub
19 > understand jffs2? I've been using ext2 on my CompactFlash simply because
20 > I'm too lazy and haven't had time to learn how to use initrd.
21
22 Well, I do not know about JFFS2 either, but I do have something
23 to share. It is a result of a (borked) installation off of a
24 2006.0 liveCD, that I ended up finishing manually. The system was
25 left with a bootable kernel and this grub entry, that still
26 works; in fact an Athlon XP is currently booted form this
27 grub entry. Maybe it could be used as a starting point for
28 initrd?
29
30 uname -r
31 2.6.15-gentoo-r5
32
33
34 <snip>
35 title=Gentoo Linux genkernel-x86-2.6.15-gentoo-r5
36 root (hd0,0)
37 kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0
38 init=/linuxrc ramdisk=8192 real_root=/dev/hda2
39 initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5
40
41 in /boot/
42 kernel-genkernel-x86-2.6.15-gentoo-r5
43 initramfs-genkernel-x86-2.6.15-gentoo-r5
44 kernel-2.6.17-gentoo-r4
45
46 I'm not positive that initrd is being used, but, I thought
47 I'd show this grub.conf entry as it works. I keep mulitple
48 (valid) kernels around for several reasons, but my usual
49 grub.conf looks like:
50
51 title=Gentoo Linux 2.6.17-gentoo-r4
52 root(hd0,0)
53 kernel /kernel-2.6.17-gentoo-r4 root=/dev/hda2
54
55
56
57 Any enlightenment as to why this sort of entry is created from
58 the livecd and if this entry is using initrd from grub, would
59 be interesting to me.
60
61 hth,
62
63 James
64
65 --
66 gentoo-embedded@g.o mailing list