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++

USB device!

Altera_Forum
Honored Contributor II
2,971 Views

I have a usb flash disk, I want to using it on my board, I choose USB Mass storage and SCSI disk and ISA116X driver support in menuconfig. Start uClinux on NIOS II SDK shell, using dmesg, I got these message: 

 

# dmesg 

Linux version 2.6.11-uc0 (root@localhost.localdomain) (gcc version 3.4.6)# 11 Sa 

t Apr 15 17:52:30 CST 2006 

 

 

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

 

setup_arch: No persistant network settings signature at 008F0000 

On node 0 totalpages: 2048 

DMA zone: 2048 pages, LIFO batch:1 

Normal zone: 0 pages, LIFO batch:1 

HighMem zone: 0 pages, LIFO batch:1 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 64 (order: 6, 1024 bytes) 

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) 

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) 

Memory available: 6188k/8192k RAM, 0k/0k ROM (1334k kernel code, 551k data) 

Calibrating delay loop... 24.72 BogoMIPS (lpj=123648) 

Mount-cache hash table entries: 512 (order: 0, 4096 bytes) 

NET: Registered protocol family 16 

SCSI subsystem initialized 

usbcore: registered new driver usbfs 

usbcore: registered new driver hub 

Serial: JTAG UART driver $Revision: 1.4 $ 

ttyJ0 at MMIO 0x81004000 (irq = 1) is a jtag_uart 

io scheduler noop registered 

io scheduler deadline registered 

dmfe_probe:eth0, 50000 Khz Nios 

<DM9000> eth0 I/O: 80900090, VID: 90000a46 

ADDR: 00:07:ed:00:00:00 

dmfe_probe:eth1, 50000 Khz Nios 

Linux video capture interface: v1.00 

116x: driver isp116x-hcd, 08 Apr 2005 

116x: ISP116x Host Controller, irq 4 

isp116x-hcd isp116x-hcd: new USB bus registered, assigned bus number 1 

116x: Invalid chip ID 3630 

isp116x-hcd isp116x-hcd: USB bus 1 deregistered 

116x: init error, -19 

Initializing USB Mass Storage driver... 

usbcore: registered new driver usb-storage 

USB Mass Storage support registered. 

NET: Registered protocol family 2 

IP: routing cache hash table of 512 buckets, 4Kbytes 

TCP established hash table entries: 512 (order: 0, 4096 bytes) 

TCP bind hash table entries: 512 (order: -1, 2048 bytes) 

TCP: Hash tables configured (established 512 bind 512) 

NET: Registered protocol family 1 

NET: Registered protocol family 17 

Freeing unused kernel memory: 436k freed (0x15e000 - 0x1ca000)#  

 

I plug my usb flash disk in my board usb host port, there is no message appear! 

How could I to find the usb disk?
0 Kudos
43 Replies
Altera_Forum
Honored Contributor II
423 Views

for kernel config, 

drivers->scsi->scsi disk support 

drivers->usb->usb devices filesystem, usb mass storage . 

and you need vfat support as in CF drive. 

 

 

This is the log of my usb host on pci, 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

hub 8-0:1.0: USB hub found 

hub 8-0:1.0: 2 ports detected 

Initializing USB Mass Storage driver... 

scsi0 : SCSI emulation for USB Mass Storage devices 

usbcore: registered new driver usb-storage 

USB Mass Storage support registered. 

Freeing unused kernel memory: 372k freed (0x17e000 - 0x1da000) 

init started:  BusyBox v1.2.0-pre0 (2006.04.26-14:48+0000) multi-call binary 

 

 

BusyBox v1.2.0-pre0 (2006.04.26-14:48+0000) Built-in shell (msh) 

Enter &#39;help&#39; for a list of built-in commands. 

# Vendor: Multi  Model: Flash Reader      Rev: 1.00 

  Type: Direct-Access                      ANSI SCSI revision: 00 

SCSI device sda: 1997312 512-byte hdwr sectors (1023 MB) 

sda: assuming Write Enabled 

sda: assuming drive cache: write through 

SCSI device sda: 1997312 512-byte hdwr sectors (1023 MB) 

sda: assuming Write Enabled 

sda: assuming drive cache: write through 

sda: sda1 

Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
423 Views

 

