Gentoo Archives: gentoo-embedded

From: Pierre Cassimans <kammicazze@×××××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] x86 Howto
Date: Tue, 28 Jun 2005 09:06:11
Message-Id: BAY23-F3209374274AC73DE969D9BCBE10@phx.gbl
1 Hi,
2
3 i tried out the x86 howto, and i have to say it is a great document. But i
4 still have problems booting my device.
5
6 The device boots, but once it have to init, it stays there right after
7 Freeing unused memory. The device doesn't generate a kernel panic, and i can
8 reboot it with ctrl-alt-delete, so i guess there was some king of init done.
9
10 I tried putting init=linuxrc as kernel option in my grub conf but that gave
11 me the same status.
12
13 Any clues?
14
15 In the howto is a little error. Here are the 2 fact that are not correct i
16 think
17
18 ROOT=/embedded_rootfs make modules_install
19 cp /usr/src/linux/arch/i386/boot/bzImage
20 /embedded_rootfs/boot/vmlinuz-2.6.x
21
22 and
23
24 nano -w /embedded_rootfs/boot/grub/grub.conf
25 /*
26 default 0
27 timeout 10
28 splashimage=(hd0,0)/boot/grub/splash.xpm.gz
29
30 title=Linux 2.6.x
31 root (hd0,0)
32 kernel /vmlinuz-2.6.x root=/dev/hda1 vga=792
33 */
34
35 the latter should be
36 kernel /boot/vmlinuz-2.6.x root=/dev/hda1 vga=792
37
38 Another tip i can give is for grub. If you want to make a cf bootable with
39 grub and want to install grub on your cf from you develop station, you could
40 do it this way:
41 In grub shell:
42
43 device (hd0) /dev/hdg /*where /dev/hdg is your cf card. This could be
44 /dev/sdb */
45 root (hd0,0)
46 setup (hd0)
47
48 This will install grub on your cf card.
49
50 What also would be nice is to give some examples of booting the embedded
51 device, like working from ram or with initrd, cramfs, squashfs, root pivots,
52 using unionfs, overlays, etc. I know this is not easy, but it would help the
53 noobs (like me) alot.
54
55 I've read the oreilly book about linux embedded. It was a very interesting
56 guide, but i was missing a few examples in it to completely understand what
57 was explained. Hope i will see them in this howto some day ;)
58
59
60 --
61 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] x86 Howto Ow Mun Heng <Ow.Mun.Heng@×××.com>