bioe007
Posts: 8
Joined: Tue Apr 04, 2017 11:39 pm

CM3 Flashing on Windows 7 broken?

Mon Apr 10, 2017 3:57 pm

I'm following the instructions to flash a CM3 module here:
https://www.raspberrypi.org/documentati ... lashing.md

I'm using:
* Windows 7
* Pi CM3
* Pi compute developer board

What I did:
* put cm3 in carrier board
* run installer
* connect carrier to PC
* apply power to carrier board
* observe windows 'installing driver blah blah'
* CM3+carrier board is detected as 'Xbox S controller'
* open terminal and run 'Compute Module Boot/rpiboot.exe'
* observe error:

Code: Select all

Waiting for BCM283x ...
Initialised device correctly
Found serial number 0
Found serial = 0: writing file ./usbbootcode.bin
Failed to write correct length, returned 0
I tried this first by double-clicking the exe, then from git-bash, cygwin, powershell and cmd prompts. All with supervisor permissions. Always I get the same error.

After which the CM3 seems to be out to lunch. Now sometimes running rpiboot.exe basically does nothing and it just sits at the 'Waiting for BCM...' line. Similarly described here:
https://github.com/raspberrypi/usbboot/issues/12

I notice that the instructions list testing on Windows 10, and XP. Notably, Windows 7 is not mentioned.

Questions:

1. Is it more likely that this is a Win7 issue or a problem with the bootcode.bin file?
2. Has anyone used this on Windows 7 with success?
3. If it's the bootcode.bin, do I just fetch that from a different commit and try again?
3. How can I get my CM3 out of zombie-land and try it again?

Thanks

bioe007
Posts: 8
Joined: Tue Apr 04, 2017 11:39 pm

Re: CM3 Flashing on Windows 7 broken?

Mon Apr 10, 2017 5:04 pm

I'm wondering if the fact the compute module + carrier board is being detected as a 'Xbox One S Controller' is causing at least some of the problem - seems like a likely culprit.

So now I've taken these steps:
* uninstalled the pi boot
* uninstalled the CM module from Windows Device Manager
* Disabled automatic driver installation
* reboot
* download the driver only (link from instructions page)
* power up CM3+carrier connected to PC
* note recognized as 'BCM2170' in other devices
* Select 'update driver' 'have disk' etc etc...

Here the included driver seems broken. Windows says it can't find any drivers in the directory.

I notice the *.inf file there is at least one typo, where a string doesn't have a close-quote. So I fix that.

Now windows just says in the dialog window:
"unable to install your BCM2710 Boot. Windows could not find driver software for your device ... "
no_bcm2170boot_install.jpg
no_bcm2170boot_install.jpg (31.43 KiB) Viewed 946 times
+edit+

setupapi.app.log - parts from when trying to install the driver:

Code: Select all

[Device Install Log]
     OS Version = 6.1.7601
     Service Pack = 1.0
     Suite = 0x0100
     ProductType = 1
     Architecture = amd64

[BeginLog]

[Boot Session: 2017/04/10 09:53:12.610]

>>>  [Build Driver List - USB\VID_0A5C&PID_2764&MI_00\7&315B8DB7&0&0000]
>>>  Section start 2017/04/10 10:28:07.574
      cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
     cpy: Policy is set to make all digital signatures equal.
<<<  Section end 2017/04/10 10:28:07.576
<<<  [Exit status: SUCCESS]


>>>  [Build Driver List - USB\VID_0A5C&PID_2764&MI_00\7&315B8DB7&0&0000]
>>>  Section start 2017/04/10 10:28:07.589
      cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
     cpy: Policy is set to make all digital signatures equal.
<<<  Section end 2017/04/10 10:28:07.593
<<<  [Exit status: SUCCESS]


>>>  [DIF_SELECTBESTCOMPATDRV - USB\VID_0A5C&PID_2764&MI_00\7&315B8DB7&0&0000]
>>>  Section start 2017/04/10 10:28:07.593
      cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
!    dvi: Selecting driver failed(0xe0000228)
!    dvi: Default installer: failed!
!    dvi: Error 0xe0000228: There are no compatible drivers for this device.
<<<  Section end 2017/04/10 10:28:07.596
<<<  [Exit status: FAILURE(0xe0000228)]

wittend
Posts: 12
Joined: Wed May 08, 2013 3:13 pm

Re: CM3 Flashing on Windows 7 broken?

Fri Aug 11, 2017 4:12 pm

I have done exactly these same things, and gotten exactly the same results. Win7 showed XBox driver, removed that, etc.

I tried again with another CM3 after exorcising all of the drivers rpiboot.exe, etc.

I also did this under Mint (ubuntu) 18.1 (not VM - separate machine) with equally unhappy results.

Really frustrated!

bioe007
Posts: 8
Joined: Tue Apr 04, 2017 11:39 pm

Re: CM3 Flashing on Windows 7 broken?

Thu Sep 07, 2017 3:23 am

Hi,

In order to reliably flash my CM3 modules I had my PC upgraded to Windows 10, then it seemed to work flawlessly. Unfortunately that PC is dead now and back for repairs.

I'm stuck with windows 7 again and I was able to flash one CM3 but now I get the same problem over and over (can't detect the CM3)

My conclusion is this doesn't work on Windows 7.

We haven't had any trouble flashing from Ubuntu machines though, so I'm not sure why you're having trouble with that.

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

Re: CM3 Flashing on Windows 7 broken?

Thu Sep 07, 2017 7:18 am

If it said XBox controller then you're using an old version of the installer

Use the latest version
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

Return to “Compute Module”

Who is online

Users browsing this forum: No registered users and 2 guests