some problems found with switching to front port usb on the nwsp2 (device mode for usb).
Need to adpat the code because main changes are made in the usb device controller of the kernel
I used in the past fsl-usb2.udc module but that doesn't seem to like the kirkood setups
So i changed over to using mv-udc (the one also used by Lacie firmware to make the switch)
After some trial and error i got that platform integrated in the setup files and the mv-udc module loads fine now.
- Code: Select all
root@fvdwsl-nwsp2:/ # dmesg -c
[ 96.594914] usbcore: deregistering interface driver usb-storage
[ 96.642155] orion-ehci orion-ehci.0: remove, state 1
[ 96.647295] usb usb1: USB disconnect, device number 1
[ 96.668606] orion-ehci orion-ehci.0: USB bus 1 deregistered
[ 96.726030] switching from usb-host to usb-device mode
[ 96.742637] mv_usb_release
[ 96.745344] orion-ehci unregistered
[ 96.759333] mv_udc registered
[ 96.762390] init function mv_udc controller finished
[ 96.768774] mv_udc registered
root@fvdwsl-nwsp2:/ #
root@fvdwsl-nwsp2:/ # modprobe mv-udc
root@fvdwsl-nwsp2:/ # dmesg -c
[ 142.177389] Driver 'mv-udc'
But when loading g-file-storage it doesn't probe the driver and returns error no such device.
- Code: Select all
root@fvdwsl-nwsp2:/ # modprobe g-file-storage file=/share/1000/usb-stor
modprobe: 'g_file_storage.ko': No such device
I cannot (yet) find the reason :thinking