USB to Ethernet converter unrecognized

Hi.
I want to use USB to Ethernet converter in Toradex board.

alt text

alt text

But when I connect this converter, Kernel recognizes it and prints one line. Please refer to the following red line.

alt text

But if I hit ‘ifconfig’, I can’t see any information about this. Please refer to the following. The following is not changed even though I plug the converter on Colibri board.

alt text

I tried connecting this converter to Ubuntu 16.04 on my PC. The PC is displaying correctly. Also, my colleague has a small Linux board and he’s board also displaying correctly.
alt text

alt text

If I check ‘lsusb’ in Colibri board, then I can see the following.
alt text

Please let me know how to use this converter properly.

HI @HansKim72

You need to create a custom kernel with driver enabled for your USB to Ethernet converter.
The config name is the following: CONFIG_USB_NET_DM9601.

Best regards,
Jaski

Hi Jaski,

I want to compile the kernel for supporting this USB ethernet moduel and AC97 sound card. I followed your suggestion but I have a problem. Please let me know how to compile it.

https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#imx-6ull-based-modules

I downloaded the kernel source code using the following command.

git clone -b toradex_4.9-2.3.x-imx git://git.toradex.com/linux-toradex.git

There was a error using the following command.

r@p:~/kernel/linux-toradex$ make colibri-imx6ull_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/colibri-imx6ull_defconfig"!
***
scripts/kconfig/Makefile:112: recipe for target 'colibri-imx6ull_defconfig' failed
make[1]: *** [colibri-imx6ull_defconfig] Error 1
Makefile:555: recipe for target 'colibri-imx6ull_defconfig' failed
make: *** [colibri-imx6ull_defconfig] Error 2

I found the DM9601 option in Kernel.
alt text

r@p:~/kernel/linux-toradex$ git branch -a
* toradex_4.9-2.3.x-imx
  remotes/origin/colibri
  remotes/origin/colibri_vf
  remotes/origin/next-20180829-revamp-v2
  remotes/origin/next-20180831-revamp-v2
  remotes/origin/tegra
  remotes/origin/tegra-next
  remotes/origin/toradex_4.1-2.0.x-imx
  remotes/origin/toradex_4.1-2.0.x-imx-next
  remotes/origin/toradex_4.14-2.0.x-imx
  remotes/origin/toradex_4.14-2.0.x-imx-next
  remotes/origin/toradex_4.14-2.0.x-imx-rebased
  remotes/origin/toradex_4.19.y
  remotes/origin/toradex_4.19.y-rt
  remotes/origin/toradex_4.20.y
  remotes/origin/toradex_4.9-1.0.x-imx
  remotes/origin/toradex_4.9-1.0.x-imx-next
  remotes/origin/toradex_4.9-1.0.x-imx-rebased
  remotes/origin/toradex_4.9-2.3.x-imx
  remotes/origin/toradex_4.9-2.3.x-imx-next
  remotes/origin/toradex_4.9-2.3.x-imx-rebased
  remotes/origin/toradex_5.0.y
  remotes/origin/toradex_5.2.y
  remotes/origin/toradex_5.3.y
  remotes/origin/toradex_imx6
  remotes/origin/toradex_imx_3.10.17_1.0.0_ga
  remotes/origin/toradex_imx_3.10.17_1.0.0_ga-next
  remotes/origin/toradex_imx_3.14.28_1.0.0_ga
  remotes/origin/toradex_imx_3.14.52_1.1.0_ga
  remotes/origin/toradex_imx_3.14.52_1.1.0_ga-next
  remotes/origin/toradex_imx_4.1.15_1.0.0_ga
  remotes/origin/toradex_imx_4.1.15_1.0.0_ga-next
  remotes/origin/toradex_imx_4.14.78_1.0.0_ga-bring_up
  remotes/origin/toradex_imx_4.9.123_imx8mm_ga-bring_up
  remotes/origin/toradex_imx_4.9.51_imx8_beta1-bring_up
  remotes/origin/toradex_imx_4.9.51_imx8_beta1-bring_up_ov5640
  remotes/origin/toradex_imx_4.9.51_imx8_beta2-bring_up
  remotes/origin/toradex_tk1_l4t_r21.5
  remotes/origin/toradex_tk1_l4t_r21.6
  remotes/origin/toradex_tk1_l4t_r21.7
  remotes/origin/toradex_tk1_l4t_r21.7-next
  remotes/origin/toradex_vf_3.18
  remotes/origin/toradex_vf_3.18-next
  remotes/origin/toradex_vf_4.0
  remotes/origin/toradex_vf_4.0-next
  remotes/origin/toradex_vf_4.1
  remotes/origin/toradex_vf_4.1-next
  remotes/origin/toradex_vf_4.4
  remotes/origin/toradex_vf_4.4-next
  remotes/origin/toradex_vf_4.4-next-ubi-tests-20180607
r@p:~/kernel/linux-toradex$ 

I think I have to use arm directory but it checked “arch/x86/” directory. Why x86?

I found “colibri-imx6ull_defconfig” file in arm directory. Please let me know how to compile it.

alt text

Best regards,
Hans.

HI @HansKim72

Can’t find default configuration “arch/x86/configs/colibri-imx6ull_defconfig”!

You need to setup the Toolchain and Environment variables correctly as explained here.

Best regards,
Jaski

Dear Jaski,

I succeeded the Kernel compilation but I don’t understand the method of Kernel update on Tradex board. Your website mixed several SOM and I couldn’t find iMX6ULL. Please check the following.
https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code#Kernel_Update

I followed the following process and made new zImage.

[config]

make colibri-imx6ull_defconfig

make nconfig

[Compilation]

make -j3 zImage 2>&1 | tee build.log

make imx6ull-colibri-wifi-eval-v3.dtb

Actually, after above command, I got zImage. But I followed more command you suggested in website.

[Kernel Module Compilation, all Modules]

make -j3 modules

[Extract the kernel modules with:]

mkdir modules
export INSTALL_MOD_PATH=modules
make modules_install

[Create a kernel module tarball with:]

cd modules

tar -czf …/modules.tar.gz .

cd -

[Install the tarball on your module with:]

tar -xzf modules.tar.gz -C /

Actually, I don’t know how to update the Kernel, so I downloaded “colibri-imx6ull_console-image-tezi_2.8b6.184-20190401” file and extract it and copy the zimage inside and update the kernel. And then I find the new Kernel support this USB to Ethernet. But this time I’m using recovery mode for update the Kernel. I selected the recovery mode and copy the colibri-imx6ull_console-image-tezi_2.8b6.184-20190401 image to SD card and insert the USB to board and select the item on Toradex easy installer. This is very inconvenient to update. Please let me know a convenient way.

The following is the status of new Kernel for ethernet.

alt text

So your USB Ethernet Adapter is working. That’s great.

Regarding the update process, could you ask a new Question?

Thanks and best regards,
Jaski