Bug 238344 - sysutils/u-boot-beaglebone : eMMC access is broken
Summary: sysutils/u-boot-beaglebone : eMMC access is broken
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-05 16:57 UTC by Sergey Manucharian
Modified: 2019-07-14 09:15 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Manucharian 2019-06-05 16:57:16 UTC
This commit:
https://svnweb.freebsd.org/ports/head/sysutils/u-boot-beaglebone/Makefile?view=markup&pathrev=498603

replaced "am335x_boneblack_defconfig" with "am335x_evm_defconfig".

The latter has an option which wasn't in the former:
CONFIG_DM_MMC=y

which brakes access to eMMC:
....
sdhci_ti1-slot0: Controller timeout
sdhci_ti1-slot0: ============== REGISTER DUMP ==============
sdhci_ti1-slot0: Sys addr: 0x00000000 | Version:  0x00003101
sdhci_ti1-slot0: Blk size: 0x00000000 | Blk cnt:  0x00000000
sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x00000102
sdhci_ti1-slot0: Present:  0x01f70000 | Host ctl: 0x00000000
sdhci_ti1-slot0: Power:    0x00000000 | Blk gap:  0x00000000
sdhci_ti1-slot0: Wake-up:  0x00000000 | Clock:    0x00008007
sdhci_ti1-slot0: Timeout:  0x00000000 | Int stat: 0x00000000
sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000
sdhci_ti1-slot0: Caps:     0x04e10080 | Caps2:    0x00000000
sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000
sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000
sdhci_ti1-slot0: ===========================================
....

The boot process is delayed, and the corresponding devices /dev/mmcsd1* are missing.

Replacing that option with 
CONFIG_DM_MMC=n

fixes the issue. I didn't dig deep enough to find the root cause.
Comment 1 Bugzilla Automation freebsd_committer 2019-06-05 16:57:16 UTC
Maintainer informed via mail
Comment 2 Denis Polygalov 2019-07-14 09:02:55 UTC
FYI this bug renders following images useless:

FreeBSD-11.2-RELEASE-arm-armv6-BEAGLEBONE.img
FreeBSD-11.3-RELEASE-arm-armv6-BEAGLEBONE.img
FreeBSD-12.0-RELEASE-arm-armv7-BEAGLEBONE.img

and therefore cause averse reaction in new people
who like FreeBSD on big PCs and trying to get 
into FreeBSD+ARM world which already desperately 
lacking developers and users.