Operating Systems > Linux and UNIX
GRUB/mount help
beltorak0:
well Calum #81, you inspired me to write a kernel-compile howto. For some reason I can't see void main's (can you email it to me void?), so i wrote my own for you. It is very terse, but I think you should have no problems with it. Especially if you meet my assumptions. I might update it to HTML later, but right now it's a straight txt file. Let me know if it does you some good.
Projects Index
feedback (readability (sucks, i know), accuracy, that sort of thing) appreciated.
Calum:
i will indeed try your tutorial and let you know how it goes.
do you happen to know what libraries and utilities have to be installed in order to recompile a kernel? I am planning to use the kernel sources from red hat (they are unmodified, yes?) but i want to do the recompile using basiclinux (a tiny linux based on busybox with some slack 7.1 stuff.
i just wondered if there's a list somewhere of requirements or dependencies i must have tyo recompile the kernel. for example, there's no C compiler in basiclinux, so i will install one, and so on.
beltorak0:
well, i did the kernel compile using knoppix (but I cheated -- sorta). I am fairly certain that a busybox base would be woefully insufficient for the task of a compile. I would suggest using your current red-hat installation. Why, out of curiousity, aren't you planning to use RH as your compile environmet? basic linux might be ok tho... i don't know what is on it. Here would be your main problem:
quote:
There is only 750kb free on the BasicLinux ramdisk.
--- End quote ---
Also, since it runs off a 4mb ramdisk, you would not be able to get the libc library on to it (it's a little over 5 megs itself, and gcc needs it). If you have the hardrive space, you can compile it there (there's nothing stating that the compile dir has to be /usr/src, that's just convention). If your only problem is that RH will not boot, you can try this:
--- Code: ---
--- End code ---
That's what I did for knoppix to compile my kernel 'cause I forgot to ensure that my kernel had reiserfs compiled in. doh! The pivot_root command does what you suspect -- it swaps what is mounted as the root fs. "man pivot_root" for more info. It must be allowed by the kernel (I don't know what allows it), and you must have access to the program.
Red hat sources are most likely not un-modified -- however, as long as you can locate your current config file, you should have no problems changing only the things that you need to: UFS support for instance. If, on the otherhand, you have to start the config from scratch, you could be in a world of hurt if the RH team didn't check all thier dependancies (like the Mandrake team didn't). For instance, when trying to compile the ALSA drivers into the M/9 kernel, it tried to compile for the arm archetecture... the compiler had a few fits about that one, and I had a few choice words to say... but i digress.
Oh, I just installed ethereal (very cool indeed), and I found out why I can't see anything on void main's site. The transaction goes something like this:
me > void: SYN
void > me: SYN ACK
me > void: ACK
me > void: http: GET
void > me: RST
void > me: RST
Why is he sending back RSTs after I request the http??? Am I missing something?
Calum:
hello, i have installed basiclinux on my hard drive, and it has a lot of extra utils and so on that you don't get in the ramdisk version. also i plan to install egcs and xwindows on it. i have a 128Mb partition to put it all in.
the reason i want to do this in basiclinux rather than redhat is to learn more about how it all works. if i need certain tools, i want to install them myself to get a personal feel for it rather than just compile the kernel parrot fashion on a system with everything preinstalled.
Navigation
[0] Message Index
[*] Previous page
Go to full version