LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-02-2008, 02:44 AM   #571
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Rep: Reputation: 1

If anyone here plays Nethack, the newere kernels use utf_8 by default, which is going to screw up Nethack.

You will need to disable the utf_8 with an append in lilo.conf to get the old behavior.

Just a thought, since I spent the last 1.5 weeks wrestling with it.
 
Old 07-24-2008, 08:15 PM   #572
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Config settings for hdc vs sr0

What settings are chosen when configuring custom kernel (during make menuconfig or make xconfig) so that sata cd/dvd shows up as /dev/hdc instead of /dev/sr0?

When using generic-smp kernel, dvd is hdc.
When using what should be reasonable choices it shows up as sr0.

I recently build 2.6.25.11 and tried to copy as much from generic-smp config file, but with built in file systems and dvd showed up as hdc. I'll review config files and post what appear to be differences in near future, but from memory I didn't think the settings made sense for the result.
 
Old 07-27-2008, 02:45 PM   #573
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Below is the options I chose in make xconfig to get sata dvd show up as /dev/hdc on gigabyte GA-MA78GM-S2H. Also shown is which settings were different in the kernel that has the dvd at /dev/sr0.

Only big difference I can see is the ATI IXP under ATA. I think this might make sense if the SATA dvd is in ide mode in bios. Would any of the other differences cause this effect?

Code:
Bus options
 - pci express off
-Support for pci hotplug
--ACPI and SHPC as M
Device Drivers
-ATA
--Enhanced IDE... Y
---Include ATA/IDE-2 Disk  Y
---Include IDE  CDROM      M
---Include ACPI support Y, (/dev/sr0 version has this off)
---legacy proc/ide   Y
---generic/default chipset  Y, (/dev/sr0 version has this off)
---Probe ide in bus order Y, (/dev/sr0 version has this off)
---Generic PCI IDE chipset support  Y, (/dev/sr0 version has this off)
---RZ1000 fix  Y, (/dev/sr0 version has this off)
---AMD NVIDIA  Y
---ATI IXP   Y, (/dev/sr0 version has this off)
---JMicron Y
---Intel PIIXn  Y
-SCSI
--RAID   M, (/dev/sr0 version has this off)
--SCSI Disk support Y
--SCSI CDROM   M
--SCSI generic  M
-SATA
--AHCI  Y
--Intel ESB, ICH... Y
--NVIDIA   Y
--ACPI Firmware  Y (/dev/sr0 version has this off)
--AMD/NVIDIA  Y
--ATI PATA   Y
--JMicron PATA
-i2c
---I2C Device Interface M
--I2C algorythms
---M for both
--I2C hardware
---Intel PIIX4  M

RESULT SATA DVD shows up as /dev/hdc

lsmod gives: (less snd and usb stuff)
Code:
Module                  Size  Used by
ide_cd_mod             28292  0
i2c_piix4               7436  0
shpchp                 25492  0
pci_hotplug            11148  1 shpchp
cdrom                  29468  1 ide_cd_mod
i2c_core               16788  1 i2c_piix4
sg                     19248  0
from dmesg (not necessarily in right order)
Code:
hdc: LITE-ON DVDRW LH-20A1L, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
PCI: Using configuration type 1
ATIIXP: IDE controller (0x1002:0x439c rev 0x00) at  PCI slot 0000:00:14.1
ATIIXP: not 100% native mode: will probe irqs later
Driver 'sd' needs updating - please use bus_type methods
For /dev/sr0 dmesg version (also not necessarily in right order)
Code:
scsi4 : pata_atiixp
scsi5 : pata_atiixp
ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xfa00 irq 14
ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xfa08 irq 15
ata6.00: ATAPI: LITE-ON DVDRW LH-20A1L, BL05, max UDMA/100
ata6.00: configured for UDMA/100
Driver 'sr' needs updating - please use bus_type methods
sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
sr 5:0:0:0: Attached scsi CD-ROM sr0
 
Old 07-31-2008, 09:52 AM   #574
bashyow
Member
 
Registered: Jun 2008
Location: uk
Distribution: Slackware 12.1, AND IM LOVIN EVERY MINUTE OF IT, JERRY! :D
Posts: 122

Rep: Reputation: 15
Hello,

Im just starting to build my first kernel, and Ive downloaded the latest stable version, uncompressed it, and moved into the folder.

basically what I want to do, is simply use the running kernel .config (2.6.24.5smp), to build the latest source (2.6.25.13).

looking at a guide http://wiki.droplinegnome.org/index....Slackware_12.0, I issued this command

