Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/DRA756: DRA742 based on PSDK 3.02 USB device mode is not working

$
0
0

Part Number:DRA756

Tool/software: Linux

Hello!

HW : custom VAYU board.

I am in the process of porting SDK from GLSDK 7.04 to Processor-SDK 3.02.
Target board is based on DRA7X_EVM(VAYU 703761-1031), there is no much differences.

I have no problem with GLSKD 7.04.
But after applying Processor-SDK 3.02, USB1 device mode is not working.

When "ums 0 mmc1" command is used at u-boot, gadget driver and stoage of ther target is found on the host linux PC.
After kernel loading, I can use usb1 as device mode.

But I couldn't use device USB1 port without u-boot command.
When I tested with previous version kernel config and device tree(based on GLSDK 7.04 ) with same u-boot, it was OK.
(I tested host mode by changing device tree, it worked perfectly in host mode.)

I think definitely kernel config or device tree is something wrong.
I have checked clock, regulator supply etc.
But I cann't figure out what's wrong.
Is there any other suggestions or tips?

Thank you



Kernel config

CONFIG_USB_NET_DRIVERS=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8152=m
CONFIG_USB_USBNET=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_AX88179_178A=m
CONFIG_USB_NET_CDCETHER=m
CONFIG_USB_NET_CDC_NCM=m
CONFIG_USB_NET_SMSC75XX=m
CONFIG_USB_NET_SMSC95XX=m
CONFIG_USB_NET_NET1080=m
CONFIG_USB_NET_CDC_SUBSET=m
CONFIG_USB_BELKIN=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_NET_ZAURUS=m
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT33XX=y
CONFIG_RT2800USB_RT35XX=y
CONFIG_RT2X00_LIB_USB=m
CONFIG_MFD_OMAP_USB_HOST=y
CONFIG_MEDIA_USB_SUPPORT=y
CONFIG_USB_VIDEO_CLASS=m
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_USB_GSPCA=m
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
CONFIG_USB_HID=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=m
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_OTG=y
CONFIG_USB_XHCI_HCD=m
CONFIG_USB_XHCI_PCI=m
CONFIG_USB_XHCI_PLATFORM=m
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_PCI=m
CONFIG_USB_EHCI_HCD_OMAP=m
CONFIG_USB_EHCI_HCD_PLATFORM=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_HCD_PCI=m
CONFIG_USB_OHCI_HCD_PLATFORM=m
CONFIG_USB_R8A66597_HCD=m
CONFIG_USB_ACM=m
CONFIG_USB_STORAGE=m
CONFIG_USB_MUSB_HDRC=m
CONFIG_USB_MUSB_DUAL_ROLE=y
CONFIG_USB_MUSB_OMAP2PLUS=m
CONFIG_USB_MUSB_AM35X=m
CONFIG_USB_MUSB_DSPS=m
CONFIG_USB_MUSB_AM335X_CHILD=m
CONFIG_USB_TI_CPPI41_DMA=y
CONFIG_USB_DWC3=m
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_DWC3_OMAP=m
CONFIG_USB_ISP1760=m
CONFIG_USB_ISP1760_HCD=y
CONFIG_USB_ISP1761_UDC=y
CONFIG_USB_ISP1760_DUAL_ROLE=y
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_TEST=m
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_AM335X_CONTROL_USB=y
CONFIG_AM335X_PHY_USB=y
CONFIG_USB_GPIO_VBUS=y
CONFIG_USB_ISP1301=m
CONFIG_USB_GADGET=m
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=32
CONFIG_USB_LIBCOMPOSITE=m
CONFIG_USB_F_ACM=m
CONFIG_USB_F_SS_LB=m
CONFIG_USB_U_SERIAL=m
CONFIG_USB_U_ETHER=m
CONFIG_USB_F_SERIAL=m
CONFIG_USB_F_OBEX=m
CONFIG_USB_F_NCM=m
CONFIG_USB_F_ECM=m
CONFIG_USB_F_SUBSET=m
CONFIG_USB_F_RNDIS=m
CONFIG_USB_F_MASS_STORAGE=m
CONFIG_USB_F_FS=m
CONFIG_USB_F_UAC2=m
CONFIG_USB_F_UVC=m
CONFIG_USB_F_MIDI=m
CONFIG_USB_F_HID=m
CONFIG_USB_F_PRINTER=m
CONFIG_USB_ZERO=m
CONFIG_USB_AUDIO=m
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
CONFIG_USB_G_NCM=m
CONFIG_USB_GADGETFS=m
CONFIG_USB_FUNCTIONFS=m
CONFIG_USB_FUNCTIONFS_ETH=y
CONFIG_USB_FUNCTIONFS_RNDIS=y
CONFIG_USB_FUNCTIONFS_GENERIC=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_USB_MIDI_GADGET=m
CONFIG_USB_G_PRINTER=m
CONFIG_USB_CDC_COMPOSITE=m
CONFIG_USB_G_ACM_MS=m
CONFIG_USB_G_MULTI=m
CONFIG_USB_G_MULTI_RNDIS=y
CONFIG_USB_G_MULTI_CDC=y
CONFIG_USB_G_HID=m
CONFIG_USB_G_DBGP=m
CONFIG_USB_G_DBGP_SERIAL=y
CONFIG_USB_G_WEBCAM=m
CONFIG_EXTCON_USB_GPIO=m
CONFIG_OMAP_USB2=y

