Motorola MCP750 Specifications Page 255

  • Download
  • Add to my manuals
  • Print
  • Page
    / 344
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 254
Driver Testing and Debugging
15-9
Understanding the p command of the console processor debugging commands is essential
to booting the system and debugging the device driver. The hexadecimal values that are
beneficial to use with the p command for processor register boot are as follows:
Booting Scenarios 15
Several situations can occur while trying to boot a kernel for a device driver. The sections
that follow contain scenarios that demonstrate the commands to use and the results that
can be expected when using the boot options and console processor debugging commands.
“Shutdown and Reboot” contains a scenario that shows how to shut down the system and
bring it up again with a new kernel. “System Panic” contains a scenario that shows what
happens when a system panic occurs. “Breakpoints in the Initialization Phase” shows how
breakpoints can be set in the init(D2) and start(D2) routines.
In these scenarios, note that the # sign is the shell prompt for the superuser. The #> prompt
indicates that the console processor is ready for a new command.
Shutdown and Reboot 15
The following scenario demonstrates how to take down the machine and bring up the new
kernel that is to be tested on the machine. It also shows the nature of the output that results
from using the console processor debugging commands.
# /etc/conf/bin/idbuild -B
The UNIX Operating System kernel will be rebuilt now.
This will take some time. Please wait.
Root for this process is /
The UNIX Operating System kernel has been rebuilt.
#
# cd /
# /sbin/shutdown -g0 -i0 -y
Shutdown started. Fri Feb 17 13:13:22 EST 1995
Table 15-2. Important Parameters to the p Console Processor Command
Value Meaning
1 Requests file name for boot. Asks user to specify the program to load.
2
Boots the operating system to single–user mode.
80 Debug option (load symbol table)
100 Load and then halt twice––once before enabling VM and once after
enabling VM.
Page view 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 343 344

Comments to this Manuals

No comments