Quote:
This would be preferable to copying your current 2.4.22 module (if it is a module - I think it has to be in the kernel) into the 2.6.2 tree as I doubt this would work. Each kernel module is specific to a given source tree and if it's not from the same tree, all bets are off. Garry |
this was my first kernel compile and following this instructions i did so like a charm.
the only prob i have is that theres no more framebuffer how can i get it back, cuz i kinda liked the lil pinguin on top :p ps. great comunity |
Quote:
|
28 tries!
finally! i was able to compile kernel 2.6.2 whew!
here's what I did from a fresh .config of 2.6.2... might help someone later.. nvidia video card: agpgart = disable vesa = * nvidia support = M framebuffer(refer to page2) MAKE SURE framebuffer Console support = y (i was wondering why i got a blank screen, it was set as module, so easy to forget) network adapter: realtek 8139 c+ = M realtek 8139 = M (i dont know which one to use so now i have to modprobe) mouse ps/2 = y sound alsa oss emulation = y c-media = y thanks to DaOne and jymbo and the LQMB! |
I got mine working...the frame buffer, agpgart, ALSA (Audigy), ethernet , etc.
Here's the config : Character Devices: 1. Agpgart = YES 2. Sis chipset = Module in /etc/rc.d/rc.modules i put /sbin/modprobe sis-agp Graphic Support 1. Support for framebuffer devices = YES 2. VESA VGA graphics support = YES - Console display driver support 1. Video mode selection support = YES 2. Framebuffer console support = YES select compiled-in fonts = "" IS NOT SET !! "" It won't work if i say "YES". - Logo Configuration YES to all Sound Sound card support = YES ALSA = Module - Sequencer support = Module -Sequencer dummy client = not set - OSS API emulation = YES - OSS Mixer API = module - OSS PCM API = module - OSS Sequencer API = YES - Verbose printk = not set - Debug = not set - PCI devices EMU10K1 = module In /etc/rc.d/rc.modules i did : uncomment /sbin/modprobe emu10k1 and replace emu10k1 with snd-emu10k1 /etc/rc.d/rc.alsa remove " modprobe snd-mixer-oss " Ethernet My MB is ASUS-P4S533-x with ethernet card built-in. So..."YES" to RealTek RTL-8139 PCI Fast Ethernet Adapter Support and...as "module" to SiS 900/7016 PCI Fast Ethernet Adapter Support uncomment " #/sbin/modprobe sis900 " in rc.modules That's all...hope might help someone also ! :) |
good job!
about your ethernet card.. i think you have to just load sis900 as modules since you have to uncomment /sbin/modprobe sis900 and remove realtek in your .config you only have 1 nic do you? anyway.. about agpgart agpgart = M hehe i thought i disabled it :D |
I have a make install error with the 2.6.2 kernel. I orgnaly have goten it to work but i messed up the system in another way. So I resinstalled everything downloaded the 2.6.2 kernel and went to go complie it and i get this at the end of make modules_install .. "if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.2; fi". That looks like C code to me and also an error the other error i get is when i do make install it says:
/arch/i386/boot/setup.S:165. Warning: value 0x37ffffff truncated to 0x37ffffff Root device is (3. 2). Boot sector 512 bytes. setup is 4879 bytes. System is 1579 KB. Kernel : arch/i386/boot/bzImage is ready. sh /usr/src/linux-2.6.2/arch/i386/boot/install.sh 2.6.2 /arch/i386/boot/bzImage System.map "/boot" part_nowrite: read:: Input/ouput error make[1]: *** [install] Error 1 make: *** [install] error 2 i have tryed googleing for the awanser and searching the forums. I have also tryed recomplieing it (and other vertions as well). If you need more info i can try to post more of what it says ....the rest of the logs and text just show regular compile info and i dont get any error with just make. |
I new to Linux and am attempting my first Kernel compile :)
I followed DaOne's guide and when I got to the su -c "make modules_install" command it errored out immediately with it being unable to find a file /usr/src/linux/drivers/net/3c501.ko The only file that is close is 3c501.c This stopped me in my tracks.... In DaOne's guide when you create the vmlinuz.old image path in LILO there is no corresponding directory for this path. Am I supposed to copy the existing files to a new directory called vmlinuz.old or am I totally wrong here ? Also why do we not copy the bzImage file & System.map files to /boot as many other install guides say ? I have also tried beyondzero's guide but when I loaded the new kernel from LILO it loaded the old kernel. I also noticed that when the Kernel was compiling the directory paths listed were in /usr/src/linux-2.4.22. So it seemed to be compiling the old Kernel. In beyondzero's guide you do not "break the link" (rm -f) to the /usr/src/linux directory like in DaOne's could this have caused my wrong kernel compile problem ? Every kernel compile procedure that I have seen is different. This makes it hard to understand what is going on as there are only a few constants to the procedure. Documentation is very difficult to master as you are writing this document as someone who knows exactly what you mean, which makes it hard to understand if you are uninitiated. Can DaOne's guide be written with every command written down with explanations on what each command is doing and why ? I am sure this will help us "newbies" learn. I am a long tome NetWare guy looking to learn the next big thing. I decided to dive right in and go for a more "hard core" version. SuSE, Mandrake & Debian are easy. I need to know how the system works so Slackware is ideal :) |
Hi,
here are the steps I've done so far: ln -s linux-2.6.2 linux uncommented line in Makefile edited lilo & run lilo make mrproper make menuconfig make su -c "make modules_install" make install Here are lilo.conf and Makefile: Code:
# Linux bootable partition config begins Code:
# What did I wrong? |
Here's step by step i use when patching 2.6.1 to 2.6.2 and compiling the new kernel(2.6.2):
1. Create a new directory for new kernel(2.6.1), for example : $mkdir /home/me/upgrade 2. extract the kernel(2.6.1) to /home/me/upgrade directory : $tar xvjf linux-2.6.1.tar.bz2 -C /home/me/upgrade 3. Create a symbolic link to that new directory : - $ cd /home/me/upgrade - $ ln -s linux-2.6.1/ linux 4. extract the patch file to the top directory of linux-2.6.1 5. Patch the patchfile : $patch -p1 <patch-2.6.2 Now the compiling part : Note : I always do these as root ! 1. make mrproper 2. make menuconfig or make xconfig 3. save all the configuration and quit 4. make bzImage 5. make modules 6. make modules_install 7. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.2 8. cp System.map /boot/System.map-2.6.2 9. rm /boot/System.map 10. ln -s /boot/System.map-2.6.2 /boot/System.map continue with editing lilo.conf.... Editing lilo.conf : Use any text editor you like, for now i choose pico. 1.As root !! #pico /etc/lilo.conf ..and here's what i did : image = /boot/vmlinuz root = /dev/hda4 label = SLACKWARE read-only image = /boot/vmlinuz-2.6.2 root = /dev/hda4 ---->> change with your / directory !! label = SLACK-2.6.2 read-only # Non-UMSDOS filesystems should be mounted read-only for checking # Linux bootable partition config ends # DOS bootable partition config begins other = /dev/hda1 label = WINDOWS-XP table = /dev/hda # DOS bootable partition config ends 2. Still as root : #/sbin/lilo That's all..hope it helps !! cheers |
Quote:
Here is a snip from my lilo.conf... # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/hdb1 label = Linux read-only image = /boot/vmlinuz.old root = /dev/hdb1 label = Old-Kernel read-only #Bootable partition config ends So, you need to keep the vmlinuz entry, and just add the vmlinuz.old entry...make sense? |
Sorry all...I have been very busy and haven't had a chance to see what's been going on here. I will try to read through this stuff and offer assistance where I can...
|
i've gotten everything to work perfectly except the last step make install the last few lines say:
Added Linux Fatal: Duplicate Label "Linux" make[1]: *** [install] Error 1 make: *** [install] Error 2 then when i restart it boots up my old kernel |
Fatal: Duplicate Label "Linux" <-- this is your problem.
just change the labels and you will be ok.. remember to run lilo before you reboot. heres my lilo.conf: # This is my 2.6.2 kernel image = /boot/vmlinuz root = /dev/hda10 label = Slackware-9.1 read-only # Non-UMSDOS filesystems should be mounted read-only for checking # This is my 2.4.22 kernel image = /boot/vmlinuz.bak.old root = /dev/hda10 label = Failsafe read-only other = /dev/hda1 label = Windows-XP table = /dev/hda image = /mnt/rh/vmlinuz root = /dev/hda5 label = RedHat-9 read-only |
once i reboot and choose linux in lilo menu,
the screen goes black and nothing happens. i can probably reinstall my old 2.4 kernel, running one of the slackware cdrom currently but i would like to know if any of you has a clue whats i could have done wrong here. i can not run menuconfig, gettting a whole bunch of errors like warning: assigment makes pointer from integer without a cast. closing with: make *** [menuconfig] Error 2 xconfig seems to work. so i used that. once i get to "make" it stops in the middle and says something like: segmentation fault. this apperantly happens with hot cpu's so i turned of my pc for a while, and later in the config i turned off a lot of stuff so there would be less to make. when i got to make install it started to make a fuss that i have lilo on a boot disk. also it claimed it could not find /boot/vmlinuz.old so i installed lilo to the MBR. with slackware's pkgtool script. booted, no entry in the lilo menu for using my old kernel. and when choosing linux it does nothing. I now renamed the config file to tmp. i ran xconfig to generate a new .config and have changed nothing exept the proccessor family (it was set on P4 while i have p3). when i use make it runs a little while and then i get segmentation fault once again.... using slackware 9.1, trying to install the 2.6.3 kernel |
All times are GMT -5. The time now is 11:03 AM. |