i think i compile tested it but never had the time to runtime test it.

does it work for you ?



On 04/06/2014 15:28, zhenjun_...@icloudaegis.com wrote:
> Hi, I found a patch meeting my need: 
> https://dev.openwrt.org/browser/trunk/target/linux/ramips/patches-3.9/0162-USB-MIPS-ralink-add-rt5350-mt7620-UDC.patch?rev=37058
>  This patch  is not be ported to pathces-3.10. Is there any
> reason?
> 
> ------------------------------------------------------------------------
>
> 
zhenjun_...@icloudaegis.com
> 
> 
> *From:* zhenjun_...@icloudaegis.com
> <mailto:zhenjun_...@icloudaegis.com> *Date:* 2014-06-03 21:57 *To:*
> openwrt-devel <mailto:openwrt-devel@lists.openwrt.org>; blogic 
> <mailto:blo...@openwrt.org> *Subject:* ramips dwc_otg DEVICE_ONLY
> mode build failed Hi, I need that rt5350 board work as usb device
> with g_mass_gadget. But the ramips dwc_otg driver can't build in 
> DEVICE_ONLY mode, when the correponding options are selected in 
> kernel_menuconfig. Does any one or the developer can help me? How
> can I make the rt5350 work with g_mass_gadget?
> 
> the error log as follows:
> 
> make[5]: Entering directory 
> `/home/cai/Ws/openwrt-ori/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.36'
>
>  CHK include/generated/uapi/linux/version.h CHK
> include/generated/utsrelease.h CALL scripts/checksyscalls.sh CC
> scripts/mod/devicetable-offsets.s GEN
> scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o 
> HOSTLD scripts/mod/modpost CHK include/generated/compile.h CC
> drivers/usb/dwc_otg/dwc_otg_pcd.o 
> drivers/usb/dwc_otg/dwc_otg_pcd.c: In function 'dwc_otg_pcd_init': 
> drivers/usb/dwc_otg/dwc_otg_pcd.c:2247:14: error: 'struct 
> usb_gadget' has no member named 'is_dualspeed' 
> pcd->gadget.is_dualspeed = 0; ^ 
> drivers/usb/dwc_otg/dwc_otg_pcd.c:2250:14: error: 'struct 
> usb_gadget' has no member named 'is_dualspeed' 
> pcd->gadget.is_dualspeed = 1; ^ drivers/usb/dwc_otg/dwc_otg_pcd.c:
> At top level: drivers/usb/dwc_otg/dwc_otg_pcd.c:2438:5: error:
> conflicting types for 'usb_gadget_probe_driver' int
> usb_gadget_probe_driver(struct usb_gadget_driver *driver, int 
> (*bind)(struct usb_gadget *)) ^ In file included from
> drivers/usb/dwc_otg/dwc_otg_pcd.c:84:0: 
> include/linux/usb/gadget.h:859:5: note: previous declaration of 
> 'usb_gadget_probe_driver' was here int
> usb_gadget_probe_driver(struct usb_gadget_driver *driver); ^ 
> drivers/usb/dwc_otg/dwc_otg_pcd.c: In function 
> 'usb_gadget_probe_driver': 
> drivers/usb/dwc_otg/dwc_otg_pcd.c:2453:23: error: 'struct 
> usb_gadget_driver' has no member named 'speed' if (!driver ||
> driver->speed == USB_SPEED_UNKNOWN || ^ In file included from
> include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from
> drivers/usb/dwc_otg/dwc_otg_pcd.c:65: 
> drivers/usb/dwc_otg/dwc_otg_pcd.c: At top level: 
> drivers/usb/dwc_otg/dwc_otg_pcd.c:2489:15: error: conflicting
> types for 'usb_gadget_probe_driver' 
> EXPORT_SYMBOL(usb_gadget_probe_driver); ^ 
> include/linux/export.h:63:21: note: in definition of macro 
> '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ 
> drivers/usb/dwc_otg/dwc_otg_pcd.c:2489:1: note: in expansion of 
> macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(usb_gadget_probe_driver); ^ In
> file included from drivers/usb/dwc_otg/dwc_otg_pcd.c:84:0: 
> include/linux/usb/gadget.h:859:5: note: previous declaration of 
> 'usb_gadget_probe_driver' was here int
> usb_gadget_probe_driver(struct usb_gadget_driver *driver); ^ 
> make[8]: *** [drivers/usb/dwc_otg/dwc_otg_pcd.o] Error 1 make[7]:
> *** [drivers/usb/dwc_otg] Error 2 make[6]: *** [drivers/usb] Error
> 2 make[5]: *** [drivers] Error 2 make[5]: Leaving directory 
> `/home/cai/Ws/openwrt-ori/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.36'
>
>  make[4]: *** 
> [/home/cai/Ws/openwrt-ori/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.10.36/.image]
>
> 
Error 2
> make[4]: Leaving directory 
> `/home/cai/Ws/openwrt-ori/target/linux/ramips' make[3]: ***
> [install] Error 2 make[3]: Leaving directory
> `/home/cai/Ws/openwrt-ori/target/linux' make[2]: ***
> [target/linux/install] Error 2 make[2]: Leaving directory
> `/home/cai/Ws/openwrt-ori' make[1]: *** 
> [/home/cai/Ws/openwrt-ori/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_install]
>
> 
Error 2
> make[1]: Leaving directory `/home/cai/Ws/openwrt-ori' make: ***
> [world] Error 2
> 
> 
> ------------------------------------------------------------------------
>
> 
zhenjun_...@icloudaegis.com
> 
> 
> 
> _______________________________________________ openwrt-devel
> mailing list openwrt-devel@lists.openwrt.org 
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to