We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Compute Mod 5 - Dev Kit

Fri Jan 17, 2025 2:16 pm

Hi guys, hoping you can help!

This is my first Pi, so please bear with...

I got the Pi5 dev kit because I didnt know what I was doing

Found out it doesnt boot from SD card, contacted support - they also seemingly didnt know it doesnt boot from SD card, so sent a new IO board.. same issue.. obviously

I've gone to flash the eMMC followingng the steps - here https://github.com/raspberrypi/usbboot? ... file#macos

However, when cloning the repository I'm getting an error "main.c:1:10: fatal error: 'libusb.h' file not found"
I've read up that the M1 silicon Mac has a different file structure for libusb! But I'm lost as to what to run..
I've tried a couple of things, but nothing works

I'm clearly missing something, or how to execute it
If anyone can point me to the corrective steps, I'd be most grateful - this is at the outer edge of my computing skills, so please dont assume any knowledge - and yep, I should have just got the standard Pi5 but the dev kit looked spot on for what I needed it for!! live and learn...

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

Re: Compute Mod 5 - Dev Kit

Fri Jan 17, 2025 3:18 pm

Did you see this comment in the Mac section of the README (https://github.com/raspberrypi/usbboot? ... file#macos)?:
If the build is unable to find the header file libusb.h then most likely the PKG_CONFIG_PATH is not set properly. This should be set via

Code: Select all

export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"

User avatar
B.Goode
Posts: 18715
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Compute Mod 5 - Dev Kit

Fri Jan 17, 2025 4:34 pm

Andy_uk_73 wrote:
Fri Jan 17, 2025 2:16 pm
Hi guys, hoping you can help!

This is my first Pi, so please bear with...

So I hope you are duly impressed that you had a personal reply from an Engineer involved with the development of the product!

I can't see that happening with Asus, or Lenovo, or whoever the competition is...



Found out it doesnt boot from SD card, contacted support - they also seemingly didnt know it doesnt boot from SD card, so sent a new IO board.. same issue.. obviously


I don't know where you are trying to get support from, other than here in these official Forums, but the restriction is literally printed on the IO Board, right next to the microSD card slot.
NB SD Card only used for CM5 modules without eMMC
And in the Specification on the product webpage:
https://www.raspberrypi.com/products/co ... -io-board/
Specification
160 mm × 90 mm form factor

Standard 40-pin GPIO header

Gigabit Ethernet RJ45 with PoE+ HAT+ support

2 × USB 3 sockets

microSD card socket for CM5 Lite modules

And in the official Raspberry Pi support documentation:
https://www.raspberrypi.com/documentati ... #io-boards
Compute Module 5 IO Board provides the following interfaces:

HAT footprint with 40-pin GPIO connector

PoE header

2× HDMI ports

2× USB 3.0 ports

Gigabit Ethernet RJ45 with PoE support

M.2 M key PCIe socket compatible with the 2230, 2242, 2260, and 2280 form factors

microSD card slot (only for use with Lite variants with no eMMC; other variants ignore the slot)



I can relate to a new user being bemused by this, but it's disappointing that people distributing and supporting RPi Kit can't see the same information that I can.
Beware of the Leopard

fredeady
Posts: 8
Joined: Wed Jan 15, 2025 4:38 pm

Re: Compute Mod 5 - Dev Kit

Fri Jan 17, 2025 10:19 pm

Hi, Andy
You may want to check out my problem post..CM5 Pi OS install error.. It will solve your headaches..

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 9:10 am

PhilE wrote:
Fri Jan 17, 2025 3:18 pm
Did you see this comment in the Mac section of the README (https://github.com/raspberrypi/usbboot? ... file#macos)?:
If the build is unable to find the header file libusb.h then most likely the PKG_CONFIG_PATH is not set properly. This should be set via

Code: Select all

export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"
Thanks - I did read that bit and tried the code, tried again
resulting in the belo error

"zsh: command not found: brew"

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 9:18 am

fredeady wrote:
Fri Jan 17, 2025 10:19 pm
Hi, Andy
You may want to check out my problem post..CM5 Pi OS install error.. It will solve your headaches..
Thanks for the reply, I've had a read, it all seems to come back to the same place in Github, which doesnt work for me!

I'm not going to exclude user error, or not understanding the correct steps at this stage
It all seems to stem from the M1 Mac chip haing a different file structure which I need to change - but to what? I've no idea - or where to change it!
I can follow instructions, roughly figure out what is going on, but, anything more technologically complex and thats me done!

Thanks again

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 9:30 am

B.Goode wrote:
Fri Jan 17, 2025 4:34 pm
Andy_uk_73 wrote:
Fri Jan 17, 2025 2:16 pm
Hi guys, hoping you can help!

This is my first Pi, so please bear with...

So I hope you are duly impressed that you had a personal reply from an Engineer involved with the development of the product!

I can't see that happening with Asus, or Lenovo, or whoever the competition is...



Found out it doesnt boot from SD card, contacted support - they also seemingly didnt know it doesnt boot from SD card, so sent a new IO board.. same issue.. obviously


I don't know where you are trying to get support from, other than here in these official Forums, but the restriction is literally printed on the IO Board, right next to the microSD card slot.
NB SD Card only used for CM5 modules without eMMC
And in the Specification on the product webpage:
https://www.raspberrypi.com/products/co ... -io-board/
Specification
160 mm × 90 mm form factor

Standard 40-pin GPIO header

Gigabit Ethernet RJ45 with PoE+ HAT+ support

2 × USB 3 sockets

microSD card socket for CM5 Lite modules

And in the official Raspberry Pi support documentation:
https://www.raspberrypi.com/documentati ... #io-boards
Compute Module 5 IO Board provides the following interfaces:

HAT footprint with 40-pin GPIO connector

PoE header

2× HDMI ports

2× USB 3.0 ports

Gigabit Ethernet RJ45 with PoE support

M.2 M key PCIe socket compatible with the 2230, 2242, 2260, and 2280 form factors

microSD card slot (only for use with Lite variants with no eMMC; other variants ignore the slot)



I can relate to a new user being bemused by this, but it's disappointing that people distributing and supporting RPi Kit can't see the same information that I can.
Blimey, thanks for the response

"So I hope you are duly impressed that you had a personal reply from an Engineer involved with the development of the product!

I can't see that happening with Asus, or Lenovo, or whoever the competition is..."

I dont use PC! its good to know the dev team are reviewinig the issues live - sadly the response didnt resolve my issue

"I don't know where you are trying to get support from, other than here in these official Forums"
Point of purchase - pihub
They then pointed me to these forums, which I didnt know existed until that point

When I received the second board with the same issue, I went back to 'support' and said this is not a coincidence - then I read the further docs referenced (thanks)

I was working off friends recommendations, both of which have extensive use of a standard Pi (3 and 4)

Genuinely not sure this set up is for me
I'm going to borrow a PC later and run the set up on that, as sadly life is too short, and I've not got the time to keep going round and round in circles because my machine of choice isnt catered for in the 'guide'

If that fails, which it looks likely it will, the kit will be going back to be swapped for a standard Pi5
Appreciate everyones help to this point

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

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 11:21 am

Raspberry Pi computers are not appliances, and some user effort is required. That's even more true of the Compute Modules. I don't think it's unreasonable to expect users to, at least, Google the error message or some words from the problem: https://www.google.com/search?q=macos+b ... macos+brew
That will lead you to https://brew.sh/, which explains clearly how to install the homebrew package management system.

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 1:00 pm

PhilE wrote:
Sun Jan 19, 2025 11:21 am
Raspberry Pi computers are not appliances, and some user effort is required. That's even more true of the Compute Modules. I don't think it's unreasonable to expect users to, at least, Google the error message or some words from the problem: https://www.google.com/search?q=macos+b ... macos+brew
That will lead you to https://brew.sh/, which explains clearly how to install the homebrew package management system.
Thanks Phil - Appreciate the time to reply especially at the weekend
And I understand it must carry some frustration dealing with someone who is out of their comfort zone with regards things like this, I've not flashed a chip in over 25 years!!

So - the above eventually worked, the initial script didnt, but then I found the downloader package which did, getting me to the write phase
Which subsequently failed!
I have googled/searched here for the error to no avail nor could I find anything here - https://rpltd.co/rpiboot

Error for reference below

RPIBOOT: build-date Jan 19 2025 version 20240422~085300 d4aa5041
If the device fails to connect then please see https://rpltd.co/rpiboot for debugging tips.
Loading: mass-storage-gadget64/bootfiles.bin
Using mass-storage-gadget64/bootfiles.bin
Waiting for BCM2835/6/7/2711/2712...
Sending bootcode.bin
Successful read 4 bytes
Waiting for BCM2835/6/7/2711/2712...
Second stage boot server
File read: mcb.bin
File read: memsys00.bin
File read: memsys01.bin
File read: memsys02.bin
File read: memsys03.bin
File read: bootmain
Loading: mass-storage-gadget64/config.txt
File read: config.txt
Loading: mass-storage-gadget64/boot.img
File read: boot.img
Failed to write complete file to USB device

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

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 2:37 pm

By getting so far, you have exercised all the bits that need to work; downloading different bits of data is just a matter of doing the same thing repeatedly. My suspicion is that you are powering the CM5 from the USB port on your Mac, via the CM5IO board. Unlike the CM5IO board there is no separate power connector, which means your USB source needs to be capable of powering the whole lot.

If your Mac is anything like my MacBook Pro then you will need a good powered hub for all but the least demanding peripherals.

aBUGSworstnightmare
Posts: 13267
Joined: Tue Jun 30, 2015 1:35 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 3:52 pm

Same recommendation to you as to any other new CM5 eMMC, user: make use of network install, not other PC is needed!
Connect your Pi to wired LAN/monitor/keyboard, press and hold down SHIFT key when powering your Pi up -> follow the instructions.
Make sure no bootable media is connected during that process.

Saves you a lot of time solving your MAC related issues.

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 4:07 pm

PhilE wrote:
Sun Jan 19, 2025 2:37 pm
By getting so far, you have exercised all the bits that need to work; downloading different bits of data is just a matter of doing the same thing repeatedly. My suspicion is that you are powering the CM5 from the USB port on your Mac, via the CM5IO board. Unlike the CM5IO board there is no separate power connector, which means your USB source needs to be capable of powering the whole lot.

If your Mac is anything like my MacBook Pro then you will need a good powered hub for all but the least demanding peripherals.
Thanks again Phil

Seems without going shopping I'm stuck!

If I power the board from the suppied power supply then connect to the boards Standard USB port for the flash, no data is transferred
So it would seem power and data for this purpose must go through the single usb-c port?
(even tried RJ45 incase)

Looking for a 'powered hub' only brings up charging hubs, so one way transfer
With the exception of the pihut's Industrial USB 3.2 Hub - which only supports p3/4

It cant be this hard! lol

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

Re: Compute Mod 5 - Dev Kit

Sun Jan 19, 2025 5:37 pm

power and data for this purpose must go through the single usb-c port?
That's correct.
Looking for a 'powered hub' only brings up charging hubs, so one way transfer
I meant a powered hub for the Mac, i.e. a USB expander that also has its own power supply - I have a nice Anker model with 8 regular ports and 3 charging ports, of which you would need to use a regulator port in order to get the data connectivity.

Network install is another option, provided you have an Ethernet cable and an Ethernet port on e.g. your router. You also need a display to be able to drive it.

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 8:12 am

PhilE wrote:
Sun Jan 19, 2025 5:37 pm
power and data for this purpose must go through the single usb-c port?
That's correct.
Looking for a 'powered hub' only brings up charging hubs, so one way transfer
I meant a powered hub for the Mac, i.e. a USB expander that also has its own power supply - I have a nice Anker model with 8 regular ports and 3 charging ports, of which you would need to use a regulator port in order to get the data connectivity.

Network install is another option, provided you have an Ethernet cable and an Ethernet port on e.g. your router. You also need a display to be able to drive it.
Thanks for the explanation
I spotted the network install suggestion
I've got all the kit for that, will be giving that a go this morning!

User avatar
B.Goode
Posts: 18715
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 11:22 am

Andy_uk_73 wrote:
Mon Jan 20, 2025 8:12 am
PhilE wrote:
Sun Jan 19, 2025 5:37 pm
power and data for this purpose must go through the single usb-c port?
That's correct.
Looking for a 'powered hub' only brings up charging hubs, so one way transfer
I meant a powered hub for the Mac, i.e. a USB expander that also has its own power supply - I have a nice Anker model with 8 regular ports and 3 charging ports, of which you would need to use a regulator port in order to get the data connectivity.

Network install is another option, provided you have an Ethernet cable and an Ethernet port on e.g. your router. You also need a display to be able to drive it.
Thanks for the explanation
I spotted the network install suggestion
I've got all the kit for that, will be giving that a go this morning!

The suggestion I am about to make would not be an elegant long-term solution, but if you have a spare usb mass storage device ('thumb drive' or 'memory stick') - I think 16GB would be the minimum practical size - you could try using the Raspberry Pi Imager on your Mac to prepare a bootable copy of RasPiOS Bookworm onto that storage instead. Your CM5 module + CM5 IO board should be able to power up into RasPiOS from that, inserted into a usb3.0 port on the IO board, with no additional configuration required.
Beware of the Leopard

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

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 11:37 am

That ought to work, but would then leave the OP with the problem of migrating the installation to the EMMC. I guess you could then run RPi-Imager natively to populate the EMMC - it's a bit of a rigmarole, but possibly useful for people for whom Ethernet is not an option.

clouz
Posts: 17
Joined: Mon Jan 20, 2025 3:49 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 4:46 pm

IMG_cm5io.jpg
cm5io
IMG_cm5io.jpg (316.18 KiB) Viewed 1647 times
usbboot clouz$ ./rpiboot -d mass-storage-gadget
RPIBOOT: build-date Jan 17 2025 version 20240422~085300 d4aa5041
If the device fails to connect then please see https://rpltd.co/rpiboot for debugging tips.
Loading: mass-storage-gadget/bootfiles.bin
Using mass-storage-gadget/bootfiles.bin
Waiting for BCM2835/6/7/2711/2712...
Sending bootcode.bin
Successful read 4 bytes
Waiting for BCM2835/6/7/2711/2712...
Second stage boot server
File read: mcb.bin
File read: memsys00.bin
File read: memsys01.bin
File read: memsys02.bin
File read: memsys03.bin
File read: bootmain
Loading: mass-storage-gadget/config.txt
File read: config.txt
Loading: mass-storage-gadget/boot.img
File read: boot.img
Second stage boot server done
usbboot clouz$

Finder:
finder.png
finder
finder.png (2.71 KiB) Viewed 1647 times
RPIimager :
rpi_iager.png
imager
rpi_iager.png (26.23 KiB) Viewed 1647 times

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 4:50 pm

I really appreciate everyone help with this, it gives me confidence for the project ahead when I get stuck.
But this one has me beat!
Dev kit is going back - Pi5 standard kit on the way

clouz
Posts: 17
Joined: Mon Jan 20, 2025 3:49 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:02 pm

just to add to my above post for emmc-access: no extra power is needed for the USB-plug ...

edit: and note the correct command :
./rpiboot -d mass-storage-gadget
Last edited by clouz on Mon Jan 20, 2025 5:09 pm, edited 1 time in total.

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

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:08 pm

The success or otherwise of running rpiboot from a Mac host without a powered hub will depend on the model of Mac and the length and quality of the USB cable. It looks like you have an older Macbook with USB-A sockets; I used to have one, and never had any problems with the USB. I now have a Macbook Pro with only USB-C ports, and an external hub seems to be the order of the day for most devices.

clouz
Posts: 17
Joined: Mon Jan 20, 2025 3:49 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:14 pm

yes, this is an older Mac but when I just plugged the same cable (Apple USB-C) into an iPad, the cm5 io-board powers on (red light),
I don't have an AppleSilicon MAC on hand right now

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

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:17 pm

The question is not "can it work without a hub", but rather "could it fail without a hub".

clouz
Posts: 17
Joined: Mon Jan 20, 2025 3:49 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:26 pm

sure, you wouldn't say it could fail if you didn't know :-)

aBUGSworstnightmare
Posts: 13267
Joined: Tue Jun 30, 2015 1:35 pm

Re: Compute Mod 5 - Dev Kit

Mon Jan 20, 2025 5:44 pm

Will it work with the official hub when powered? Someone @ RPT might be able to test.

Would test it on my M4 Pro but neither have CM5 nor official hub

Andy_uk_73
Posts: 10
Joined: Fri Jan 17, 2025 2:08 pm

Re: Compute Mod 5 - Dev Kit

Wed Jan 22, 2025 2:38 pm

clouz wrote:
Mon Jan 20, 2025 5:02 pm
just to add to my above post for emmc-access: no extra power is needed for the USB-plug ...

edit: and note the correct command :
./rpiboot -d mass-storage-gadget
So not - ./rpiboot -d mass-storage-gadget64 - as in every online guide I came across?

Return to “Compute Module”