⑵ Pmon common and added commands are described below:
Note: The commands in the Pmon can be used to refer to Pmon's English documents, or you can start the Pmon by entering "H" to view the commands via the Dragon Dream computer.
① commands for boot and load
L Boot Command
This command is the network download kernel file boot system, this file is generally placed in the specified folder, for example, in the root directory to create a tftpboot directory, which can be placed in the kernel, for the load command to download the kernel.
Pmon>boot tftp://192.168.xx.xx/vmlinux26.r41
L Load Command
This command is for the Pmon download kernel. There are several ways to download the kernel:
Network: Pmon>load Tftp://192.168.2.231xx/vmlinux
Local hard drive: Pmon>load/dev/fs/ext2@wd0/boot/vmlinux
U disk: Pmon>load/dev/fs/ext2@sd0/boot/vmlinux
Add: Write Gzrom.bin through the load command into the EEPROM
Pmon>load–r–f 0xbfc00000 Tftp://192.168.2.xx/gzrom.bin
Description: When downloading the kernel over the network, the IP address should be configured first through IFADDR (which is later given the use of the command);
When you run the load/dev/fs/ext2@wd0/boot/command, you can view the contents of the boot directory of the local hard disk.
② Commands for Debugger
L c continue execution after the command has set a breakpoint
L T (to) can display every step of the program execution
Pmon> T
pmon+0x240 3c09a07f lui t1,0xa07f
L DB Deletes the specified breakpoint
L B Set and display breakpoints
L g Start Program execution
L SYM Set symbol variable name
L LS lists the current symbol
L R Sets and displays the value of the Register
L l disassembly instructions from memory
L BT display function list
③ Commands for Misc
L DEVLS Command
This command lists the device name and type.
Pmon>devls
Device name Type
Wd0 disk (if the hard drive is listed, the first hard drive)
WD1 disk (second hard drive)
Rtl0 ifnet
CD0 CDROM (Optical drive)
Usb0 USB (First U-disk)
USB1 USB (Second U-disk)
L Flash command programming using Flash Memery
L TR Command Select a transparent mode
Selection mode
④ commands for the shell
L H Command
The command is a help command. At the "pmon>" prompt, enter "h" to display all Pmon commands, press SPACEBAR to page, press "enter" to display a line (ctlc+c terminates).
Pmon>h
If you want to view the usage information of a command separately, you can enter: H command
Pmon>h Pciscan
The output is as follows:
Pciscan [-B <bus>][-d <dev>] Scan PCI bus
-B <bus> Bus No
-D <dev> Dev No
L vers command
This command is used to display the version information of the Pmon
L eval command evaluates an expression and displays the result
pmon> Eval 2+6*4
0X1A 032 26
L more command to control output by page count
L SH Command
L stty command to set and display terminal settings
Pmon>stty–a display Tty0 terminal, Ioctrl, and baud rate settings
Pmon>stty tty1–a Show all settings for Tty1
Pmon> Stty [tty1] 115200 Setting the baud rate of the tty0 (or tty1)
⑤ commands for Netwoork
L IFM Command
This command modifies the download mode of the NIC (rtl8139)
PMON>IFM 100 (download in 100M mode)
PMON>IFM 10 (Download in 10M mode)
PMON>IFM Auto (Auto Select)
Description: When running this command, it is best to start the Pmon before setting the IP address.
L IFADDR Command
This command is used to set the IP address.
IFADDR NIC name IP address
Pmon>ifaddr rtl0 192.168.2.123
L PING command
This command is used to see if the network is combined.
Pmon>ping 192.168.2.xxx (or www.163.com)
⑥ Commands for Memory
L Compare command
This command is used to compare the contents of an Pmon address in memory.
Compare from-to-with
From the starting address used for the comparison
To the end address to use for the comparison
The start address of another address with which to compare
Pmon>compare 80010000 80020000 80010020
L m command to display and modify memory
L d command in hexadecimal or