--- Quote Start ---  

originally posted by goral@Apr 28 2006, 11:52 AM 

hi, hippo : 

this message i&#39;ve got  

 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

# fdisk -l /dev/sda 

 

disk /dev/sda: 134 mb, 134070272 bytes 

2 heads, 32 sectors/track, 4091 cylinders 

units = cylinders of 64 * 512 = 32768 bytes 

 

device boot    start    end    blocks id  system 

/dev/sda1            1        4090      130864    4  fat16 <32m# mount -t vfat /dev/sda1 /mnt 

mount: mounting /dev/sda1 on /mnt failed: no such device#  

--- Quote End ---  

 

 

After I try to operate like sda1 as sda: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

# fdisk -l /dev/sda1 

 

Disk /dev/sda1: 134 MB, 134004736 bytes 

5 heads, 52 sectors/track, 1006 cylinders 

Units = cylinders of 260 * 512 = 133120 bytes 

 

  Device Boot    Start    End    Blocks Id  System 

/dev/sda1p1 ?  6546149    12813521 814758329+  74  Unknown 

Partition 1 has different physical/logical beginnings (non-Linux?): 

  phys=(288, 110, 36) logical=(6546148, 2, 41) 

Partition 1 has different physical/logical endings: 

  phys=(366, 104, 37) logical=(12813520, 1, 31) 

Partition 1 does not end on cylinder boundary. 

/dev/sda1p2 ?  5116094  7189079 269488144 65  Unknown 

Partition 2 has different physical/logical beginnings (non-Linux?): 

  phys=(107, 121, 32) logical=(5116093, 0, 13) 

Partition 2 has different physical/logical endings: 

  phys=(10, 121, 13) logical=(7189078, 3, 44) 

Partition 2 does not end on cylinder boundary. 

/dev/sda1p3 ?  2073037  7451356 699181456 53  Unknown 

Partition 3 has different physical/logical beginnings (non-Linux?): 

  phys=(345, 32, 19) logical=(2073036, 0, 32) 

Partition 3 has different physical/logical endings: 

  phys=(324, 77, 19) logical=(7451355, 0, 3) 

Partition 3 does not end on cylinder boundary. 

/dev/sda1p4 ?    15035072    15035323    32669+  bb  Unknown 

Partition 4 has different physical/logical beginnings (non-Linux?): 

  phys=(65, 1, 0) logical=(15035071, 2, 3) 

Partition 4 has different physical/logical endings: 

  phys=(96, 0, 7) logical=(15035322, 3, 29) 

Partition 4 does not end on cylinder boundary. 

 

Partition table entries are not in disk order# [/b] 

--- Quote End ---  

 

 

Maybe the disk wasn&#39;t work? 

Could I try other device to replcae the usb flash disk to test the ISP1362? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14792)</div> 

[/b] 

--- Quote End ---  

 

From your result, the isp1362 should work. 

The usb disk is detected, and partition table is correct. 

did you enable vfat in kernel config as in step16 of the buildroot guide?
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Hi, hippo  

 

Thank for your help, my usb flash disk was working now,, these is my message using on DE II board: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

# usb 1-2: new full speed USB device using isp1362-hcd and address 2 

usb 1-2: Product: USB Mass Storage 

usb 1-2: Manufacturer: USB Mass Storage 

usb 1-2: SerialNumber: ABCDEF123456789 

usb 1-2: configuration# 1 chosen from 1 choice 

scsi0 : SCSI emulation for USB Mass Storage devices 

  Vendor: USB-disk  Model: FREEDIK-LWFORMAT  Rev: 1.06 

  Type:   Direct-Access                      ANSI SCSI revision: 00 

