Hi:
I've changed a little code in ISP1362-hcd.c, these is my boot message:
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
[SOPC Builder]$ nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Uncompressing Linux... Ok, booting the kernel.
Linux version 2.6.16-uc0 (
root@141.71.193.202.in-addr.arpa) (gcc version 3.4.6)# 10 PREEMPT Thu Apr 27 21:18:42 CST 2006
uClinux/Nios II
Altera Nios II support © 2004 Microtronix Datacom Ltd.
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: 6676k/8192k RAM, 0k/0k ROM (982k kernel code, 437k data)
Mount-cache hash table entries: 512
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 0x81004000 (irq = 1) is a jtag_uart
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 0x80900080
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: Product: ISP1362 Host Controller
usb usb1: Manufacturer: uClinux 2.6.16-uc0 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 4
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Freeing unused kernel memory: 348k freed (0x102000 - 0x158000)
init started: BusyBox v1.1.1-pre0 (2006.04.21-12:33+0000) multi-call binary
BusyBox v1.1.1-pre0 (2006.04.21-12:33+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
# [/b]
--- Quote End ---
After I plug my usb flash disk, I got these message:
<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
sd 0:0:0:0: Attached scsi generic sg0 type 0
#
[/b]
--- Quote End ---
I don't sure the ISP1362 was working.
I want to access my usb disk by nios2-sdk-shell, what I need to next step?
THX