Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-17-2013, 12:31 AM
|
#16
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
@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.
|
|
|
11-17-2013, 08:05 AM
|
#17
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by NightSky
@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.
|
11-17-2013, 02:49 PM
|
#18
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
@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.
|
|
|
11-17-2013, 03:52 PM
|
#19
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by NightSky
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.
|
|
|
11-17-2013, 04:25 PM
|
#20
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
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 09:33 PM.
|
|
|
11-17-2013, 10:34 PM
|
#21
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
Can I remove all FS from kernel except for ext4?
|
|
|
11-17-2013, 10:48 PM
|
#22
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
11-18-2013, 04:31 AM
|
#23
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
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 04:37 AM.
Reason: Code tags
|
|
|
11-18-2013, 03:17 PM
|
#24
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
It is arch/x86/boot/bZimage. You really should begin using Tab completion to avoid this kind of errors.
|
|
|
11-18-2013, 03:53 PM
|
#25
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
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 05:55 PM.
Reason: Command Typo
|
|
|
11-18-2013, 06:08 PM
|
#26
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by NightSky
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.
|
11-18-2013, 07:27 PM
|
#27
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
@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.
|
|
|
11-18-2013, 08:06 PM
|
#28
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
11-19-2013, 01:03 AM
|
#29
|
Member
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909
Original Poster
Rep:
|
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.
|
|
|
11-19-2013, 09:17 AM
|
#30
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
All times are GMT -5. The time now is 10:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|