I have been building Linux kernels for years, but never before in an
embedded environment, so if some of my questions have obvious answers,
please forgive me.
I have a TS7200 board with a CFlash card. I'm working with the
tskernel-2.4.26-ts11-src distribution and Debian Sarge from the
development CD.
I built the cross-compile tool chain using http://kegel.com/crosstool/
I have successfully built this kernel and booted from it off the
CFlash card. But what hasn't worked is USB support. Here are the
current .config settings I am using:
<M> USB Mass Storage support
My build sequence is:
make dep
make vmlinx
make modules
make modules_install INSTALL_mod_path=./
The resulting lib/modules/2.4.26-ts11/ directory looks like:
jcunningham users 48 Jun 9 20:58 pcmcia/
jcunningham users 48 Jun 10 09:03 kernel/
jcunningham users 58 Jun 10 09:03 build ->
/home/jcunningham/robotics/arm9/devcd/sources/linux24-ts11/
jcunningham users 189 Jun 10 09:03 modules.usbmap
1 jcunningham users 24 Jun 10 09:03 modules.pnpbiosmap
jcunningham users 99 Jun 10 09:03 modules.pcimap
jcunningham users 29 Jun 10 09:03 modules.parportmap
jcunningham users 81 Jun 10 09:03 modules.isapnpmap
jcunningham users 73 Jun 10 09:03 modules.ieee1394map
jcunningham users 31 Jun 10 09:03 modules.generic_string
jcunningham users 0 Jun 10 09:03 modules.dep
I expected to see a USB mass storage driver. I copy the kernel to the
CFlash's /boot directory, and the modules directory above to the
CFlash via scp, to /lib/modules/2.4.26-ts11/ and reboot. But then
dmesg shows no sign of USB recognition, though I have a webcam plugged
into it and have tried a flash memory device as well. Here is dmesg
output:
Linux version 2.4.26-ts11 (gcc version 3.3.4)
#215 Thu Jun 8 14:30:17
MST 2006
CPU: Arm920Tid(wb) revision 0
Machine: ep9301
<snip some boring stuff>
Kernel command line: console=ttyAM0,115200 ip=dhcp root=/dev/hda1
Relocating machine vectors to 0xffff0000
Console: colour dummy device 80x30
Calibrating delay loop... 99.94 BogoMIPS
Memory: 8MB 8MB 8MB 8MB = 32MB total
Memory: 28500KB available (1320K code, 350K data, 72K init)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: Testing write buffer: pass
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch
devfs: boot_options: 0x1
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ enabled
rtc: no TS-5620 RTC detected.
ep93xx_eth() version: ep93xx_eth.c: V1.0 09/04/2003 Cirrus Logic
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx
Technologic Systems TS-7XXX IDE initialization - driver version 1.3,
6/21/04.
hda: SAMSUNG CF/ATA, CFA DISK drive
ide0 at 0x8d000000-0x8d000007,0x88400006 on irq 32
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 1018080 sectors (521 MB) w/0KiB Cache, CHS=1010/16/63
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1
TS-7200 flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=128
Creating 3 MTD partitions on "TS-7200 flash":
0x00000000-0x00020000 : "TS-BOOTROM"
0x00020000-0x00e20000 : "Linux"
0x00e20000-0x01000000 : "RedBoot"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 0.0.0.0, my address is 192.168.1.104
IP-Config: Complete:
device=eth0, addr=192.168.1.104, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.104, domain=hsd1.wa.comcast.net., nis-domain=(none),
bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
/dev/ide/host0/bus0/target0/lun0: p1
/dev/ide/host0/bus0/target0/lun0: p1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Freeing init memory: 72K
VFS: Disk change detected on device 03:00
/dev/ide/host0/bus0/target0/lun0: p1
Since I can't insmod anything I suspect I don't have the modules
installed properly. Any idea what I'm doing wrong?
Thanks in advance.
Jeff
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|