As a side note, if you want to get really technical, you don't even need to rebuild the modules as far as I know, since you're only changing one option which doesn't affect any modules (as far as I know --but I could be wrong). You could probably get away with a simple
Code:
# cp /usr/src/linux-2.6.24.5 /usr/src/linux-2.6.24.5-custom Code:
# make bzImage However, if you want to be sure, you should just build the whole thing, as explained previously. Quote:
Code:
# cp -a /usr/src/linux-2.6.24.5 /usr/src/linux-2.6.24.5-custom |
I'm confused, I thought that 4gb of memory was not possible with a 32bit operating system, only with a 64bit OS?
|
Go 64 bit
I just skimmed this while looking for something else and thought I should
mention it in case no one else did: have you considered going 64 bit? While Slackware itself doesn't yet, its clones do: I'm using SlamD64 (.com) very happily; it's also the only one that has 32 bit compatibility libraries. In your particular case, going 64 bit means you'll have direct (without PAE aka paging) access to all the memory in your system no matter how big you get it (at least for the next dozen years or so, LOL!). Other than the occasional non-FOSS package that's 32 bit only like Flash or most games, the transition has been very smooth for me and my system runs noticeably faster, particularly in the I/O department. YMMV, of course. Mike |
This is not a piece of cake!
Hello back!
Well, I was going to re-build my kernel following reikyv steps. Then, when I've got home, I entered the forum and saw Shadowsnipes reply. Then, I stopped. Now, I am getting a bit confused and I am not sure what to do. For instance, I don't know if I have to rebuild my kernel or if it is preferable to download a new kernel and update the one I have installed. That's why I will really appreciate if someone could write all the needed steps in order (as Reikyv did) to rebuild my Kernel enabling 64Gb support without losing what I have installed and being able to boot my O.S. Your replies and suggestions are very important to me and I really appreciate that because you are the ones that know a lot about Slackware but if I can see all the instructions together, it would be much clarifying to me. Maybe you can modify and or optimize Reikyv set of instructions. At the same time and following your advices, I am starting to read Slackware Linux Essentials, Slackware Linux Basics and also The article from http://slackwiki.org/Kerne26Compilation. They are great sources of information tools. But, and I don't want to bother with this, a refined list of needed steps will be very useful not just for me (it course it will) but for many other Slackware users who are starting to understand how Slacware and Linux work. Sorry for such a long Thread. It wasn't what I meant when starting it. Believe me. I thought it was easier but now I wont stop until I reach my goal :-) Thank you friends! :cool: Glore2002.- |
As I said previously T3sliders directions (1st set) are mostly fine. Basically I am just recopying most of that.
As root Code:
cp -a /usr/src/linux-2.6.24.5 /usr/src/linux-2.6.24.5-custom Enter -custom "Processor Type and Features" -> "High Memory Support" and select 64GB. Exit and Save Code:
make Quote:
After everything is all good you can optionally Code:
cd /usr/src/linux-2.6.24.5-custom |
The thing is, it IS pretty easy and I think my reply is fairly detailed. If you omit a few steps, as shadowsnipes explained, it will also work. We really can't spell it out any clearer. Following my steps makes it impossible to destroy your current kernel and modules, so you have nothing to lose. If you follow my steps but omit a few steps, as explained by shadowsnipes, you still have nothing to lose since your original kernel sources and modules will still be intact. If you follow my second, shorter set of instructions without building the modules, you still have nothing to lose -- though I can't 100% guarantee that it'll work.
Just try it out. If it doesn't work, reboot back into your old kernel and try again. |
Just be sure to tell us what you actually did especially if you run into problems.
|
Hi,
I would like to add 'Linux Kernel in a Nutshell' as a must read. This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links! |
Quote:
Well, I followed these steps one by one. The mkinitrd I've got after using the script you told me and the one I used was: mkinitrd -c -k 2.6.24.5-smp -f ext3 -r /dev/sda3 -m mbcache:jbd:ext3 -o /boot/initrd.gz (by the way, should it be -smp or -custom?) When rebooting, I chose option Custom at the Slackware menu. The system started to boot and then it stopped showing the following messages: ---------------------------------------------------------------- No kernel modules found for linux 2.6.24.5-custom mount: mounting /dev/sda3 on /mnt failed: No such device ERROR: No sbin/init found on rootdev (or not mounted). Trouble ahead. You can try to fix it. Type 'exit' when things are done /bin/sh: can't access tty; job control turned off. --------------------------------------------------------------- Here it is part of my lilo.conf just to verify that I've added things correctly: --------------------------------------------- # Windows bootable partition config begins other = /dev/sda1 label = Windows table = /dev/sda # Windows bootable partition config ends # Custom bootable partition config begins image = /boot/vmlinuz-2.6.24.5-custom initrd = /boot/initrd.gz root = /dev/sda3 label = Custom read-only # Partitions should be mounted read-only for checking # Custom bootable partition config ends # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/sda3 label = Linux read-only # Linux bootable partition config ends ---------------------------------------------- Please, let me know if you need any other kind of information to guide me. Thanks my friends! |
Quote:
Code:
mkinitrd -c -k 2.6.24.5-custom -f ext3 -r /dev/sda3 -m mbcache:jbd:ext3 -o /boot/initrd.gz Code:
mkinitrd -c -k 2.6.24.5custom -f ext3 -r /dev/sda3 -m mbcache:jbd:ext3 -o /boot/initrd.gz Looking through the default Slackware configuration, it does indeed look like the dash (-) is needed in LOCALVERSION to get the ideal syntax. You may be able to omit it as described above though. If not, you could recompile with the LOCALVERSION set to "-custom". |
In my directions I had said to use -custom, so the '-' would be included. So, T3slider's first mkinitrd command should work.
I know I had mentioned creating/editing /etc/rc.d/rc.modules-2.6.24.5-custom earlier, but I forgot to mention it in my last set of directions. Thanks for mentioning this T3slider. |
Quote:
I've just tried with (dash included): mkinitrd -c -k 2.6.24.5-custom -f ext3 -r /dev/sda3 -m mbcache:jbd:ext3 -o /boot/initrd.gz and then copying: cp /etc/rc.d/rc.modules-2.6.24.5-smp /etc/rc.d/rc.modules-2.6.24.5-custom without recompiling. Just wrote the two set of instructions above and restart the computer. The same error messages appear when rebooting. So, I am sure I am doing something wrong. Thank you! |
Hi Glore2002,
Actually it is really not that difficult to re-compile your kernel. At least I've tried many times these two days, from the slackware kernel to those vanilla kernel (just pay attention to those instruction you received here, and Alien's wiki page, the steps are actually not much different... and also read those documentations come with your slackware distribution, I am pretty shame that this is my first time that I really study all those documentations, lol). And I just re-built my laptop to have fully encrypted file system now (although it takes me more than 12 hours to dump my harddisk with /dev/random file ;-p) Anyway it is awesome now. I pretty enjoying breaking thing. Good luck. |
Quote:
Also, make sure rc.modules-2.6.24.5-custom is executable. Code:
chmod +x /etc/rc.d/rc.modules-2.6.24.5-custom Based on your errors, it is as if either the initrd is not working or you need more/different modules in it. You are using ext3 for your root file system, right? If not, that is your problem. Also, verify that Code:
/lib/modules/2.6.24.5-custom/kernel/fs/ext3/ext3.ko Other than that I don't know, as of right now, what needs to be done. Based upon the commands you have run it should be working (assuming your root fs is ext3). |
Almost, almost. We are almost getting it!
Well, after checking what Shadowsnipes suggested, I reboot and the same ERROR message appeared. Then (as he also said), I re-run lilo and restart. This was a big change. The booting process didn't show up the message. I was expecting X to start (with a smile on my face)...But it stopped don't letting me press any key. So, I've restarted the computer and change /etc/inittab to boot into command prompt (3) instead of directly into X (4). Then I restarted.
When the system booted up and at the command prompt $ I typed startx and the following error message showed up (I will write down the most important lines): ------------------------------------------------------------- : : Using config file: "/var/log/Xorg.0.log" Using config file: "/etc/X11/xorg.conf" Module "ramdac" already built in FATAL: Module nvidia not found Nvidia(0): Failed to load Nvidia kernel module! Nvidia(0) ***Aborting*** Scree(s) found but none have a usable configuration FATAL server error: no screens found giving up : : ------------------------------------------------------------- I think we are almost there friends! Just one more help, pleeeeaaaasssseeee :) Thanks!!! |
All times are GMT -5. The time now is 08:48 AM. |