Code:
zcat /proc/config.gz > .config
to copy the current kernels .config into the source dir of the new kernel.

however, when i run 'make oldconfig', I get these errors:

Code:
OSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
.config:33:warning: trying to assign nonexistent symbol ARCH_SUPPORTS_OPROFILE
.config:70:warning: trying to assign nonexistent symbol FAIR_USER_SCHED
.config:71:warning: trying to assign nonexistent symbol FAIR_CGROUP_SCHED
.config:199:warning: trying to assign nonexistent symbol PREEMPT_BKL
.config:263:warning: trying to assign nonexistent symbol SUSPEND_SMP_POSSIBLE
.config:265:warning: trying to assign nonexistent symbol HIBERNATION_SMP_POSSIBLE
.config:522:warning: trying to assign nonexistent symbol NF_CONNTRACK_ENABLED
.config:585:warning: trying to assign nonexistent symbol IP_NF_MATCH_IPRANGE
.config:586:warning: trying to assign nonexistent symbol IP_NF_MATCH_TOS
.config:591:warning: trying to assign nonexistent symbol IP_NF_MATCH_OWNER
.config:602:warning: trying to assign nonexistent symbol IP_NF_TARGET_SAME
.config:613:warning: trying to assign nonexistent symbol IP_NF_TARGET_TOS
.config:632:warning: trying to assign nonexistent symbol IP6_NF_MATCH_OWNER
.config:766:warning: trying to assign nonexistent symbol NET_CLS_POLICE
.config:904:warning: trying to assign nonexistent symbol MAC80211_RCSIMPLE
.config:996:warning: trying to assign nonexistent symbol MTD_PNC2000
.config:1139:warning: trying to assign nonexistent symbol BLK_DEV_RAM_BLOCKSIZE
.config:1191:warning: trying to assign nonexistent symbol IDEPCI_SHARE_IRQ
.config:1219:warning: trying to assign nonexistent symbol PDC202XX_BURST
.config:1356:warning: trying to assign nonexistent symbol SCSI_PSI240I
.config:1362:warning: trying to assign nonexistent symbol SCSI_SEAGATE
.config:1550:warning: symbol value 'm' invalid for FIXED_PHY
.config:1551:warning: trying to assign nonexistent symbol FIXED_MII_10_FDX
.config:1552:warning: trying to assign nonexistent symbol FIXED_MII_100_FDX
.config:1553:warning: trying to assign nonexistent symbol FIXED_MII_1000_FDX
.config:1554:warning: trying to assign nonexistent symbol FIXED_MII_AMNT
.config:1740:warning: trying to assign nonexistent symbol IWLWIFI
.config:1741:warning: trying to assign nonexistent symbol IWLWIFI_DEBUG
.config:1742:warning: trying to assign nonexistent symbol IWLWIFI_SENSITIVITY
.config:1743:warning: trying to assign nonexistent symbol IWLWIFI_SPECTRUM_MEASUREMENT
.config:1744:warning: trying to assign nonexistent symbol IWLWIFI_QOS
.config:1767:warning: trying to assign nonexistent symbol B43_DMA
.config:1768:warning: trying to assign nonexistent symbol B43_PIO
.config:1769:warning: trying to assign nonexistent symbol B43_DMA_AND_PIO_MODE
.config:1770:warning: trying to assign nonexistent symbol B43_DMA_MODE
.config:1771:warning: trying to assign nonexistent symbol B43_PIO_MODE
.config:1928:warning: trying to assign nonexistent symbol SHAPER
.config:2203:warning: trying to assign nonexistent symbol MOXA_SMARTIO_NEW
.config:2338:warning: trying to assign nonexistent symbol SENSORS_DS1337
.config:2339:warning: trying to assign nonexistent symbol SENSORS_DS1374
.config:2628:warning: trying to assign nonexistent symbol VIDEO_PVRUSB2_29XXX
.config:2629:warning: trying to assign nonexistent symbol VIDEO_PVRUSB2_24XXX
.config:3227:warning: trying to assign nonexistent symbol USB_EHCI_SPLIT_ISO
.config:3740:warning: trying to assign nonexistent symbol INSTRUMENTATION
.config:3783:warning: trying to assign nonexistent symbol CRYPTO_ABLKCIPHER
*
* Linux Kernel Configuration
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Local version - append to kernel release (LOCALVERSION) [-smp] -smp
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
BSD Process Accounting (BSD_PROCESS_ACCT) [Y/n/?] y
  BSD Process Accounting version 3 file format (BSD_PROCESS_ACCT_V3) [N/y/?] n
Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS) [N/y/?] n
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [Y/n/m/?] y
  Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [15] 15
