--- Quote Start ---
originally posted by goral@Apr 27 2006, 09:42 PM
hi:
i've changed a little code in isp1362-hcd.c, these is my boot message:
<div class='quotetop'>quote
--- quote end ---
--- 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.
# --- 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
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14756)</div>
[/b]
--- Quote End ---
Very Good,
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
It seems to working. The usb disk is detected. /dev/sda1
You can try "mount -t vfat /dev/sda1 /mnt" .
You don't need scsi sg device. Only scsi disk is required for usb disk.
Would you attach your updated isp1362-hcd.c (zipped) to my buildroot guide?