Booting U-Boot from the console UART

I'm trying to follow some instructions from the section
Using UART
which show how to load U-Boot over the console UART using X-MODEM... This is what you need to do:-

Code:
$ sx -kb /path/to/u-boot-spl.bin < /dev/ttyUSB0 > /dev/ttyUSB0
$ sx -kb --ymodem /path/to/u-boot.img < /dev/ttyUSB0 > /dev/ttyUSB0

I believe sx is xmodem and is part of the comms/lrzsz pkg but when I run sx I get Command not found.

Any guidance would be much appreciated.
 
sx is a program you are inlining. Does it exist?
You might need to substitute from the above port for sz/sx from GNU instructions. Then read alot.

I have never used any of this. Good Luck
 
Just like with this thread, minicomm is a better terminal than cu.
https://forums.freebsd.org/threads/help-with-c-kermit.61767/#post-356130
.
I believe it is a better choice here.
https://www.freebsd.org/cgi/man.cgi?minicom

So download the comms/lrzsz port to get rz and use these instructions:
http://k.japko.eu/serial-transfers.html

Notice this old but maybe relevant thread. They talk of linking. to rz.
https://s2-forums.vandyke.com/showthread.php?t=739

Here is another tact you could try.
Right up your alley, a graphical version. comms/cutecom
 
I already had comms/lrzsz installed and it did take me a bit of time to work out that what everyone called rx (rz) sx (sz), FreeBSD calls lrz and lsz... Confusing or what?

Oops... that should be:-

rx -> lrx
rz -> lrz
sx -> lsx
sz -> lsz
 
Gaining access to system devices, has always been root thing, and for good reason. It probably would have been better handled in the same way allowing access to normal users is handled for /dev/cd0 -- putting the users in that (device) group.
Xorg, and the various X screen-savers go the setuid(2) route, tho. It may well be possible to change the way comms/minicom is dealt with, where hardware access is concerned. You might want to file a bug report on bugzilla, to see if the Maintainer can better assist you. :)

--Chris
 
Back
Top