PDA

View Full Version : kernel recompile... re-run install scripts?


JoeShmo
10-11-2007, 04:28 PM
Sorry if I sound too noobish, but is there any gotchas for recompiling a new kernel, and recovering a really strange install?

Just for anyone else out there, searching threads, and wanting to know how to get it installed on unsupported hardware (or at least hardware thats not in the knoppix kernel).. or wanting to see how a noob brute forces an installation:

I have a Compaq DL360 w/SmartArray 5i controller (uses cciss driver, which isnt in the untangle installer or kernel it seems).

So I booted up from the CD, attached a USB 40 gig drive, and of course the installer only saw the USB drive, not the RAID1, so I installed the USB. Of course this system won't boot to USB, no big deal there.
next, I booted an old debian sarge CD, partitioned the raid drive, brought up the console, mounted the raid array, and USB drive, then just did a cp -a from the USB to the RAID.. did some more playing around to get grub to work properly, etc...
So of course a kernel panic, as the cciss drivers really arnt there.

Downloaded 2.6.16 from kernels.org, then the ck11 patches.. and the /boot/config from the untangle install, then compiled (on another computer)..

copied the resulting vmlinuz, system.map, lib/modules to the usb, and over to the DL360 (again, using the debian installer CD to be able to mount everything).

rebooted to this new kernel, and there were all sorts of complaints about read-only file system. So I edited grub's menu.lst to mount root as rw instead of ro (why fstab wasnt mounting it rw, I have no idea, I probably broke something in there too).

eventually, I got it to boot up, and bring me part way through the config dialog. None of the modules seemed to be loading (like for the network cards, so had no network connectivity). While playing with the back/next buttons, while also modprobing in the terminal window, I eventually found the net drivers I needed. But the test brought up a small outline of a window, and just sat there... I could not close that window, or use next/previous or figure out how to re-start that config thingy... so I rebooted.. System came up to the Untangle screen, with the menu bar on the bottom, but no config dialog.. and of course the network modules still didnt load. So I opened up the 'ol xterm and loaded them... then played with apt/sources.lst to grab gcc and friends, as well as (what I think is) the kernel from untangle sources (in the land of apt-get)

So.. is there a way to re-run the initial config? or should I just guess that everything after the "Test Network Connection" is superfluous?
I think I still need to recompile the kernel sanders, but I think thats in the wiki somewhere. I really feel uncomfortable about how I've gotten this far, and wondering as upgrades come out, if something will break my strange installation in the future...

JoeShmo
10-15-2007, 08:38 PM
Ok, restore to factory defaults seemed to do it. I was afraid it would remove the modded kernel as well, but I guess it doesnt check that.