devicee tree settings

/ {
    model = "TI DRA742";
...
    reserved_mem: reserved-memory {
...
    extcon_usb1: extcon_usb1 {
        compatible = "linux,extcon-usb-gpio";
        id-gpio = <&pcf_hdmi 1 GPIO_ACTIVE_HIGH>;
    };

    extcon_usb2: extcon_usb2 {
        compatible = "linux,extcon-usb-gpio";
        id-gpio = <&pcf_hdmi 2 GPIO_ACTIVE_HIGH>;
    };
....
};


&omap_dwc3_1 {
    extcon = <&extcon_usb1>;
};

&omap_dwc3_2 {
    extcon = <&extcon_usb2>;
};

&usb1 {
    dr_mode = "peripheral";
};

&usb2 {
    dr_mode = "host";
};


.....

&usb2_phy1 {
    phy-supply = <&ldousb_reg>;
};

&usb2_phy2 {
    phy-supply = <&ldousb_reg>;
};



// dra7.dtsi is same
...
		omap_dwc3_1: omap_dwc3_1@48880000 {
			compatible = "ti,dwc3";
			ti,hwmods = "usb_otg_ss1";
			reg = <0x48880000 0x10000>;
			interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
			#address-cells = <1>;
			#size-cells = <1>;
			utmi-mode = <2>;
			ranges;
			usb1: usb@48890000 {
				compatible = "snps,dwc3";
				reg = <0x48890000 0x17000>;
				interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
					     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
					     <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
				interrupt-names = "peripheral",
						  "host",
						  "otg";
				phys = <&usb2_phy1>, <&usb3_phy1>;
				phy-names = "usb2-phy", "usb3-phy";
				tx-fifo-resize;
				maximum-speed = "super-speed";
				dr_mode = "otg";
				snps,dis_u3_susphy_quirk;
				snps,dis_u2_susphy_quirk;
			};
		};
...

# dmesg|grep usb

[    9.159108] usbcore: registered new interface driver usbfs
[    9.170471] usbcore: registered new interface driver hub
[    9.187886] usbcore: registered new device driver usb
[    9.415516] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   76.592947] udc 48890000.usb: registering UDC driver [g_multi]
[   76.612671] usb0: HOST MAC c6:c7:28:0d:0d:83
[   76.617426] usb0: MAC 86:2f:b0:c3:8d:9e
[   76.679495] usb0: eth_open
[   76.679652] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   76.694434] g_multi 48890000.usb: usb_gadget_udc_start

debugfs 48890000.usb information

# cat /mnt/48890000.usb/regdump
GSBUSCFG0 = 0x0000000e
GSBUSCFG1 = 0x00000f00
GTXTHRCFG = 0x00000000
GRXTHRCFG = 0x00000000
GCTL = 0x25802000
GEVTEN = 0x00000000
GSTS = 0x3e800002
GSNPSID = 0x5533202a
GGPIO = 0x00000000
GUID = 0x0004042d
GUCTL = 0x00008010
GBUSERRADDR0 = 0x00000000
GBUSERRADDR1 = 0x00000000
GPRTBIMAP0 = 0x00000000
GPRTBIMAP1 = 0x00000000
GHWPARAMS0 = 0x202040ca
GHWPARAMS1 = 0x01c0c93b
GHWPARAMS2 = 0x00000000
GHWPARAMS3 = 0x1042008d
GHWPARAMS4 = 0x48822004
GHWPARAMS5 = 0x04202088
GHWPARAMS6 = 0x0b000c20
GHWPARAMS7 = 0x03080780
GDBGFIFOSPACE = 0x00420000
GDBGLTSSM = 0x01090440
GPRTBIMAP_HS0 = 0x00000000
GPRTBIMAP_HS1 = 0x00000000
GPRTBIMAP_FS0 = 0x00000000
GPRTBIMAP_FS1 = 0x00000000
GUSB2PHYCFG(0) = 0x00002500
GUSB2PHYCFG(1) = 0x00000000
GUSB2PHYCFG(2) = 0x00000000
GUSB2PHYCFG(3) = 0x00000000
GUSB2PHYCFG(4) = 0x00000000
GUSB2PHYCFG(5) = 0x00000000
GUSB2PHYCFG(6) = 0x00000000
GUSB2PHYCFG(7) = 0x00000000
GUSB2PHYCFG(8) = 0x00000000
GUSB2PHYCFG(9) = 0x00000000
GUSB2PHYCFG(10) = 0x00000000
GUSB2PHYCFG(11) = 0x00000000
GUSB2PHYCFG(12) = 0x00000000
GUSB2PHYCFG(13) = 0x00000000
GUSB2PHYCFG(14) = 0x00000000
GUSB2PHYCFG(15) = 0x00000000
GUSB2I2CCTL(0) = 0x00000000
GUSB2I2CCTL(1) = 0x00000000
GUSB2I2CCTL(2) = 0x00000000
GUSB2I2CCTL(3) = 0x00000000
GUSB2I2CCTL(4) = 0x00000000
GUSB2I2CCTL(5) = 0x00000000
GUSB2I2CCTL(6) = 0x00000000
GUSB2I2CCTL(7) = 0x00000000
GUSB2I2CCTL(8) = 0x00000000
GUSB2I2CCTL(9) = 0x00000000
GUSB2I2CCTL(10) = 0x00000000
GUSB2I2CCTL(11) = 0x00000000
GUSB2I2CCTL(12) = 0x00000000
GUSB2I2CCTL(13) = 0x00000000
GUSB2I2CCTL(14) = 0x00000000
GUSB2I2CCTL(15) = 0x00000000
GUSB2PHYACC(0) = 0x00000000
GUSB2PHYACC(1) = 0x00000000
GUSB2PHYACC(2) = 0x00000000
GUSB2PHYACC(3) = 0x00000000
GUSB2PHYACC(4) = 0x00000000
GUSB2PHYACC(5) = 0x00000000
GUSB2PHYACC(6) = 0x00000000
GUSB2PHYACC(7) = 0x00000000
GUSB2PHYACC(8) = 0x00000000
GUSB2PHYACC(9) = 0x00000000
GUSB2PHYACC(10) = 0x00000000
GUSB2PHYACC(11) = 0x00000000
GUSB2PHYACC(12) = 0x00000000
GUSB2PHYACC(13) = 0x00000000
GUSB2PHYACC(14) = 0x00000000
GUSB2PHYACC(15) = 0x00000000
GUSB3PIPECTL(0) = 0x00040002
GUSB3PIPECTL(1) = 0x00000000
GUSB3PIPECTL(2) = 0x00000000
GUSB3PIPECTL(3) = 0x00000000
GUSB3PIPECTL(4) = 0x00000000
GUSB3PIPECTL(5) = 0x00000000
GUSB3PIPECTL(6) = 0x00000000
GUSB3PIPECTL(7) = 0x00000000
GUSB3PIPECTL(8) = 0x00000000
GUSB3PIPECTL(9) = 0x00000000
GUSB3PIPECTL(10) = 0x00000000
GUSB3PIPECTL(11) = 0x00000000
GUSB3PIPECTL(12) = 0x00000000
GUSB3PIPECTL(13) = 0x00000000
GUSB3PIPECTL(14) = 0x00000000
GUSB3PIPECTL(15) = 0x00000000
GTXFIFOSIZ(0) = 0x00000042
GTXFIFOSIZ(1) = 0x00420184
GTXFIFOSIZ(2) = 0x01c60184
GTXFIFOSIZ(3) = 0x034a0184
GTXFIFOSIZ(4) = 0x04ce0184
GTXFIFOSIZ(5) = 0x06520013
GTXFIFOSIZ(6) = 0x06650013
GTXFIFOSIZ(7) = 0x06780013
GTXFIFOSIZ(8) = 0x068b0013
GTXFIFOSIZ(9) = 0x069e0013
GTXFIFOSIZ(10) = 0x06b10013
GTXFIFOSIZ(11) = 0x06c40013
GTXFIFOSIZ(12) = 0x06d70013
GTXFIFOSIZ(13) = 0x06ea0013
GTXFIFOSIZ(14) = 0x06fd0013
GTXFIFOSIZ(15) = 0x07100013
GTXFIFOSIZ(16) = 0x00000000
GTXFIFOSIZ(17) = 0x00000000
GTXFIFOSIZ(18) = 0x00000000
GTXFIFOSIZ(19) = 0x00000000
GTXFIFOSIZ(20) = 0x00000000
GTXFIFOSIZ(21) = 0x00000000
GTXFIFOSIZ(22) = 0x00000000
GTXFIFOSIZ(23) = 0x00000000
GTXFIFOSIZ(24) = 0x00000000
GTXFIFOSIZ(25) = 0x00000000
GTXFIFOSIZ(26) = 0x00000000
GTXFIFOSIZ(27) = 0x00000000
GTXFIFOSIZ(28) = 0x00000000
GTXFIFOSIZ(29) = 0x00000000
GTXFIFOSIZ(30) = 0x00000000
GTXFIFOSIZ(31) = 0x00000000
GRXFIFOSIZ(0) = 0x071e0185
GRXFIFOSIZ(1) = 0x08a30000
GRXFIFOSIZ(2) = 0x08a30000
GRXFIFOSIZ(3) = 0x00000000
GRXFIFOSIZ(4) = 0x00000000
GRXFIFOSIZ(5) = 0x00000000
GRXFIFOSIZ(6) = 0x00000000
GRXFIFOSIZ(7) = 0x00000000
GRXFIFOSIZ(8) = 0x00000000
GRXFIFOSIZ(9) = 0x00000000
GRXFIFOSIZ(10) = 0x00000000
GRXFIFOSIZ(11) = 0x00000000
GRXFIFOSIZ(12) = 0x00000000
GRXFIFOSIZ(13) = 0x00000000
GRXFIFOSIZ(14) = 0x00000000
GRXFIFOSIZ(15) = 0x00000000
GRXFIFOSIZ(16) = 0x00000000
GRXFIFOSIZ(17) = 0x00000000
GRXFIFOSIZ(18) = 0x00000000
GRXFIFOSIZ(19) = 0x00000000
GRXFIFOSIZ(20) = 0x00000000
GRXFIFOSIZ(21) = 0x00000000
GRXFIFOSIZ(22) = 0x00000000
GRXFIFOSIZ(23) = 0x00000000
GRXFIFOSIZ(24) = 0x00000000
GRXFIFOSIZ(25) = 0x00000000
GRXFIFOSIZ(26) = 0x00000000
GRXFIFOSIZ(27) = 0x00000000
GRXFIFOSIZ(28) = 0x00000000
GRXFIFOSIZ(29) = 0x00000000
GRXFIFOSIZ(30) = 0x00000000
GRXFIFOSIZ(31) = 0x00000000
GEVNTADRLO(0) = 0xfbc44000
GEVNTADRHI(0) = 0x00000000
GEVNTSIZ(0) = 0x00001000
GEVNTCOUNT(0) = 0x00000000
GHWPARAMS8 = 0x0000071e
DCFG = 0x00080800
DCTL = 0x00000000
DEVTEN = 0x00000000
DSTS = 0x00d20001
DGCMDPAR = 0x00000000
DGCMD = 0x00000000
DALEPENA = 0x00000000
DEPCMDPAR2(0) = 0x00000000
DEPCMDPAR2(1) = 0x00000000
DEPCMDPAR2(2) = 0x00000000
DEPCMDPAR2(3) = 0x00000000
DEPCMDPAR2(4) = 0x00000000
DEPCMDPAR2(5) = 0x00000000
DEPCMDPAR2(6) = 0x00000000
DEPCMDPAR2(7) = 0x00000000
DEPCMDPAR2(8) = 0x00000000
DEPCMDPAR2(9) = 0x00000000
DEPCMDPAR2(10) = 0x00000000
DEPCMDPAR2(11) = 0x00000000
DEPCMDPAR2(12) = 0x00000000
DEPCMDPAR2(13) = 0x00000000
DEPCMDPAR2(14) = 0x00000000
DEPCMDPAR2(15) = 0x00000000
DEPCMDPAR2(16) = 0x00000000
DEPCMDPAR2(17) = 0x00000000
DEPCMDPAR2(18) = 0x00000000
DEPCMDPAR2(19) = 0x00000000
DEPCMDPAR2(20) = 0x00000000
DEPCMDPAR2(21) = 0x00000000
DEPCMDPAR2(22) = 0x00000000
DEPCMDPAR2(23) = 0x00000000
DEPCMDPAR2(24) = 0x00000000
DEPCMDPAR2(25) = 0x00000000
DEPCMDPAR2(26) = 0x00000000
DEPCMDPAR2(27) = 0x00000000
DEPCMDPAR2(28) = 0x00000000
DEPCMDPAR2(29) = 0x00000000
DEPCMDPAR2(30) = 0x00000000
DEPCMDPAR2(31) = 0x00000000
DEPCMDPAR1(0) = 0x00000000
DEPCMDPAR1(1) = 0x00000000
DEPCMDPAR1(2) = 0x00000000
DEPCMDPAR1(3) = 0x00000000
DEPCMDPAR1(4) = 0x00000000
DEPCMDPAR1(5) = 0x00000000
DEPCMDPAR1(6) = 0x00000000
DEPCMDPAR1(7) = 0x00000000
DEPCMDPAR1(8) = 0x00000000
DEPCMDPAR1(9) = 0x00000000
DEPCMDPAR1(10) = 0x00000000
DEPCMDPAR1(11) = 0x00000000
DEPCMDPAR1(12) = 0x00000000
DEPCMDPAR1(13) = 0x00000000
DEPCMDPAR1(14) = 0x00000000
DEPCMDPAR1(15) = 0x00000000
DEPCMDPAR1(16) = 0x00000000
DEPCMDPAR1(17) = 0x00000000
DEPCMDPAR1(18) = 0x00000000
DEPCMDPAR1(19) = 0x00000000
DEPCMDPAR1(20) = 0x00000000
DEPCMDPAR1(21) = 0x00000000
DEPCMDPAR1(22) = 0x00000000
DEPCMDPAR1(23) = 0x00000000
DEPCMDPAR1(24) = 0x00000000
DEPCMDPAR1(25) = 0x00000000
DEPCMDPAR1(26) = 0x00000000
DEPCMDPAR1(27) = 0x00000000
DEPCMDPAR1(28) = 0x00000000
DEPCMDPAR1(29) = 0x00000000
DEPCMDPAR1(30) = 0x00000000
DEPCMDPAR1(31) = 0x00000000
DEPCMDPAR0(0) = 0x00000000
DEPCMDPAR0(1) = 0x00000000
DEPCMDPAR0(2) = 0x00000000
DEPCMDPAR0(3) = 0x00000000
DEPCMDPAR0(4) = 0x00000000
DEPCMDPAR0(5) = 0x00000000
DEPCMDPAR0(6) = 0x00000000
DEPCMDPAR0(7) = 0x00000000
DEPCMDPAR0(8) = 0x00000000
DEPCMDPAR0(9) = 0x00000000
DEPCMDPAR0(10) = 0x00000000
DEPCMDPAR0(11) = 0x00000000
DEPCMDPAR0(12) = 0x00000000
DEPCMDPAR0(13) = 0x00000000
DEPCMDPAR0(14) = 0x00000000
DEPCMDPAR0(15) = 0x00000000
DEPCMDPAR0(16) = 0x00000000
DEPCMDPAR0(17) = 0x00000000
DEPCMDPAR0(18) = 0x00000000
DEPCMDPAR0(19) = 0x00000000
DEPCMDPAR0(20) = 0x00000000
DEPCMDPAR0(21) = 0x00000000
DEPCMDPAR0(22) = 0x00000000
DEPCMDPAR0(23) = 0x00000000
DEPCMDPAR0(24) = 0x00000000
DEPCMDPAR0(25) = 0x00000000
DEPCMDPAR0(26) = 0x00000000
DEPCMDPAR0(27) = 0x00000000
DEPCMDPAR0(28) = 0x00000000
DEPCMDPAR0(29) = 0x00000000
DEPCMDPAR0(30) = 0x00000000
DEPCMDPAR0(31) = 0x00000000
DEPCMD(0) = 0x00000000
DEPCMD(1) = 0x00000000
DEPCMD(2) = 0x00000000
DEPCMD(3) = 0x00000000
DEPCMD(4) = 0x00000000
DEPCMD(5) = 0x00000000
DEPCMD(6) = 0x00000000
DEPCMD(7) = 0x00000000
DEPCMD(8) = 0x00000000
DEPCMD(9) = 0x00000000
DEPCMD(10) = 0x00000000
DEPCMD(11) = 0x00000000
DEPCMD(12) = 0x00000000
DEPCMD(13) = 0x00000000
DEPCMD(14) = 0x00000000
DEPCMD(15) = 0x00000000
DEPCMD(16) = 0x00000000
DEPCMD(17) = 0x00000000
DEPCMD(18) = 0x00000000
DEPCMD(19) = 0x00000000
DEPCMD(20) = 0x00000000
DEPCMD(21) = 0x00000000
DEPCMD(22) = 0x00000000
DEPCMD(23) = 0x00000000
DEPCMD(24) = 0x00000000
DEPCMD(25) = 0x00000000
DEPCMD(26) = 0x00000000
DEPCMD(27) = 0x00000000
DEPCMD(28) = 0x00000000
DEPCMD(29) = 0x00000000
DEPCMD(30) = 0x00000000
DEPCMD(31) = 0x00000000
OCFG = 0x00000000
OCTL = 0x00000040
OEVT = 0x80000000
OEVTEN = 0x00000000
OSTS = 0x00000019


