ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Сборка модуля at76c503-0.11
@ 2004-12-23 20:57 Ruslan Popov
  2004-12-23 21:19 ` [sisyphus] " Konstantin A. Lepikhov
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ruslan Popov @ 2004-12-23 20:57 UTC (permalink / raw)
  To: sisyphus

Доброе время суток.

Собираю модуль, используя пакет kernel-headers-modules-std-up, указывая на 
include в каталоге /usr/src/linux-2.4.27-std-up.

Вот что получается:
# make
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c503.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
usbdfu.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c503-rfmd.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c503-rfmd-acc.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c505-rfmd.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c503-i3861.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c503-i3863.c
gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing -fno-common 
-Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB 
-DDRIVER_VERSION=\"v0.11\" -I/usr/src/kernel-2.4.27-std-up/include  -c 
at76c505-rfmd2958.c

Собралось без ошибок.

Теперь инсталлирую модули:
# make install
mkdir -p /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/
for f in at76c503.o usbdfu.o at76c503-rfmd.o at76c503-rfmd-acc.o 
at76c505-rfmd.o at76c503-i3861.o at76c503-i3863.o at76c505-rfmd2958.o; do 
install -m 644 -o 0 -g 0 
$f /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb//$f; done
/sbin/depmod -a
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-i3861.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-i3863.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd-acc.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c505-rfmd.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c505-rfmd2958.o
depmod: *** Unresolved symbols 
in /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/usbdfu.o

И теперь самое интересное:

# modprobe usbdfu
# modprobe at76c503
# modprobe at76c503-rfmd
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol usbdfu_deregister
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol usbdfu_in_use
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol at76c503_usbdfu_post
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol at76c503_delete_device
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol at76c503_do_probe
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
unresolved symbol usbdfu_register
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
insmod /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o 
failed
/lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: insmod 
at76c503-rfmd failed

Вывод из /var/log/messages:
Dec 23 23:32:21 c900 kernel: hub.c: new USB device 00:07.2-1, assigned address 
7
Dec 23 23:32:21 c900 kernel: usb.c: USB device 7 (vend/prod 0x3eb/0x7605) is 
not claimed by any active driver.
Dec 23 23:32:25 c900 kernel: at76c503.c: Generic Atmel at76c503/at76c505 
routines v0.11
Dec 23 23:32:25 c900 kernel: at76c503.c: Generic Atmel at76c503/at76c505 
routines v0.11 exit
Dec 23 23:32:25 c900 
insmod: /lib/modules/2.4.27-std-up-alt1/kernel/drivers/usb/at76c503-rfmd.o: 
insmod at76c503-rfmd failed
Dec 23 23:32:25 c900 usb.agent[10115]: ... can't load module at76c503-rfmd

Подскажите, что можно сделать. В какую сторону копать???

Руслан Попов


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

end of thread, other threads:[~2004-12-25 11:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23 20:57 [sisyphus] Сборка модуля at76c503-0.11 Ruslan Popov
2004-12-23 21:19 ` [sisyphus] " Konstantin A. Lepikhov
2004-12-23 21:23   ` Ruslan Popov
2004-12-23 21:32   ` Ruslan Popov
2004-12-23 21:36 ` Konstantin A. Lepikhov
2004-12-23 21:38   ` Ruslan Popov
2004-12-23 21:44   ` Ruslan Popov
2004-12-23 21:48     ` Konstantin A. Lepikhov
2004-12-23 22:43 ` Ruslan Popov
2004-12-24 10:16   ` Konstantin A. Lepikhov
2004-12-24 10:33     ` Andriy Dobrovol's'kii
2004-12-25 11:46 ` [sisyphus] Re: Скрипты для работы Ruslan Popov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git