Control Group support (CGROUPS) [N/y/?] n
Group CPU scheduler (GROUP_SCHED) [Y/n/?]
I thought that this would simply build a new kernel with the old kernels options and there wouldnt be a problem.

could anyone tell me where Im going wrong on this?

Last edited by bashyow; 07-31-2008 at 09:54 AM.
 
Old 07-31-2008, 10:22 AM   #575
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by bashyow View Post
Hello,

Im just starting to build my first kernel, and Ive downloaded the latest stable version, uncompressed it, and moved into the folder.

basically what I want to do, is simply use the running kernel .config (2.6.24.5smp), to build the latest source (2.6.25.13).

looking at a guide http://wiki.droplinegnome.org/index....Slackware_12.0, I issued this command

Code:
zcat /proc/config.gz > .config
to copy the current kernels .config into the source dir of the new kernel.

however, when i run 'make oldconfig', I get these errors:

Code:
OSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
.config:33:warning: trying to assign nonexistent symbol ARCH_SUPPORTS_OPROFILE
.config:70:warning: trying to assign nonexistent symbol FAIR_USER_SCHED
.config:71:warning: trying to assign nonexistent symbol FAIR_CGROUP_SCHED
.config:199:warning: trying to assign nonexistent symbol PREEMPT_BKL
.config:263:warning: trying to assign nonexistent symbol SUSPEND_SMP_POSSIBLE
.config:265:warning: trying to assign nonexistent symbol HIBERNATION_SMP_POSSIBLE
.config:522:warning: trying to assign nonexistent symbol NF_CONNTRACK_ENABLED
.config:585:warning: trying to assign nonexistent symbol IP_NF_MATCH_IPRANGE
.config:586:warning: trying to assign nonexistent symbol IP_NF_MATCH_TOS
.config:591:warning: trying to assign nonexistent symbol IP_NF_MATCH_OWNER
.config:602:warning: trying to assign nonexistent symbol IP_NF_TARGET_SAME
.config:613:warning: trying to assign nonexistent symbol IP_NF_TARGET_TOS
.config:632:warning: trying to assign nonexistent symbol IP6_NF_MATCH_OWNER
.config:766:warning: trying to assign nonexistent symbol NET_CLS_POLICE
.config:904:warning: trying to assign nonexistent symbol MAC80211_RCSIMPLE
.config:996:warning: trying to assign nonexistent symbol MTD_PNC2000
.config:1139:warning: trying to assign nonexistent symbol BLK_DEV_RAM_BLOCKSIZE
.config:1191:warning: trying to assign nonexistent symbol IDEPCI_SHARE_IRQ
.config:1219:warning: trying to assign nonexistent symbol PDC202XX_BURST
.config:1356:warning: trying to assign nonexistent symbol SCSI_PSI240I
.config:1362:warning: trying to assign nonexistent symbol SCSI_SEAGATE
.config:1550:warning: symbol value 'm' invalid for FIXED_PHY
.config:1551:warning: trying to assign nonexistent symbol FIXED_MII_10_FDX
.config:1552:warning: trying to assign nonexistent symbol FIXED_MII_100_FDX
.config:1553:warning: trying to assign nonexistent symbol FIXED_MII_1000_FDX
.config:1554:warning: trying to assign nonexistent symbol FIXED_MII_AMNT
.config:1740:warning: trying to assign nonexistent symbol IWLWIFI
.config:1741:warning: trying to assign nonexistent symbol IWLWIFI_DEBUG
.config:1742:warning: trying to assign nonexistent symbol IWLWIFI_SENSITIVITY
.config:1743:warning: trying to assign nonexistent symbol IWLWIFI_SPECTRUM_MEASUREMENT
.config:1744:warning: trying to assign nonexistent symbol IWLWIFI_QOS
.config:1767:warning: trying to assign nonexistent symbol B43_DMA
.config:1768:warning: trying to assign nonexistent symbol B43_PIO
.config:1769:warning: trying to assign nonexistent symbol B43_DMA_AND_PIO_MODE
.config:1770:warning: trying to assign nonexistent symbol B43_DMA_MODE
.config:1771:warning: trying to assign nonexistent symbol B43_PIO_MODE
.config:1928:warning: trying to assign nonexistent symbol SHAPER
.config:2203:warning: trying to assign nonexistent symbol MOXA_SMARTIO_NEW
.config:2338:warning: trying to assign nonexistent symbol SENSORS_DS1337
.config:2339:warning: trying to assign nonexistent symbol SENSORS_DS1374
.config:2628:warning: trying to assign nonexistent symbol VIDEO_PVRUSB2_29XXX
.config:2629:warning: trying to assign nonexistent symbol VIDEO_PVRUSB2_24XXX
.config:3227:warning: trying to assign nonexistent symbol USB_EHCI_SPLIT_ISO
.config:3740:warning: trying to assign nonexistent symbol INSTRUMENTATION
.config:3783:warning: trying to assign nonexistent symbol CRYPTO_ABLKCIPHER
*
* Linux Kernel Configuration
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Local version - append to kernel release (LOCALVERSION) [-smp] -smp
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
BSD Process Accounting (BSD_PROCESS_ACCT) [Y/n/?] y
  BSD Process Accounting version 3 file format (BSD_PROCESS_ACCT_V3) [N/y/?] n
Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS) [N/y/?] n
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [Y/n/m/?] y
  Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [15] 15
