[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] USB & Hotplug
Hi all,
Thank you very much for your help Leonardo.
Now I have some cuestions:
This is my uClinux logging:
Linux version 2.4.32-uc0 (mira@toledo) (gcc version 3.4.1 ( Xilinx EDK 8.1.01 Bu
ild EDK_I.19.4 060306 )) #20 Thu Apr 26 18:47:50 CEST 2007
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line: console=ttyS0
Console: xmbserial on UARTLite
Calibrating delay loop... 49.25 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62936KB available (1160K code, 724K data, 48K init)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0x40600000 (irq = 4) is a Microblaze UARTlite
ttyS1 at 0x41400000 (irq = 1) is a Microblaze UARTlite
Starting kswapd
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Initializing SystemAce driver
Partition check:
xsysacea: xsysacea1
System ACE at 0x41800000 mapped to 0x41800000, irq=3, 31360KB
SCSI subsystem driver Revision: 1.00
uclinux[mtd]: RAM probe address=0x24159b5c size=0x7e000
uclinux[mtd]: root filesystem index=0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
cy7c67200_300_hcd.c:1744: Configuring for Xilinx ML40x
usb.c: new USB bus registered, assigned bus number 1
usb.c: kmalloc IF 2428d6dc, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB CY7C67200/300 Root Hub
SerialNumber: 0
hub.c: USB hub found
hub.c: 1 port detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 100ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: R
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface 2428d6dc
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
usb.c: new USB bus registered, assigned bus number 2
usb.c: kmalloc IF 2428d7dc, numif 1
usb.c: new device strings: Mfr=0, Product=2, SerialNumber=1
usb.c: USB device number 1 default language ID 0x0
Product: USB CY7C67200/300 Root Hub
SerialNumber: 1
hub.c: USB hub found
hub.c: 1 port detected
hub.c: standalone hub
hub.c: ganged power switching
hub.c: global over-current protection
hub.c: Port indicators are not supported
hub.c: power on to power good time: 100ms
hub.c: hub controller current requirement: 0mA
hub.c: port removable status: R
hub.c: local power source is good
hub.c: no over-current condition exists
hub.c: enabling power on all ports
usb.c: hub driver claimed interface 2428d7dc
usb.c: kusbd: /sbin/hotplug add 1
usb.c: kusbd policy returned 0xfffffffe
FAT: bogus logical sector size 27888
FAT: bogus logical sector size 27888
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 48K
Mounting proc:
Mounting var:
Populating /var:
Mounting CF
Running local start scripts.
And my cuestions...
The OS founds two USB ports, but I don't know if they are the USB
peripherals or if one of them is the USB host. Do I need to select the
option of Host USB in kernel configuration? In this case I have to add
a PCI controller to the MicroBlaze, isn't true?
These ports are added to the hotplug, but I can't find hotplug in /sbin. Where is it?
In /dev doesn't appear /sda1 and I'd like to do mount -t vfat /dev/sda1
for my USB mass storage. How can I include the /dev/sda1 for manual
mounting?
Sorry if there are too many questions!
Thank you very much.
Kind regards
2007/4/25, Leonardo Pereira Santos:
Hi All:
To enable the SCSI support, you need first to enable "Disk hardware support".
Go to "General setup" and enable "Disk hardware support".
Cheers!
On Wednesday 25 April 2007 12:20, Raúl Rodríguez Canales wrote:
> Hello everyone,
>
> I'm working in a proyect with a ML402 with microblaze & uclinux and I need
> to connect a USB mass storage device.
>
> I've got a uclinux loggin in which the CYPRESS USB chip was detected, but
> if I try to compile a new kernel enabling the HOTPLUG and the USB MASS
> STORAGE i have the following error:
>
> drivers/usb/usbdrv.o: In function `detect':
> /home/mira/proyecto2/uclinux/uClinux-
2.4.x/drivers/usb/storage/scsiglue.c(.
>text+0x8664): undefinedreference to `scsi_register'
> drivers/usb/usbdrv.o: In function `storage_probe':
> /home/mira/proyecto2/uclinux/uClinux-2.4.x/drivers/usb/storage/usb.c(.text+
>0xe2c4): undefined reference to `scsi_register_module'
> drivers/usb/usbdrv.o: In function `usbd_hotplug':
> /home/mira/proyecto2/uclinux/uClinux-2.4.x/drivers/usb/cy7c67300/usbd/usbd.
>c(.text+0x1c268): undefined reference to `hotplug'
> drivers/usb/usbdrv.o: In function `usb_stor_exit':
> /home/mira/proyecto2/uclinux/uClinux-2.4.x/drivers/usb/storage/usb.c(.text.
>exit+0x60): undefined reference to `scsi_unregister_module'
> make[1]: *** [linux] Error 1
>
> I think this error is because I've not enabled the SCSI driver, but the
> problem is that I can't find this option in menuconfig... Does anyone know
> how to enable the SCSI in
uClinux-2.4.x? Or is there anther form to do
> this?
>
> I'll appreciate any help!
>
> Thank you very much.
>
> Kind regards.
--
This is Linux country.
On a quiet night, you can hear Windows reboot.
Leonardo Pereira Santos |_|0|_|
Engenheiro de Projetos |_|_|0|
PD3 Tecnologia |0|0|0|
av. Para 330/202
(51) 3337 1237
Today Fortune tells us:
Reading is thinking with someone else's head instead of one's own.
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page :
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
--
***********************************
* Raúl Rodríguez Canales *
* raul.rcanales@xxxxxxxxx *
***********************************