LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 01: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 01:42 PM.
 
Old 11-21-2012, 01: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 01:30 PM.
 
Old 11-21-2012, 06:34 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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, 08:34 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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



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 09: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 11:25 AM
Transfer data from one HD to the other?? Biggen Linux - Hardware 31 04-02-2007 03:24 PM
Data Transfer Dharma_bum07 Linux - Newbie 11 11-26-2004 01:57 PM
No data transfer ! shaahul Linux - Hardware 3 09-16-2003 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration