Subject: Re: char-major-10

From: [email-masked] (Bruce Perens)
Date: Sun, 8 Sep 96 21:41 PDT

From: Boris Beletsky <[email-masked]>
> Sep  9 03:53:44 sim modprobe: Can't locate module char-major-10

You are running kerneld. You go to open a character device with major
number 10. There is no driver for the device and kerneld tries to load
it. Do this command:

	ls /dev |grep "10,"

and you will see those devices - you are trying to open one of them.
Perhaps one of the mouse interfaces?

	Bruce

---

From: Boris Beletsky <[email-masked]>
Date: Mon, 9 Sep 1996 22:39:11 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Sun, 8 Sep 1996, Bruce Perens wrote:

bruce>You are running kerneld. You go to open a character device with major
bruce>number 10. There is no driver for the device and kerneld tries to load
bruce>it. Do this command:
bruce>
bruce>	ls /dev |grep "10,"
bruce>
bruce>and you will see those devices - you are trying to open one of them.
bruce>Perhaps one of the mouse interfaces?

- -----<cut here>------------
sim:~# ls /dev | grep "10,"
Exit 1
sim:~# ls /dev | grep "10"
fd0h410
fd1u1040
hda10
hdb10
hdc10
hdd10
sda10
sdb10
sdc10
sdd10
sde10
sdf10
sdg10
sdh10
tty10
xda10
xdb10
xdc10
xdd10
- -------<cut here>----------
so is it "10," / "10" ?
and i am not sure how can i find the solution to this prob.
I think i missed somthing. can u plz tell me what exactly device i should
create?

thks alot
borik

___
Boris Beletsky <[email-masked]>
For pgp public key, e-mail me 
with subject "get pgp-key."
___
In Linux veritas

---

From: Boris Beletsky <[email-masked]>
Date: Tue, 10 Sep 1996 00:18:31 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 9 Sep 1996, Bernd Eckenfels wrote:

lists>alias char-major-10-0 busmouse
lists>alias char-major-10-1 psaux
lists>alias char-major-10-2 msbusmouse
lists>alias char-major-10-4 amigamouse
lists>alias char-major-10-5 atarimouse
the only prob is that i don't use bus/msbus/amiga/atarimouse
i use simple (trivial!) mman logitech
so i don't understand why the kerneld looking for that module *shrug*

borik

___

---

From: [email-masked]
Date: Mon, 9 Sep 96 17:54 EDT

I assume that Bruce meant

	$ ls -l /dev | grep "10,"

which yields: 

edd@miles:~> ls -l /dev|grep "10,"
crw-rw----   1 root     sys       10, 134 Dec 31  1969 apm_bios
crw-rw-rw-   1 root     sys       10,   3 Dec 31  1969 atibm
crw-rw----   1 root     audio     10, 128 Dec 31  1969 beep
crw-rw----   1 root     sys       10, 133 Dec 31  1969 exttrap
crw-rw----   1 root     sys       10, 132 Dec 31  1969 hwtrap
crw-rw-rw-   1 root     sys       10,   2 Dec 31  1969 inportbm
crw-rw-rw-   1 root     sys       10,   4 Dec 31  1969 jbm
crw-rw-rw-   1 root     sys       10,   0 Dec 31  1969 logibm
crw-rw----   1 root     sys       10, 129 Dec 31  1969 modreq
crw-rw-rw-   1 root     sys       10,   1 Dec 31  1969 psaux
crw-rw----   1 root     lp        10, 138 Dec 31  1969 qcam0
crw-rw----   1 root     sys       10, 135 Dec 31  1969 rtc
crw-rw----   1 root     sys       10, 131 Dec 31  1969 temperature
crw-rw----   1 root     sys       10, 130 Dec 31  1969 watchdog     

-- 
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: [email-masked] (Bernd Eckenfels)
Date: Mon, 9 Sep 1996 20:33:27 +0200 (MET DST)

Hi,

> it.

char-major-10 is handled by the drivers/char/misc.o 

