Change CAT-DEV Boot Modes

The following procedures assume you are using SDK 2.11.x or above as they make use of the dual bootloader. The dual bootloader makes it simple to switch between boot modes as it only requires a change in an environment variable to switch boot modes. For earlier SDKs, refer to the corresponding documentation

Switch from PCFS Boot Mode to NAND Boot Mode

You may switch to NAND boot if the following are true:

To switch from PCFS boot mode to NAND boot mode

  1. Open a Cafe Cygwin shell
  2. From any directory, at the command prompt, type the export CAFE_BOOT_MODE=NAND command.

After completing the process, the CAT-DEV boots from NAND. In NAND boot mode, you must release the CAT-DEV from reset by using cafeon before running an application.

NOTE:
Unlike the earlier SDKs(before 2.11.x) switching to NAND boot mode does not erase any settings, installed applications, or saved data. If you would like to clear the above then you need to run the command cafex cleardata or cafecleardata.

Switch from NAND Boot Mode to PCFS Boot Mode

If CAFE_BOOT_MODE is set to NAND, you may switch to PCFS boot mode:

To Switch from NAND Boot Mode to PCFS Boot Mode

  1. Open a Cafe Cygwin shell
  2. From any directory, at the command prompt, type the export CAFE_BOOT_MODE=PCFS command.

The CAT-DEV now boots from the host PC via the PCFS file abstraction. With the dual bootloader, the system components do not get deleted from the NAND in this process.

NOTE:
PCFS boot mode, regardless of the transport choice, is not compatible with headless, or standalone mode, because PCFS requires filesystem service from the host PC, connected via Ethernet.

Switch to Production bootloader and boot from NAND

To switch to Production NAND boot mode

  1. Open a Cafe Cygwin shell
  2. From any directory, at the command prompt, type the source setbootmode -production NAND command.
  3. If successful, CAFE_BOOT_MODE is set to Production NAND.

After completing the process, the CAT-DEV boots using production NAND bootloader. In NAND boot mode, you must release the CAT-DEV from reset by using cafeon before running an application.

NOTE:
When you switch to Production NAND boot mode, any settings, installed applications, or saved data that is saved on the SLC or MLC are deleted as part of the update when the reformat is performed.

Switch back from Production bootloader to dual bootloader

Use to switch to PCFS or NAND mode and install the dual bootloader

  1. Open a Cafe Cygwin shell
  2. From any directory, at the command prompt, type the source setbootmode NAND command OR source setbootmode PCFS command.
  3. If successful, Dual bootloader is installed and CAFE_BOOT_MODE is set to NAND or PCFS mode respectively.

After completing the process, the CAT-DEV switches back to dual bootloader.

NOTE:
When you switch from Production NAND boot mode, any settings, installed applications, or saved data that is saved on the SLC or MLC are deleted as part of the update when the reformat is performed.

How to find out if you have the dual bootloader installed

After the cafeon command look for the following

$ cafeon
Using CafeControl
cafex input/keyboard encoding code page: 1252
cafex output/screen  encoding code page: 65001
The CAT-DEV SDK version is not the same as the SDK you are running.
SDK Version: 2.11.00 CAT-DEV SDK Version: 2.11.0
Please run cafeupdate to get in sync.
cafex run: using PCFS over SATA on port 7500
cafex run: PCFSServer parameters -c 7500
cafex run: Will use PCFS file system emulation
cafex run: bridge parameters: -pcfsport:7500 -em
CAFEX: update_cos_xml started, cmd_flags = 640
CAFEX: HexHandler.GetNumberFromString(cmd_flags) = 640
CAFEX: change cos.xml cmdFlags to 640
cafex run: Current system mode is DEV
Starting PCFSServer.exe @ sync date [2013-09-12-16-04-03-5118]
PCFSServer has started
Waiting for PCFSServer initialization...
PCFSServer initialization complete!
BOOT1: Running DUAL bootloader at 0x08000000.
BOOT1: 2.10.02M.
BOOT1: Loaded firmware image from SDIO.
BOOT1: Loaded firmware image size is 0x9c2000.
BOOT1: Starting firmware relocator.
00:00:00:261: USB Trace: Activating root hubs @ uptime 0.261 s with options 0x40000.

To Choose the Transport Mode Used with PCFS Boot Mode

When CAFE_BOOT_MODE is set to PCFS, use the pcfsoversata script to choose between SATA and SDIO transport. Since it modifies an environment variable, always invoke this script by using the source command.

NOTE:
PCFS-over-SATA is the default PCFS transport mode.

See Also

Environment Settings
Troubleshoot Boot Mode Issues
System Config Tool Overview

Revision History

2013/09/11 Updated for DUAL bootloader being default
2013/06/28 Updated for DUAL bootloader.
2013/05/08 Automated cleanup pass.
2013/02/15 Edit pass
2012/05/04 Clarify default boot mode.
2012/04/13 Initial version.


CONFIDENTIAL