Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

scsi

A different take: has anyone got any scsi device working under microtronix uClinux for Nios II, usb-storage or otherwise? I.e., is it known whether the scsi system works at all?

(What's motivating this question is that I've got the hs811-hcd driver loaded and apparently working, and the usb-storage driver is loaded, and it detects the flash drive which is plugged in, and I don't get any error messages, but the SCSI system doesn't seem to have a device for the flash disk.)

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That's very good to hear. Did you have to do anything special with the SCSI subsystem or usb-storage driver?

    In any event, thanks for letting me know.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It was quite a while ago. The only thing that I can remember is scsi driver needs DMA buffer. You need to have something in your DMA zone.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That's bad news since the sl811 doesn't do DMA (and the sl811-hcd driver explicitly fails when you try to do DMA).

    That being said, I'm starting to see where my problem is: when usb-storage tries to issue a USB command to find out how many LUNs there are, it gets 0 back. So, I believe, it doesn't try to create any SCSI devices. (I'm currently trying to figure out why it gets 0 as the result of the control URB that it sends.)

    Incidentally, do you have any idea when the next microtronix uClinux release will be? Also, if you want any of my work with the USB driver (it's actually fairly simple, but you have to stick the config stuff into the driver itself to get around a compiler bug with putting it in setup_arch() in setup.c), just let me know.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    the scsi driver just allocates buffer with GFP_DMA flag, it does not need anything from your sl811 driver. You are fine.