(which will be installed in the kernel if:

#if defined (CONFIG_BUSMOUSE) || defined(CONFIG_UMISC) || \
    defined (CONFIG_PSMOUSE) || defined (CONFIG_MS_BUSMOUSE) || \
    defined (CONFIG_ATIXL_BUSMOUSE) || defined(CONFIG_SOFT_WATCHDOG) || \
    defined (CONFIG_PCWATCHDOG) || \
    defined (CONFIG_APM) || defined (CONFIG_RTC) || defined (CONFIG_SUN_MOUSE)
). If none of those options are installed into the kernel, and it will be
compiled as a module if one of the above options are build as modules.

Therefore there is one alias needed:

alias char-major-10 misc

Each single device with major 10 will be requested from kerneld with:

char-major-10-%d, therefore the following aliases are needed in addition:

alias char-major-10-0 busmouse
alias char-major-10-1 psaux
alias char-major-10-2 msbusmouse
alias char-major-10-4 amigamouse
alias char-major-10-5 atarimouse
alias char-major-10-6 ?
alias char-major-10-130 wdt (or softdog)
alias char-major-10-131 wdt
alias char-major-10-134 apm_bios
alias char-major-10-135 rtc

(this is what i read from the source, it is neighter complete nor i am sure
if it is correct).

Greetings
Bernd
-- 
  (OO)      -- [email-masked] --
 ( .. )   ecki@{lina.inka.de,linux.de}  http://home.pages.de/~eckes/
  o--o     *plush*  2048/A2C51749  eckes@irc  +4972573817  *plush*
(O____O)       If privacy is outlawed only Outlaws have privacy

---

From: "Susan G. Kleinmann" <[email-masked]>
Date: Mon, 09 Sep 1996 19:01:36 -0400

Hi Boris --

> bruce>	ls /dev |grep "10,"

Try instead:
ls -l /dev | grep "10,"

Good luck,
Susan Kleinmann

---

From: Boris Beletsky <[email-masked]>
Date: Tue, 10 Sep 1996 02:10:46 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 9 Sep 1996, Susan G. Kleinmann wrote:

sgk>Hi Boris --
sgk>Try instead:
sgk>ls -l /dev | grep "10,"
thks alot all!
we solved it with bruce. (well - kinda)
*bow*
Regards
borik

___

---

From: [email-masked] (Bernd Eckenfels)
Date: Tue, 10 Sep 1996 01:20:41 +0200 (MET DST)

Hi,

> so is it "10," / "10" ?

ls -l /dev |grep "10,"

From: /usr/src/linux/Documantation/devices.txt:

 10 char        Non-serial mice, misc features
                  0 = /dev/logibm       Logitech bus mouse
                  1 = /dev/psaux        PS/2-style mouse port
                  2 = /dev/inportbm     Microsoft Inport bus mouse
                  3 = /dev/atibm        ATI XL bus mouse
                  4 = /dev/jbm          J-mouse
                  4 = /dev/amigamouse   Amiga mouse (68k/Amiga)
                  5 = /dev/atarimouse   Atari mouse
                  6 = /dev/sunmouse     Sun mouse
                  7 = /dev/amigamouse1  Second Amiga mouse
                128 = /dev/beep         Fancy beep device
                129 = /dev/modreq       Kernel module load request
                130 = /dev/watchdog     Watchdog timer port
                131 = /dev/temperature  Machine internal temperature
                132 = /dev/hwtrap       Hardware fault trap
                133 = /dev/exttrp       External device trap
                134 = /dev/apm_bios     Advanced Power Management BIOS
                135 = /dev/rtc          Real Time Clock
                136 = /dev/qcam0        QuickCam on lp0
                137 = /dev/qcam1        QuickCam on lp1
                138 = /dev/qcam2        QuickCam on lp2
                139 = /dev/openprom     SPARC OpenBoot PROM

BTW: if you add the alias for char-major-10 you will get requests for
char-major-10-%d (with %d is a number from the above list) and you should
know which device is missing.

Greetings
Bernd

---

