# enable CAN bus , wrong

**URL:** <https://forums.developer.nvidia.com/t/enable-can-bus-wrong/50703>\
**Category:** Jetson TX2\
**Created:** [June 12, 2017, 3:20am UTC](https://forums.developer.nvidia.com/t/enable-can-bus-wrong/50703 "2017-06-12T03:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11126](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@11126](https://forums.developer.nvidia.com/u/11126)\
**Post date:** [June 12, 2017, 3:20am UTC](https://forums.developer.nvidia.com/t/enable-can-bus-wrong/50703/1 "2017-06-12T03:20:25Z")

</div>

一、Add this config  
I enable the below config to get drive enabled:  
Change: CONFIG\_MTTCAN=m to CONFIG\_MTTCAN=y ;  
In this file (sources/kernel/kernel4.4/arch/arm64/configs/tegra18\_defconfig  
) and  
(sources/kernel/t18x/arch/arm64/configs/tegra18\_defconfig  
) .  
二、rebuilding kernel

```auto
export CROSS_COMPILE=/opt/crosstool/gcc-4.8.5-aarch64/install/bin/aarch64-unknown-linux-gnu-
export CROSS32CC=/opt/srosstool/armhf/install/bin/arm-unknown-linux-gnueabi-gcc
export ARCH=arm64

export TEGRA_KERNEL_OUT=/home/$USER/devdirs/tegra-kernel/r27.1.0_sources/images
export TEGRA_MODULES_OUT=/home/$USER/devdirs/tegra-kernel/r27.1.0_sources/modules
mkdir -p $TEGRA_KERNEL_OUT
mkdir -p $TEGRA_MODULES_OUT

make -C kernel/kernel-4.4/ mrproper

make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT tegra18_defconfig
make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT menuconfig

make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT zImage
make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT dtbs
make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT modules
make -C kernel/kernel-4.4/ O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=$TEGRA_MODULES_OUT

```

######apply the below file replace origin file#########

```auto
sudo cp images/arch/arm64/boot/Image /home/…/Linux_for_tegra_tx2/rootfs/boot/
sudo cp images/arch/arm64/boot/dts/tegra186-quill-p3310-1000-c03-00-base.dtb /home/…/Linux_for_tegra_tx2/rootfs/boot/
sudo cp lib/* /home/…/Linux_for_tegra_tx2/rootfs/lib/

```

三、flash filesystem  
EMMC

```auto
cd …/64_TX2/Linux_for_Tegra_64_tx2/
sudo ./flash.sh jetson-tx2 mmcblk0p1

```

why i don’t see can0 and can1 by runing “ifconfig -a”  
please can you tell where is wrong???

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [June 15, 2017, 7:55am UTC](https://forums.developer.nvidia.com/t/enable-can-bus-wrong/50703/2 "2017-06-15T07:55:35Z")

</div>

Replied in [https://devtalk.nvidia.com/default/topic/1006762/jetson-tx2/how-can-i-use-can-bus-in-tx2-/post/5166583/#5166583](https://devtalk.nvidia.com/default/topic/1006762/jetson-tx2/how-can-i-use-can-bus-in-tx2-/post/5166583/#5166583)
