[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building a 2.6.30 kernel that does NOT require initrd



Hi,

I have not used grub2, however- I will ask others on the list--

If you are compiling (most) everything into the image itself, you probably don't need the insmod line below and I am not sure you want the search
line either.

menuentry "Debian GNU/Linux, Linux 2.6.30 (recovery mode)" {
  insmod ext2 <- Remove
  set root=(hd0,1)
  search --no-floppy --fs-uuid --set 19ee8fc7-d4b5-4ea3-86d9-eba7bf3b857e
linux /boot/vmlinuz-2.6.30 root=/dev/sda1 ro single }

Please try the following instead:

menuentry "Debian GNU/Linux, Linux 2.6.30" {
  set root=(hd0,1)
  linux /boot/vmlinuz-2.6.30 root=/dev/sda1 ro
}

Also make note when the text is scrolling by, does it show your devices
(hdds/partitions, etc)?

Justin.

On Mon, 28 Sep 2009, Andrew Perrin wrote:

Thanks for your continued interest. Answers below.

----------------------------------------------------------------------
Andrew J Perrin - andrew_perrin (at) unc.edu - http://perrin.socsci.unc.edu
Associate Professor of Sociology; Book Review Editor, _Social Forces_
University of North Carolina - CB#3210, Chapel Hill, NC 27599-3210 USA



On Mon, 28 Sep 2009, Justin Piszcz wrote:

            product: 82801JD/DO (ICH10 Family) SATA AHCI Controller

CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_ACPI=y
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=y
# CONFIG_SATA_SVW is not set
CONFIG_ATA_PIIX=y

Your configuration appears to contain the necessary drivers.

Did you install your kernel correctly?

Well, I think I did - I did it the same way I've been doing it for years:

cd /usr/src/linux-source-2.6.30

make-kpkg clean ; make-kpkg --revision che10.1 linux-image ; make-kpkg --revision che10.1 modules-image

cd ..

dpkg -i ./linux-image-2.6.30_che10.1_amd64.deb
dpkg -i ./openafs-modules-2.6.30_1.4.11+dfsg-2+che10.1_amd64.deb

reboot

Are you using grub1? grub2?

grub2, but the same behavior seemed to happen with grub1 I think.

There was some discussion on this e-mail list recently about some grub2 issues.

Please also post your grub.conf & show ls -lR of /boot.


grub.cfg is at http://perrin.socsci.unc.edu/stuff/grub.cfg

che:/boot# ls -lR

.:
total 23256
-rw-r--r-- 1 root root   48256 2009-09-25 10:19 config-2.6.30
-rw-r--r-- 1 root root   98241 2009-08-15 14:17 config-2.6.30-1-amd64
drwxr-xr-x 2 root root    4096 2009-09-25 10:38 grub
-rw-r--r-- 1 root root 7746880 2009-09-23 14:18 initrd.img-2.6.30-1-amd64
-rw-r--r-- 1 root root 7720403 2009-09-23 13:16 initrd.img-2.6.30-1-amd64.bak
-rw-r--r-- 1 root root 1566985 2009-09-25 10:20 System.map-2.6.30
-rw-r--r-- 1 root root 1507018 2009-08-15 14:17 System.map-2.6.30-1-amd64
-rw-r--r-- 1 root root 2845152 2009-09-25 10:20 vmlinuz-2.6.30
-rw-r--r-- 1 root root 2223360 2009-08-15 14:16 vmlinuz-2.6.30-1-amd64

./grub:
total 2860
-rw-r--r-- 1 root root    8224 2009-09-25 09:21 915resolution.mod
-rw-r--r-- 1 root root   10508 2009-09-25 09:21 acpi.mod
-rw-r--r-- 1 root root    4596 2009-09-25 09:21 affs.mod
-rw-r--r-- 1 root root    5056 2009-09-25 09:21 afs_be.mod
-rw-r--r-- 1 root root    4832 2009-09-25 09:21 afs.mod
-rw-r--r-- 1 root root    1048 2009-09-25 09:21 aout.mod
-rw-r--r-- 1 root root    7868 2009-09-25 09:21 ata.mod
-rw-r--r-- 1 root root    2256 2009-09-25 09:21 ata_pthru.mod
-rw-r--r-- 1 root root    2228 2009-09-25 09:21 at_keyboard.mod
-rw-r--r-- 1 root root    4948 2009-09-25 09:21 befs_be.mod
-rw-r--r-- 1 root root    4724 2009-09-25 09:21 befs.mod
-rw-r--r-- 1 root root    4172 2009-09-25 09:21 biosdisk.mod
-rw-r--r-- 1 root root    2440 2009-09-25 09:21 bitmap.mod
-rw-r--r-- 1 root root    2024 2009-09-25 09:21 blocklist.mod
-rw-r--r-- 1 root root     512 2009-09-25 09:21 boot.img
-rw-r--r-- 1 root root    2568 2009-09-25 09:21 boot.mod
-rw-r--r-- 1 root root   19296 2009-09-25 09:21 bsd.mod
-rw-r--r-- 1 root root    1960 2009-09-25 09:21 bufio.mod
-rw-r--r-- 1 root root    1952 2009-09-25 09:21 cat.mod
-rw-r--r-- 1 root root     512 2009-09-25 09:21 cdboot.img
-rw-r--r-- 1 root root    2332 2009-09-25 09:21 chain.mod
-rw-r--r-- 1 root root    2128 2009-09-25 09:21 cmp.mod
-rw-r--r-- 1 root root    1558 2009-09-25 09:21 command.lst
-rw-r--r-- 1 root root    1812 2009-09-25 09:21 configfile.mod
-rw-r--r-- 1 root root   25012 2009-09-25 09:21 core.img
-rw-r--r-- 1 root root    2788 2009-09-25 09:21 cpio.mod
-rw-r--r-- 1 root root    1572 2009-09-25 09:21 cpuid.mod
-rw-r--r-- 1 root root    1740 2009-09-25 09:21 crc.mod
-rw-r--r-- 1 root root    1820 2009-09-25 09:21 datehook.mod
-rw-r--r-- 1 root root    2272 2009-09-25 09:21 date.mod
-rw-r--r-- 1 root root    1241 2009-09-25 09:21 datetime.mod
-rw-r--r-- 1 root root      15 2009-09-23 13:46 device.map
-rw-r--r-- 1 root root     512 2009-09-25 09:21 diskboot.img
-rw-r--r-- 1 root root    1844 2009-09-25 09:21 dm_nv.mod
-rw-r--r-- 1 root root    5524 2009-09-25 09:21 drivemap.mod
-rw-r--r-- 1 root root    1924 2009-09-25 09:21 echo.mod
-rw-r--r-- 1 root root    6428 2009-09-25 09:21 efiemu32.o
-rw-r--r-- 1 root root   10995 2009-09-25 09:21 efiemu64.o
-rw-r--r-- 1 root root   24912 2009-09-25 09:21 efiemu.mod
-rw-r--r-- 1 root root    4388 2009-09-25 09:21 elf.mod
-rw-r--r-- 1 root root    5460 2009-09-25 09:21 ext2.mod
-rw-r--r-- 1 root root    3828 2009-09-25 09:21 extcmd.mod
-rw-r--r-- 1 root root    5728 2009-09-25 09:21 fat.mod
-rw-r--r-- 1 root root    7208 2009-09-25 09:21 font.mod
-rw-r--r-- 1 root root    2196 2009-09-25 09:21 fs_file.mod
-rw-r--r-- 1 root root    2764 2009-09-25 09:21 fshelp.mod
-rw-r--r-- 1 root root     121 2009-09-25 09:21 fs.lst
-rw-r--r-- 1 root root    2132 2009-09-25 09:21 fs_uuid.mod
-rw-r--r-- 1 root root    8536 2009-09-25 09:21 gfxterm.mod
-rw-r--r-- 1 root root    3728 2009-09-25 09:21 gptsync.mod
-r-------- 1 root root    2475 2009-09-25 10:38 grub.cfg
-rw-r--r-- 1 root root    7732 2009-09-25 09:21 gzio.mod
-rw-r--r-- 1 root root    1468 2009-09-25 09:21 halt.mod
-rw-r--r-- 1 root root     288 2009-09-25 09:21 handler.lst
-rw-r--r-- 1 root root    2056 2009-09-25 09:21 handler.mod
-rw-r--r-- 1 root root    7312 2009-09-25 09:21 hdparm.mod
-rw-r--r-- 1 root root    1220 2009-09-25 09:21 hello.mod
-rw-r--r-- 1 root root    2116 2009-09-25 09:21 help.mod
-rw-r--r-- 1 root root    3112 2009-09-25 09:21 hexdump.mod
-rw-r--r-- 1 root root    5912 2009-09-25 09:21 hfs.mod
-rw-r--r-- 1 root root    5788 2009-09-25 09:21 hfsplus.mod
-rw-r--r-- 1 root root    5992 2009-09-25 09:21 iso9660.mod
-rw-r--r-- 1 root root    5592 2009-09-25 09:21 jfs.mod
-rw-r--r-- 1 root root    5900 2009-09-25 09:21 jpeg.mod
-rw-r--r-- 1 root root   31088 2009-09-25 09:21 kernel.img
-rw-r--r-- 1 root root    1996 2009-09-25 09:21 keystatus.mod
-rw-r--r-- 1 root root    4864 2009-09-25 09:21 linux16.mod
-rw-r--r-- 1 root root    8564 2009-09-25 09:21 linux.mod
-rw-r--r-- 1 root root    1024 2009-09-25 09:21 lnxboot.img
-rw-r--r-- 1 root root    5576 2009-09-25 09:21 loadenv.mod
-rw-r--r-- 1 root root    3088 2009-09-25 09:21 loopback.mod
-rw-r--r-- 1 root root    1300 2009-09-25 09:21 lsmmap.mod
-rw-r--r-- 1 root root    4112 2009-09-25 09:21 ls.mod
-rw-r--r-- 1 root root    4184 2009-09-25 09:21 lspci.mod
-rw-r--r-- 1 root root  100728 2009-09-25 09:21 lua.mod
-rw-r--r-- 1 root root    5496 2009-09-25 09:21 lvm.mod
-rw-r--r-- 1 root root    1772 2009-09-25 09:21 mdraid.mod
-rw-r--r-- 1 root root    2088 2009-09-25 09:21 memdisk.mod
-rw-r--r-- 1 root root    2184 2009-09-25 09:21 memrw.mod
-rw-r--r-- 1 root root    4028 2009-09-25 09:21 minicmd.mod
-rw-r--r-- 1 root root    4368 2009-09-25 09:21 minix.mod
-rw-r--r-- 1 root root    8572 2009-09-25 09:21 mmap.mod
-rw-r--r-- 1 root root    1676 2009-09-25 09:21 moddep.lst
-rw-r--r-- 1 root root   50393 2009-09-25 09:21 moreblue-orbit-grub.png
-rw-r--r-- 1 root root    2376 2009-09-25 09:21 msdospart.mod
-rw-r--r-- 1 root root   15012 2009-09-25 09:21 multiboot.mod
-rw-r--r-- 1 root root   34448 2009-09-25 09:21 normal.mod
-rw-r--r-- 1 root root    3260 2009-09-25 09:21 ntfscomp.mod
-rw-r--r-- 1 root root    8500 2009-09-25 09:21 ntfs.mod
-rw-r--r-- 1 root root    4484 2009-09-25 09:21 ohci.mod
-rw-r--r-- 1 root root    2104 2009-09-25 09:21 part_acorn.mod
-rw-r--r-- 1 root root    2308 2009-09-25 09:21 part_amiga.mod
-rw-r--r-- 1 root root    2684 2009-09-25 09:21 part_apple.mod
-rw-r--r-- 1 root root    2752 2009-09-25 09:21 part_gpt.mod
-rw-r--r-- 1 root root      62 2009-09-25 09:21 partmap.lst
-rw-r--r-- 1 root root    3340 2009-09-25 09:21 part_msdos.mod
-rw-r--r-- 1 root root    2288 2009-09-25 09:21 part_sun.mod
-rw-r--r-- 1 root root      22 2009-09-25 09:21 parttool.lst
-rw-r--r-- 1 root root    4520 2009-09-25 09:21 parttool.mod
-rw-r--r-- 1 root root    1964 2009-09-25 09:21 password.mod
-rw-r--r-- 1 root root     848 2009-09-25 09:21 pci.mod
-rw-r--r-- 1 root root    2056 2009-09-25 09:21 play.mod
-rw-r--r-- 1 root root    6496 2009-09-25 09:21 png.mod
-rw-r--r-- 1 root root    2664 2009-09-25 09:21 probe.mod
-rw-r--r-- 1 root root    1024 2009-09-25 09:21 pxeboot.img
-rw-r--r-- 1 root root    2424 2009-09-25 09:21 pxecmd.mod
-rw-r--r-- 1 root root    3536 2009-09-25 09:21 pxe.mod
-rw-r--r-- 1 root root    1380 2009-09-25 09:21 raid5rec.mod
-rw-r--r-- 1 root root    2828 2009-09-25 09:21 raid6rec.mod
-rw-r--r-- 1 root root    5872 2009-09-25 09:21 raid.mod
-rw-r--r-- 1 root root    1548 2009-09-25 09:21 read.mod
-rw-r--r-- 1 root root    1124 2009-09-25 09:21 reboot.mod
-rw-r--r-- 1 root root    9860 2009-09-25 09:21 reiserfs.mod
-rw-r--r-- 1 root root    3252 2009-09-25 09:21 scsi.mod
-rw-r--r-- 1 root root    3516 2009-09-25 09:21 search.mod
-rw-r--r-- 1 root root    5604 2009-09-25 09:21 serial.mod
-rw-r--r-- 1 root root     690 2009-09-25 09:21 setjmp.mod
-rw-r--r-- 1 root root    4144 2009-09-25 09:21 sfs.mod
-rw-r--r-- 1 root root   12044 2009-09-25 09:21 sh.mod
-rw-r--r-- 1 root root    2148 2009-09-25 09:21 sleep.mod
-rw-r--r-- 1 root root    2820 2009-09-25 09:21 tar.mod
-rw-r--r-- 1 root root    9536 2009-09-25 09:21 terminfo.mod
-rw-r--r-- 1 root root    5124 2009-09-25 09:21 test.mod
-rw-r--r-- 1 root root    2892 2009-09-25 09:21 tga.mod
-rw-r--r-- 1 root root    1272 2009-09-25 09:21 true.mod
-rw-r--r-- 1 root root    5072 2009-09-25 09:21 udf.mod
-rw-r--r-- 1 root root    4712 2009-09-25 09:21 ufs1.mod
-rw-r--r-- 1 root root    5032 2009-09-25 09:21 ufs2.mod
-rw-r--r-- 1 root root    4880 2009-09-25 09:21 uhci.mod
-rw-r--r-- 1 root root 1716019 2009-09-25 09:21 unicode.pf2
-rw-r--r-- 1 root root    3256 2009-09-25 09:21 usb_keyboard.mod
-rw-r--r-- 1 root root    4180 2009-09-25 09:21 usb.mod
-rw-r--r-- 1 root root    3788 2009-09-25 09:21 usbms.mod
-rw-r--r-- 1 root root    2968 2009-09-25 09:21 usbtest.mod
-rw-r--r-- 1 root root    2740 2009-09-25 09:21 vbeinfo.mod
-rw-r--r-- 1 root root    6152 2009-09-25 09:21 vbe.mod
-rw-r--r-- 1 root root    3048 2009-09-25 09:21 vbetest.mod
-rw-r--r-- 1 root root    3672 2009-09-25 09:21 vga.mod
-rw-r--r-- 1 root root    2692 2009-09-25 09:21 vga_text.mod
-rw-r--r-- 1 root root   16224 2009-09-25 09:21 video_fb.mod
-rw-r--r-- 1 root root    5264 2009-09-25 09:21 video.mod
-rw-r--r-- 1 root root    3820 2009-09-25 09:21 videotest.mod
-rw-r--r-- 1 root root    6084 2009-09-25 09:21 xfs.mod
-rw-r--r-- 1 root root   24700 2009-09-25 09:21 xnu.mod
-rw-r--r-- 1 root root    4224 2009-09-25 09:21 xnu_uuid.mod
-rw-r--r-- 1 root root    6332 2009-09-25 09:21 zfsinfo.mod
-rw-r--r-- 1 root root   24268 2009-09-25 09:21 zfs.mod

You can see my old page here:

http://installkernel.tripod.com/ik/index.html

cd /usr/src/linux ; make dep ; make clean ; make bzImage ; make modules ; make modules_install ; mv /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-2.4.17 ; mv /usr/src/linux/System.map /boot/System.map-2.4.17 ; ln -sf /boot/System.map-2.4.17 /boot/System.map ; vi /etc/lilo.conf || vi /boot/grub/grub.conf

Is this what you followed (or similar)?

Justin.





Reply to: