LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-21-2012, 02:22 PM   #1
oliverg
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.


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

Last edited by oliverg; 11-21-2012 at 02:42 PM.
 
Old 11-21-2012, 02:24 PM   #2
oliverg
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!

Thanks

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
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

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


Reply


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 05:00 AM.

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