Kernel compilation and deployment error

Hi,

The Image is Apalis imx6 2.8b2

i followed Build U-Boot and Linux Kernel from Source Code

https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#kernel-module-compilation-all-modules

and try to add the splash screen to the present image

After following Splash Screen (Linux)

https://developer.toradex.com/knowledge-base/splash-screen-linux

then done kernel compilation using the commands

make -j3 zImage LOADADDR=10008000 2>&1 | tee build.log
make imx6q-apalis-eval.dtb

then did the kernel update using the commands

cp ~/linux-toradex/arch/arm/boot/uImage /media///
cp ~/linux-toradex/arch/arm/boot/dts/imx6q-apalis-eval.dtb /media///

then flashed the updated image using

run setupdate
run update_kernel
run update_fdt

while running

[FAILED] Failed to start Load Kernel Modules.
[FAILED] Failed to start Load default USB gadget schema g1.schema.

two errors were found . After searching in toradex community we found that we can the errors by kernel deployment

While kernel deployment the following error has occured.

skanray@skanray-System-Product-Name:~/linux-toradex$ sudo -E make INSTALL_MOD_PATH=/home/skanray/Images/Apalis-iMX6_LXDE-Image_2.8.2/rootfs/ modules_install
./scripts/gcc-version.sh: line 25: arm-linux-gnueabihf-gcc: command not found
./scripts/gcc-version.sh: line 26: arm-linux-gnueabihf-gcc: command not found
make: arm-linux-gnueabihf-gcc: Command not found
make: arm-linux-gnueabihf-gcc: Command not found
cp: cannot stat './modules.order': No such file or directory
Makefile:1227: recipe for target '_modinst_' failed
make: *** [_modinst_] Error 1

Please look on this.

What host Distribution and version do you use? Did you install and export (in the same shell!) the Toolchain?

Angstrom is the distribution and version is Aoalis-lxde-image-2.8b2.

No i did not install the toolchain and export it in the same shell.

Stefan was asking for your build host distribution you are using.

Some distros do not propagate the PATH variable to a process launched with sudo, even if “-E” is used. (/etc/sudoers secure_path)

Try to workaround this with:

sudo -E env "PATH=$PATH" make INSTALL_MOD_PATH=<your-path> modules_install

Hi,

the following error has come . sudo make INSTALL_MOD_PATH=/home/skanray/IIMAGESGTKMM/Apalis-iMX6_LXDE-Image_2.8.2/rootfs/ modules_install

skanray@skanray-System-Product-Name:~/linux-toradex$ sudo make INSTALL_MOD_PATH=/home/skanray/IIMAGESGTKMM/Apalis-iMX6_LXDE-Image_2.8.2/rootfs/ modules_install
cp: cannot stat ‘./modules.order’: No such file or directory
Makefile:1227: recipe for target ‘modinst’ failed
make: *** [modinst] Error 1

What is your Build host distribution?