SCSI device sda: 261856 512-byte hdwr sectors (134 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

SCSI device sda: 261856 512-byte hdwr sectors (134 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

sda:<7>usb-storage: queuecommand called 

sda1 

sd 0:0:0:0: Attached scsi removable disk sda 

# mount -t vfat /dev/sda1 /mnt# cd /mnt# ls 

DE2_UserManual.pdf# [/b] 

--- Quote End ---  

 

 

I only changed two place in isp1362-hcd.c 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

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 = 20; 

unsigned long flags; 

int clkrdy = 0; 

                ret = 1; 

 

INFO("%s:\n", __FUNCTION__); 

 

if (isp1362_hcd->board && isp1362_hcd->board->reset) { 

  isp1362_hcd->board->reset(hcd->self.controller, 1); 

  msleep(20); 

  if (isp1362_hcd->board->clock) { 

   isp1362_hcd->board->clock(hcd->self.controller, 1); 

  } 

  isp1362_hcd->board->reset(hcd->self.controller, 0); 

} else { 

  isp1362_sw_reset(isp1362_hcd); 

 

// chip has been reset. First we need to see a clock 

t = jiffies + msecs_to_jiffies(timeout); 

while (!clkrdy && time_before_eq(jiffies, t)) { 

  spin_lock_irqsave(&isp1362_hcd->lock, flags); 

  clkrdy = isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_CLKRDY; 

  spin_unlock_irqrestore(&isp1362_hcd->lock, flags); 

  if (!clkrdy) { 

   msleep(4); 

  } 

 

spin_lock_irqsave(&isp1362_hcd->lock, flags); 

isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_CLKRDY); 

spin_unlock_irqrestore(&isp1362_hcd->lock, flags); 

if (clkrdy) { 

  ERR("Clock not ready after %lums\n", timeout); 

  ret = -ENODEV; 

return ret; 

}[/b] 

--- Quote End ---  

 

 

With best regards!
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

 

--- Quote Start ---  

originally posted by goral@Apr 28 2006, 02:07 PM 

hi, hippo  

 

thank for your help, my usb flash disk was working now,, these is my message using on de ii board: 

 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

 

# usb 1-2: new full speed usb device using isp1362-hcd and address 2 

usb 1-2: product: usb mass storage 

usb 1-2: manufacturer: usb mass storage 

usb 1-2: serialnumber: abcdef123456789 

usb 1-2: configuration# 1 chosen from 1 choice 

scsi0 : scsi emulation for usb mass storage devices 

  vendor: usb-disk  model: freedik-lwformat  rev: 1.06 

  type: direct-access                      ansi scsi revision: 00 

scsi device sda: 261856 512-byte hdwr sectors (134 mb) 

sda: write protect is off 

sda: assuming drive cache: write through 

scsi device sda: 261856 512-byte hdwr sectors (134 mb) 

sda: write protect is off 

sda: assuming drive cache: write through 

sda:<7>usb-storage: queuecommand called 

sda1 

sd 0:0:0:0: attached scsi removable disk sda 

# mount -t vfat /dev/sda1 /mnt# cd /mnt# ls 

de2_usermanual.pdf#  

--- Quote End ---  

 

 

I only changed two place in isp1362-hcd.c 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

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 = 20; 

unsigned long flags; 

int clkrdy = 0; 

                ret = 1; 

 

INFO("%s:\n", __FUNCTION__); 

 

if (isp1362_hcd->board && isp1362_hcd->board->reset) { 

  isp1362_hcd->board->reset(hcd->self.controller, 1); 

  msleep(20); 

  if (isp1362_hcd->board->clock) { 

isp1362_hcd->board->clock(hcd->self.controller, 1); 

  } 

  isp1362_hcd->board->reset(hcd->self.controller, 0); 

} else { 

  isp1362_sw_reset(isp1362_hcd); 

 

// chip has been reset. First we need to see a clock 

t = jiffies + msecs_to_jiffies(timeout); 

while (!clkrdy && time_before_eq(jiffies, t)) { 

  spin_lock_irqsave(&isp1362_hcd->lock, flags); 

  clkrdy = isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_CLKRDY; 

  spin_unlock_irqrestore(&isp1362_hcd->lock, flags); 

  if (!clkrdy) { 

msleep(4); 

  } 

 

spin_lock_irqsave(&isp1362_hcd->lock, flags); 

isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_CLKRDY); 

spin_unlock_irqrestore(&isp1362_hcd->lock, flags); 

if (clkrdy) { 

  ERR("Clock not ready after %lums\n", timeout); 

  ret = -ENODEV; 

return ret; 

}[/b] 

--- Quote End ---  

 

 

With best regards! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14801)</div> 

[/b] 

--- Quote End ---  

 

Thank you, too. 

So you just bypass the clock check?
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

hi hippo & goral 

 

I can see usb info( dev/sda1) from booting messages, and can&#39;t mount /dev/sda1 to /mnt . why ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

Is it not working ? 

 

ps: i have changed code in isp1362-hcd.c . 

 

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

 

setup_arch: No persistant network settings signature at 00BF0000 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 64 (order: 6, 1024 bytes) 

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) 

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) 

Memory available: 5952k/8192k RAM, 0k/0k ROM (1591k kernel code, 555k data) 

Mount-cache hash table entries: 512 

NET: Registered protocol family 16 

SCSI subsystem initialized 

usbcore: registered new driver usbfs 

usbcore: registered new driver hub 

io scheduler noop registered 

io scheduler deadline registered (default) 

Serial: JTAG UART driver $Revision: 1.4 $ 

ttyJ0 at MMIO 0x80c81120 (irq = 1) is a jtag_uart 

dmfe_probe:eth0, 50000 Khz Nios 

<DM9000> eth0 I/O: 80c81130, VID: 90000a46 

ADDR: 00:07:ed:00:00:00 

dmfe_probe:eth1, 50000 Khz Nios 

usbmon: debugfs is not available 

driver isp1362-hcd, 2005-04-04 

isp1362-hcd isp1362-hcd: ISP1362 Host Controller 

isp1362_hc_reset: 

isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 

isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0 

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: 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 4 

Initializing USB Mass Storage driver... 

usbcore: registered new driver usb-storage 

USB Mass Storage support registered. 

NET: Registered protocol family 2 

IP route cache hash table entries: 128 (order: -3, 512 bytes) 

TCP established hash table entries: 512 (order: -1, 2048 bytes) 

TCP bind hash table entries: 512 (order: -1, 2048 bytes) 

TCP: Hash tables configured (established 512 bind 512) 

TCP reno registered 

TCP bic registered 

NET: Registered protocol family 1 

NET: Registered protocol family 10 

IPv6 over IPv4 tunneling driver 

NET: Registered protocol family 17 

Freeing unused kernel memory: 436k freed (0x1a0000 - 0x20c000) 

init started: BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary 

usb 1-2: new full speed USB device using isp1362-hcd and address 2 

usb 1-2: configuration# 1 chosen from 1 choice 

scsi0 : SCSI emulation for USB Mass Storage devices 

 

 

BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (msh) 

Enter &#39;help&#39; for a list of built-in commands. 

# Vendor: USB 2.0 Model: Mobile Disk Rev: 2.00 

Type: Direct-Access ANSI SCSI revision: 02 

SCSI device sda: 256000 512-byte hdwr sectors (131 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

SCSI device sda: 256000 512-byte hdwr sectors (131 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

sda: sda1 

sd 0:0:0:0: Attached scsi removable disk sda 

# fdisk -l /dev/sda 

 

Disk /dev/sda: 131 MB, 131072000 bytes 

16 heads, 32 sectors/track, 500 cylinders 

Units = cylinders of 512 * 512 = 262144 bytes 

 

Device Boot Start End Blocks Id System 

/dev/sda1 * 1 499 127728 6 FAT16# mount -t vfat /dev/sda1 /mnt 

mount: Mounting /dev/sda1 on /mnt failed: No such device#  

 

thx in advance !
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Hi, hippo  

I &#39;m a new user on linux about two months, so I haven&#39;t do more check about device driver, I checked some reg and then I contrast it as the ISP1362&#39;s datasheet, I changed it.Maybe there have antoher problem, when other probelm appearance, I&#39;ll search help and try to solve its. 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

So you just bypass the clock check?[/b] 

--- Quote End ---  

 

 

THX!
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Hi, jay_1025: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

hi hippo & goral 

 

I can see usb info( dev/sda1) from booting messages, and can&#39;t mount /dev/sda1 to /mnt . why ? sad.gif 

Is it not working ? 

 

ps: i have changed code in isp1362-hcd.c . 

[/b] 

--- Quote End ---  

 

 

You may check your menuconfig like as hippo mentioned: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

for kernel config, 

drivers->scsi->scsi disk support 

drivers->usb->usb devices filesystem, usb mass storage . 

and you need vfat support as in CF drive. 

 

[/b] 

--- Quote End ---  

 

 

After that, you could do like this: 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

File systems -->   

DOS/FAT/NT Filesystems  ---> 

[*] MSDOS fs support 

[*] VFAT (Windows-95) fs support 

(437) Default codepage for FAT 

(iso8859-1) Default iocharset for FAT 

Native Language Support --> 

(iso8859-1) Default NLS Option 

[*] Codepage 437 (United States, Canada) 

[*] NLS ISO 8859-1  (Latin 1; Western European Languages) 

 

[/b] 

--- Quote End ---  

 

 

Maybe you can access your usb flash disk! 

Lucky! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

hi qoral 

 

thank you for your reply ! 

 

final step is very important ! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

I can access usb flash disk(fat 16) on uClinux OS,and the reason that i can&#39;t mount usb flash is file system problem, before. 

 

Can i mount usb flash disk that file system is linux ? 

# fdisk -l /dev/sda 

 

Disk /dev/sda: 131 MB, 131072000 bytes 

16 heads, 32 sectors/track, 500 cylinders 

Units = cylinders of 512 * 512 = 262144 bytes 

 

Device Boot Start End Blocks Id System 

/dev/sda1 1 500 127984 83 Linux# mount -t vfat /dev/sda1 /mnt 

mount: Mounting /dev/sda1 on /mnt failed: Invalid argument# usb 1-2: USB disconnect, address 2 

usb 1-2: new full speed USB device using isp1362-hcd and address 3 

usb 1-2: configuration# 1 chosen from 1 choice 

scsi1 : SCSI emulation for USB Mass Storage devices 

Vendor: USB 2.0 Model: Mobile Disk Rev: 2.00 

Type: Direct-Access ANSI SCSI revision: 02 

SCSI device sda: 256000 512-byte hdwr sectors (131 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

SCSI device sda: 256000 512-byte hdwr sectors (131 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

sda: sda1 

sd 1:0:0:0: Attached scsi removable disk sda 

# fdisk -l /dev/sda 

 

Disk /dev/sda: 131 MB, 131072000 bytes 

16 heads, 32 sectors/track, 500 cylinders 

Units = cylinders of 512 * 512 = 262144 bytes 

 

Device Boot Start End Blocks Id System 

/dev/sda1 * 1 499 127728 6 FAT16# mount -t vfat /dev/sda1 /mnt# cd /mnt# ls 

?? S1????.doc nios2.ptf 

??1.vsd S1??????0411.doc nios2_system.h 

????10 app_self nios_1.ptf 

????2.doc ice zImage 

Filesystem_1c20_usr jay_??#  

 

thx in advance !
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

I&#39;m glad to hear your success, Maybe you could try your thought, I didn&#39;t do that, I want to using the usb host port for my camera, If you interesting, we can help each other! 

Are u want to try?
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

I am very happy with the success of you both. Help each other, please. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

If you want to mount Linux disk partition or others, you can enable them in kernel config, 

file system -> ext2 or ext3 or others . 

 

You should enable only the options which you will use. But don&#39;t enable too much, the kernel size will grow, take more memory and take longer time to boot.
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

 

--- Quote Start ---  

originally posted by goral@Apr 28 2006, 07:33 AM 

i&#39;m glad to hear your success, maybe you could try your thought, i didn&#39;t do that, i want  to using the usb host port  for  my camera, if you interesting, we can help each other! 

are u want to try? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14818) 

--- quote end ---  

 

--- Quote End ---  

 

 

hi groal  

 

OK,we can discuss usb port for camera and help each other. 

 

what kind of purposes do you want to implement on DE2 board ? 

 

my lab have two 1.3Mega Pixel Digital Camera modules for DE2 ,and can implement real-time movement detecting . my classmate want to use usb camera that implement the same purpose. 

so, do you have interests in real-time movement detecting with using usb camera ?
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

hi groal 

 

OK,we can discuss usb port for camera and help each other. 

 

what kind of purposes do you want to implement on DE2 board ? 

 

my lab have two 1.3Mega Pixel Digital Camera modules for DE2 ,and can implement real-time movement detecting . my classmate want to use usb camera that implement the same purpose. 

so, do you have interests in real-time movement detecting with using usb camera ?[/b] 

--- Quote End ---  

 

 

Hi : jay_1025 

Thanks for your enjoy, I didn&#39;t so high Pixel Digital Camera modules, today I buy a 0.3Mega Pixel Digitial Camera which using ov511 IC on a onilne shop, Maybe 2-days later I will do my lab continue, I read some program for capture video data such as V4L now, I want to capture some video and compress them by some mpga4 algorithm and storage them in USB flash disk, and then I want to see the realtime video on my tuochscreens or transform on the internet. 

Maybe like a video phone http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif ,Like as I done on ARM9 platform before! 

We can help each other! 

Regards!
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

 

--- Quote Start ---  

originally posted by goral@Apr 30 2006, 07:48 AM 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

hi groal 

 

ok,we can discuss usb port for camera and help each other. 

 

what kind of purposes do you want to implement on de2 board ? 

 

my lab have two 1.3mega pixel digital camera modules for de2 ,and can implement real-time movement detecting . my classmate want to use usb camera that implement the same purpose. 

so, do you have interests in real-time movement detecting with using usb camera ? 

--- Quote End ---  

 

 

Hi : jay_1025 

Thanks for your enjoy, I didn&#39;t so high Pixel Digital Camera modules, today I buy a 0.3Mega Pixel Digitial Camera which using ov511 IC on a onilne shop, Maybe 2-days later I will do my lab continue, I read some program for capture video data such as V4L now, I want to capture some video and compress them by some mpga4 algorithm and storage them in USB flash disk, and then I want to see the realtime video on my tuochscreens or transform on the internet. 

Maybe like a video phone http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif ,Like as I done on ARM9 platform before! 

We can help each other! 

Regards! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14864)</div> 

[/b] 

--- Quote End ---  

 

 

Just one question : if you have already done this work on an ARM9 platform, why do you want to port this to the NIOS platform ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Just one question : if you have already done this work on an ARM9 platform, why do you want to port this to the NIOS platform ? rolleyes.gif[/b] 

--- Quote End ---  

 

 

Hi bigboss25: 

Its a very fun question, my answer is very simple, I&#39;m a student in a college, I want to master more knowledge only! 

I want to contrast the different platform, now I prefer like nios, Its full of Challenge when I solve some problem, In furture, I think NIOS will have a good chance in many areas, if we can intergate two or more CPU on our FPGA ,lsuch as DSP or other . We&#39;ll get the most effective than other singel CPU platform. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

 

--- Quote Start ---  

originally posted by goral@Apr 30 2006, 09:21 AM 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

just one question : if you have already done this work on an arm9 platform, why do you want to port this to the nios platform ? rolleyes.gif 

--- Quote End ---  

 

 

Hi bigboss25: 

Its a very fun question, my answer is very simple, I&#39;m a student in a college, I want to master more knowledge only! 

I want to contrast the different platform, now I prefer like nios, Its full of Challenge when I solve some problem, In furture, I think NIOS will have a good chance in many areas, if we can intergate two or more CPU on our FPGA ,lsuch as DSP or other . We&#39;ll get the most effective than other singel CPU platform. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14866)</div> 

[/b] 

--- Quote End ---  

 

 

Hi Goral, 

you seems to be already a wise man, and I totally agree with you http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif . 

I&#39;ve the same point of view but do you think NIOS can compete with ARM9 ? 

Can you explain your preference for NIOS ? 

 

Regards.
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Hi Goral, 

you seems to be already a wise man, and I totally agree with you biggrin.gif . 

I&#39;ve the same point of view but do you think NIOS can compete with ARM9 ? 

Can you explain your preference for NIOS ? 

 

Regards.[/b] 

--- Quote End ---  

 

 

Hi bigboss25 

Thanks for your Praise&#65292; http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif  

Of course I think NIOS must be compete with ARM, but NIOS must be advantage itself in furture. I&#39;m a new man about NIOS and uCliunx, so I want to using NIOS&uClinux to achieve a video phone or other usful thing. 

If you are interestig NIOS & uCLinux, We can help each other! Could I search help for you when I occur some problem? 

Regards!
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

hi qoral 

 

i have TRDB_DC2 hareware module support the DE2 board, but i don&#39;t add TRDB_DC2 hardware to Nios2 cpu in SOPC Builder yet.  

i don&#39;t seems easy to add it with nios2 cpu in SOPC builder. 

Do you know how to add it with nios2 cpu in SOPC builder ? 

if you want to try it and i will send hardware project(without nios2 cpu) to you. 

 

Reference design website for DE2 

trdb_dc2 - 1.3mega pixel digital camera module for de2/trex c1 (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=39&no=50

 

jay
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

hi 

 

i tried out the new isp1362-hcd.c changes and uclinux boots up nicely - thx goral and jay_1025! 

 

i can see the files on my usb stick now, thx guys! 

 

shindou
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

hi qoral 

 

i have TRDB_DC2 hareware module support the DE2 board, but i don&#39;t add TRDB_DC2 hardware to Nios2 cpu in SOPC Builder yet. 

i don&#39;t seems easy to add it with nios2 cpu in SOPC builder. 

Do you know how to add it with nios2 cpu in SOPC builder ? 

if you want to try it and i will send hardware project(without nios2 cpu) to you. 

 

Reference design website for DE2 

TRDB_DC2 - 1.3Mega Pixel Digital Camera Module for DE2/TREX C1 

 

jay[/b] 

--- Quote End ---  

 

 

Hi jay_1025 

 

I&#39;m I dodn&#39;t have TRDB_DC2 - 1.3Mega Pixel Digital Camera Module, and I haven&#39;t any resource about it. So I couldn&#39;t do it now http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

I backported the isp1362-hcd.c to Microtronix 2.6.11 kernel from the 

isp1362.diff 

The whole procedure is described on my homepage 

http://www.8ung.at/nacide_manfred/linuxtutorial.html (http://www.8ung.at/nacide_manfred/linuxtutorial.html)
0 Kudos
Altera_Forum
Honored Contributor II
423 Views

Hello... 

Please Help as I think you people can.. 

 

I am curently working on IP08 board made by Rowetel and it has BF532 and ISP1362 controller for USB. The Problem I am facing is that I am able to use normal USB Mass storage devices they are detected by the system (uClinux 2009 dist). 

 

i.e. it prints a message saying usb 1-2: new full speed USB device using isp1362-hcd and address 2  

usb 1-2: configuration# 1 chosen from 1 choice  

scsi0 : SCSI emulation for USB Mass Storage devices  

usb 1-2: New USB device found, idVendor=0951, idProduct=160b  

usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3  

usb 1-2: Product: DataTraveler2.0  

usb 1-2: Manufacturer: Kingston  

usb 1-2: SerialNumber: 0802101904166  

uncorrectable error : <3>uncorrectable error : <3>uncorrectable error : <3>unco2 

sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)  

sd 0:0:0:0: [sda] Write Protect is off  

sd 0:0:0:0: [sda] Assuming drive cache: write through  

sd 0:0:0:0: [sda] 7806847 512-byte hardware sectors: (3.99 GB/3.72 GiB)  

sd 0:0:0:0: [sda] Write Protect is off  

sd 0:0:0:0: [sda] Assuming drive cache: write through  

sda: sda1  

sd 0:0:0:0: [sda] Attached SCSI removable disk  

and at this point  

root:/proc/bus/usb> cat devices  

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2  

B: Alloc= 0/900 us ( 0%),# Int= 0,# Iso= 0  

D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64# Cfgs= 1  

P: Vendor=1d6b ProdID=0001 Rev= 2.06  

S: Manufacturer=Linux 2.6.28.10-ADI-2009R1.1 isp1362-hcd  

S: Product=ISP1362 Host Controller  

S: SerialNumber=isp1362-hcd.0  

C:*# Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA  

I:* If#= 0 Alt= 0# EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub  

E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms  

 

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=12 MxCh= 0  

D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64# Cfgs= 1  

P: Vendor=0951 ProdID=160b Rev= 1.00  

S: Manufacturer=Kingston  

S: Product=DataTraveler2.0  

S: SerialNumber=0802101904166  

C:*# Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA  

I:* If#= 0 Alt= 0# EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage  

E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms  

E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms  

 

 

 

But when I try to attach MP3 Player or Nokia Phone it does not even show symptoms of being attached to usb port. Although I have compiled ISP1362-HCD and enabled the cdc-acm support as well. Kindly guide me whether it is feasible or not, If yes then where the problem is.
0 Kudos
Reply