From: Christian Hudon <[email-masked]>
Date: Mon, 9 Sep 1996 17:11:47 -0700 (PDT)

> so i don't understand why the kerneld looking for that module *shrug*

Btw, if your system is working fine (i.e. mouse working, etc.) you can
just ignore the kerneld message. It doesn't do any harm, other than being
slightly annoying. That's what I do.

Everyone: is there no way of knowing the minor number of the char-10
device for which kerneld got the request? (Without patching kerneld, that
is.)

  Christian

---

From: Boris Beletsky <[email-masked]>
Date: Tue, 10 Sep 1996 03:23:42 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 10 Sep 1996, Bernd Eckenfels wrote:

lists> 10 char        Non-serial mice, misc features
what i have here is a simple serial mouse
i don't understand why is this device was requested in the first place

lists>BTW: if you add the alias for char-major-10 you will get requests for
lists>char-major-10-%d (with %d is a number from the above list) and you should
lists>know which device is missing.
how exactly i add the alias :
alias char-major-10 char-major-10-%d ?

thks alot
borik

___

---

From: [email-masked] (Bernd Eckenfels)
Date: Tue, 10 Sep 1996 02:39:14 +0200 (MET DST)

Hi,

> alias char-major-10 char-major-10-%d ?

add in /etc/conf.modules:
alias char-major-10 misc

or even better load misc.o from /usr/src/linux/drivers/char/misc.o (or
/lib/modues/current/misc/mic.o)

This module will request itself the char-major-10-%d modules and you will
get another missing entry in the logs with the minor number added.

Greetings
Bernd

---

From: Boris Beletsky <[email-masked]>
Date: Tue, 10 Sep 1996 03:55:49 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

lists>add in /etc/conf.modules:
lists>alias char-major-10 misc
how about :
alias char-major-10 off ?
cause i realy don't have non serial mice

Regards 
borik
___

---

From: "Vadik V. Vygonets" <[email-masked]>
Date: Tue, 10 Sep 1996 19:14:11 +0300 (IDT)

On Mon, 9 Sep 1996, Boris Beletsky wrote:

> bruce> [...] Do this command:
> bruce>
> -----<cut here>------------
> [lots of crap]
> -------<cut here>----------
> so is it "10," / "10" ?

The command is kinda wrong.  See this:

marvin:~> ls -l /dev | grep 10,
crw-rw-rw-   1 root     sys       10,   3 Jan  1  1970 atimouse
crw-rw-rw-   1 root     sys       10,   4 Jan  1  1970 jmouse
crw-rw-rw-   1 root     sys       10,   0 Jan  1  1970 logimouse
crw-rw-rw-   1 root     sys       10,   2 Jan  1  1970 msmouse
crw-rw-rw-   1 root     sys       10,   1 Jan  1  1970 psmouse
marvin:~> 

> borik

Vad.

++        _ 
Vadik V. (_`    [email-masked]  http://www.arbornet.org/~vadik/
Vygonets (_.lf  PGP public key (ID 9FC1DED9) available from surfnet.nl
Linux hackers are funny people: They count the time in patchlevels.

---

From: Michael Meskes <[email-masked]>
Date: Tue, 10 Sep 1996 08:53:24 +0200 (MET DST)

> cause i realy don't have non serial mice

Yes, you should set all modules to off that get requested despite not being
available.

Michael
-- 
Michael Meskes                   |    _____ ________ __  ____
[email-masked] |   / ___// ____/ // / / __ \___  __________
[email-masked]                  |   \__ \/ /_  / // /_/ /_/ / _ \/ ___/ ___/
[email-masked]                |  ___/ / __/ /__  __/\__, /  __/ /  (__  )
Use Debian GNU/Linux!            | /____/_/      /_/  /____/\___/_/  /____/

---

From: Michael Meskes <[email-masked]>
Date: Tue, 10 Sep 1996 08:54:35 +0200 (MET DST)

> alias char-major-10-135 rtc

Quite a lot of these are already built into the kerneld source (at least if
you use a fairly new one). Please tell me which of these aliases is missing
in the latest modules release.

Michael