AMC 68VZ328 software manual Oops

Page 44

5.All processes will be halted, and the programming will begin. The progress is shown by a ‘.’ displayed every 4kbytes. An ‘E’ indicates the erasure of a flash sector. When complete, verification will begin automatically. The dimmPCI will reboot automatically upon successful programming and verification. If errors are found, the address will be reported, and another attempt to reprogram the flash will begin (up to three attempts maximum).

Notes:

1.Invoking ‘loader’ with a ‘-e’ option will erase the entire flash. This is useful to erase the journal flash file system to prevent it from becoming corrupted as a kernel expands into a new 64kbyte sector.

loader imagez.bin -e

2. Invoking ‘loader’with a ‘-v’option will perform a “verify” only.

loader imagez.bin -v

3.It is possible to run loader from a telnet session. However, once the programming begins, the progress indication will be sent only to the console. The telnet session can be reconnected once the programming is complete and the dimmPCI reboots.

4.The ‘loader’ program was written to be loaded from a network file system into RAM. Although the ‘loader’ program can be copied into the ROM file system or the journal flash file system, it cannot be run ‘in-place’, and therefore must be copied to the ramdisk before it can be used.

oops

The following are brief instructions on how to use oops. For more details about how oops works, refer to Appendix D6.

The oops directory contains:

1.The ‘oops’ executable (which must be compiled the first time using gcc on the develop- ment platform. There is a Makefile included in the /opt/boottools/’oops/src’ directory for this purpose)

2.‘init.b’ containing the initialisation sequence for the dragonball VZ

3.‘loader.bin’ containing the program to write and verify the flash

4.‘kernel.bin’ containing the dimmPCI kernel image

44

www.amctechcorp.com

Image 44
Contents DimmPCITM 68VZ328 Hardware / Software Manual DimmPCITM Software Development Kit Copyright noticeContact Information NETdimm Developers Kit Quick Start Guide Etc/issue Page This page left intentionally blank Introduction Launching Linux at the embeddedPage What’s on the CD? System RequirementsThis page left intentionally blank Features UC68VZ328 Embedded MicrocontrollerCPU Module BackplaneGeneral Description CPU Module DescriptionBackplane Description Architecture CPU ArchitectureMemory Map MCU CoreSystem Memory Memory Memory MapLayout of the Flash and Flash Schematic Layout of the Flash Sdram Ethernet Controller Viewing the Ethernet MAC IDNETdimm Ethernet Schematic Digital I/O IOdimmDigital Output Schematic Analog Output Schematic Analog Input Schematic Digital to Analog Converter Schematic Highlights RS-232Watchdog Usage LCD Schematic LCD InterfaceDimmPCITM Signal Descriptions DimmPCITM signals for System SlotPCI Electrical Characteristics Maximum RatingsThis page left intentionally blank Installing the dimmPCI TM System InstallationBuilder Kit Before beginningConfiguring and compiling the µClinux kernel Creating a ROM image Customizing the filesystemAccessing your dimmPCI development board via the serial port Dynamic IP Accessing the NetworkStatic IP Accessing your dimmPCI development board via telnet Compiling your own source codeUsing NFS to streamline the development cycle Home directory/dimmpci/source Updating Applications on your dimmPCI module MethodThis page left intentionally blank Programming the uC68VZ328 LoaderOops Cd /opt/boottools/oops Oops -p /dev/ttyS0 -k kernel.bin Page Page This page left intentionally blank Appendix Sample CodeClose the file afterwards fclose filehandle Page Longwatchdogid #include unistd.h #include stdio.h int main void This page left intentionally blank Journalling Flash File System Umount /usr Sbin/mkjffs /dev/flash0 Page This page left intentionally blank Development Tool Chains Normal Usage of the PIC-COFFTool Chain Page This page left intentionally blank D1 Application Note IntroductionKernel and Filesystem Configuration Kernel and Filesystem Configuration Flow Chart YESAvailable Digital I/O Pins List of all available digital I/O pins Programming Structure Dimmio structure descriptionDigital I/O Functions Page Sample Programs In0 In1 In2 In3 In4 In5 In6 In7 Out0 Even ParityMknod io1 c 123 Page This page left intentionally blank D2 Application Note AbstractKernel Configuration RequirementsAgain, from the main menu under Network device support Kernel Configuration Flow Chart AtCommandPrompt Filesystem Configuration Cd /opt/filesystem name make clean Make Filesystem Configuration Flow Chart Modifications to ‘rc’ fileHost machine Configuration TestingPage This page left intentionally blank Using Multiple NETdimm Modules Application NoteSimple Server & Client Inetd based Server & ClientPage This page left intentionally blank Using Analog and Digital I/O with IOdimmCd /opt Cp -Rpdx newfs iodimmmfs ADC MAX1203 Available I/O Pins Category Channel Backplane System Backplane Header Slot PinFunctions Digital Inputs and Outputs+ Κ Iodimm/dio Samples/cardspecific/iodimm/dio Page This page left intentionally blank Using Oops Purpose & basic format of files for oopsUpload & Flash Upload & Run DownloadCommon oops program arguments Appendix This page left intentionally blank 104 Preamble Licensing, Copyrights & LiabilityDimmPCITM Software Development Kit Distribution 106 107 108 109 No Warranty Appendix How to Apply These Terms to Your New Programs111 112 113 This page left intentionally blank 114 References/ Suggested Reading