1 / 5

Shell programming

Shell programming. 9/12/2008 David You. Using cross compiler. Cross compiler download and installation http://xinu.mscs.mu.edu/HOWTO:Build_XINU Log on to nickelback.cse.buffalo.edu

Download Presentation

Shell programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Shell programming 9/12/2008 David You

  2. Using cross compiler • Cross compiler download and installation • http://xinu.mscs.mu.edu/HOWTO:Build_XINU • Log on to nickelback.cse.buffalo.edu • Make a proper directory for xinu project and copy the latest xinu source file from /web/faculty/bina/cse321/fall2008/NEXOS. • Unzip the source file (it would be gzip file or tar file) • gunzip < file.tar.gz | tar xvf – • tar xvf file.tar • Modify MIPS_ROOT variable in compile/makeVars file to • /projects/bina/NEXOS/CSE321/project/mipsel-dev/bin • Compile

  3. Shell programming • Shell programming guide line • http://xinu.mscs.mu.edu/Shell • Make a test program • xsh_test.c has a blank test function. • Implement something you want to do in the xsh_test.c file and just compile. • No need to do anything else. • Add a brand new command • Follow the procedures in the shell programming guide line webpage. • You have to put your source files into some proper directories and modify some files such as Makefile, shell.c and shell.h.

  4. Embedded XINU directories • Embedded XINU web site has documentation page explaining directory structure, data structure and relationship between source files. • http://xinu.mscs.mu.edu/docs/ • Just click and open any linked pages to see more about data structures and source files. • Most important directories are compile, shell and system.

  5. Test programs • Hello world • The simplest way is to modify the xsh_test.c file and compile. • You can add your own source file(xsh_hello.c or something) and add the command to proper position.

More Related