FTDI driver + and USB3 only one port available

Hello,

The hardware features: Ixora V1.2A + Apalis TK1
The linux BSP that we need: Toradex Embedded Linux Demo with LXDE (Mainline) 2.8b7 (2020-06-10)

I try to compile kernel FTDI driver with these commands:

Linux 16.04 kernel 4.5, with a big disk (>60Gb) :

cd ~
wget -O gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz “https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/arm-linux-gnueabihf/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
tar xvf gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf.tar.xz
ln -s gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf gcc-linaro

sudo apt install bc build-essential git libncurses5-dev lzop perl libssl-dev bison flex python3-dev swig u-boot-tools
git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git -b v1.6.0 ~/dtc
cd ~/dtc
make

export ARCH=arm
export PATH=~/gcc-linaro/bin/:$PATH
export CROSS_COMPILE=arm-none-linux-gnueabihf-
export PATH=~/dtc/:$PATH

cd ~/workdir
git clone -b toradex_tk1_l4t_r21.7-next git://git.toradex.com/linux-toradex.git

cd ~/workdir/linux-toradex/
make apalis-tk1_defconfig
make nconfig

I select the FTDI driver and nothing else:

CONFIG_USB_SERIAL_FTDI_SIO =y
CONFIG_USB_FTDI_ELAN=y

make -j$(nproc) | tee build.log

I download apalis-tk1_console-image-tezi_3.0b4.254-20200421.tar compressed file on Index of oe-release/

I opened Reference-Minimal-Image-upstream-apalis-tk1.bootfs.tar.xz
I updated zImage with the zImage from the folder: ~/workdir/linux-toradex/arch/arm/boot
I copied all files to USB stick memory (16gb)
I put Ixora - Apalis TK1 on recovery mode and connect the USB stick memory

I upload the Toradex easy installer v1.9 (I try 1.8 without no real changes)

cd Apalis-TK1_ToradexEasyInstaller_1.9-20200805/
. recovery-linux.sh

I wait until download is finished and Toradex boot with the Easy installer program
I selected the linux from the USB and I installed it.

Everything worked except we can’t use both USB3.0 ports, only one is available and the others USB does not work too.

Is there someone can help us ?
Thanks in advance for your advice and help.

Hi @arcoptix ,

Welcome to the Toradex Community, feel free to browse around for more community entries that might help you in your development.

Thank you for posting all the steps that you already did. Everything looks good to me. Now one question to you. Did you also build the necessary kernel modules and add them to the TK1?

If you follow the link below you can find some instructions on how to do that.

Linex Kernel Module Compilation

You can see which modules have been loaded by entering the command “lsmod” into your command line. Could you post your output here?

Best Regards
Kevin

Hi kevin.tx,

Thank you for your answer.
I try lsmod and the output was empty. So I built the modules with these commands:
make -j$(nproc) modules
mkdir modules
export INSTALL_MOD_PATH=modules
make modules_install
cd modules
tar -czf …/modules.tar.gz .
scp modules.tar.gz root@192.168.1.107:/home/root

On TK1:
cd ~
tar -xzf modules.tar.gz -C /
depmod

But the problem remains the same. But lsmod output is:

Module Size Used by
bluetooth 265683 2

And I would prefer to load Apalis TK1 Mainline (2.8.7 | 2020-06-10) but I never can load any image.

Hi @arcoptix ,

Thanks for the update.

I would be interested to look at your image myself. Is it possible for you to share the image you built on share.toradex.com ?

I will flash the exact same image and see what I can notice.

Thank you

Best Regards
Kevin

Hi Kevin,

Thank you for your answer. Yes, no problem. You can retrieve the bootfs file: https://share.toradex.com/s3hwwrsmsrt4vcq
I hope that is what you want ?

Best regards,
Mariano

Hi Kevin,

Now I can finally have what we need.
I follow this steps: Installing NVIDIA JetPack with L4T on Apalis TK1
I saw in the Toradex Easy Installer another installation, so I tried Ubuntu on TK1 and it will works as expected!
What I need… Remove my Ubuntu 16.04LTS to use Ubuntu 14.04LTS… So I keep this version of Ubuntu for compilation. And I copy all zImage, *.dtb files into Apalis-TK1_LXDE-Image.bootfs.tar.xz
And compile the modules:
make -j$(nproc) modules
mkdir modules
export INSTALL_MOD_PATH=modules
make modules_install
cd modules
tar -czf …/modules.tar.gz .
scp modules.tar.gz root@192.168.1.107:/home/root

On TK1:
cd ~
tar -xzf modules.tar.gz -C /
depmod
reboot now

And it works!

Hi @arcoptix ,

thanks for the update?

So this means the issue is solved?

Best Regards
Kevin

Yes thank you.

1 Like