Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 11-21-2012, 02:22 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Angry 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


Last edited by oliverg; 11-21-2012 at 02:42 PM.
Old 11-21-2012, 02:24 PM   #2
LQ Newbie
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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!

Last edited by oliverg; 11-21-2012 at 02:30 PM.
Old 11-21-2012, 07:34 PM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.
Old 11-22-2012, 09:34 AM   #4
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data transfer ..... rajini23 Linux - Desktop 6 12-09-2011 10:19 AM
memcpy_toio transfers data in 4 byte chunks, but I need to transfer data in one lump. jbreaka4lyfe Linux - Embedded & Single-board computer 2 06-02-2008 12:25 PM
Transfer data from one HD to the other?? Biggen Linux - Hardware 31 04-02-2007 04:24 PM
Data Transfer Dharma_bum07 Linux - Newbie 11 11-26-2004 02:57 PM
No data transfer ! shaahul Linux - Hardware 3 09-16-2003 03:08 AM

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration