75XX initrd: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
Line 32: Line 32:
           true, udhcpc, umount, unzip, usleep, uudecode, uuencode, vi, wget,
           true, udhcpc, umount, unzip, usleep, uudecode, uuencode, vi, wget,
           xargs, yes, zcat
           xargs, yes, zcat
Also on the initrd are the TS specific applications: ts7500ctl, sdctl, spiflashctl, canctl, and xuartctl. ts7500ctl, ts7550ctl, ts7552ctl, ts7553ctl and ts4500ctl are all symlinks to the same executable with the same options described below. For purposes of this document, it will be referred to as just ts7500ctl.
Also on the initrd are the TS specific applications: [[sdctl]], [[spiflashctl]], [[canctl]], and [[xuartctl]]. There is also a board specific application named for your model.  This includes [[ts7500ctl]], ts7550ctl, ts7552ctl, ts7553ctl and ts4500ctl are all symlinks to the same executable.

Revision as of 20:13, 12 July 2011

After the board is first booted you will be at this shell:

Finished booting in 2.65 seconds
Type 'tshelp' for help
#

The small default initrd is only 2Mbyte but there is space for approximately 800 Kbyte of additional user applications. The binaries on the initrd are dynamically linked against embedded Linux's "uclibc" library instead of the more common Linux C library "glibc". "uclibc" is a smaller version of the standard C library optimized for embedded systems and requires a different set of GCC compiler tools which are available here.

The standard Linux environment is provided by busybox, and the compiled instance of busybox includes several internal commands listed below:

  # /bin/busybox --help
  BusyBox v1.14.2 (2009-08-07 14:43:48 MST) multi-call binary
  Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
  and others. Licensed under GPLv2.
  See source distribution for full notice.
  
  Usage: busybox [function] [arguments]...
     or: function [arguments]...
  
          BusyBox is a multi-call binary that combines many common Unix
          utilities into a single executable.  Most people will create a
          link to busybox for each function they wish to use and BusyBox
          will act like whatever it was invoked as!
  
  Currently defined functions:
          [, [[, ash, basename, cat, chgrp, chmod, chown, chroot, cmp, cp,
          cpio, cttyhack, cut, date, dd, depmod, devmem, df, dirname, dmesg,
          du, echo, egrep, env, expr, false, fdisk, fgrep, find, grep, gunzip,
          gzip, halt, head, hostname, hush, ifconfig, insmod, kill, killall,
          ln, login, ls, lsmod, md5sum, mdev, mkdir, mknod, modprobe, more,
          mount, msh, mv, netstat, ping, pivot_root, poweroff, printf, ps,
          pwd, reboot, rm, rmdir, rmmod, route, rx, sed, setconsole, setsid,
          sh, sleep, stty, sync, tail, tar, telnetd, test, tftp, top, tr,
          true, udhcpc, umount, unzip, usleep, uudecode, uuencode, vi, wget,
          xargs, yes, zcat

Also on the initrd are the TS specific applications: sdctl, spiflashctl, canctl, and xuartctl. There is also a board specific application named for your model. This includes ts7500ctl, ts7550ctl, ts7552ctl, ts7553ctl and ts4500ctl are all symlinks to the same executable.