From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] How to enable USB Mass Storage
Date: Thu, 26 Oct 2017 13:49:37 +0200 [thread overview]
Message-ID: <20171026134937.1b516cc8@jawa> (raw)
In-Reply-To: <3388069.EzIWtN4s74@donald>
Hi Frank,
> Hello,
>
> I want to use the ums command to access the SD card of a
> A20-OlinuxIno-Lime board via usb-org cable. For that I start the CPU
> in FEL mode, download the u-boot-sunxi-with-spl.bin file by sunxi-fel
> tool. I do this FEL mode boot for preparation of an Einstein A20
> board, which has only an internal MMC. I run on uboot serial console:
>
First of all - I do not have any experience with Allwiner...
> => ums 0 mmc 0
> UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1dc000
> Controller uninitialized
> g_dnl_register: failed!, error: -6
> g_dnl_register failed
Could you paste output of the console after defining #define DEBUG on
top of drivers/usb/gadget/g_dnl.c ?
It seems like your musb UDC is not initialized in your board
(CONFIG_USB_MUSB_GADGET=y).
Please check if you call it at your board file.
>
>
> It seems that the drivers/usb/musb-new/sunxi.c is not initialized.
> The devicetree has a node that should match:
>
> usb at 01c13000 {
> compatible = "allwinner,sun4i-a10-musb";
> reg = <0x1c13000 0x400>;
> clocks = <0x2 0x0>;
> interrupts = <0x0 0x26 0x4>;
> interrupt-names = "mc";
> phys = <0x2b 0x0>;
> phy-names = "usb";
> extcon = <0x2b 0x0>;
> allwinner,sram = <0x2c 0x1>;
> status = "okay";
> dr_mode = "otg";
> };
>
>
> My config is:
>
> cat defconfig
> CONFIG_ARM=y
> CONFIG_ARCH_SUNXI=y
> CONFIG_MACH_SUN7I=y
> CONFIG_DRAM_CLK=384
> CONFIG_MMC0_CD_PIN="PH1"
> CONFIG_I2C1_ENABLE=y
> CONFIG_SATAPWR="PC3"
> CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime"
> CONFIG_AHCI=y
> # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
> CONFIG_SPL=y
> CONFIG_SPL_I2C_SUPPORT=y
> # CONFIG_FASTBOOT is not set
> # CONFIG_CMD_FLASH is not set
> # CONFIG_CMD_FPGA is not set
> CONFIG_CMD_USB_MASS_STORAGE=y
> # CONFIG_SPL_DOS_PARTITION is not set
> # CONFIG_SPL_ISO_PARTITION is not set
> # CONFIG_SPL_EFI_PARTITION is not set
> CONFIG_ETH_DESIGNWARE=y
> CONFIG_SUN7I_GMAC=y
> CONFIG_AXP_ALDO3_VOLT=2800
> CONFIG_AXP_ALDO4_VOLT=2800
> CONFIG_SCSI=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_MUSB_GADGET=y
> CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
> CONFIG_USB_GADGET_DOWNLOAD=y
> # CONFIG_USB_ETHER is not set
>
> Is the ums working for Allwinner CPUs, or is there some further
> configuration needed that I have not figured out?
>
> Br,
> Frank
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
next prev parent reply other threads:[~2017-10-26 11:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-22 14:37 [U-Boot] How to enable USB Mass Storage Frank Kunz
2017-10-26 11:49 ` Lukasz Majewski [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-05-22 12:16 Diego Rondini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171026134937.1b516cc8@jawa \
--to=lukma@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox