[U-Boot] DFU to MMC #1
Lukasz Majewski
l.majewski at samsung.com
Tue Aug 19 14:21:46 CEST 2014
Hi Tamás,
> Hi Lukasz,
>
> I'm not sure what to check. Could you specify it more exactly? I'm
> quite sure that on the BeagleBone Black MMC0 is the SD card and MMC1
> is the eMMC.
>
> I'm not familiar with the U-Boot source code, but what I was trying
> to point out is that the <dev> parameter from the dfu command might
> be ignored by the writing routine:
>
> 1) This is the usage of the dfu command:
>
> dfu <USB_controller> <interface> <dev> [list]
>
> 2) So, this command should write to MMC1:
>
> U-Boot# dfu 0 mmc 1
This is strange since the "1" here specify the mmc device.
Could you type when SD and eMMC is inserted:
"mmc list" and then
"mmc part"
mmc dev 1
"mmc part"
mmc dev 0
and paste the output?
As fair as I noticed on my board (TRATS2):
MMC0 is eMMC and MMC2 = SD.
On beagle bone black it is the opposite:
MMC0 is SD and MMC1 is eMMC.
>
> 3) But the output of the command above indicates writing to MMC0:
>
> MMC write: dev # 0, block # 63, count 762 ... 762 blocks write: OK
>
> In accordance to the message above the SD card (MMC0) was
> overwritten. Let me know how I can help to sort this out.
>
> Thanks,
> -Tamás
>
> On 2014-08-18 15:53, Lukasz Majewski wrote:
> > Hi Tamás,
> >
> >> Dear All,
> >>
> >> I'm trying to do a firmware update on my BeagleBone Black using DFU
> >> and nearly getting there:
> >>
> >>
> >> U-Boot# dfu 0 mmc 1
> >> GADGET DRIVER: usb_dnl_dfu
> >> musb-hdrc: peripheral reset irq lost!
> >>
> >> MMC write: dev # 0, block # 63, count 762 ... 762 blocks write: OK
> >> #
> >> DFU complete CRC32: 0xee7826ec
> >> DOWNLOAD ... OK
> >> Ctrl+C to exit ...
> >> U-Boot#
> >>
> >>
> >> However, the problem is that I'm trying to write to MMC #1 (eMMC),
> >> but U-Boot updates MMC #0 (SD card) as it can be seen from the
> >> output above.
> >>
> >> Is this a bug in U-Boot or I am doing something wrong?
> >>
> >> I'm using U-Boot version: u-boot-2013.10-ti2013.12.01 (from TI
> >> Sitara SDK 07).
> >>
> >
> > It is strange. I will look into this tomorrow.
> >
> > BTW: Are you sure that the mmc dev points to correct mmc device?
> > Could you check this for me?
> >
> >> Thanks,
> >> -Tamás
> >> _______________________________________________
> >> U-Boot mailing list
> >> U-Boot at lists.denx.de
> >> http://lists.denx.de/mailman/listinfo/u-boot
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
More information about the U-Boot
mailing list