AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090116141401.7067a1c3@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:exch1.onstor.net
NSV:
SSH:
R:<rendell.fong@onstor.com>,<brian.stark@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 16 Jan 2009 14:18:08 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Rendell Fong <rendell.fong@onstor.com>
Cc: Brian Stark <brian.stark@onstor.com>
Subject: additional change added to 31461
Message-ID: <20090116141808.4307c05f@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

I added reboot command for TXRX and FP.  It only reboots the respective
1480 it is run on, not the whole system like the SSC reboot command.

Change is in prom/cg/code/prom-pmon/commands.c



Change 31461 by andys@ripper on 2008/12/12 17:18:34 *pending*

	Change the default image loading algorithm from the PROM loading
	all the images at a snail's pace, to loading just the Linux
	kernel on the SSC, and then the TXRX and FP images are loaded by
	new userspace Linux program at 5x the speed.  Results in sub 1
	minute boot times on production builds.  User space load program
	is compatible with old proms and will not try to load an already
	loaded image.

	This only affects the "autoload" behavior on the SSC.  The old
	behavior is still available via the new command "old_autoload".

	The image loading program does not do TFTP image loading;
	however, this hardly matters, as a developer can have a remote
	directory NFS mounted and have the boot image loaded that way.
	In other words, TFTP isn't needed.

	Other general PROM fixing goodness:

	Fix annoyance where bare "diskload" command loaded the kernel
	from the first compact flash regardless of what the boot_dev
	environment variable was set to.

	Fix annoyance where the diskload command required you to also
	specify the load address if you wanted to specify the file name
	to load.  Load address should be able to use a default just like
	everything else in this world.

	Add reboot command for TXRX and FP.  Unlike the reboot command
	issued from the SSC prom which reboots the entire machine,
	only the respective 1480 is rebooted.

	Remove a tiny bit of the massive amount of dead code.

	reviewed by

Affected files ...

... //depot/dev/linux/Makefile#1 edit
... //depot/dev/linux/rootfs/Makefile#41 edit
... //depot/dev/linux/rootfs/etc/init.d/rcS#9 edit
... //depot/dev/linux/tools/Makefile#1 add
... //depot/dev/linux/tools/load_vmlinux.c#1 add
... //depot/dev/nfx-tree/linux.mk#4 edit
... //depot/dev/prom/cg/code/prom-decompress/makerom.c#3 edit
... //depot/dev/prom/cg/code/prom-pmon/cmdtable.c#13 edit
... //depot/dev/prom/cg/code/prom-pmon/commands.c#8 edit
... //depot/dev/prom/cg/code/prom-pmon/main.c#13 edit
... //depot/dev/prom/cg/code/sm-chassis/cm-api.c#1 edit
... //depot/dev/prom/cg/code/sm-loader/load-auto.c#6 edit
... //depot/dev/prom/cg/code/sm-loader/load-cougar-diag-util.c#12 edit
... //depot/dev/prom/cg/code/sm-loader/load-cougar.c#11 edit
... //depot/dev/prom/cg/code/sm-loader/load-cougar.h#2 edit
... //depot/dev/prom/cg/code/sm-pmondisk/Makefile#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/dinode.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/dir.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/disk.c#2 delete
... //depot/dev/prom/cg/code/sm-pmondisk/disk.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/diskio.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/diskio.h#2 delete
... //depot/dev/prom/cg/code/sm-pmondisk/disklabel.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/dkbad.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/exec_elf.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/filesystem.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/fs.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/i82365reg.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/lseek.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/mips_disklabel.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/open.c#2 delete
... //depot/dev/prom/cg/code/sm-pmondisk/pcmcia.c#2 delete
... //depot/dev/prom/cg/code/sm-pmondisk/pcmciareg.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/pcmciavar.h#2 delete
... //depot/dev/prom/cg/code/sm-pmondisk/pmondisk.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/queue.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/read.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/ufs.c#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/ufs.h#1 delete
... //depot/dev/prom/cg/code/sm-pmondisk/wdcreg.h#1 delete
... //depot/dev/prom/cg/code/sm-pmonext2fs/disk.c#3 edit
... //depot/dev/prom/cg/code/sm-ui/cli.c#1 edit

