Skip to content

Commit 51a8396

Browse files
rkoptevJamesH65
authored andcommitted
Modules install command fix (raspberrypi#1261)
Running modules installation command produces "make: arm-linux-gnueabihf-gcc: Command not found" error. This is caused by running this command from root via sudo, where the path to the toolchain is not available. Passing PATH variable to the command fixes this problem.
1 parent 2ef690b commit 51a8396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/kernel/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ sudo mount /dev/sdb7 mnt/ext4
194194
Next, install the modules:
195195

196196
```bash
197-
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install
197+
sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install
198198
```
199199

200200
Finally, copy the kernel and Device Tree blobs onto the SD card, making sure to back up your old kernel:

0 commit comments

Comments
 (0)