hi Jaski
thank you for your response
first i excuse for my bad Linux knowledge i am only c++ developer .
according to my previous post link text
i tried to install Linux driver for EMP2-X403 mpcie card on UBUNTU 14.04 for apalis TK1
i used your prebuilt L4T in your site
EMP2-X403 has following make file
build:
$(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) modules
install:
cp xr17v35x.ko /lib/modules/$(shell uname -r)/kernel/drivers/char
depmod -a
clean:
rm -f *~ *.o
rm -f *~ *.ko
rm -f modules.order Module.symvers xr17v35x.mod.c xr17v35x.o.ur-safe
rm -f .xr17v35x.ko.cmd .xr17v35x.mod.o.cmd .xr17v35x.o.cmd .xr17v35x.o.d .cache.mk
rm -rf .tmp_versions
rm -f /lib/modules/$(shell uname -r)/kernel/drivers/char/xr17v35x.ko
when i make above makefile i encountered an error:
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/ubuntu/EMP2_Driver/driver modules
make: *** /lib/modules/3.10.40-2.8.6+g2c7a3c3af726/build: No such file or directory. Stop.
make: *** [build] Error 2
and my (ls) command result on /lib/modules is
root@tegra-ubuntu:# ls /lib/modules
3.10.40-2.8.3+g6c533d3 3.10.40-g5abb340-dirty
your Colleague (Dear Mr.Marcel Ziswiler) help me about this error such as natively compile Linux kernel on apalis TK1 then i did following steps
1-sudo su
2.git clone -b toradex_tk1_l4t_r21.7 git://git.toradex.com/linux-toradex.git
3.apt-get update
4.apt-get install u-boot-tools
5.cd linux-toradex
6.ake apalis-tk1_defconfig
7.make -j6
8.make -j6 zImage
but unfortunately in step 8 i got an error
drivers/video/tegra/dc/of_dc.c:260:2: error :'for' initial declarations are only allowed in c99 mode
for(int i=0;i<5;i++){
drivers/video/tegra/dc/of_dc.c:260:2: note:use option -std=c99 or -std=gnu99 to compile your code
to fix initializing error i unrolled For loop in (of_dc.c) file
if(temp[0]<0x100){
drive_strength+=(u64)temp[0]<<0*8);
}else{
OF_DC_LOG("Invalid LVDS driver strength for lane %d\n",0);
}
if(temp[1]<0x100){
drive_strength+=(u64)temp[1]<<1*8);
}else{
OF_DC_LOG("Invalid LVDS driver strength for lane %d\n",1);
}
if(temp[2]<0x100){
drive_strength+=(u64)temp[2]<<2*8);
}else{
OF_DC_LOG("Invalid LVDS driver strength for lane %d\n",2);
}
if(temp[3]<0x100){
drive_strength+=(u64)temp[3]<<3*8);
}else{
OF_DC_LOG("Invalid LVDS driver strength for lane %d\n",3);
}
if(temp[4]<0x100){
drive_strength+=(u64)temp[4]<<4*8);
}else{
OF_DC_LOG("Invalid LVDS driver strength for lane %d\n",4);
}
at lost zImage was built successfully .
i copied all essentials to /media/ubuntu/BOOT
then i executed ( make modules_install ) but i got some errors again
root@tegra-ubuntu:/home/ubuntu/linux-toradex# make modules_install
make: Warning: File `.vmlinux.cmd' has modification time 6.3e+08 s in the future
make[1]: Warning: File `scripts/Kbuild.include' has modification time 6.3e+08 s in the future
INSTALL crypto/tcrypt.ko
cp: cannot stat ‘crypto/tcrypt.ko’: No such file or directory
INSTALL crypto/twofish_common.ko
cp: cannot stat ‘crypto/twofish_common.ko’: No such file or directory
INSTALL crypto/twofish_generic.ko
cp: cannot stat ‘crypto/twofish_generic.ko’: No such file or directory
INSTALL drivers/ata/ahci.ko
cp: cannot stat ‘drivers/ata/ahci.ko’: No such file or directory
INSTALL drivers/bluetooth/btusb.ko
cp: cannot stat ‘drivers/bluetooth/btusb.ko’: No such file or directory
INSTALL drivers/gpio/gpio-apalis-tk1-k20.ko
cp: cannot stat ‘drivers/gpio/gpio-apalis-tk1-k20.ko’: No such file or directory
INSTALL drivers/hid/hid-multitouch.ko
cp: cannot stat ‘drivers/hid/hid-multitouch.ko’: No such file or directory
INSTALL drivers/iio/adc/apalis-tk1-k20_adc.ko
cp: cannot stat ‘drivers/iio/adc/apalis-tk1-k20_adc.ko’: No such file or directory
INSTALL drivers/input/joydev.ko
cp: cannot stat ‘drivers/input/joydev.ko’: No such file or directory
INSTALL drivers/input/joystick/xpad.ko
cp: cannot stat ‘drivers/input/joystick/xpad.ko’: No such file or directory
INSTALL drivers/input/touchscreen/apalis-tk1-k20_ts.ko
cp: cannot stat ‘drivers/input/touchscreen/apalis-tk1-k20_ts.ko’: No such file or directory
INSTALL drivers/input/touchscreen/atmel_mxt_ts.ko
cp: cannot stat ‘drivers/input/touchscreen/atmel_mxt_ts.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/adv7280.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/adv7280.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/ap1302.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/ap1302.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/ar0261_v4l2.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/ar0261_v4l2.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/ar0330_v4l2.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/ar0330_v4l2.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/imx135_v4l2.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/imx135_v4l2.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/ov5640.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/ov5640.ko’: No such file or directory
INSTALL drivers/media/i2c/soc_camera/tc358743.ko
cp: cannot stat ‘drivers/media/i2c/soc_camera/tc358743.ko’: No such file or directory
INSTALL drivers/media/platform/soc_camera/soc_camera_platform.ko
cp: cannot stat ‘drivers/media/platform/soc_camera/soc_camera_platform.ko’: No such file or directory
INSTALL drivers/media/platform/soc_camera/tegra_camera/tegra_camera.ko
cp: cannot stat ‘drivers/media/platform/soc_camera/tegra_camera/tegra_camera.ko’: No such file or directory
INSTALL drivers/media/v4l2-core/videobuf2-dma-contig.ko
cp: cannot stat ‘drivers/media/v4l2-core/videobuf2-dma-contig.ko’: No such file or directory
INSTALL drivers/mfd/apalis-tk1-k20.ko
cp: cannot stat ‘drivers/mfd/apalis-tk1-k20.ko’: No such file or directory
INSTALL drivers/net/ethernet/intel/e1000e/e1000e.ko
cp: cannot stat ‘drivers/net/ethernet/intel/e1000e/e1000e.ko’: No such file or directory
INSTALL fs/nfs/nfs_layout_nfsv41_files.ko
cp: cannot stat ‘fs/nfs/nfs_layout_nfsv41_files.ko’: No such file or directory
INSTALL fs/nls/nls_iso8859-15.ko
cp: cannot stat ‘fs/nls/nls_iso8859-15.ko’: No such file or directory
INSTALL fs/squashfs/squashfs.ko
cp: cannot stat ‘fs/squashfs/squashfs.ko’: No such file or directory
INSTALL lib/xz/xz_dec.ko
cp: cannot stat ‘lib/xz/xz_dec.ko’: No such file or directory
INSTALL net/bluetooth/bluetooth.ko
cp: cannot stat ‘net/bluetooth/bluetooth.ko’: No such file or directory
INSTALL net/bluetooth/bnep/bnep.ko
cp: cannot stat ‘net/bluetooth/bnep/bnep.ko’: No such file or directory
INSTALL net/bluetooth/hidp/hidp.ko
cp: cannot stat ‘net/bluetooth/hidp/hidp.ko’: No such file or directory
INSTALL net/bluetooth/rfcomm/rfcomm.ko
cp: cannot stat ‘net/bluetooth/rfcomm/rfcomm.ko’: No such file or directory
INSTALL net/ipv4/ip_tunnel.ko
cp: cannot stat ‘net/ipv4/ip_tunnel.ko’: No such file or directory
INSTALL net/ipv6/sit.ko
cp: cannot stat ‘net/ipv6/sit.ko’: No such file or directory
INSTALL net/mac80211/mac80211.ko
cp: cannot stat ‘net/mac80211/mac80211.ko’: No such file or directory
INSTALL net/wireless/cfg80211.ko
cp: cannot stat ‘net/wireless/cfg80211.ko’: No such file or directory
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `scripts/Makefile.host' has modification time 6.3e+08 s in the future
make[1]: warning: Clock skew detected. Your build may be incomplete.
DEPMOD 3.10.40-g5abb340-dirty
make: warning: Clock skew detected. Your build may be incomplete.
now i dont know what should i do next for installing EMP2-X403 driver on Ubuntu ?
thank you