Could you tell me where to find an openSUSE repository with the 2.6.22 or newer kernel? I'm running 2.6.18.8-0.9 and the only thing that I find on the SUSE repo site is 2.6.18.8-915.1.
I have successfully backed up my old kernel. I think I'm only left with the second option. The kernel I downloaded is 2.6.24.3. That is if the other isn't an option. |
Sorry, since I don't use Suse, I really don't know where you would look for a repository. There is a Suse forum here, maybe that would be a good place to ask about the best way to upgrade a kernel on Suse.
|
Well, here goes! I'll post on how it turns out. Thanks for the help so far.
|
Ok, the kernel composing went fine. I combined the instructions from these two sites:
Unofficial SUSEFAQ - Kernel Compiling How To Compile A Kernel - The SuSE Way It booted up on the first try without a problem! :) I downloaded the kernel from kernel.org stated as kernel 2.6.24.3. But after I installed it, it shows up as kernel 2.6.18.8-0.9. Same as what I had. But then my old system was completely updated. Did I do something wrong? Then I tried out the NetGear wireless card. It still doesn't register in YaST. I tried to manually install it to no avail. So I tried ndiswrapper again with the same congealing effect that I had before. :( Quote:
PS. I have a friend with WinXP that wants a network card. I think I'm selling this one and buying something else. Not sure what else to do. Also, I only have a 10GB hard drive. It get's full too quickly. I'm going to have to redo my system and look for a lighter desktop. Maybe XFCE or something. Or maybe a smaller distro. |
Quote:
Quote:
Quote:
|
Ok, I've done just a little searching and found a broken link.
When I type 'ln -s linux-2.6.24.3 linux', it doesn't want to link. I comes up with 'link (broken). I figure that is the reason it didn't install correctly. What can I do to make it work? I'm logged in as root. Here, I'll list the commands that I used in Terminal to compile the kernel in /usr/src. ln -s linux-2.6.24.3 linux cd /usr/src/linux make mrproper make cloneconfig touch /usr/src/linux/include/linux/modversions.h make menuconfig ----followed instructions from HowToForge---- make rpm cd /usr/src/packages/RPMS/i386/ rpm -ivh kernel-2.6.24.3modified.i386.rpm mkinitrd ----modified my bootloader and rebooted.---- |
well you followed a rather unorthodox way of compiling a kernel, that's for sure. I'm not sure why you would make it into an rpm. That's beside my point though. what you ought to do is compile your kernel again, this time making sure that you configure it so that support for your root FS (ext3, reiserFS, whatever) is COMPILED in, not just a module. Then you don't have to use an initrd. This is a good practice to take since initrd's have a habit of corrupting themselves from time to time. Easier to simply cut out the middle man.
Your ln command didn't work because more than likely you already have a file in /usr/src called linux, which is the source for your original kernel, 2.6.18.8. rather than soft link your new source to the linux directory, your computer told you to get stuffed :-P. So you probably recompiled 2.6.18.8 instead of 2.6.24.3. So here's what you do. cd /usr/src/linux-2.6.24.3 cp ../linux/.config ./ make menuconfig this pops up an ncurses based menu which allows you to set and unset each and every single option a kernel has. There are a ton, but you only need to worry about the filesystem stuff. when you exit, menuconfig will write the .config file and you'll be set for liftoff. make mrproper make And it'll go for a half hour or so. Or maybe ten minutes if your rig is sweet. After that do your thing with GRUB (making sure this time that you do NOT include an initrd line for this kernel since you've taken care of FS support and don't need one) and reboot. You should then be running a brand new kernel! Make sure to keep your old kernel's information still in GRUB so if you get a kernel panic with your new one you can still boot the old one. Happy Hunting :-) |
Ok, here's what I come up with next. I did as you said and tried to compile the kernel. I did 'make menuconfig' and then tried 'make mrproper' and 'make'. I wish I knew more of what this stuff means. Here's what I get:
linux-36li:/usr/src/linux-2.6.24.3 # make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf arch/x86/Kconfig .config:32:warning: trying to assign nonexistent symbol SUSE_KERNEL .config:105:warning: trying to assign nonexistent symbol X86_XEN .config:149:warning: trying to assign nonexistent symbol X86_CMPXCHG64 .config:162:warning: trying to assign nonexistent symbol X86_APIC_AUTO .config:201:warning: trying to assign nonexistent symbol REGPARM .config:220:warning: trying to assign nonexistent symbol SOFTWARE_SUSPEND .config:222:warning: trying to assign nonexistent symbol SUSPEND_SMP .config:229:warning: trying to assign nonexistent symbol ACPI_SLEEP_PROC_FS .config:230:warning: trying to assign nonexistent symbol ACPI_SLEEP_PROC_SLEEP .config:235:warning: trying to assign nonexistent symbol ACPI_HOTKEY .config:242:warning: trying to assign nonexistent symbol ACPI_IBM .config:243:warning: trying to assign nonexistent symbol ACPI_IBM_DOCK .config:245:warning: trying to assign nonexistent symbol ACPI_SONY .config:246:warning: trying to assign nonexistent symbol ACPI_PCC .config:248:warning: trying to assign nonexistent symbol ACPI_CUSTOM_DSDT_INITRD .config:266:warning: trying to assign nonexistent symbol APM_RTC_IS_GMT .config:297:warning: trying to assign nonexistent symbol X86_SPEEDSTEP_CENTRINO_ACPI .config:320:warning: trying to assign nonexistent symbol PCI_GOXEN_FE .config:327:warning: trying to assign nonexistent symbol HOTPLUG_PCI_PCIE_POLL_EVENT_MODE .config:378:warning: trying to assign nonexistent symbol HOTPLUG_PCI_SHPC_POLL_EVENT_MODE .config:395:warning: trying to assign nonexistent symbol NETDEBUG .config:409:warning: trying to assign nonexistent symbol IP_ROUTE_FWMARK .config:411:warning: trying to assign nonexistent symbol IP_ROUTE_MULTIPATH_CACHED .config:537:warning: trying to assign nonexistent symbol IP_NF_CONNTRACK .config:538:warning: trying to assign nonexistent symbol IP_NF_CT_ACCT .config:539:warning: trying to assign nonexistent symbol IP_NF_CONNTRACK_MARK .config:540:warning: trying to assign nonexistent symbol IP_NF_CONNTRACK_SECMARK .config:541:warning: trying to assign nonexistent symbol IP_NF_CONNTRACK_EVENTS .config:542:warning: trying to assign nonexistent symbol IP_NF_CONNTRACK_NETLINK .config:543:warning: trying to assign nonexistent symbol IP_NF_CT_PROTO_SCTP .config:544:warning: trying to assign nonexistent symbol IP_NF_FTP .config:545:warning: trying to assign nonexistent symbol IP_NF_IRC .config:546:warning: trying to assign nonexistent symbol IP_NF_NETBIOS_NS .config:547:warning: trying to assign nonexistent symbol IP_NF_TFTP .config:548:warning: trying to assign nonexistent symbol IP_NF_AMANDA .config:549:warning: trying to assign nonexistent symbol IP_NF_PPTP .config:550:warning: trying to assign nonexistent symbol IP_NF_H323 .config:551:warning: trying to assign nonexistent symbol IP_NF_SIP .config:558:warning: trying to assign nonexistent symbol IP_NF_MATCH_DSCP .config:563:warning: trying to assign nonexistent symbol IP_NF_MATCH_HASHLIMIT .config:568:warning: trying to assign nonexistent symbol IP_NF_TARGET_TCPMSS .config:569:warning: trying to assign nonexistent symbol IP_NF_NAT .config:570:warning: trying to assign nonexistent symbol IP_NF_NAT_NEEDED .config:575:warning: trying to assign nonexistent symbol IP_NF_NAT_SNMP_BASIC .config:576:warning: trying to assign nonexistent symbol IP_NF_NAT_IRC .config:577:warning: trying to assign nonexistent symbol IP_NF_NAT_FTP .config:578:warning: trying to assign nonexistent symbol IP_NF_NAT_TFTP .config:579:warning: trying to assign nonexistent symbol IP_NF_NAT_AMANDA .config:580:warning: trying to assign nonexistent symbol IP_NF_NAT_PPTP .config:581:warning: trying to assign nonexistent symbol IP_NF_NAT_H323 .config:582:warning: trying to assign nonexistent symbol IP_NF_NAT_SIP .config:586:warning: trying to assign nonexistent symbol IP_NF_TARGET_DSCP .config:687:warning: trying to assign nonexistent symbol DECNET_ROUTE_FWMARK .config:712:warning: trying to assign nonexistent symbol NET_SCH_CLK_JIFFIES .config:713:warning: trying to assign nonexistent symbol NET_SCH_CLK_GETTIMEOFDAY .config:714:warning: trying to assign nonexistent symbol NET_SCH_CLK_CPU .config:757:warning: trying to assign nonexistent symbol NET_ESTIMATOR .config:958:warning: trying to assign nonexistent symbol MTD_OBSOLETE_CHIPS .config:1067:warning: trying to assign nonexistent symbol PARIDE_PARPORT .config:1116:warning: trying to assign nonexistent symbol CIPHER_TWOFISH .config:1154:warning: trying to assign nonexistent symbol BLK_DEV_IDEDMA_FORCED .config:1155:warning: trying to assign nonexistent symbol IDEDMA_PCI_AUTO .config:1156:warning: trying to assign nonexistent symbol IDEDMA_ONLYDISK .config:1185:warning: trying to assign nonexistent symbol IDE_CHIPSETS .config:1197:warning: trying to assign nonexistent symbol IDEDMA_IVB .config:1198:warning: trying to assign nonexistent symbol IDEDMA_AUTO .config:1255:warning: trying to assign nonexistent symbol AIC79XX_ENABLE_RD_STRM .config:1343:warning: trying to assign nonexistent symbol SATA_INTEL_COMBINED .config:1389:warning: trying to assign nonexistent symbol CD_NO_IDESCSI .config:1390:warning: trying to assign nonexistent symbol AZTCD .config:1391:warning: trying to assign nonexistent symbol GSCD .config:1392:warning: trying to assign nonexistent symbol MCDX .config:1393:warning: trying to assign nonexistent symbol OPTCD .config:1394:warning: trying to assign nonexistent symbol SJCD .config:1395:warning: trying to assign nonexistent symbol ISP16_CDI .config:1396:warning: trying to assign nonexistent symbol CDU535 .config:1439:warning: trying to assign nonexistent symbol IEEE1394_OUI_DB .config:1440:warning: trying to assign nonexistent symbol IEEE1394_EXTRA_CONFIG_ROMS .config:1441:warning: trying to assign nonexistent symbol IEEE1394_CONFIG_ROM_IP1394 .config:1442:warning: trying to assign nonexistent symbol IEEE1394_EXPORT_FULL_API .config:1583:warning: trying to assign nonexistent symbol DGRS .config:1659:warning: trying to assign nonexistent symbol NET_RADIO .config:1660:warning: trying to assign nonexistent symbol NET_WIRELESS_RTNETLINK .config:1726:warning: trying to assign nonexistent symbol NET_WIRELESS .config:1765:warning: trying to assign nonexistent symbol DLCI_COUNT .config:1832:warning: trying to assign nonexistent symbol NETPOLL_RX .config:2006:warning: trying to assign nonexistent symbol INPUT_TSDEV .config:2007:warning: trying to assign nonexistent symbol INPUT_TSDEV_SCREEN_X .config:2008:warning: trying to assign nonexistent symbol INPUT_TSDEV_SCREEN_Y .config:2109:warning: trying to assign nonexistent symbol NOZOMI .config:2143:warning: trying to assign nonexistent symbol TIPAR .config:2176:warning: trying to assign nonexistent symbol I8XX_TCO .config:2272:warning: trying to assign nonexistent symbol CRASHER .config:2299:warning: trying to assign nonexistent symbol I2C_ISA .config:2469:warning: trying to assign nonexistent symbol VIDEO_SAA7134_DVB_ALL_FRONTENDS .config:2479:warning: trying to assign nonexistent symbol VIDEO_CX88_DVB_ALL_FRONTENDS .config:2531:warning: trying to assign nonexistent symbol RADIO_MIROPCM20 .config:2532:warning: trying to assign nonexistent symbol RADIO_MIROPCM20_RDS .config:2545:warning: trying to assign nonexistent symbol DVB .config:2657:warning: trying to assign nonexistent symbol VIDEO_VIDEOBUF .config:2659:warning: trying to assign nonexistent symbol VIDEO_BUF .config:2660:warning: trying to assign nonexistent symbol VIDEO_BUF_DVB .config:2754:warning: trying to assign nonexistent symbol BACKLIGHT_DEVICE .config:2756:warning: trying to assign nonexistent symbol LCD_DEVICE .config:2761:warning: trying to assign nonexistent symbol BOOTSPLASH .config:2801:warning: trying to assign nonexistent symbol SND_AC97_BUS .config:2926:warning: trying to assign nonexistent symbol OSS_OBSOLETE_DRIVER .config:2927:warning: trying to assign nonexistent symbol SOUND_BT878 .config:2928:warning: trying to assign nonexistent symbol SOUND_EMU10K1 .config:2929:warning: trying to assign nonexistent symbol MIDI_EMU10K1 .config:2930:warning: trying to assign nonexistent symbol SOUND_FUSION .config:2931:warning: trying to assign nonexistent symbol SOUND_ES1371 .config:2932:warning: trying to assign nonexistent symbol SOUND_ICH .config:2936:warning: trying to assign nonexistent symbol SOUND_VIA82CXXX .config:2937:warning: trying to assign nonexistent symbol MIDI_VIA82CXXX .config:2941:warning: trying to assign nonexistent symbol SOUND_AD1816 .config:2942:warning: trying to assign nonexistent symbol SOUND_AD1889 .config:2943:warning: trying to assign nonexistent symbol SOUND_ADLIB .config:2944:warning: trying to assign nonexistent symbol SOUND_ACI_MIXER .config:2945:warning: trying to assign nonexistent symbol SOUND_CS4232 .config:2951:warning: trying to assign nonexistent symbol SOUND_NM256 .config:2958:warning: trying to assign nonexistent symbol SOUND_OPL3SA2 .config:2967:warning: trying to assign nonexistent symbol AEDSP16_MPU401 .config:2968:warning: trying to assign nonexistent symbol SOUND_TVMIXER .config:2984:warning: trying to assign nonexistent symbol USB_BANDWIDTH .config:2998:warning: trying to assign nonexistent symbol USB_OHCI_BIG_ENDIAN .config:3034:warning: trying to assign nonexistent symbol USB_HIDINPUT .config:3047:warning: trying to assign nonexistent symbol USB_AIPTEK .config:3048:warning: trying to assign nonexistent symbol USB_WACOM .config:3049:warning: trying to assign nonexistent symbol USB_ACECAD .config:3050:warning: trying to assign nonexistent symbol USB_KBTAB .config:3051:warning: trying to assign nonexistent symbol USB_POWERMATE .config:3052:warning: trying to assign nonexistent symbol USB_TOUCHSCREEN .config:3053:warning: trying to assign nonexistent symbol USB_TOUCHSCREEN_EGALAX .config:3054:warning: trying to assign nonexistent symbol USB_TOUCHSCREEN_PANJIT .config:3055:warning: trying to assign nonexistent symbol USB_TOUCHSCREEN_3M .config:3056:warning: trying to assign nonexistent symbol USB_TOUCHSCREEN_ITM .config:3057:warning: trying to assign nonexistent symbol USB_YEALINK .config:3058:warning: trying to assign nonexistent symbol USB_XPAD .config:3059:warning: trying to assign nonexistent symbol USB_ATI_REMOTE .config:3060:warning: trying to assign nonexistent symbol USB_ATI_REMOTE2 .config:3061:warning: trying to assign nonexistent symbol USB_KEYSPAN_REMOTE .config:3062:warning: trying to assign nonexistent symbol USB_APPLETOUCH .config:3230:warning: symbol value 'm' invalid for EDAC .config:3243:warning: trying to assign nonexistent symbol EDAC_POLL .config:3254:warning: symbol value 'm' invalid for RTC_INTF_SYSFS .config:3255:warning: symbol value 'm' invalid for RTC_INTF_PROC .config:3256:warning: symbol value 'm' invalid for RTC_INTF_DEV .config:3303:warning: trying to assign nonexistent symbol EXT3_FS_NFS4ACL .config:3320:warning: trying to assign nonexistent symbol FS_NFS4ACL .config:3347:warning: trying to assign nonexistent symbol ZISOFS_FS .config:3373:warning: trying to assign nonexistent symbol RAMFS .config:3388:warning: trying to assign nonexistent symbol JFFS_FS .config:3389:warning: trying to assign nonexistent symbol JFFS_FS_VERBOSE .config:3390:warning: trying to assign nonexistent symbol JFFS_PROC_FS .config:3458:warning: trying to assign nonexistent symbol RXRPC .config:3551:warning: trying to assign nonexistent symbol DEBUG_RWSEMS .config:3563:warning: trying to assign nonexistent symbol UNWIND_INFO .config:3564:warning: trying to assign nonexistent symbol STACK_UNWIND .config:3579:warning: trying to assign nonexistent symbol KDB .config:3589:warning: symbol value 'm' invalid for SECURITY_CAPABILITIES .config:3590:warning: symbol value 'm' invalid for SECURITY_ROOTPLUG .config:3591:warning: trying to assign nonexistent symbol SECURITY_SECLVL .config:3593:warning: trying to assign nonexistent symbol SECURITY_APPARMOR # # configuration written to .config # *** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'. linux-36li:/usr/src/linux-2.6.24.3 # make mrproper CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config CLEAN .config .config.old linux-36li:/usr/src/linux-2.6.24.3 # make HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/x86/Kconfig *** *** You have not yet configured your kernel! *** (missing kernel .config file) *** *** Please run some configurator (e.g. "make oldconfig" or *** "make menuconfig" or "make xconfig"). *** make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop. linux-36li:/usr/src/linux-2.6.24.3 # I also would like to know if I could remove all of the modules that I won't be needing in 'make menuconfig' as in the display drivers and ethernet cards and stuff that I don't have. Would it be necessary and would it help make the system lighter? ;) Thanks for the compliment. I really don't know what I'm doing. |
OK, I found that doing 'make mrproper' removes the .config files. So I did 'make clean' instead. Then I used the 'make' command to build the kernel. Is that ok? Also, when I go to YaST to add my new kernel to GRUB, I don't find it listed.
|
Quote:
To start, you probably want to run make oldconfig. That will take the existing configuration and then ask you questions about what is new. You can then go back with make menuconfig or make xconfig and do some tweaking to it. Quote:
|
Everything seemed to go Ok till I tried to boot from the new kernel. It went down through:
RAMDISK driver initialized: 16 RAM disks of 64,000K size 1024 blocksize and on till it got to: md: autorun ... md: ... autorun DONE. VFS: Cannot open root device "hda2" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Does that mean that I still need an initrd? I thought I had compiled support for Reiserfs. |
That usually means one of two things. Either you didn't compile your file system (or compiled it as a module) or you didn't add support for your disk hardware. If you've got older disk drives (ATA/IDE) then you need to activate support in Device Drivers > ATA/ATAPI/MFM/RLL support. If you've got newer SATA drives, you need to enable SCSI disk support. (Device Drivers > SCSI Device Support). Make sure you compile this support into the kernel and not as a module. In general, if your file system and basic disk hardware support are compiled into the kernel, you don't need an initrd.
|
Yes I apologize for my mistake earlier - I meant to say that you issue make mrproper first and then run the configuration, since mrproper removes old configuration files and such. Sorry for being dumb. What type of file system do you have on your root partition (/) ? If you don't have support for that file system compiled into your kernel it won't boot without an initrd. Also I'm not quite sure where all of your warnings came from when you ran make menuconfig. Did you actually get to the configuration menu or did it just give you the warnings and stop?
|
I got the new kernel up and running! ;) Thanks so much for the help so far. But I've still got some issues. I noticed that the AppArmor fails to load. And also, I noticed that I can't connect to the Internet. I going to try to get a log of the startup.
|
As far as the internet not working, it came up with a thing about FATAL: Module ip_conntrack not found. Is securityfs loaded? I did a little checking and installed the latest iptables patch. It might be that I hadn't configured it well from the start.
Any clues as to why AppArmor didn't load? |
All times are GMT -5. The time now is 08:43 PM. |