Download presentation
Presentation is loading. Please wait.
Published byErik Kristopher Garrison Modified over 8 years ago
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 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/fall2 008/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 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/ 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.