raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

WSL build info missing dependencies #174

Closed kfilipan closed 6 months ago

kfilipan commented 1 year ago

Describe the bug

Not sure if this is relevant but with latest distros in WSL, you also need to install gcc and make packages (and their automatic dependencies) otherwise the compiling fails - see complete steps below.

Steps to reproduce the behaviour

Ubuntu/Debian

Info for WSL installation: https://www.linuxfordevices.com/tutorials/linux/install-debian-on-windows-wsl

Install Ubuntu/Debian on WSL and start:

wsl -d <distro> # use Ubuntu or Debian

Change to user directory and update packages:

cd
sudo apt update
sudo apt upgrade

Install required modules (gcc and make are needed):

sudo apt install git libusb-1.0-0-dev pkg-config gcc make

Clone repository and compile:

git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
make

Start USB boot script:

sudo ./rpiboot

Device(s)

Other

Compute Module IO board.

No response

RPIBOOT logs

No response

Kernel logs

No response

Device UART logs

No response

timg236 commented 6 months ago

I don't think we need specific instructions for WSL, I'm sure people can figure out how to install gcc / make on platforms they aren't already present.