LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-16-2013, 11:31 PM   #16
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50

@TobiSGD, Super, feeling more confident. Was going to add local version - Slack Does
Code:
# zcat/proc/config.gz > .config
Copy all currently running process configurations into new.config, ie. network & wireless settings, video, snd, hdd controller & programs like MPlayer, Ooo? But since I'm not changing the kernel version all things should continue working, yes?
I'm building into kernel all hardware drivers for this laptop. + File System so i don't need intrid. Already printed out: lspci, lsmod, xvinfo.

Eric or AlienBob, suggests 1000+ HZ Frequency for heavy Multi-Media use; do you know how this setting relates to CPU size? Is it the @ 3.06GHz for T9900 Duo Core vs @ 2.40GHz for 6600 Duo Core? A reference link would suffice if you know of one.

So guess I'm ready to jump from the first diving board. lol Let you know how it goes tomorrow.
 
Old 11-17-2013, 07:05 AM   #17
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Quote:
Originally Posted by NightSky View Post
@TobiSGD, Super, feeling more confident. Was going to add local version - Slack Does
Code:
# zcat/proc/config.gz > .config
Copy all currently running process configurations into new.config, ie. network & wireless settings, video, snd, hdd controller & programs like MPlayer, Ooo?
That command copies the configuration of the currently running kernel into a .config file. It has nothing at all to do with system settings like your network or video configurations.

Quote:
But since I'm not changing the kernel version all things should continue working, yes?
Even if you change the kernel version those things are usually not affected. Applications are usually coded against intermediary libraries, not against the kernel, so switching the kernel is safe, unless you switch to an earlier kernel which might lack a feature that is needed by your system.
Quote:
Eric or AlienBob, suggests 1000+ HZ Frequency for heavy Multi-Media use; do you know how this setting relates to CPU size? Is it the @ 3.06GHz for T9900 Duo Core vs @ 2.40GHz for 6600 Duo Core? A reference link would suffice if you know of one.
This setting determines the internal frequency with which the kernel runs. Lower frequencies are mostly used for servers (more general throughput, but bad reaction times), while higher settings are used for desktop systems (less general throughput, but fast reaction times). Setting this to a high frequency will make your system feel snappier. This setting is not related to your CPU's frequency.

Quote:
So guess I'm ready to jump from the first diving board. lol Let you know how it goes tomorrow.
Just keep in mind to add the local version suffix and always configure lilo in that way that you can use the original kernel to boot if your new kernel doesn't work as expected. This way you will be save and always have a booting system.
 
1 members found this post helpful.
Old 11-17-2013, 01:49 PM   #18
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
@TobiSGD, Ok, don't see a problem with editing Lilo to add the custom kernel.

Another Syntax question:
Is the key "-" = a hyphen surrounded by closed quotes? Followed by: whatever, hostname, custom.

I'm in menuconfig, Which is the correct option under General Settings >
() Cross-compiler tool prefix this seems to build an i386 sys I would think it be at least i686

(-smp) Local version - append to kernel release

i686-smp-custom is what I'd prefer to end up with.
 
Old 11-17-2013, 02:52 PM   #19
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Quote:
Originally Posted by NightSky View Post
Is the key "-" = a hyphen surrounded by closed quotes? Followed by: whatever, hostname, custom.
Sorry, I don't understand that question.

Quote:
I'm in menuconfig, Which is the correct option under General Settings >
() Cross-compiler tool prefix this seems to build an i386 sys I would think it be at least i686
You don't cross-compile, so don't change that. You can setup the target CPU under Processor type and features -> Processor family.
Quote:
(-smp) Local version - append to kernel release

