dgrubb
Posts: 4
Joined: Wed Mar 02, 2016 5:25 pm

[SOLVED] eMMC not mounting after rpiboot

Thu Dec 07, 2017 9:50 pm

When the CM3 came out earlier this year I immediately purchased a CMIO board (v0.3) and a CM3. I had no problem using rpiboot at the time and flashed the eMMC with the Raspbian image which was current at the time. I've finally gotten to developing the hardware the CM3 will drive so want to try and re-flash with the current stretch image but I can't mount the eMMC device?

I checked out usbboot, compiled and ran it, apparently without any problems:

Code: Select all

dave@Arthur:~/Projects/usbboot$ sudo ./rpiboot 
[sudo] password for dave: 
Waiting for BCM2835/6/7
Sending bootcode.bin
Successful read 4 bytes 
Waiting for BCM2835/6/7
Second stage boot server
File read: start.elf
Second stage boot server done
and I see a Broadcom device disconnect on completion via dmesg:

Code: Select all

[25056.305154] usb 1-5.2: Manufacturer: Broadcom
[25056.305156] usb 1-5.2: SerialNumber: Broadcom
[25057.873754] usb 1-5.2: USB disconnect, device number 21
but nothing ever mounts again:

Code: Select all

dave@Arthur:~/Projects/usbboot$ lsusb
Bus 001 Device 005: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 006: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 05ac:8206 Apple, Inc. Bluetooth HCI
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
and:

Code: Select all

dave@Arthur:~/Projects/usbboot$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0   190M  0 part 
├─sda2   8:2    0  11.2G  0 part [SWAP]
└─sda3   8:3    0 286.7G  0 part /
sr0     11:0    1  1024M  0 rom  
I've gone through the basic debug steps:
  • Verified the jumper J4 is set to EN.
  • Tried it on two different computers to rule out potential USB hub incompatibility.
  • Swapped out several different USB cables of varying lengths.
  • Verified the CM3 itself works correctly using the CMIO board with J4 set to DIS and in my custom PCB.
Am I forgetting something obvious?

Cheers,
Dave.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1248
Joined: Sat Sep 10, 2011 11:43 am

Re: eMMC not mounting after rpiboot

Wed Dec 13, 2017 10:34 am

Might be worth switching back to the version of usbboot you had when you originally got it working, if that still works then see if you can identify which change actually broke it...

I assume the CM3 still boots as it is (i.e. you're happy that the eMMC is working correctly otherwise) it's just that it doesn't appear as a MSD when the rpiboot finishes running?

Also worth checking that a different usb cable doesn't make any difference, I've seen some trouble with re-initialising the USB with very poor quality cables...

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

dgrubb
Posts: 4
Joined: Wed Mar 02, 2016 5:25 pm

Re: eMMC not mounting after rpiboot

Fri Dec 15, 2017 9:47 pm

Thanks for the reply, Gordon!
gsh wrote:
Wed Dec 13, 2017 10:34 am
Might be worth switching back to the version of usbboot you had when you originally got it working, if that still works then see if you can identify which change actually broke it...
Surprisingly, I was able to locate the original version I used but it didn't make any difference.
gsh wrote:
Wed Dec 13, 2017 10:34 am
I assume the CM3 still boots as it is (i.e. you're happy that the eMMC is working correctly otherwise) it's just that it doesn't appear as a MSD when the rpiboot finishes running?
Right, and that's what's confusing me. I'm not ruling out the possibility I've damaged it in some way, but it works just fine when I put it in my custom PCB or in the CMIO board with the jumper set to DIS. I have a few more modules arriving next week so hopefully I'll be able to rule that in/out.
gsh wrote:
Wed Dec 13, 2017 10:34 am
Also worth checking that a different usb cable doesn't make any difference, I've seen some trouble with re-initialising the USB with very poor quality cables...
Thanks for the tip, swapped out quite a few different cables and power supplies to no effect.

rzusman
Posts: 307
Joined: Fri Jan 01, 2016 10:27 pm

Re: eMMC not mounting after rpiboot

Sun Dec 17, 2017 5:51 pm

What machine are you using as a host?

dgrubb
Posts: 4
Joined: Wed Mar 02, 2016 5:25 pm

Re: eMMC not mounting after rpiboot

Tue Dec 19, 2017 9:16 pm

My new batch of Compute modules arrived yesterday and they seem to be working without any problems! I've been applying the software changes I made to the first module and so far nothing has stopped rpiboot from re-mounting any of them. I don't know what I did to knacker the first one ...

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1677
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: eMMC not mounting after rpiboot

Wed Dec 20, 2017 11:02 am

Thanks for the feedback. Let us know if there are any new developments, but we'll consider this matter closed for now.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1248
Joined: Sat Sep 10, 2011 11:43 am

Re: [SOLVED] eMMC not mounting after rpiboot

Wed Dec 20, 2017 11:12 am

Well not closed... Further investigation is required on non-booting CM3. PM sent

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Return to “Compute Module”

Who is online

Users browsing this forum: No registered users and 1 guest