-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Compute Mod 5 - Dev Kit
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...
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...
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
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 viaCode: Select all
export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"
Re: Compute Mod 5 - Dev Kit
Andy_uk_73 wrote: ↑Fri Jan 17, 2025 2:16 pmHi 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.
And in the Specification on the product webpage:NB SD Card only used for CM5 modules without eMMC
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
Re: Compute Mod 5 - Dev Kit
Hi, Andy
You may want to check out my problem post..CM5 Pi OS install error.. It will solve your headaches..
You may want to check out my problem post..CM5 Pi OS install error.. It will solve your headaches..
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
Thanks - I did read that bit and tried the code, tried againPhilE wrote: ↑Fri Jan 17, 2025 3:18 pmDid 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 viaCode: Select all
export PKG_CONFIG_PATH="$(brew --prefix libusb)/lib/pkgconfig"
resulting in the belo error
"zsh: command not found: brew"
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
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
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
Blimey, thanks for the responseB.Goode wrote: ↑Fri Jan 17, 2025 4:34 pmAndy_uk_73 wrote: ↑Fri Jan 17, 2025 2:16 pmHi 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.And in the Specification on the product webpage:NB SD Card only used for CM5 modules without eMMC
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-boardsCompute 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.
"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
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
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.
That will lead you to https://brew.sh/, which explains clearly how to install the homebrew package management system.
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
Thanks Phil - Appreciate the time to reply especially at the weekendPhilE wrote: ↑Sun Jan 19, 2025 11:21 amRaspberry 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.
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
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
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.
If your Mac is anything like my MacBook Pro then you will need a good powered hub for all but the least demanding peripherals.
-
- Posts: 13267
- Joined: Tue Jun 30, 2015 1:35 pm
Re: Compute Mod 5 - Dev Kit
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.
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.
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
Thanks again PhilPhilE wrote: ↑Sun Jan 19, 2025 2:37 pmBy 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.
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
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
That's correct.power and data for this purpose must go through the single usb-c port?
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.Looking for a 'powered hub' only brings up charging hubs, so one way transfer
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.
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
Thanks for the explanationPhilE wrote: ↑Sun Jan 19, 2025 5:37 pmThat's correct.power and data for this purpose must go through the single usb-c port?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.Looking for a 'powered hub' only brings up charging hubs, so one way transfer
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.
I spotted the network install suggestion
I've got all the kit for that, will be giving that a go this morning!
Re: Compute Mod 5 - Dev Kit
Andy_uk_73 wrote: ↑Mon Jan 20, 2025 8:12 amThanks for the explanationPhilE wrote: ↑Sun Jan 19, 2025 5:37 pmThat's correct.power and data for this purpose must go through the single usb-c port?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.Looking for a 'powered hub' only brings up charging hubs, so one way transfer
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.
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
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
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.
Re: Compute Mod 5 - Dev Kit
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: RPIimager :
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm
Re: Compute Mod 5 - Dev Kit
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
But this one has me beat!
Dev kit is going back - Pi5 standard kit on the way
Re: Compute Mod 5 - Dev Kit
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
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.
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
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.
Re: Compute Mod 5 - Dev Kit
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
I don't have an AppleSilicon MAC on hand right now
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6831
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Compute Mod 5 - Dev Kit
The question is not "can it work without a hub", but rather "could it fail without a hub".
Re: Compute Mod 5 - Dev Kit
sure, you wouldn't say it could fail if you didn't know 

-
- Posts: 13267
- Joined: Tue Jun 30, 2015 1:35 pm
Re: Compute Mod 5 - Dev Kit
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
Would test it on my M4 Pro but neither have CM5 nor official hub
-
- Posts: 10
- Joined: Fri Jan 17, 2025 2:08 pm