<div dir="ltr"><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">Hello all,</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">I am trying to add usb_ethernet (smsc) driver for raspberry pi for both USB and Ethernet support.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">Now I have added the required files. But the USB device is not getting power. To get the compilation error-less, I have applied a hack.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">if_smsc.c is using the function “usbd_m_copy_in” which is present in the file sys/dev/usb/usb_busdma.c. But due to this macro #if USB_HAVE_MBUF the function was not getting compiled. So I have commented out the macro and let the function compile.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">Now ideally I should have used the DMA controller. Here I don't know the status of DMA's functions and their usage. Any pointers on that ?</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">I believe the problem is secondary for the USB to function. Anyhow the USB devices should get the power if the code is added. I suspect there is no proper linking between the drivers. (i.e. dwcotg, bcm283x_dwcotg, ushub, smsc, uhub, usb.) I would like some insights on how these interact.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">I have added following lines in the nexus-devices.h file under Raspberry-pi-BSP.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(bcm283x_dwcotg, nexus);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(smsc, uhub);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(smsc, uether);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(smsc, usb);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(smsc, ether);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">SYSINIT_DRIVER_REFERENCE(smsc, miibus);</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">I am also attaching the log of INIT01 Test.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">I need help at this point. I am kind of stuck here.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif"><br style=""></p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">Thank you in advance.</p><p style="margin:0px;padding:0px;border:0px;font-size:13px;line-height:17.03px;font-family:Arial,sans-serif">Deval Shah</p><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div></div></div></div>
</div>