From eb682fbca473a7b9bb9d167f88b5f048ec087015 Mon Sep 17 00:00:00 2001 From: Ruslan Koptev Date: Thu, 29 Aug 2019 16:51:03 +0300 Subject: [PATCH] Modules install command fix 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. --- linux/kernel/building.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/kernel/building.md b/linux/kernel/building.md index a08dd2dab..2820702dc 100755 --- a/linux/kernel/building.md +++ b/linux/kernel/building.md @@ -194,7 +194,7 @@ sudo mount /dev/sdb7 mnt/ext4 Next, install the modules: ```bash -sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install +sudo env PATH=$PATH make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install ``` Finally, copy the kernel and Device Tree blobs onto the SD card, making sure to back up your old kernel: