From: Frank Kunz <mailinglists@kunz-im-inter.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] How to enable USB Mass Storage
Date: Sun, 22 Oct 2017 16:37:31 +0200 [thread overview]
Message-ID: <3388069.EzIWtN4s74@donald> (raw)
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:
=> 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
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
next reply other threads:[~2017-10-22 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-22 14:37 Frank Kunz [this message]
2017-10-26 11:49 ` [U-Boot] How to enable USB Mass Storage Lukasz Majewski
-- 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=3388069.EzIWtN4s74@donald \
--to=mailinglists@kunz-im-inter.net \
--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