public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: ISA hardware discovery -- the elegant solution
@ 2002-01-14 18:36 Stephen Shirley
  0 siblings, 0 replies; 110+ messages in thread
From: Stephen Shirley @ 2002-01-14 18:36 UTC (permalink / raw)
  To: linux-kernel

Hi,
	If, as Alan described, you can depend on the distro's installation
	program to have automatically identified all the hardware possible,
	and for the user to have specified and additional (i.e. isa etc) 
	devices, then could not the autoconfigurator simply see what drivers 
	are currently in use (via /proc/devices etc), check
	/etc/modules.conf for any that don't happen to be loaded at the
	time, and use that info to configure the new kernel. Unless there is
	some new piece of hardware that the new kernel supports that is
	present (and isn't supported by the old one), if linux was installed
	properly, you now have all the info you need, no? This removes the
	need for the configurator to do any sort of probing, neither are
	root proviledges required. Anyway, that's all probably blatantly
	obvious etc, so I'll just be quiet now.

Steve
-- 
"My mom had Windows at work and it hurt her eyes real bad"

^ permalink raw reply	[flat|nested] 110+ messages in thread
* RE: ISA hardware discovery -- the elegant solution
@ 2002-01-14 14:25 Michael Lazarou (ETL)
  2002-01-14 14:47 ` Giacomo Catenazzi
  0 siblings, 1 reply; 110+ messages in thread
From: Michael Lazarou (ETL) @ 2002-01-14 14:25 UTC (permalink / raw)
  To: 'Giacomo Catenazzi'; +Cc: 'esr@thyrsus.com', Linux Kernel List

> -----Original Message-----
> From: Giacomo Catenazzi [mailto:cate@debian.org]
> >>
> >>The kernel's device drivers have, of course, to include probe
> >>routines, and those hard-compiled in typically log the presence of
> >>their hardware to /var/log/mesg when it loads.  By scanning that
> >>file, we in effect get to use those probes.
> >>
> > 
> > Doesn't this mean that you would need a fully functional kernel
> > before you get to run the autoconfigurator?
> 
> 
> Not a problem. Autoconfiguration is made to help configuring
> the kernel, before to compile it. So you need a linux working
> machine (actually you can cross-compile).
> 
> Our task is to allow user to compile a kernel, with the
> needed drivers, without the non used drivers.

OK, well I guess I am a little confused.

If I hit an autoconfigurator button then I would expect a kernel that
will boot and know everything there is to know about my machine.

Without probing the hardware how will the autoconfigurator cope with 
the hardware changing underneath it?

Michael

^ permalink raw reply	[flat|nested] 110+ messages in thread
[parent not found: <fa.r42lgsv.1b5e3p9@ifi.uio.no>]
* RE: ISA hardware discovery -- the elegant solution
@ 2002-01-14 11:17 Michael Lazarou (ETL)
  2002-01-14 16:11 ` Eric S. Raymond
  0 siblings, 1 reply; 110+ messages in thread
From: Michael Lazarou (ETL) @ 2002-01-14 11:17 UTC (permalink / raw)
  To: 'esr@thyrsus.com', Linux Kernel List

> -----Original Message-----
> From: Eric S. Raymond [mailto:esr@thyrsus.com]
> Subject: ISA hardware discovery -- the elegant solution
> 
> 
> I've been thinking about the hardware-discovery problem for 
> ISA devices,
> and there may be an elegant solution.  It will take a number 
> of small changes
> to the kernel sources, however.
> 
> The kernel's device drivers have, of course, to include probe
> routines, and those hard-compiled in typically log the presence of
> their hardware to /var/log/mesg when it loads.  By scanning that
> file, we in effect get to use those probes.

Doesn't this mean that you would need a fully functional kernel
before you get to run the autoconfigurator?

Michael

^ permalink raw reply	[flat|nested] 110+ messages in thread
* Re: ISA hardware discovery -- the elegant solution
@ 2002-01-14  8:03 Zwane Mwaikambo
  2002-01-14  9:44 ` Alan Cox
  0 siblings, 1 reply; 110+ messages in thread
From: Zwane Mwaikambo @ 2002-01-14  8:03 UTC (permalink / raw)
  To: Linux Kernel

You haven't taken into consideration that not many distributions have
drivers in kernel, and in particular ISA device drivers. Namely because
ISA probes are ugly and require frobbing of memory in the vague hopes of
finding said device there. These probes may put ye old ISA device in a bad
state sometimes even hard locking your box, so chances are if the ISA
probe is in dmesg, the user explicitely decided to load the device. In
which case they already know what they have...

As an aside, i try not to use ISA and elegant in the same sentence ;)

Regards,
	Zwane Mwaikambo




^ permalink raw reply	[flat|nested] 110+ messages in thread
* ISA hardware discovery -- the elegant solution
@ 2002-01-14  1:58 Eric S. Raymond
  2002-01-14  2:54 ` Larry McVoy
  2002-01-14  8:46 ` Eric W. Biederman
  0 siblings, 2 replies; 110+ messages in thread
From: Eric S. Raymond @ 2002-01-14  1:58 UTC (permalink / raw)
  To: Linux Kernel List; +Cc: Linus Torvalds

I've been thinking about the hardware-discovery problem for ISA devices,
and there may be an elegant solution.  It will take a number of small changes
to the kernel sources, however.

The kernel's device drivers have, of course, to include probe
routines, and those hard-compiled in typically log the presence of
their hardware to /var/log/mesg when it loads.  By scanning that
file, we in effect get to use those probes.

My autoconfigurator's probe table now has a small number of tests than 
do regexp matches against the dmesg log.  As is, this solution does not
scale well, because each regexp has to be discovered by eyeball and then
maintained in the table by hand.

But suppose the format of boot-time driver messages were standardized in a
format that included their config symbol in a discoverable form?

I have hand-edited a copy of my current /var/log/dmesg to illustrate
how I think this could work.  

:MTRR: your CPUs had inconsistent fixed MTRR settings
:MTRR: probably your BIOS does not setup all CPUs
:PCI: PCI BIOS revision 2.10 entry at 0xfd7c0, last bus=1
:PCI: Using configuration type 1
:PCI: Probing PCI hardware
BIOS disabled PCI ordering compliance, so we enabled it again.
:IO_APIC: AMD Errata #22 may be present. In the event of instability try
        : booting with the "noapic" option.
:NET: Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
:RTNETLINK: Initializing RT netlink socket
Starting kswapd
allocated 32 pages and 32 bhs reserved for the highmem bounces
:JBD: Journalled Block Device driver loaded
:UNIX_PTY: 2048 Unix98 ptys configured
block: 128 slots per queue, batch=32
:IDE: Uniform Multi-Platform E-IDE driver Revision: 6.31
:IDE: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
:SCSI: SCSI subsystem driver Revision: 1.00
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
        <Adaptec aic7899 Ultra160 SCSI adapter>
        aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs

scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.4
        <Adaptec aic7899 Ultra160 SCSI adapter>
        aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs

  Vendor: IBM-PSG   Model: ST318451LW    !#  Rev: B833
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: IBM-PSG   Model: ST318451LW    !#  Rev: B833
  Type:   Direct-Access                      ANSI SCSI revision: 03
  Vendor: HP        Model: C5683A            Rev: C005
  Type:   Sequential-Access                  ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 253
scsi0:A:1:0: Tagged Queuing enabled.  Depth 253
  Vendor: PIONEER   Model: DVD-ROM DVD-305   Rev: 1.00
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: PLEXTOR   Model: CD-R   PX-W1210S  Rev: 1.02
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
(scsi0:A:0): 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
SCSI device sda: 35548320 512-byte hdwr sectors (18201 MB)
Partition check:
 sda: sda1 sda2 < sda5 >
(scsi0:A:1): 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit)
SCSI device sdb: 35548320 512-byte hdwr sectors (18201 MB)
 sdb: sdb1 sdb2
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 1, lun 0
(scsi1:A:0): 20.000MB/s transfers (20.000MHz, offset 16)
:BLK_DEV_SR: scsi3-mmc drive: 16x/40x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
(scsi1:A:1): 20.000MB/s transfers (20.000MHz, offset 16)
:BLK_DEV_SR: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
:USB_DEVFS: registered new driver usbdevfs
:USB: registered new driver hub
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 16384 buckets, 128Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 96k freed
Adding Swap: 1807272k swap-space (priority -1)
:EXT3_FS: FS 2.4-0.9.16, 02 Dec 2001 on sd(8,5), internal journal
:BLK_DEV_MD: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
kjournald starting.  Commit interval 5 seconds
:EXT3_FS: FS 2.4-0.9.16, 02 Dec 2001 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
:EXT3_FS: FS 2.4-0.9.16, 02 Dec 2001 on sd(8,18), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
:BLK_DEV_ST: Version 20011103, bufsize 32768, wrt 30720, max init. bufs 4, s/g segs 16
Attached scsi tape st0 at scsi0, channel 0, id 2, lun 0

The convention I propose is that at least one line of a driver probe message
should begin with :, followed by the driver config symbol, followed by :.
I am not attached to that particular punctuation, it is simply an unambiguous
way of indicating "this is a config symbol".

With this change, generating a report on ISA hardware and other
facilities configured in at boot time would be trivial.  This would
make the autoconfigurator much more capable.  Best of all, the only
change required to accomplish this would be safe edits of print format
strings.

I would be willing to generate a patch to implement this change.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

To stay young requires the unceasing cultivation of the ability to
unlearn old falsehoods.
	-- Lazarus Long 

^ permalink raw reply	[flat|nested] 110+ messages in thread
* module unresolved symbols
@ 2001-08-05  0:39 rich+ml
  2001-08-05  0:49 ` Jesse Pollard
                   ` (2 more replies)
  0 siblings, 3 replies; 110+ messages in thread
From: rich+ml @ 2001-08-05  0:39 UTC (permalink / raw)
  To: linux-kernel

Hi all, kindly redirect me if this is the wrong list.

Starting with a stock RH 7.0 install, I changed a single kernel config
item and recompiled with 'make defs clean bzImage modules
modules_install'.

Booted on the new kernel and depmod complains that dozens of modules
contain unresolved symbols. Back to the original kernel, now it also
complains of unresolved symbols (not the same set of modules, and modules
that were previously OK).

I can't find an answer on the net, does anyone know how to fix this?

Thanks == Rich


^ permalink raw reply	[flat|nested] 110+ messages in thread

end of thread, other threads:[~2002-02-09  0:19 UTC | newest]

Thread overview: 110+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.dardpev.1m1emjp@ifi.uio.no>
2002-01-14 10:14 ` ISA hardware discovery -- the elegant solution Giacomo Catenazzi
2002-01-14 16:16   ` Eric S. Raymond
2002-01-14 16:38     ` Giacomo Catenazzi
2002-01-14 16:34       ` Eric S. Raymond
2002-01-14 17:48     ` Alan Cox
2002-01-14 17:55       ` Mr. James W. Laferriere
2002-01-14 18:08         ` Alan Cox
2002-01-14 18:10           ` Hardwired drivers are going away? Eric S. Raymond
2002-01-14 18:50             ` David Lang
2002-01-14 19:04               ` Alan Cox
2002-01-14 18:57                 ` David Lang
2002-01-14 19:03                   ` Andrew Pimlott
2002-01-14 19:21                   ` Alan Cox
2002-01-15 10:45                   ` Horst von Brand
2002-01-15 11:13                     ` crispin
2002-01-15 14:25                     ` David Lang
2002-01-14 19:00                 ` Mr. James W. Laferriere
2002-01-14 19:17                   ` Alan Cox
2002-01-14 19:14                     ` Mr. James W. Laferriere
2002-01-14 19:37                       ` Alan Cox
2002-01-14 20:28                         ` Mr. James W. Laferriere
2002-01-14 19:44                     ` David Lang
2002-01-14 20:09                       ` Alexander Viro
2002-01-14 20:49                         ` Chris Friesen
2002-01-14 20:55                           ` Alexander Viro
2002-01-14 20:51                       ` Ian Molton
2002-01-14 22:11                         ` David Lang
2002-01-14 23:12                           ` Brian Gerst
2002-01-14 23:17                             ` David Lang
2002-01-14 23:22                           ` Ian Molton
2002-01-15  0:40                             ` H. Peter Anvin
2002-01-14 19:54                     ` David Lang
2002-01-15 17:27                     ` Aaron Lehmann
2002-01-15 17:47                       ` Alexander Viro
2002-01-15 19:48                       ` Alan Cox
2002-01-18 12:39                   ` Florian Weimer
2002-01-18 22:20                     ` Mr. James W. Laferriere
2002-01-18 23:22                       ` Keith Owens
2002-01-20 23:20                         ` Frank van de Pol
2002-01-21  0:54                           ` Bruce Harada
2002-01-21  3:49                             ` Andreas Ferber
2002-01-21  4:45                               ` Bruce Harada
2002-01-21  5:12                                 ` Andreas Ferber
2002-01-21  1:06                         ` Anton Altaparmakov
2002-01-21  1:07                           ` Mr. James W. Laferriere
2002-01-21  1:30                             ` Andrew Morton
2002-01-21  1:53                               ` Keith Owens
2002-01-21  2:04                                 ` Andrew Morton
2002-01-21  2:25                                   ` Keith Owens
2002-01-21  2:56                                     ` Andrew Morton
2002-01-21  3:43                                       ` Keith Owens
2002-01-21  4:24                                         ` Andrew Morton
2002-01-21  3:44                                     ` yodaiken
2002-01-21 20:57                                       ` Kai Henningsen
2002-01-21  2:13                                 ` John Levon
2002-01-21  2:31                                   ` Keith Owens
2002-01-21 23:52                                     ` Thomas Zimmerman
2002-01-21  9:34                               ` Horst von Brand
2002-01-21 14:29                                 ` John Levon
2002-01-21  1:31                           ` Anton Altaparmakov
2002-01-14 19:27               ` Alexander Viro
2002-01-15 17:24               ` Aaron Lehmann
2002-01-15 18:17                 ` David Lang
2002-01-15 19:25                   ` Aaron Lehmann
2002-01-15 19:44                 ` Kai Henningsen
2002-01-14 18:54             ` Mr. James W. Laferriere
2002-01-14 18:56             ` Alan Cox
2002-01-14 18:39               ` Eric S. Raymond
2002-01-14 19:09             ` Alexander Viro
2002-01-14 14:19               ` Rob Landley
2002-01-14 22:33                 ` Greg KH
2002-01-15 11:35                 ` Keith Owens
2002-01-15 15:34                   ` Oliver Xymoron
2002-01-14 19:24               ` Alan Cox
2002-01-14 20:17               ` Eric S. Raymond
2002-01-14 14:57                 ` Rob Landley
2002-01-14 20:51                 ` David Lang
2002-01-14 22:18                 ` Oliver Xymoron
2002-01-15 19:20                 ` Horst von Brand
2002-01-16  9:00                   ` Eric S. Raymond
2002-01-14 23:12               ` Rusty Russell
2002-02-09  0:19             ` Dr. Kelsey Hudson
2002-01-14 17:59       ` ISA hardware discovery -- the elegant solution Eric S. Raymond
2002-01-14 18:35         ` Alan Cox
2002-01-14 18:36 Stephen Shirley
  -- strict thread matches above, loose matches on Subject: below --
2002-01-14 14:25 Michael Lazarou (ETL)
2002-01-14 14:47 ` Giacomo Catenazzi
     [not found] <fa.r42lgsv.1b5e3p9@ifi.uio.no>
2002-01-14 12:30 ` Giacomo Catenazzi
2002-01-14 11:17 Michael Lazarou (ETL)
2002-01-14 16:11 ` Eric S. Raymond
2002-01-14 16:59   ` Eli Carter
2002-01-14 17:11     ` Wichert Akkerman
2002-01-14 18:33   ` Oliver Xymoron
2002-01-14 23:02     ` Tom Gilbert
2002-01-14 18:58   ` Andrew Pimlott
2002-01-14  8:03 Zwane Mwaikambo
2002-01-14  9:44 ` Alan Cox
2002-01-14 14:00   ` Zwane Mwaikambo
2002-01-14  1:58 Eric S. Raymond
2002-01-14  2:54 ` Larry McVoy
2002-01-14  8:46 ` Eric W. Biederman
2002-01-14  8:48   ` Eric S. Raymond
2002-01-14  9:17     ` H. Peter Anvin
2002-01-14 17:34     ` Eric W. Biederman
2001-08-05  0:39 module unresolved symbols rich+ml
2001-08-05  0:49 ` Jesse Pollard
2001-08-05  0:51 ` Steven Walter
2001-08-05  1:48 ` Keith Owens
2001-08-05 16:06   ` Horst von Brand
2001-08-06 11:18     ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox