LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   how to transfer data via ymodem with sb? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-transfer-data-via-ymodem-with-sb-4175438165/)

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.


Code:

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

Thanks

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!

Thanks

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 12:43 PM.