Control Group support (CGROUPS) [N/y/?] n
Group CPU scheduler (GROUP_SCHED) [Y/n/?]
I thought that this would simply build a new kernel with the old kernels options and there wouldnt be a problem.

could anyone tell me where Im going wrong on this?
They're not errors, but new options that have been added to the kernel since 2.6.24. You will have to answer each with yes, no, or module.

Cheers, Leon.
 
Old 07-31-2008, 10:31 AM   #576
bashyow
Member
 
Registered: Jun 2008
Location: uk
Distribution: Slackware 12.1, AND IM LOVIN EVERY MINUTE OF IT, JERRY! :D
Posts: 122

Rep: Reputation: 15
oh I see, thanks Leon
 
Old 10-02-2008, 06:08 AM   #577
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
This is not a w@rez forum, now quit doing that. You know there is such a thing as PM.
 
Old 10-02-2008, 10:46 AM   #578
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
jayacharan & Linuxmaster001 - do not ask for commercially available books to be provided to you by our members. If you want the book, go to a book seller (either on or offline) and order it. I have deleted your posts.
 
Old 01-13-2009, 01:36 AM   #579
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
My config is called .configmy How can i be sure make oldconfig will pick it up? I did this by make menuconfig- then saving alternate and then copying alternate over .config (default). Then i do make. I know this is not correct.
 
Old 03-23-2009, 05:45 PM   #580
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
I would like to post in response only to encourage those who want to make a good kernel to go online and find a spec sheet for their chipset. I found one for mine (I own laptops: one is an Intel ICH4, one is an Intel ICH7) and that helped me trim out of the kernel that which I do not have, and also to add things that I do have.

As for kernel size, the majority of it seems to be caused by a generic CPU choice and then Generic X86 optimizations. I would encourage those who are to build a kernel to pick their actual CPU, disable Generic X86 optimizations, and to disable SMP/SMT if they do not have a dual processor/core machine. This alone, along with Optimize for Size, seems to cut the kernel image and most module sizes almost in half.

The Generic and Huge kernel builds in Slackware are excellent at what they do (i.e. in booting almost any machine), but they are not specific to any machine. While I would encourage their use as a starting point for optimizing, and also as a FailSafe type image for emergency use, it is easy to make a much faster, more trim kernel for your machine simply by making a few minor tweaks.

Slackware rocks!
 
Old 03-25-2009, 05:23 PM   #581
jjuhl
LQ Newbie
 
Registered: Mar 2009
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Hi,
I wrote a Linux 2.6 kernel compile guide of my own a while back - perhaps some of the people reading this thread would like to read it :-)
 
Old 04-11-2009, 06:31 AM   #582
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
problem with generate-modprobe...and more.....

Hi to all,i want to use ext4 on my slack machine, and i must use kernel 2.6.29.1 . So i tried to install to my machine but....kernel panic appeared ,again.....gggrrrrr.

Explain: i follow the guide , which is in the first page but when i tried to use generate-modoprobe
command not found

Nevertheless,when my machine boot to new kernel an error occurred which has to do with file system.

My partitions is:
Quote:
cfdisk (util-linux-ng 2.14.1)

Disk Drive: /dev/hda
Size: 80026361856 bytes, 80.0 GB
Heads: 16 Sectors per Track: 63 Cylinders: 155061

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hda1 Boot Primary NTFS [^D] 40895.52 *
hda2 Primary Linux swap 509.97 *
hda3 Primary Linux ext3 18622.30 *
hda4 Primary Linux ext3 19995.98 *
Unusable 2.62 *
From dmesg i show that tries to mount wrong fs type, something like romfs

Does anyone have an idea????
 
  


Reply


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
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration