Connecting to Serial USB for Toradex Apalis TK1 Ixora V1.1

Hello,

I was given the board already installed with a Toradex operating system, assuming used with Toradex Easy Installer. I would like to replace this OS with one compatible for Qt applications on Linux.
How can I replace this OS or put it in a factory reset mode to start over?
I tried to connect to the device via serial USB from this post:

(I was the one who replied with the other issue installing the APX driver).
I can boot into the recovery mode and detect the APX driver but cannot install it to get a USB connection.
Is there a way to flash this driver or connect to the device using Linux?
I do not know how to change the bootloader settings to put Easy Installer back on the device without being able to connect to it through USB.

I have tried Windows 8/10 and Ubuntu 16 host environments and no success.

Any help or guidance would be appreciated.

Thanks,
Josh

HI @Josh

Thanks for writing to the Toradex Community!

As already described, currently flashing image on Apalis TK1 using Toradex Easy Installer on Windows is not working. But from Linux it should out of box.

Do you have any error log?
What exactly was not working?

Best regards,
Jaski

Hi Jaski,

I received the device not out of the box and had a preinstalled image already in place.
I understand I would have to put Toradex Easy Installer back onto the device to be able to change the image, which would have to be flashed in RAM to use.
I cannot access the bootloader on the device because I cannot connect to it using micro USB due to being unable to install the APX driver.
On my Linux VM, I cannot detect the board plugged in so I am unable to use PUTTY to see what is going on in the board.

Thanks,
Josh

HI Josh

I cannot access the bootloader on the device because I cannot connect to it using micro USB due to being unable to install the APX driver.

This is a Windows Issue.

On my Linux VM, I cannot detect the board plugged in so I am unable to use PUTTY to see what is going on in the board

Could you share a picture how you connect the carrier board to your host? For the UART Communication, you will need a UART Converter connected to Port X22 of the Ixora.

Best regards,
Jaski

Hi Jaski,

I just have the micro-usb connected from my host pc to my board.
I do not have a UART converter currently. Is this the only way to access the board from my host Linux PC in order to access the bootloader?

Some additional context. My end goal is to just reinstall Easy Installer so that I can use a custom Qt Image that I have saved on an SD card. From my understanding, If the device does not currently have Easy Installer in its memory (because there was already an image installed into the device), then I need to access UBoot/bootloader to install Easy Installer back into memory. The Toradex OS that is currently on my board does not have access to any “run sdboot” commands.

Thanks for the help,
Josh

Hi Josh

Is this the only way to access the board from my host Linux PC in order to access the bootloader?

Actually you don’t need access to the console using UART, if everything elset goes smooth. You can put the module in recovery mode by hardware mechanism and then start the recovery-linux.sh script. After successful run of the script, the Toradex Easy Installer will copied to RAM of the SoM and booted from there.

Once this is done, you can access the Easy Installer on the SoM using VNC viewer and by connecting to the Ip address 192.168.11.1

The Toradex OS that is currently on my board does not have access to any “run sdboot” commands.

You can access the module using ssh and set “run sdboot” by the command fw_setenv from Linux.

Best regards,
Jaski

Hi Jaski,

Sorry, I am new to all of this.

“You can put the module in recovery mode by hardware mechanism and then start the recovery-linux.sh script.”

I know how to put the device in recovery mode, but how can I run the recovery script? I cannot connect to it via ssh due to it being disconnected from the internet, and I still have the issue of being unable to detect it using the micro-usb.

" if everything elset goes smooth."
what is considered everything else in this case?

“You can access the module using ssh and set “run sdboot” by the command fw_setenv from Linux.”

Could you show me the way how to use this command to set the correct parameter? I uploaded my output from running fw_printenv in out.txt

Thanks,
Josh

link text

To flash an any OS image by Toradex Easy Installer you’ll need

  • Linux host machine (we tested on Ubuntu but other distribution may work as well)

  • Ixora Board with Apalis TK1.

  • USB cable with micro USB connector

  • Serial cable 10 pins connector or Serial to USB converter

  • HDMI monitor

  • USB Mouse

Download and unpack this file to your Linux host machine
Remove JP2 jumper on your Ixora board. And connect usb cable to Ixora X9 connector and your host machine. Do not insert anything to lower part of Ixora X8 connector. Connect your serial cable to Ixora X22 connector. Connect USB mouse to X7 or upper part of X8. Connect HDMI cable to X17

Put TK1 to recovery mode. Stop boot by pressing “space” at terminal program and issue “enterrcm” command… See detail here if you have any problem.

Once your TK1 in a recovery mode start “recovery-linux.sh” cript on your host machine. You don’t need an internet connection for this.

Then you should see a TEZI GUI on your HDMI screen .

Please check this article about OS installation using Toradex Easy installer - Downloads & Installers | Toradex Developer Center

Hi Alex,

I do not currently have a 10 pin serial connector, but I have a 3pin serial to usb, would this be enough to just connect to the RXD, TXD and ground pins to get uart output?

Do you have a pin layout diagram somewhere that I could use? Could not find anything online for UART 1. Currently I am connecting to pins 3/5/9, but I am getting garbage output from Putty.

Was following the settings found in the Txx Recovery Mode link that you sent.

Edit: I found this link that gave me the pins:

Do I need to use pin4/6 for RTS/CTS?

Thanks,
Josh

Yes you an use pins 3 and 5 of X22 for RXD/TXD and pin 9 as a ground. But please check your USB to serial adapter spec. Ixora has a RS232 converter but some USB-serial adapters use TTL level. Most likely it’s your case. You need an adapter with RS232 signal levels. Like this one or similar.

I’d recommend to buy a 10 pin to male DB9 adapter also. For example.