-   Linux - Embedded & Single-board computer (
-   -   how to transfer data via ymodem with sb? (

oliverg 11-21-2012 01:22 PM

how to transfer data via ymodem with sb?
So i have an embedded device that is in u-boot and i need to load an operasting system on it (proprietry real-time os) i can do this via ymodem by the following steps.

1) Prepare device: uboot> loady
2) in minicom send via ymodem and select my file.

now this works. but i want to do it outside of minicom so i can put it into a shell script as it is something i am going to be doing frequently and i already have a script for steps of the process up to this.

so my research tells me that minicom uses the program sb(sz) to do this but i cannot figure out how to use it.


sb --ymodem -by <filename>.img
which should tell it rb(rz) to expect binary data and overwrite the data.

there are alot of different possible arguments but none that i thought would help!

Hope I have explained myself clearly


oliverg 11-21-2012 01:24 PM

Ahh i didnt realise i was posting this in linux newbie. (shows im a noob ahahah)

Could a moderator please move this to an appropriate place where it may receive the right attention!


Edit: Best place would be the embedded linux section probably as they are the people that will most likely be using this tool!

theNbomr 11-21-2012 06:34 PM

Ymodem is such an odd file transfer implementation. Perhaps you can accomplish the scriptability (yup, that's a word; I just invented it) part by using C-Kermit, which is itself highly scriptable, rather than minicom.

--- rod.

colucix 11-22-2012 08:34 AM

Moved: This thread is more suitable in Linux - Embedded and has been moved accordingly to help your thread/question get the exposure it deserves. As per request.

All times are GMT -5. The time now is 03:52 PM.