Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12627 Discussions

ISP1362 - DE2-70 - kernel 2.6.30

Altera_Forum
Honored Contributor II
1,490 Views

After upgrading to 2.6.30 uClinux-dist and using ISP1362 component ISP1362_CTRL.v from http://www.nioswiki.com/@api/deki/files/131/=isp1362_ctrl.v (http://www.nioswiki.com/@api/deki/files/131/=isp1362_ctrl.v

 

The only way i found for getting work full USB Host with Mass Storage Support, it was ommitting clock  

check at function isp1362_hc_reset 

 

static int isp1362_hc_reset(struct usb_hcd *hcd) { int ret = 0; struct isp1362_hcd *isp1362_hcd = hcd_to_isp1362_hcd(hcd); unsigned long t; unsigned long timeout = 100; unsigned long flags; int clkrdy = 0; /*Se omite la revisión del reloj*/ return 1; ..........................  

 

 

Now boot messages look like below with my Nokia 5310 attached to the USB-Host Hub. 

 

Uncompressing Linux... Ok, booting the kernel. Linux version 2.6.30 (parrado@parrado-laptop) (gcc version 3.4.6)# 18 PREEMPT Sat Sep 26 12:46:58 COT 2009 uClinux/Nios II Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16256 Kernel command line: NR_IRQS:32 PID hash table entries: 256 (order: 8, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory available: 62164k/2792k RAM, 0k/0k ROM (1901k kernel code, 891k data) Calibrating delay loop... 49.35 BogoMIPS (lpj=246784) Mount-cache hash table entries: 512 net_namespace: 264 bytes NET: Registered protocol family 16 init_BSP(): registering device resources bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 io scheduler noop registered io scheduler deadline registered (default) ttyJ0 at MMIO 0x8001050 (irq = 1) is a Altera JTAG UART console enabled Driver 'sd' needs updating - please use bus_type methods dm9000 Ethernet Driver, V1.31 driver isp1362-hcd, 2005-04-04 isp1362-hcd isp1362-hcd: ISP1362 Host Controller isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 isp1362-hcd isp1362-hcd: irq 2, io mem 0x08001040 isp1362_hc_start: isp1362-hcd isp1362-hcd: ISP1362 Memory usage: isp1362-hcd isp1362-hcd: ISTL: 2 * 256: 512 @ $0000:$0100 isp1362-hcd isp1362-hcd: INTL: 16 * ( 64+8): 1152 @ $0200 isp1362-hcd isp1362-hcd: ATL : 32 * ( 64+8): 2304 @ $0680 isp1362-hcd isp1362-hcd: USED/FREE: 3968 128 usb usb1: New USB device found, idVendor=1d6b, idProduct=0001 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: ISP1362 Host Controller usb usb1: Manufacturer: uClinux 2.6.30 isp1362-hcd usb usb1: SerialNumber: isp1362-hcd usb usb1: configuration# 1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ISP1362 Host Controller, irq 2 Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. TCP cubic registered NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. Freeing unused kernel memory: 600k freed (0x4224000 - 0x42b9000) Shell invoked to run file: /etc/rc Command: hostname uClinux Command: mount -t proc proc /proc -o noexec,nosuid,nodev usb 1-2: new full speed USB device using isp1362-hcd and address 2 Command: mount -t sysfs sysfs /sys -o noexec,nosuid,nodevusb 1-2: New USB device found, idVendor=0421, idProduct=006a usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-2: Product: Nokia 5310 XpressMusic usb 1-2: Manufacturer: Nokia usb 1-2: SerialNumber: 358990016653230 usb 1-2: configuration# 1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices Command: mount -t devpts devpts /dev/pts -o noexec,nosuid Command: mount -t usbfs none /proc/bus/usb Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: ifconfig lo 127.0.0.1 Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Execution Finished, Exiting Sash command shell (version 1.1.1) /> scsi 0:0:0:0: Direct-Access Nokia Nokia 5310 Xpres 0000 PQ: 0 ANSI: 4 sd 0:0:0:0: Adjusting the sector count from its reported value: 3970049 sd 0:0:0:0: 3970048 512-byte hardware sectors: (2.03 GB/1.89 GiB) sd 0:0:0:0: Write Protect is off sd 0:0:0:0: Assuming drive cache: write through sd 0:0:0:0: Adjusting the sector count from its reported value: 3970049 sd 0:0:0:0: Assuming drive cache: write through sda: sd 0:0:0:0: Attached SCSI removable disk
0 Kudos
10 Replies
Altera_Forum
Honored Contributor II
656 Views

Thanks. I will update the git. 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

Hi, 

 

I don't know if it is the best post to write about this, but I do it because it is about the ISP1362 and also I work with a de2-70 fpga. 

 

I use linux with MMU and the component is the one of nioswiki, ISP1362_control.v 

 

When I boot uclinux in the initialization screen appear two lines with an error. 

1-isp1362-hcd isp1362-hcd: can't setup 

2-isp1362_probe: init error, -19 

 

 

--- Quote Start ---  

 

isp1362_hc_reset: 

Clock not ready after 100ms 

isp1362-hcd isp1362-hcd: can't setup 

isp1362-hcd isp1362-hcd: USB bus 1 deregistered 

isp1362_probe: init error, -19 

Initializing USB Mass Storage driver... 

usbcore: registered new interface driver usb-storage 

USB Mass Storage support registered. 

 

--- Quote End ---  

I think that it has relationed with the address of the component(ISR1362) and the irq, I have checked that were the same as in custom_fpga.h. 

 

I would appreciate if someone can suggest some idea about which thing I do wrong. 

 

Thanks a lot
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

Hi, 

 

I have look for the function that gives this error. It is usb_add_hcd in hcd.c  

 

This is the peace of code that not fulfill, but I don't know which is the source 

 

 

--- Quote Start ---  

 

printk(KERN_ERR "Valor menor que uno PUFF: %d\n",hcd->driver->reset(hcd)); 

if (hcd->driver->reset && (retval = hcd->driver->reset(hcd)) < 0) { 

dev_err(hcd->self.controller, "can't setup\n"); 

printk(KERN_ERR "Peta aki\n"); 

goto err_hcd_driver_setup; 

 

--- Quote End ---  

Thanks for help
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

Hi, 

 

Sorry for my nonsense. I have the solution in front of my eyes. 

 

Sorry
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

hello ,parrado ! 

I need you give me a detailed expansion for isp1362-de2-70with uclinux-dist 2.6.30 

 

I am porting uclinux to board for DE2_70_NIOS2_HOST_MOUSE_VGA project! 

thanks a lot!
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

hello &#65292; do you do isp1362 device controller driver for usbslave side on de2-70 board to connect a pc? 

 

if you have done ,please give help to me!
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

If you post the same message several times, everybody will find you impolite and will not want to reply. 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

sorry ! I will very be careful next time !!

0 Kudos
Altera_Forum
Honored Contributor II
656 Views

Maybe it might be better to start a new thread instead of extending a very old one with a new question. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
656 Views

hello,vikonilov,can you tell how to solve your problem

0 Kudos
Reply