vabarca
February 22, 2018, 9:25am
1
My target is to compile the toradex_4.1-2.0.x-imx kernel branch but enabling the USB 3.0 capabilities (xHCI)
I have already configure and compile the kernel modules following this tutorial step by step and everything was as expected.
But, when I tried to deploy the modules by executing command ‘sudo -E make INSTALL_MOD_PATH=~/Apalis-iMX6_LXDE-Image_2.7.4/rootfs/ modules_install’ the following error came up:
make: arm-linux-gnueabihf-gcc: Commnad not found cp: cannot stat ‘./modules.order’: No such file or directory Makefile:1126: recipe for target ‘modinst’ failed make: *** [modinst] Error 1
What can be wrong? (I have also tested it with the whole path instead ~)
On the other hand, after get this error, if I look for results in my lib/modules (/home/sop/Apalis-iMX6_LXDE-Image_2.7.4/rootfs/lib/modules), I can see a new folder (the expected one 4.1.44) with two linking files (build and source) and a folder called kernel. If this right and is the expected result How can I deploy it?
That should really not be that hard but let me quickly walk you through:
[user@host ~]$ sudo tar xjvf ~/Downloads/2.7b4/Apalis-iMX6_LXDE-Image_2.7b4-20171005.tar.bz2
[user@host ~]$ git clone -b toradex_4.1-2.0.x-imx git://git.toradex.com/linux-toradex.git
[user@host ~]$ cd linux-toradex
[user@host linux-toradex]$ export ARCH=arm
[user@host linux-toradex]$ export CROSS_COMPILE=~/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
[user@host linux-toradex]$ make apalis_imx6_defconfig
[user@host linux-toradex]$ make nconfig
Device Drivers --->
[*] USB support --->
<M> xHCI HCD (USB 3.0) support
<ESC>
<ESC>
<ESC>
<save>
<OK>
[user@host linux-toradex]$ make -j12
...
[user@host linux-toradex]$ make -j12 uImage LOADADDR=0x10008000
...
[user@host linux-toradex]$ sudo -E make INSTALL_MOD_PATH=~/Apalis-iMX6_LXDE-Image_2.7.4/rootfs/ modules_install
[sudo] password for user:
INSTALL drivers/ata/ahci.ko
INSTALL drivers/bluetooth/hci_uart.ko
INSTALL drivers/crypto/caam/sm_test.ko
INSTALL drivers/hid/hid-multitouch.ko
INSTALL drivers/i2c/algos/i2c-algo-pca.ko
INSTALL drivers/i2c/algos/i2c-algo-pcf.ko
INSTALL drivers/input/serio/serport.ko
INSTALL drivers/input/touchscreen/atmel_mxt_ts.ko
INSTALL drivers/input/touchscreen/fusion_F0710A.ko
INSTALL drivers/media/platform/mxc/capture/adv7180_tvin.ko
INSTALL drivers/media/platform/mxc/capture/adv7280_tvin.ko
INSTALL drivers/media/platform/mxc/capture/ipu_bg_overlay_sdc.ko
INSTALL drivers/media/platform/mxc/capture/ipu_csi_enc.ko
INSTALL drivers/media/platform/mxc/capture/ipu_fg_overlay_sdc.ko
INSTALL drivers/media/platform/mxc/capture/ipu_prp_enc.ko
INSTALL drivers/media/platform/mxc/capture/ipu_still.ko
INSTALL drivers/media/platform/mxc/capture/max9526_tvin.ko
INSTALL drivers/media/platform/mxc/capture/mxc_v4l2_capture.ko
INSTALL drivers/media/platform/mxc/capture/ov5640_camera_int.ko
INSTALL drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko
INSTALL drivers/media/platform/mxc/capture/ov5642_camera.ko
INSTALL drivers/media/platform/mxc/capture/v4l2-int-device.ko
INSTALL drivers/media/platform/mxc/subdev/mx6s_capture.ko
INSTALL drivers/media/platform/mxc/subdev/mxc_vadc.ko
INSTALL drivers/media/platform/mxc/subdev/ov5640_camera.ko
INSTALL drivers/media/platform/mxc/subdev/ov5640_camera_mipi.ko
INSTALL drivers/media/usb/gspca/gspca_main.ko
INSTALL drivers/media/usb/uvc/uvcvideo.ko
INSTALL drivers/media/v4l2-core/videobuf2-dma-contig.ko
INSTALL drivers/media/v4l2-core/videobuf2-memops.ko
INSTALL drivers/media/v4l2-core/videobuf2-vmalloc.ko
INSTALL drivers/net/ppp/ppp_generic.ko
INSTALL drivers/net/slip/slhc.ko
INSTALL drivers/usb/class/cdc-acm.ko
INSTALL drivers/usb/class/cdc-wdm.ko
INSTALL drivers/usb/gadget/function/u_ether.ko
INSTALL drivers/usb/gadget/function/u_serial.ko
INSTALL drivers/usb/gadget/function/usb_f_acm.ko
INSTALL drivers/usb/gadget/function/usb_f_ecm.ko
INSTALL drivers/usb/gadget/function/usb_f_ecm_subset.ko
INSTALL drivers/usb/gadget/function/usb_f_eem.ko
INSTALL drivers/usb/gadget/function/usb_f_fs.ko
INSTALL drivers/usb/gadget/function/usb_f_mass_storage.ko
INSTALL drivers/usb/gadget/function/usb_f_ncm.ko
INSTALL drivers/usb/gadget/function/usb_f_obex.ko
INSTALL drivers/usb/gadget/function/usb_f_rndis.ko
INSTALL drivers/usb/gadget/function/usb_f_serial.ko
INSTALL drivers/usb/gadget/function/usb_f_ss_lb.ko
INSTALL drivers/usb/gadget/legacy/g_ether.ko
INSTALL drivers/usb/gadget/legacy/g_mass_storage.ko
INSTALL drivers/usb/gadget/legacy/g_ncm.ko
INSTALL drivers/usb/gadget/legacy/g_serial.ko
INSTALL drivers/usb/gadget/legacy/g_zero.ko
INSTALL drivers/usb/gadget/legacy/gadgetfs.ko
INSTALL drivers/usb/gadget/libcomposite.ko
INSTALL drivers/usb/host/xhci-hcd.ko
INSTALL drivers/usb/host/xhci-pci.ko
INSTALL drivers/usb/serial/option.ko
INSTALL drivers/usb/serial/usb_wwan.ko
INSTALL fs/binfmt_misc.ko
INSTALL fs/configfs/configfs.ko
INSTALL fs/fat/msdos.ko
INSTALL fs/isofs/isofs.ko
INSTALL fs/nfs/flexfilelayout/nfs_layout_flexfiles.ko
INSTALL fs/nls/nls_iso8859-15.ko
INSTALL fs/squashfs/squashfs.ko
INSTALL fs/udf/udf.ko
INSTALL lib/crc-itu-t.ko
INSTALL lib/crc7.ko
INSTALL lib/libcrc32c.ko
INSTALL net/bluetooth/bluetooth.ko
INSTALL net/bluetooth/bnep/bnep.ko
INSTALL net/bluetooth/hidp/hidp.ko
INSTALL net/bluetooth/rfcomm/rfcomm.ko
INSTALL net/ipv4/ip_tunnel.ko
INSTALL net/ipv4/tunnel4.ko
INSTALL net/ipv6/sit.ko
INSTALL net/mac80211/mac80211.ko
INSTALL net/wireless/cfg80211.ko
INSTALL sound/core/snd-hwdep.ko
INSTALL sound/core/snd-rawmidi.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
DEPMOD 4.1.44
vabarca
February 26, 2018, 1:27pm
3
Thanks!!! now everything works and I can deploy the kernel modules!
There is only one difference between my previous procedure Build U-Boot and Linux Kernel from Source Code and the one provided by you: these two commands
- make -j12
- make -j12 uImage LOADADDR=0x10008000
instead of the one used in the tutorial
- make -j3 uImage LOADADDR=10008000 2>&1 | tee build.log
After applied this difference, everything worked.
Thank you very much for your excellent support!!