UNIX scripts on embedded uC


 
Thread Tools Search this Thread
Operating Systems Linux UNIX scripts on embedded uC
# 1  
Old 02-02-2009
UNIX scripts on embedded uC

hi all, i am new to this..i have some bash scripts that i would like to run on a microcontroller.. do i have to load a Linux/UNIX OS first? how do I do this? are there any good links to read about this? any help appreciated..
# 2  
Old 02-03-2009
First off, what kind of microcontroller, and what kind of system is it in? Embedded systems can be very minimal indeed, without sufficient memory and certain processor features running Linux could be impossible.

On the other hand, wireless routers are small embedded systems generally sufficient to run Linux and a few scripts -- generally 2 megs of ROM or so, and maybe 4-8 megs of RAM. (This makes for a VERY minimal linux system though.) So it depends.

It may also be possible to modify a shell to run standalone. It wouldn't be able to run other processes without an operating system to handle that, but you may be able to trick it into doing what you want. Busybox would be a good starting point, it is a single program that contains, in one executable, code for dozens and dozens of small system commands, including a minimal sh-style shell. Very popular for embedded Linux.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix scripts

hi everyone.Can anyone tell what books to study for unix shell scripting.ive planned to learn unix scripting but i dont kno what kind of books to refer so do help me..Thanks in advance. (1 Reply)
Discussion started by: madanmeer
1 Replies

2. UNIX for Dummies Questions & Answers

Assistance with scripts for UNIX

Hello- I am new to UNIX (about 1 month to be exact) and have been trying to construct a script to create users and passwords using expect. I have the basic script worked out, which includes creating the user and password, but would like for this to be automated a little more and have it read a... (3 Replies)
Discussion started by: brughm
3 Replies

3. AIX

Unix shell scripting to find latest file having timestamp embedded...

Hi guys, I have a directory in UNIX having files with the below format, i need to pickup the latest file having recent timestamp embedded on it, then need to rename it to a standard file name. Below is the file format: filename_yyyymmdd.csv, i need to pick the latest and move it with the... (2 Replies)
Discussion started by: kaushik25
2 Replies

4. Shell Programming and Scripting

Unix Scripts

Hi, I have to write 2 unix scripts: 1. Check whether the databases are up or down which are on different servers. 2. Check the file system space on different Unix servers. Please share your model scripts here. I have to submit this ASAP. Appreciate your reply...... Thanks (4 Replies)
Discussion started by: dreams5617
4 Replies

5. UNIX for Advanced & Expert Users

Unix Scripts

Hi, I have to write 2 unix scripts: 1. Check whether the databases are up or down which are on different servers. 2. Check the file system space on different Unix servers. Please share your model scripts here. I have to submit this ASAP. Appreciate your reply...... Thanks (1 Reply)
Discussion started by: dreams5617
1 Replies

6. UNIX for Advanced & Expert Users

Porting of Windows written unix scripts to unix platform

Can anybody help me in finding out a solution for the problem below? When we write .unix or .sh files in windows OS and port them to Unix platforms there is a character ^M inserted at the end of each line of the script file. During ftp porting I set the transfer mode as ASCII for the script... (7 Replies)
Discussion started by: tamilselvi
7 Replies

7. UNIX for Dummies Questions & Answers

unix scripts

Hi all Can sombody tell me how can i run a script as a regular user and then change in the middle of the script to root,perform a task that needs root permisions and get back to the regular user. (4 Replies)
Discussion started by: yelalouf
4 Replies

8. UNIX for Advanced & Expert Users

vi scripts on UNIX

Hi there I'm hoping one of the expert unix guys or gals can assist me in understanding the language within scripts e.g clear while true do tput cup 0 0 LIST=`grep cisco /etc/hosts|grep -v _int | awk '{print $2}'` for SITE in $LIST do IP=`grep "$SITE"... (4 Replies)
Discussion started by: nemex
4 Replies

9. UNIX for Dummies Questions & Answers

UNIX Scripts

I need to find a place or places on the Internet where I can find UNIX scripts to view and to modify to make life easy on the UNIX environment. Shell scripts to be used, ksh, sh, csh. Can someone help me on this. Thanks ;) (2 Replies)
Discussion started by: wolf
2 Replies
Login or Register to Ask a Question