Alexander E. Patrakov wrote:
Could you please boot the 6.2-pre3 CD and do the following commands
to compile this missing module, and tell whether they really work?
Well I'm back , and that was interesting indeed. I followed the
commands and while there seemed to be some progress, the module wouldn't
insert. I think I have a pretty description below:
--- straight from the boot ---
# lsmod
Module Size Used by
yenta_socket 20360 1
rsrc_nonstatic 11648 1 yenta_socket
pcmcia_core 43908 2 yenta_socket,rsrc_nonstatic
-----
unpacked files using your-
tar xf /lfs-sources/linux-2.6.12.5.tar.bz2 \
linux-2.6.12.5/drivers/serial/{8250.h,serial_cs.c}
-----
| ~
# ls linux-2.6.12.5/drivers/serial
8250.h serial_cs.c
-----
# cd linux-2.6.12.5/drivers/serial
-----
| ~/linux-2.6.12.5/drivers/serial
# echo 'obj-m += serial_cs.o' > Makefile
--- no error reported---
# make -C /lib/modules/2.6.12.5/build SUBDIRS=$PWD modules
make: Entering directory `/usr/src/linux-2.6.12.5'
CC [M] /root/linux-2.6.12.5/drivers/serial/serial_cs.o
Building modules, stage 2.
MODPOST
CC /root/linux-2.6.12.5/drivers/serial/serial_cs.mod.o
LD [M] /root/linux-2.6.12.5/drivers/serial/serial_cs.ko
make: Leaving directory `/usr/src/linux-2.6.12.5'
--- no error reported ---
This is where it gets a little off.
First I try the command you gave (without thinking about it much)
# insmod ./pcmcia_cs.ko
insmod: can't read './pcmcia_cs.ko': No such file or directory
--- hmmmm ---
Then I thought I'd see what was there:
# ls -l
total 64
-rw-r--r-- 1 root root 2507 2005-08-14 20:20 8250.h
-rw-r--r-- 1 root root 21 2006-04-12 10:53 Makefile
-rw-r--r-- 1 root root 22220 2005-08-14 20:20 serial_cs.c
-rw-r--r-- 1 root root 10928 2006-04-12 10:57 serial_cs.ko
-rw-r--r-- 1 root root 472 2006-04-12 10:57 serial_cs.mod.c
-rw-r--r-- 1 root root 2604 2006-04-12 10:57 serial_cs.mod.o
-rw-r--r-- 1 root root 8960 2006-04-12 10:57 serial_cs.o
-----
Seeing no pcmcia_cs.ko THEN I thought "weren't we looking for
serial_cs? oh yeah" duh. so:
# insmod ./serial_cs.ko
serial_cs: Unknown symbol cs_error
serial_cs: Unknown symbol pcmcia_deregister_client
serial_cs: Unknown symbol pcmcia_get_first_tuple
serial_cs: Unknown symbol pcmcia_unregister_driver
serial_cs: Unknown symbol pcmcia_get_tuple_data
serial_cs: Unknown symbol pcmcia_get_next_tuple
serial_cs: Unknown symbol pcmcia_register_client
serial_cs: Unknown symbol pcmcia_get_configuration_info
serial_cs: Unknown symbol pcmcia_access_configuration_register
serial_cs: Unknown symbol pcmcia_parse_tuple
serial_cs: Unknown symbol pcmcia_register_driver
insmod: error inserting './serial_cs.ko': -1 Unknown symbol in module
--- hmm ---
Then started up vi opened vfat to record...
mkdir /mnt/d; mount -t vfat /dev/hda5 /mnt/d; /mnt/d/lfs/start.sh
-----
And then I had this:
# lsmod
Module Size Used by
ext3 98180 1
jbd 55576 1 ext3
nls_iso8859_1 4864 1
nls_cp437 6528 1
vfat 11520 1
fat 46876 1 vfat
yenta_socket 20360 1
rsrc_nonstatic 11648 1 yenta_socket
pcmcia_core 43908 2 yenta_socket,rsrc_nonstatic
-----
darn I wish I had done an lsmode before mounting vfat , maybe even
between each step.... do it over again......
-----
Well now I've just unpacked kernel into hda5 (and used it up)
It got up to sound before running out of space so there's enough to look at!
I took sound and the next "s" (I forget) off to get a little space. 2mb
free now.
Neat!
Back over here in RedHat9 now I'm looking over the stuff:
$ ls linux-2.6.12.5/drivers/serial
21285.c amba-pl010.c ioc4_serial.c mpsc.h sn_console.c
68328serial.c amba-pl011.c ip22zilog.c mux.c suncore.c
68328serial.h au1x00_uart.c ip22zilog.h pmac_zilog.c suncore.h
68360serial.c bast_sio.c jsm pmac_zilog.h sunsab.c
8250_acorn.c clps711x.c Kconfig pxa.c sunsab.h
8250_acpi.c cpm_uart m32r_sio.c s3c2410.c sunsu.c
8250.c crisv10.c m32r_sio.h sa1100.c sunzilog.c
8250_early.c crisv10.h m32r_sio_reg.h serial_core.c sunzilog.h
8250_gsc.c dz.c Makefile serial_cs.c uart00.c
8250.h dz.h mcfserial.c serial_lh7a40x.c v850e_uart.c
8250_hp300.c icom.c mcfserial.h serial_txx9.c vr41xx_siu.c
8250_pci.c icom.h mpc52xx_uart.c sh-sci.c
8250_pnp.c imx.c mpsc.c sh-sci.h
-----
$ ls linux-2.6.12.5/drivers/pcmcia
au1000_db1x00.c Kconfig rsrc_mgr.c soc_common.c
au1000_generic.c m32r_cfc.c rsrc_nonstatic.c soc_common.h
au1000_generic.h m32r_cfc.h sa1100_assabet.c socket_sysfs.c
au1000_pb1x00.c m32r_pcc.c sa1100_badge4.c tcic.c
au1000_xxs1500.c m32r_pcc.h sa1100_cerf.c tcic.h
cardbus.c Makefile sa1100_generic.c ti113x.h
cirrus.h o2micro.h sa1100_generic.h topic.h
cistpl.c pcmcia_compat.c sa1100_h3600.c vg468.h
cs.c pd6729.c sa1100_jornada720.c vrc4171_card.c
cs_internal.h pd6729.h sa1100_neponset.c vrc4173_cardu.c
ds.c pxa2xx_base.c sa1100_shannon.c vrc4173_cardu.h
hd64465_ss.c pxa2xx_base.h sa1100_simpad.c yenta_socket.c
i82092aa.h pxa2xx_lubbock.c sa1111_generic.c yenta_socket.h
i82092.c pxa2xx_mainstone.c sa1111_generic.h
i82365.c pxa2xx_sharpsl.c sa11xx_base.c
i82365.h ricoh.h sa11xx_base.h
------
This is where I am...what do you think?
I notice that the RH9 also uses "ds". But I don't know much.
---snip
parport 33952 1 (autoclean) [parport_pc lp]
autofs 12148 0 (autoclean) (unused)
serial_cs 5776 0 (unused)
ds 8136 2 [serial_cs]
yenta_socket 12864 2
pcmcia_core 53152 0 [serial_cs ds yenta_socket]
ipt_REJECT 3672 6 (autoclean)
iptable_filter 2316 1 (autoclean)
ip_tables 14488 2 [ipt_REJECT iptable_filter]
nls_iso8859-1 3484 1 (autoclean)
nls_cp437 5116 1 (autoclean)
snip-----
Having fun!, Thanks, -Howard
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page