# cat /mnt/48890000.usb/mode   
device

log of modprobe g_multi

log of g_multi modprobe
/dev/mmcblk0 is eMMC.
[ 1320.513821] using random self ethernet address
[ 1320.519152] using random host ethernet address
[ 1320.524106] using random self ethernet address
[ 1320.529274] using random host ethernet address
[ 1320.537189] usb0: HOST MAC 0e:14:c0:11:dc:f2
[ 1320.541880] usb0: MAC c2:21:f7:06:34:84
[ 1320.552720] Mass Storage Function, version: 2009/09/11
[ 1320.559307] LUN: removable file: (no medium)
[ 1320.565966] LUN: file: /dev/mmcblk0
[ 1320.569491] Number of LUNs=1
[ 1320.580228] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 1320.590029] g_multi gadget: Multifunction Composite Gadget
[ 1320.600862] g_multi gadget: userspace failed to provide iSerialNumber
[ 1320.607916] g_multi gadget: g_multi ready

and then 48890000.usb regdump

and then 

# cat /mnt/48890000.usb/regdump
GSBUSCFG0 = 0x0000000e
GSBUSCFG1 = 0x00000f00
GTXTHRCFG = 0x00000000
GRXTHRCFG = 0x00000000
GCTL = 0x25802000
GEVTEN = 0x00000000
GSTS = 0x3e800002
GSNPSID = 0x5533202a
GGPIO = 0x00000000
GUID = 0x0004042d
GUCTL = 0x00008010
GBUSERRADDR0 = 0x00000000
GBUSERRADDR1 = 0x00000000
GPRTBIMAP0 = 0x00000000
GPRTBIMAP1 = 0x00000000
GHWPARAMS0 = 0x202040ca
GHWPARAMS1 = 0x01c0c93b
GHWPARAMS2 = 0x00000000
GHWPARAMS3 = 0x1042008d
GHWPARAMS4 = 0x48822004
GHWPARAMS5 = 0x04202088
GHWPARAMS6 = 0x0b000c20
GHWPARAMS7 = 0x03080780
GDBGFIFOSPACE = 0x00420000
GDBGLTSSM = 0x01090440
GPRTBIMAP_HS0 = 0x00000000
GPRTBIMAP_HS1 = 0x00000000
GPRTBIMAP_FS0 = 0x00000000
GPRTBIMAP_FS1 = 0x00000000
GUSB2PHYCFG(0) = 0x00002500
GUSB2PHYCFG(1) = 0x00000000
GUSB2PHYCFG(2) = 0x00000000
GUSB2PHYCFG(3) = 0x00000000
GUSB2PHYCFG(4) = 0x00000000
GUSB2PHYCFG(5) = 0x00000000
GUSB2PHYCFG(6) = 0x00000000
GUSB2PHYCFG(7) = 0x00000000
GUSB2PHYCFG(8) = 0x00000000
GUSB2PHYCFG(9) = 0x00000000
GUSB2PHYCFG(10) = 0x00000000
GUSB2PHYCFG(11) = 0x00000000
GUSB2PHYCFG(12) = 0x00000000
GUSB2PHYCFG(13) = 0x00000000
GUSB2PHYCFG(14) = 0x00000000
GUSB2PHYCFG(15) = 0x00000000
GUSB2I2CCTL(0) = 0x00000000
GUSB2I2CCTL(1) = 0x00000000
GUSB2I2CCTL(2) = 0x00000000
GUSB2I2CCTL(3) = 0x00000000
GUSB2I2CCTL(4) = 0x00000000
GUSB2I2CCTL(5) = 0x00000000
GUSB2I2CCTL(6) = 0x00000000
GUSB2I2CCTL(7) = 0x00000000
GUSB2I2CCTL(8) = 0x00000000
GUSB2I2CCTL(9) = 0x00000000
GUSB2I2CCTL(10) = 0x00000000
GUSB2I2CCTL(11) = 0x00000000
GUSB2I2CCTL(12) = 0x00000000
GUSB2I2CCTL(13) = 0x00000000
GUSB2I2CCTL(14) = 0x00000000
GUSB2I2CCTL(15) = 0x00000000
GUSB2PHYACC(0) = 0x00000000
GUSB2PHYACC(1) = 0x00000000
GUSB2PHYACC(2) = 0x00000000
GUSB2PHYACC(3) = 0x00000000
GUSB2PHYACC(4) = 0x00000000
GUSB2PHYACC(5) = 0x00000000
GUSB2PHYACC(6) = 0x00000000
GUSB2PHYACC(7) = 0x00000000
GUSB2PHYACC(8) = 0x00000000
GUSB2PHYACC(9) = 0x00000000
GUSB2PHYACC(10) = 0x00000000
GUSB2PHYACC(11) = 0x00000000
GUSB2PHYACC(12) = 0x00000000
GUSB2PHYACC(13) = 0x00000000
GUSB2PHYACC(14) = 0x00000000
GUSB2PHYACC(15) = 0x00000000
GUSB3PIPECTL(0) = 0x00040002
GUSB3PIPECTL(1) = 0x00000000
GUSB3PIPECTL(2) = 0x00000000
GUSB3PIPECTL(3) = 0x00000000
GUSB3PIPECTL(4) = 0x00000000
GUSB3PIPECTL(5) = 0x00000000
GUSB3PIPECTL(6) = 0x00000000
GUSB3PIPECTL(7) = 0x00000000
GUSB3PIPECTL(8) = 0x00000000
GUSB3PIPECTL(9) = 0x00000000
GUSB3PIPECTL(10) = 0x00000000
GUSB3PIPECTL(11) = 0x00000000
GUSB3PIPECTL(12) = 0x00000000
GUSB3PIPECTL(13) = 0x00000000
GUSB3PIPECTL(14) = 0x00000000
GUSB3PIPECTL(15) = 0x00000000
GTXFIFOSIZ(0) = 0x00000042
GTXFIFOSIZ(1) = 0x00420184
GTXFIFOSIZ(2) = 0x01c60184
GTXFIFOSIZ(3) = 0x034a0184
GTXFIFOSIZ(4) = 0x04ce0184
GTXFIFOSIZ(5) = 0x06520013
GTXFIFOSIZ(6) = 0x06650013
GTXFIFOSIZ(7) = 0x06780013
GTXFIFOSIZ(8) = 0x068b0013
GTXFIFOSIZ(9) = 0x069e0013
GTXFIFOSIZ(10) = 0x06b10013
GTXFIFOSIZ(11) = 0x06c40013
GTXFIFOSIZ(12) = 0x06d70013
GTXFIFOSIZ(13) = 0x06ea0013
GTXFIFOSIZ(14) = 0x06fd0013
GTXFIFOSIZ(15) = 0x07100013
GTXFIFOSIZ(16) = 0x00000000
GTXFIFOSIZ(17) = 0x00000000
GTXFIFOSIZ(18) = 0x00000000
GTXFIFOSIZ(19) = 0x00000000
GTXFIFOSIZ(20) = 0x00000000
GTXFIFOSIZ(21) = 0x00000000
GTXFIFOSIZ(22) = 0x00000000
GTXFIFOSIZ(23) = 0x00000000
GTXFIFOSIZ(24) = 0x00000000
GTXFIFOSIZ(25) = 0x00000000
GTXFIFOSIZ(26) = 0x00000000
GTXFIFOSIZ(27) = 0x00000000
GTXFIFOSIZ(28) = 0x00000000
GTXFIFOSIZ(29) = 0x00000000
GTXFIFOSIZ(30) = 0x00000000
GTXFIFOSIZ(31) = 0x00000000
GRXFIFOSIZ(0) = 0x071e0185
GRXFIFOSIZ(1) = 0x08a30000
GRXFIFOSIZ(2) = 0x08a30000
GRXFIFOSIZ(3) = 0x00000000
GRXFIFOSIZ(4) = 0x00000000
GRXFIFOSIZ(5) = 0x00000000
GRXFIFOSIZ(6) = 0x00000000
GRXFIFOSIZ(7) = 0x00000000
GRXFIFOSIZ(8) = 0x00000000
GRXFIFOSIZ(9) = 0x00000000
GRXFIFOSIZ(10) = 0x00000000
GRXFIFOSIZ(11) = 0x00000000
GRXFIFOSIZ(12) = 0x00000000
GRXFIFOSIZ(13) = 0x00000000
GRXFIFOSIZ(14) = 0x00000000
GRXFIFOSIZ(15) = 0x00000000
GRXFIFOSIZ(16) = 0x00000000
GRXFIFOSIZ(17) = 0x00000000
GRXFIFOSIZ(18) = 0x00000000
GRXFIFOSIZ(19) = 0x00000000
GRXFIFOSIZ(20) = 0x00000000
GRXFIFOSIZ(21) = 0x00000000
GRXFIFOSIZ(22) = 0x00000000
GRXFIFOSIZ(23) = 0x00000000
GRXFIFOSIZ(24) = 0x00000000
GRXFIFOSIZ(25) = 0x00000000
GRXFIFOSIZ(26) = 0x00000000
GRXFIFOSIZ(27) = 0x00000000
GRXFIFOSIZ(28) = 0x00000000
GRXFIFOSIZ(29) = 0x00000000
GRXFIFOSIZ(30) = 0x00000000
GRXFIFOSIZ(31) = 0x00000000
GEVNTADRLO(0) = 0xfbc44000
GEVNTADRHI(0) = 0x00000000
GEVNTSIZ(0) = 0x00001000
GEVNTCOUNT(0) = 0x00000000
GHWPARAMS8 = 0x0000071e
DCFG = 0x00080804
DCTL = 0x80000000
DEVTEN = 0x00001e1f
DSTS = 0x009240b4
DGCMDPAR = 0x00000000
DGCMD = 0x00000000
DALEPENA = 0x00000003
DEPCMDPAR2(0) = 0x00000000
DEPCMDPAR2(1) = 0x00000000
DEPCMDPAR2(2) = 0x00000000
DEPCMDPAR2(3) = 0x00000000
DEPCMDPAR2(4) = 0x00000000
DEPCMDPAR2(5) = 0x00000000
DEPCMDPAR2(6) = 0x00000000
DEPCMDPAR2(7) = 0x00000000
DEPCMDPAR2(8) = 0x00000000
DEPCMDPAR2(9) = 0x00000000
DEPCMDPAR2(10) = 0x00000000
DEPCMDPAR2(11) = 0x00000000
DEPCMDPAR2(12) = 0x00000000
DEPCMDPAR2(13) = 0x00000000
DEPCMDPAR2(14) = 0x00000000
DEPCMDPAR2(15) = 0x00000000
DEPCMDPAR2(16) = 0x00000000
DEPCMDPAR2(17) = 0x00000000
DEPCMDPAR2(18) = 0x00000000
DEPCMDPAR2(19) = 0x00000000
DEPCMDPAR2(20) = 0x00000000
DEPCMDPAR2(21) = 0x00000000
DEPCMDPAR2(22) = 0x00000000
DEPCMDPAR2(23) = 0x00000000
DEPCMDPAR2(24) = 0x00000000
DEPCMDPAR2(25) = 0x00000000
DEPCMDPAR2(26) = 0x00000000
DEPCMDPAR2(27) = 0x00000000
DEPCMDPAR2(28) = 0x00000000
DEPCMDPAR2(29) = 0x00000000
DEPCMDPAR2(30) = 0x00000000
DEPCMDPAR2(31) = 0x00000000
DEPCMDPAR1(0) = 0xfbc46000
DEPCMDPAR1(1) = 0x02000500
DEPCMDPAR1(2) = 0x00000000
DEPCMDPAR1(3) = 0x00000000
DEPCMDPAR1(4) = 0x00000000
DEPCMDPAR1(5) = 0x00000000
DEPCMDPAR1(6) = 0x00000000
DEPCMDPAR1(7) = 0x00000000
DEPCMDPAR1(8) = 0x00000000
DEPCMDPAR1(9) = 0x00000000
DEPCMDPAR1(10) = 0x00000000
DEPCMDPAR1(11) = 0x00000000
DEPCMDPAR1(12) = 0x00000000
DEPCMDPAR1(13) = 0x00000000
DEPCMDPAR1(14) = 0x00000000
DEPCMDPAR1(15) = 0x00000000
DEPCMDPAR1(16) = 0x00000000
DEPCMDPAR1(17) = 0x00000000
DEPCMDPAR1(18) = 0x00000000
DEPCMDPAR1(19) = 0x00000000
DEPCMDPAR1(20) = 0x00000000
DEPCMDPAR1(21) = 0x00000000
DEPCMDPAR1(22) = 0x00000000
DEPCMDPAR1(23) = 0x00000000
DEPCMDPAR1(24) = 0x00000000
DEPCMDPAR1(25) = 0x00000000
DEPCMDPAR1(26) = 0x00000000
DEPCMDPAR1(27) = 0x00000000
DEPCMDPAR1(28) = 0x00000000
DEPCMDPAR1(29) = 0x00000000
DEPCMDPAR1(30) = 0x00000000
DEPCMDPAR1(31) = 0x00000000
DEPCMDPAR0(0) = 0x00000000
DEPCMDPAR0(1) = 0x00001000
DEPCMDPAR0(2) = 0x00000001
DEPCMDPAR0(3) = 0x00000001
DEPCMDPAR0(4) = 0x00000001
DEPCMDPAR0(5) = 0x00000001
DEPCMDPAR0(6) = 0x00000001
DEPCMDPAR0(7) = 0x00000001
DEPCMDPAR0(8) = 0x00000001
DEPCMDPAR0(9) = 0x00000001
DEPCMDPAR0(10) = 0x00000001
DEPCMDPAR0(11) = 0x00000001
DEPCMDPAR0(12) = 0x00000001
DEPCMDPAR0(13) = 0x00000001
DEPCMDPAR0(14) = 0x00000001
DEPCMDPAR0(15) = 0x00000001
DEPCMDPAR0(16) = 0x00000001
DEPCMDPAR0(17) = 0x00000001
DEPCMDPAR0(18) = 0x00000001
DEPCMDPAR0(19) = 0x00000001
DEPCMDPAR0(20) = 0x00000001
DEPCMDPAR0(21) = 0x00000001
DEPCMDPAR0(22) = 0x00000001
DEPCMDPAR0(23) = 0x00000001
DEPCMDPAR0(24) = 0x00000001
DEPCMDPAR0(25) = 0x00000001
DEPCMDPAR0(26) = 0x00000001
DEPCMDPAR0(27) = 0x00000001
DEPCMDPAR0(28) = 0x00000001
DEPCMDPAR0(29) = 0x00000001
DEPCMDPAR0(30) = 0x00000001
DEPCMDPAR0(31) = 0x00000001
DEPCMD(0) = 0x00000006
DEPCMD(1) = 0x00000001
DEPCMD(2) = 0x00030002
DEPCMD(3) = 0x00040002
DEPCMD(4) = 0x00050002
DEPCMD(5) = 0x00060002
DEPCMD(6) = 0x00070002
DEPCMD(7) = 0x00080002
DEPCMD(8) = 0x00090002
DEPCMD(9) = 0x000a0002
DEPCMD(10) = 0x000b0002
DEPCMD(11) = 0x000c0002
DEPCMD(12) = 0x000d0002
DEPCMD(13) = 0x000e0002
DEPCMD(14) = 0x000f0002
DEPCMD(15) = 0x00100002
DEPCMD(16) = 0x00110002
DEPCMD(17) = 0x00120002
DEPCMD(18) = 0x00130002
DEPCMD(19) = 0x00140002
DEPCMD(20) = 0x00150002
DEPCMD(21) = 0x00160002
DEPCMD(22) = 0x00170002
DEPCMD(23) = 0x00180002
DEPCMD(24) = 0x00190002
DEPCMD(25) = 0x001a0002
DEPCMD(26) = 0x001b0002
DEPCMD(27) = 0x001c0002
DEPCMD(28) = 0x001d0002
DEPCMD(29) = 0x001e0002
DEPCMD(30) = 0x001f0002
DEPCMD(31) = 0x00200002
OCFG = 0x00000000
OCTL = 0x00000040
OEVT = 0x80000000
OEVTEN = 0x00000000
OSTS = 0x00002019


ifconfig result

ifconfig
eth0      Link encap:Ethernet  HWaddr A4:D5:78:7E:5E:EC  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a6d5:78ff:fe7e:5eec%132112/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1145 (1.1 KiB)  TX bytes:20649 (20.1 KiB)
          Interrupt:99 

eth1      Link encap:Ethernet  HWaddr A4:D5:78:7E:5E:ED  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%132112/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:166 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:12736 (12.4 KiB)  TX bytes:12736 (12.4 KiB)

usb0      Link encap:Ethernet  HWaddr C2:21:F7:06:34:84  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

but, linux host pc can't detect linux gadget usb driver.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>