boundarydevices / imx_usb_loader

USB & UART loader for i.MX5/6/7/8 series
GNU Lesser General Public License v2.1
260 stars 158 forks source link

imx_uart with Raspberry Pi #116

Open Munawar-git opened 3 years ago

Munawar-git commented 3 years ago

Hi everyone,

I am trying to flash u-boot to colibri VF50 using RPi3 as host machine. Is it possible to do that using imx_uart binary file? I compiled the code in my R pi and generated the binary file, but it does not seem working. Kindly help me if anybody has any idea about this, I will really appreciate it.

Kind regards, Munawar Ali

sirop commented 3 years ago

Hello @MunawarAli1993 ,

I had also a problem with imx_uart on RPI3 as a host machine. Probably, you use a script by toradex, don't you?

Try to run htop in a separate terminal. Do you see that imx_uart, within the toradex script, simply gets "frozen" as soon as it starts? Do you also see simultaneously Undervoltage Warnings in the kernel log?

Munawar-git commented 3 years ago

Hi @sirop ,

yes, I have used toradex script. when I run the script, the imx_uart freezes and does not proceed further. I did not check the under voltage warnings. I tried to use imx_uart with Rpi 3, but unfortunately it does not work. so I move to another board (UP Board x86-64). It seems like toradex script does not work with arm processor.

If you find any solution, kindly share it with me.

sirop commented 3 years ago

Hi @MunawarAli1993,

so you mean, imx_art works on https://up-shop.org/up-board-series.html board?

As for arm processors: I do not know if your general hypothesis "toradex script does not work with arm processor" is correct. Did you try to avoid undervoltage events on RPI by supplying voltage over a laboratory power supply (Labornetzteil)? It may be worth trying at least once as undervoltage makes RPI processor decrease its performance which could in its turn make imx_uart freeze.

Maybe, also try a 32 bit version of imx_uart on an 64 bit ARM with multilib support? I do not know, probably, not worth the fuss.

P.S. Who is so crazy to make you use RPI? Is it Hoffrichter in Schwerin?