Patch to make BBB properly boot from eMMC every time
Sulev-Madis Silber (ketas)
madis555 at hot.ee
Tue May 13 19:55:16 UTC 2014
On 2014-05-13 20:11, Winston Smith wrote:
> On Tue, May 13, 2014 at 10:33 AM, Ian Lepore <ian at freebsd.org> wrote:
>> Does your emmc come up as 8-bit reliably every time?
>
> No, not since I've rebuilt (using 11-CURRENT r265949). I'm using
> Tim's updated crochet-freebsd which now includes the 1Ghz patches.
> This time around, instead of the 15 second hang I previously reported,
> it hung for maybe 60s before generating this message:
>
> mmcsd0: 4GB <SDHC SA04G 0.4 SN 2617245739 MFG 05/2010 by 2 TM> at mmc0
> 48.0MHz/4bit/65535-block
> uhub1: 1 port with 1 removable, self powered
> uhub0: 1 port with 1 removable, self powered
> random: unblocking device. ###### HANGS HERE ... ######
> sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command.
> sdhci_ti1-slot0: ============== REGISTER DUMP ==============
> sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101
> sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
> sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b
> sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000
> sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000
> sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007
> sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000
> sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
> sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
> sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000
> sdhci_ti1-slot0: ===========================================
> sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command.
> sdhci_ti1-slot0: ============== REGISTER DUMP ==============
> sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101
> sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
> sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b
> sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000
> sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000
> sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007
> sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000
> sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
> sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
> sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000
> sdhci_ti1-slot0: ===========================================
> sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command.
> sdhci_ti1-slot0: ============== REGISTER DUMP ==============
> sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101
> sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
> sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b
> sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000
> sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000
> sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007
> sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000
> sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
> sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
> sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000
> sdhci_ti1-slot0: ===========================================
> sdhci_ti1-slot0: Got data interrupt 0x00000002, but there is no active command.
> sdhci_ti1-slot0: ============== REGISTER DUMP ==============
> sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101
> sdhci_ti1-slot0: Blk size: 0x00000004 | Blk cnt: 0x00000001
> sdhci_ti1-slot0: Argument: 0x00020000 | Trn mode: 0x0000071b
> sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000
> sdhci_ti1-slot0: Power: 0x0000000d | Blk gap: 0x00000000
> sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007
> sdhci_ti1-slot0: Timeout: 0x00000006 | Int stat: 0x00000000
> sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb
> sdhci_ti1-slot0: AC12 err: 0x00000000 | Slot int: 0x00000000
> sdhci_ti1-slot0: Caps: 0x06e10080 | Max curr: 0x00000000
> sdhci_ti1-slot0: ===========================================
> am335x_pmic0: TPS65217C ver 1.2 powered by AC
> Trying to mount root from ufs:/dev/ufs/sdfreebsd1 [rw,noatime]...
>
>
> It did not appear to detect the eMMC.
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
That's bit different issue.
I would actually want to have 1GHz WITH eMMC... now it's impossible.
First that, then maybe variable freq later (if possible). I certainly
have usage for such speeds somewhere.
But right now BBB is so stable. I would put snapshot of CURRENT to
production right now. I now also have taken all debugging options out. I
didn't realize how SLOW things are with WITNESS & others on.
Maybe when I get more than one copy of same HW, I could run some of them
with WITNESS on too (would it actually give me some useful data I could
report back?)
More information about the freebsd-arm
mailing list