Appendices : Advanced Boot and Backup Configuration : Options for the create_cf command

Options for the create_cf command
Administrators can use the create_cf command when troubleshooting problems with the boot image, as described under To upgrade to a boot image from a network boot in U-boot monitor mode:. Use it carefully as described in this section.
CAUTION:Only use the --doformat option to save the image that is currently in RAM into the image1 area, but be aware that this option reformats all Flash partitions while saving the image.
NOTE: Use the --image[1|2]option to save the image that is currently in RAM into a specific image area, without reformatting the partitions that contain the other image.
Table E.2 provides more information about the create_cf command options, which you can view from the Linux command line by entering the name of the command.
Not recommended. Checks if a boot image is already on the device. If no image is on the device (as would be true for a newly installed removable Flash on a PCMCIA card) and if no image is specified, runs --doformat and installs the image in image1. If multiple images are on the device, and no image is specified, presents a choice of images for the user to choose from, and then writes the image from RAM into the specified image area. In either case, restores the factory default configuration
Use the -d device option if you want to create the image in another location, such as on an installed compact Flash PCMCIA card. (The device names for PCMCIA cards are determined by the number of the card slot where the card is installed, either /dev/hdc (PCMCIA slot 1) or /dev/hde (PCMCIA slot 2).
Creates the image using factory default configuration files. By default, if this option is not entered, the configuration from the current partition is used, if valid. For more details, see How Configuration Changes Are Handled.
Does not format the compact Flash. The sizes of partitions hda1-3 and 5-8 are checked. If the partition sizes are not smaller than 2, 2, 5, 51, 51, 6, and 6 Mbytes respectively, the image is installed in the specified image area.
Creates/replaces imageN, when n=1 | 2. Use this option to replace only the specified image without erasing both images. Changes the currentimage environment variable to boot from the image.
Examples for create_cf command usage
Both examples assume you have done a network boot and you want to save the boot image from RAM.
To save a boot image to a compact Flash PCMCIA card:
1.
2.
3.
Enter the following command to save a copy of the image from RAM onto the card. The compact Flash card in the example is inserted into PCMCIA slot 1.
To save a boot image into the Image2 area and restore the factory default configuration:
1.
2.
3.
The example shows saving the image into the image2 area