Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
08-28-2006, 06:45 AM
(This post was last modified: 08-28-2006, 06:58 AM by ak_47_boy.)
^^sweet worked
where do i add thease cflags? at the end of
"make clean && make && make modules_install"
so like:
"make clean && make && make modules_install -funroll-loops -fomit-framepointers" ??????????
tell me where im suposto have spaces plz & do you sugest -o3 insted of -o2?
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
it goes into the Makefile of the kernel source, and yes i recomend -O2 over -O3 the command would be make && make modules_install install
If you search the Makefile you should see CFLAGS int there.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
08-29-2006, 10:52 AM
(This post was last modified: 08-29-2006, 12:36 PM by ak_47_boy.)
yesterday i got up to the "Installing The Kernal" Part... when i typed in "mount /boot" it said "munt: cant find /boot in .etc/fstab or /etc/mtab. So i looked up google and put in some install command and screwed the installation. Anyway i got slack installed again so how do i install that new kernal?
edit: ya im totaly stuck on installing the kernel... i dont get it
edit: should i use the "-mfpmath=sse" cflag, i got a pentium m
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
08-29-2006, 12:41 PM
(This post was last modified: 08-29-2006, 12:42 PM by cryotek.)
to install /boot in your /etc/fstab it'll normally appear like this:
/dev/sda1 /boot ext3 noauto 1 1
change sda1 to the partition of your /boot partition and ext3 to the type of filesystem your /boot partition uses.
If you go on servers you can probably check out #slackware on irc.efnet.net or irc.freenode.net
I wouldn't add too many optimizations to the kernel otherwise it could break.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
08-30-2006, 04:16 AM
(This post was last modified: 08-30-2006, 04:31 AM by ak_47_boy.)
Whole installation is screwed yet again
edit: in my fstab thereis no /boot, i think my /boot is just /
is this hat is srewing up?
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
No, it just means you didn't create a separate partiion for /boot, this can be insecure, but you don't NEED to have a separate partition. just type ls /boot if you get a directory lisitng with your current kernel then you're all set, if you get nothing then type in fdisk -l and look for the smallest partition that is either sda1/2 or 3 or hds1/2/3 then try mount /dev/sda1 /boot and look to see if yo can find your boot partition.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
Well im back and trying again. i had to take a long break because after wasteing so many hours i was about to freek out. Im reinstalling linux now.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
I screwed it yet again... here is what i did:
“cd /usr/src”
“wget kernel.orgip/pub/linux/kernel/v2.6/linux-2.6.14.2.tar.bz2”
“tar xjvf linux-2.6.17.13.tar.bz2”
“cd linux-2.6.17.13"
“make menuconfig”
set everything as best i could & save
“jmacs Makefile”
Add CFLAGS: “-O2 -march=pentium3 -msse2”
"make bzImage && make modules && make modules_install"
"mv arch/i386/boot/bzImage /boot/bzImage-2.6.17.13"
"mv System.map /boot/System.map-2.6.17.13"
"cd /boot"
"rm System.map"
"ln -s System.map-2.6.17.13 System.map"
“mv /usr/src/linux-2.6.17.13/vmlinux /boot"
"ln -s /boot/vmlinuz vmlinuz.old"
"rm /boot/vmlinuz"
"ln -s /boot/vmlinux vmlinuz"
"rm /boot/vmlinux"
at this point i restarted, it still booted the old kernel...
then i tryed:
"/sbin/lilo"
and it said:
fatal: open /boot/vmlinuz: no such file or directory
but i went and looked and it was there...
then i did this:
"cd /usr/src/linux-2.6.17.13"
"make"
"make install"
"/sbin/lilo"
restarted and it automaticly rebooted after it said "bios check sucessful"
i got a fresh install of slacware ready to try again, modify my list of what i did and il try it.
thanks
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
09-18-2006, 01:48 PM
(This post was last modified: 09-18-2006, 01:54 PM by cryotek.)
All you should have to do is this
after you configure your kernel from make menuconfig
run this
make && make modules_install install
This will compile your kernel, and modules (make alone does that) and install the kernel and modules, it'll install the kernel to /boot/vmlinuz-2.6.whatever kernel version you are compiling.
edit lilo.conf to match the name of the kernel and rub lilo to update the bootload (by the way grub > lilo)
"ln -s /boot/vmlinux vmlinuz"
what you're doing there is creating a symbolic link to /boot/vmlinux so by removing vmlinux vmlinuz points to nothing and therefore does not exist.
make && make modules_install install should be all you need
By the way /boot/bzImage-2.6.17.13 <- thats your actual kernel image.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
ok thanks im trying now. another question, how should i set up my kernel config? Right now i am leaveing the things i dont understand checked and unchecking things that i dont need like scsi, parralell port ect any pointers on setting this stuff?
Posts: 177
Threads: 18
Joined: Oct 2005
Reputation:
0
edit the /etc/lilo.conf
with the new entrys, so you ever can have more than one kernel image to boot.
Posts: 25
Threads: 3
Joined: Jul 2006
Reputation:
0
Nope same damn thing, it dont boot it just restarts. I even loaded the config file that i was currently useing so it cant be that. The lilo entry that points to vmlinuz.old doesent boot ether atleast it doesent auto restart... it is screwed. Time for gentoo...
Posts: 1,217
Threads: 42
Joined: Dec 2004
Reputation:
0
09-19-2006, 05:22 PM
(This post was last modified: 09-20-2006, 05:21 AM by cryotek.)
Heh, you're going to have an even tougher* time unless you read the documentation well.
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Posts: 177
Threads: 18
Joined: Oct 2005
Reputation:
0
ok "time for gentoo"
lol
if you dont use slackware correctly dont try different things.