MOL Compiling (cont)

Lucien Knoepfli mol-general@lists.maconlinux.org
Wed, 04 Sep 2002 23:17:08 +0200


Arch & Cath wrote:

>Finally got everything compiled and made and copied vmlinux and System.map
>into /boot and vmlinux into linux Kernels folder in the Mac System folder.
>Selected my new system in the BootX control panel.  System starts to boot,
>however, stops and asks me to sign in root because of file problems.  When I
>try the usual "fsck /dev/sdc" I get "Superblock could not be read or does
>not describe a correct ext2 file system".   When I go back to the old kernel
>everything works.
>
>I am still a bit confused about how the kernel works in a Mac.   If it boots
>from the kernel in the Mac System folder, why do we need the one in /boot?
>
>All of the PPC kernel rebuild procedures I got off the web (Newbie & Linux
>PPC Kernel) say to start in /usr/src/linux which is what I have done.
>Belatedly I read the 2.4.xx READ ME and it says  "Do NOT use the
>/usr/src/linux area!"   Have I farkeled the library header files in
>/usr/src/linux?
>
This is how I do it:
I have a directory named after the kernel version 
("/usr/src/linux-2.4.19") and a link to this dir. ("/usr/src/linux -> 
/usr/src/linux-2.4.19").
So if any make or config script is looking for the kernel sources, 
there's always the link to the ones from the used kernel (if you update 
the link, after making a new kernel!).
Another tip from the author of cdrecord is, to rename the directories 
scsi, linux, asm in /usr/include/ (ex: /usr/include/asm.old) and make 
links to /usr/src/linux/include/asm/ (is normaly a link, generated by 
teh first make config or make xconfig etc.), 
/usr/src/linux/include/scsi/ and /usr/src/linux/include/linux/. I never 
had problems doing so, but I don't know if this is really save, the idea 
is that all scripts (make ...) will link against your used kernel.

hth luc

>
>It appears to me that I now have kernel files in /usr/src/linux, /root and
>the Mac System folder!  Which one is actually being used?   Should i start a
>build over in some other file system?  How do I restore the library headers?
>
You boot with the kernel in the mac system folder (by the way: only if 
you are using bootx on an oldworld mac, otherwise you don't need a 
kernel in you system folder).

>
>HELP!
>
>Arch
>
>_______________________________________________
>mol-general mailing list
>mol-general@lists.maconlinux.org
>http://lists.maconlinux.org/mailman/listinfo/mol-general
>
>  
>