Gentoo Archives: gentoo-embedded

From: Kurt Kiefer <kekiefer@××××××××××.edu>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] x86 Howto
Date: Wed, 29 Jun 2005 03:58:19
Message-Id: EBACC9F9-B348-4D31-A4F7-2C0C9F4EFDCD@umail.ucsb.edu
1 >> nano -w /embedded_rootfs/boot/grub/grub.conf
2 >> /*
3 >> default 0
4 >> timeout 10
5 >> splashimage=(hd0,0)/boot/grub/splash.xpm.gz
6 >>
7 >> title=Linux 2.6.x
8 >> root (hd0,0)
9 >> kernel /vmlinuz-2.6.x root=/dev/hda1 vga=792
10 >> */
11 > the latter should be
12 > kernel /boot/vmlinuz-2.6.x root=/dev/hda1 vga=792
13
14 I didn't follow Heath's HowTo exactly, and my setup is probably a bit
15 different, but I just want to get this out in the open to make sure
16 everything is clear.
17 - If you mount /dev/hda1 at /boot (as in the big Gentoo manual) and
18 then put your kernel here, root (hd0,0) and kernel /vmlinuz-2.6.x are
19 correct, but it should have been root=/dev/hda3.
20 - It seems in the howto, /boot is on /dev/hda2 of the flash
21 installation, so (hd0,1) and /vmlinuz would be correct (the first
22 drive's second partition). Root=/dev/hda1 is ok that that case if
23 that's where your filesystem is.
24 - Now, if the kernel is in the directory /boot of /dev/hda1 and the
25 root file system is also /dev/hda1, Pierre's above solution is correct.
26 Basically, though, a bootloader knows nothing of your local mount
27 points.
28
29 As for your problem, Pierre, check that you're getting your paths to
30 your init right and don't forget to think about what grub sees. In
31 this grub conf, the kernel is on /dev/hda1 and the root filesystem is
32 on /dev/hda3. This also runs pre-init (part of the filesystem on /dev/
33 hda3) instead of init:
34
35 title=Linux 2.6.x
36 root (hd0,0)
37 kernel /vmlinuz-2.6.x root=/dev/hda3 init=/sbin/pre-init
38
39
40 Kurt
41
42
43 PS: I apologize if I broke threads in your mailreaders, but I just
44 signed up for the list after reading some archives online and had to
45 copy and paste into my reply.
46 --
47 gentoo-embedded@g.o mailing list

Replies

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