i686-smp-custom is what I'd prefer to end up with.
The local version string you mention here does nothing but add that string to the kernel's name. It does not change the SMP settings, SMP is enabled/disabled under Processor type and features -> Symmetric multi-processing support.
If you want a i686 kernel (if you don't want to use the kernel on a machine with a different CPU it makes more sense to compile for your specific CPU) choose the Pentium Pro as CPU in the setting mentioned above.
 
Old 11-17-2013, 03:25 PM   #20
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
menuconfig options

Local Version Append? I just replace -smp with -hostname or whatever? Found the answer: replace -smp with hyphen string

Custom CPU settings:
The options don't appear very specific. Under Processor family? Expected a list of cpu to choose or sub menu when you select & hit enter?

Generic x86 support vs. Pentium Pro for a 2Core 9900 @3.067G? So do you keep Generic x86 support?

Why so many file system options. I'm using ext4 so I will compile this into my kerenel. Why would I keep any of the others even as modules, do I need to?

Last edited by NightSky; 11-17-2013 at 08:33 PM.
 
Old 11-17-2013, 09:34 PM   #21
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Can I remove all FS from kernel except for ext4?
 
Old 11-17-2013, 09:48 PM   #22
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
The physical filesystems,yes, if you don't use any other filesystem. Keep in mind that without having FAT32 or NTFS support available you will not be able to read storage devices (like USB sticks) that were formatted on Windows systems. You will also need ISO9660 to read CDs and possibly UDF to read DVDs.

There are also certain virtual filesystems, like devtmpfs, tmpfs that you likely do not want to disable if you want to keep a functioning system.
 
1 members found this post helpful.
Old 11-18-2013, 03:31 AM   #23
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Compile failed

@TobiSGD Compile seems to have failed. Any clue what happened? Thanks

Compile process ended. From with /usr/src/linux:
Code:
 #cp arch/i386/boot/bzImage /boot/vmlinuz-generic-smp-$(uname -r)-<LocalVersion> =
       #cp arch/i386/boot/bzImage /boot/vmlinuz-generic-smp-2.6.37.6-rider
       :cp can not stat 'arch/i386/boot/bzimage' : No such file or directory
Here is a copy of /usr/src/linux
Code:
bash-4.1# ls -a
.
..
..tmp_kallsyms1.o.cmd
..tmp_kallsyms2.o.cmd
..tmp_vmlinux1.cmd
..tmp_vmlinux2.cmd
.config
.config.old
.gitignore
.mailmap
.missing-syscalls.d
.tmp_System.map
.tmp_kallsyms1.S
.tmp_kallsyms1.o
.tmp_kallsyms2.S
.tmp_kallsyms2.o
.tmp_versions
.tmp_vmlinux1
.tmp_vmlinux2
.version
.vmlinux.cmd
.vmlinux.o.cmd
001.linux.4da9484bdece39ab0b098fa711e095e3e9fc8684.resume-from-hibernate.diff.gz
COPYING
CREDITS
Documentation
Kbuild
Kconfig
MAINTAINERS
Makefile
Module.symvers
README
REPORTING-BUGS
System.map
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
modules.builtin
modules.order
net
samples
scripts
security
sound
tools
usr
virt
vmlinux
vmlinux.o

Last edited by NightSky; 11-18-2013 at 03:37 AM. Reason: Code tags
 
Old 11-18-2013, 02:17 PM   #24
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
It is arch/x86/boot/bZimage. You really should begin using Tab completion to avoid this kind of errors.
 
Old 11-18-2013, 02:53 PM   #25
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Found the error - typo

@TobiSGD ... thanks, The commands I used are the way its written in step six of the Howto I'm trying to use:
http://blog.tpa.me.uk/slackware-kernel-compile-guide/
Well its compiling again. This time i forgot to remove RAID Support. Laptop has option for it but my neighbor won't ever use it. This time used a couple of Eric's Wiki steps:
Code:
 
/usr/src:#
zcat/proc/config.gz > .config
cd /usr/src/linux
make  oldconfig
make menuconfig
Changed local version
tried to compile in CPU settings?
make -j5
so i'm waiting...

It was bzImage not bzimage or bZimage
arch/i386 for 32bit.. didn't know how or where to change it to i686
Code:
/usr/src/linux:# make modules_install
/usr/src/linux:# cp arch/i386/boot/bzImage /boot/vmlinuz-generic-smp-2.6.37.6-rider
/usr/src/linux:# cp System.map /boot/System.map-generic-smp-$(uname -r)-<LocalVersion>

/usr/src/linux:# cp .config /boot/config-generic-smp-$(uname -r)-<LocalVersion>
Going to update symlinks in /boot ... wow - I'm still alive! Thanks to you TobiSGD brb

Last edited by NightSky; 11-24-2013 at 04:55 PM. Reason: Command Typo
 
Old 11-18-2013, 05:08 PM   #26
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Quote:
Originally Posted by NightSky View Post
It was bzImage not bzimage or bZimage
Ooops, sorry about that.
Quote:
arch/i386 for 32bit.. didn't know how or where to change it to i686
The directory name will always stay the same and it should really be x86, not i386, but maybe that changed when i386 support was dropped in kernel 3.8. For building a i686 optimized kernel you have to change the CPU type in make menuconfig to "Pentium Pro", as I mentioned earlier.
 
1 members found this post helpful.
Old 11-18-2013, 06:27 PM   #27
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
@TobiSGD After countless hours i become dyslexic & otherwise stupefied. Lilo is screaming at me.
Code:
Warning: LBA32 addressing assumed
Fatal: open /boot/vmlinuz: No such file or directory
Followed the instructions from SysAdmin Tut edit boot
and lilo. Should have followed Eric's lilo instructions b/c per sys adm what I did in boot replaced huge.smp in lilo w/ new vmlinuz. I would've preferred to add it by hand. vmlinuz is in /boot.
I updatedb and shut down. Boot up again and I don't know what booted because it went so fast. But boot it did & everything's working thanks to you. Sooo hungry.
Code:
#uname -a 
Linux niterider 2.6.37.6 #2 Fri May 17 22:52:58 CDT i686 Core(TM)2 Duo CPU @3.06GHz GenuineIntel GNU/Linux 
# ls /usr/src/linux-2.6.37.6/arch/i386/boot
bzImage
Windows trick in 'boot file manager' right click vmlinuz link properties reveals link is broken. Tobi, get me out of here.
 
Old 11-18-2013, 07:06 PM   #28
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Lilo has recognized an error (the broken symlink) and therefore refused to install the new configuration. This means that you still boot to the standard kernel.

Remove the broken symlink and replace it with a symlink to the distro installed kernel you use, then manually copy the new kernel into /boot and manually add it to /etc/lilo.conf.
 
1 members found this post helpful.
Old 11-19-2013, 12:03 AM   #29
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Thank you, TobiSGD I was working my way back with the links. Removed all three in /boot then re-linked them using your Tab
I had link System.map to wrong kernel. Then I linked it using lower case 's' instead of 'System.map... Found this you might like: http://javarevisited.blogspot.com/20...nix-linux.html

Lilo is still crying about LBA32 - but booting with new & old options. I don't have windows on the laptop that is working better than my PC right now. uname -r displays the I don't know how custom kernel now. lol Wifi, Music, Video, Ooo, James Cagney need lip syncing.lol A thousand blessing to you TobiSGD.
 
Old 11-19-2013, 08:17 AM   #30
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
the LBA32 thing is just a warning, if you add the option "lba32" to your lilo.config this will stop (I don't care enough to do that).

Happy that you solved your issues, have fun.
 
1 members found this post helpful.
  


Reply

Tags
cpu, file system, kernel 2.6.37.6, menuconfig, rebuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel config change recompile? Sherpa Gentoo 3 12-31-2009 12:03 PM
What might i also need to recompile from changing major options in the kernel config sanitynotvanity Linux - General 8 08-26-2009 10:11 AM
Source Directory for Target Kernel halfpower Debian 1 05-22-2006 10:48 AM
When recompile one kernel, it's necessary rename config for oldconfig??? xcore_on Linux - Newbie 1 05-20-2006 04:10 AM
Trying to recompile kernel but config's not working. SonicGT Linux - Newbie 11 08-25-2005 08:01 PM


All times are GMT -5. The time now is 09:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration