[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

char-major-145 (hfmodem) vs 175 (agpgart) in 2.4.0-test10?



When booting kernel-2.4.0 log files show that modprobe is trying to
install the hfmodem module. I have been digging into my init files
and not found any request for loading the hfmodem module??  The only
file related to hfmodem in 2.4.0-test10 source code is
/usr/include/linux/hfmodem.h, no driver code (as in the 2.2.17 source
code)!

>From /usr/src/linux/Documentation/devices.txt 
10 char        Non-serial mice, misc features
145 = /dev/hfmodem      Soundcard shortwave modem control {2.6}
175 = /dev/agpgart      AGP Graphics Address Remapping Table

A few questions: 
1. Is the hfmodem driver not supported any longer in 2.4.x?  

2. People have reported problems with automatic loading of agpgart (in
kernel 2.4.0pre) when agpgart is a loadable module. Forcing load of
the module in /etc/modules or compiling into the kernel works. Can it
be possible that loading of the module char-major-145 is meant to be
char-major-175 (i.e. agpgart), see tests of starting X below.

3. Which program loads modules, i.e. where to look for in the source code?

4. On debian, which startup files to look for responsible for loading modules? In
addition to /etc/modules, /etc/modules.conf, configured in
/etc/modutils/* and updated by update-modules.

Test 1. kernel-2.4.0-test10 with 'modprobe agpgart' entry in /etc/modules:
startx

/var/log/syslog:
Nov 17 11:36:31 cl-dual kernel: Linux agpgart interface v0.99 (c) Jeff Hartmann
Nov 17 11:36:31 cl-dual kernel: agpgart: Maximum main memory to use for agp memo
ry: 204M
Nov 17 11:36:31 cl-dual kernel: agpgart: Detected Intel 440BX chipset
Nov 17 11:36:31 cl-dual kernel: agpgart: AGP aperture is 64M @ 0xe8000000
Nov 17 11:37:29 cl-dual kernel: [drm] AGP 0.99 on Intel 440BX @ 0xe8000000 64MB
Nov 17 11:37:29 cl-dual kernel: [drm] Initialized mga 2.0.1 20000928 on minor 62
Nov 17 11:40:39 cl-dual kernel: [drm:mga_fire_primary] *ERROR* num_dwords == 0 when dispatched

Test 2: kernel-2.4.0-test10 without agpgart:
rmmod agpgart
startx > X.log 2>&1

/var/log/syslog:
Nov 19 18:24:59 cl-dual modprobe: modprobe: Can't locate module char-major-145
Nov 19 18:24:59 cl-dual modprobe: modprobe: Can't locate module char-major-145
Nov 19 18:25:00 cl-dual kernel: [drm] The mga drm module requires the agpgart module to function correctly
Nov 19 18:25:00 cl-dual kernel: Please load the agpgart module before you load the mga module

X.log:
II) MGA(0): [drm] Sarea 2176+632: 2808
/lib/modules/2.4.0-test10/kernel/drivers/char/drm/mga.o: init_module: Cannot allocate memory
/lib/modules/2.4.0-test10/kernel/drivers/char/drm/mga.o: insmod /lib/modules/2.4.0-test10/kernel/drivers/char/drm/mga.o failed
/lib/modules/2.4.0-test10/kernel/drivers/char/drm/mga.o: insmod mga failed
[drm] failed to load kernel module "mga"
(0): [drm] drmOpen failed
(EE) MGA(0): [drm] DRIScreenInit Failed

XFree86.0.log:
(II) MGA(0): [drm] Sarea 2176+632: 2808
[drm] failed to load kernel module "mga"
(0): [drm] drmOpen failed

Test3: kernel-2.4.0-test10 without 'modprobe agpgart' in /etc/modules 
startx
Nov 18 00:41:00 cl-dual modprobe: modprobe: Can't locate module char-major-145
Nov 18 00:41:00 cl-dual modprobe: modprobe: Can't locate module char-major-145
Nov 18 00:41:00 cl-dual kernel: [drm] AGP 0.99 on Intel 440BX @ 0xe8000000 64MB
Nov 18 00:41:00 cl-dual kernel: [drm] Initialized mga 2.0.1 20000928 on minor 63

Reference: kernel-2.2.17 with 'modprobe agpgart' entry in /etc/modules:
Nov 18 01:11:31 cl-dual kernel: Linux agpgart interface v0.99 (c) Jeff Hartmann
Nov 18 01:11:31 cl-dual kernel: agpgart: Maximum main memory to use for agp memo
ry: 204M
Nov 18 01:11:31 cl-dual kernel: agpgart: Detected Intel 440BX chipset
Nov 18 01:11:31 cl-dual kernel: agpgart: AGP aperture is 64M @ 0xe8000000



Reply to: