Re-imaging the BlackDog on a Windows Host
This section provides detailed instructions for restoring your BlackDog Kernel and File System on a Windows Host.
Warning: Performing these steps erases all data on the BlackDog device. Save backup copies of any data/applications you want to keep on another machine.
Perform the following steps, if you need to copy or restore the BlackDog kernel and file system:
- Download the BlackDogImages_version.zip file from:
http://download.projectblackdog.com/releases/latest/
- Extract the zip file. You can use any zip file utility you want. However, to do this with Windows Explorer:
- Right-click the BlackDogImages_version.zip file.
- Select the Open With > Compressed (zipped) Folders menu.
Windows opens Explorer, showing the blackdog-primary.jffs2 and zImage-blackdog-primary.elf files.
- Copy both of these files into the following BlackDog SDK folder (C:\Program Files\BlackDog SDK 1.0\mpscon\).
- Do one of the following to launch the BlackDog into the bootloader (depending on whether your operating system is still functional):
If your operating system is still functional:
- Open a shell on the device.
- Type:
echo 2 > /proc/sys/realm/bootmagic
- Type:
reboot
- The led will flash purple, indicating the device is launched into the bootloader.
If your operating system is not functional:
- Unplug the device from any power source.
- Make sure the device is completely shutdown (the led is off). Depending on the state of the device, you may have to wait for the battery to drain. This could take some time.
- Plug in the device and wait for the led to flash green and then yellow. As soon as the led flashes yellow unplug it, wait for the led to go off, and then reinsert the device.
- Repeat step b until the led flashes purple and then leave the device plugged in. The flashing purple led indicates that the device is launched into the bootloader.
- If you time the plug/unplug perfectly, you will need to launch into the bootloader on the fifth plug in. However, the timing is a bit tricky and you may need to plug/unplug the device several more times.
- The first time you launch into the bootloader, Windows detects new hardware (GoKey). When the Found New Hardware Wizard dialog displays, perform the following steps:
Note: The Found New Hardware Wizard only displays the first time you install GoKey. If you have already installed GoKey, skip to step 5.
- At this prompt:
Can Windows connect to Windows Update to search for software?"
select No, not this time.
- Click Next.
- The next step informs you:
This wizard helps you install software for:
GoKey
....
What do you want the wizard to do?
Click Install from a list or specific location (Advanced)
- Click Next.
- The next step asks:
Please choose your search and installation options.
Select the Include this location in the search: checkbox.
- In the field below this checkbox, click Browse and browse to the location of the mpscon folder (C:\Program Files\BlackDog SDK 1.0\mpscon\).
- Click Next. The wizard installs the software.
- Click Finish to exit the wizard.
- Plug in the device and wait for the led to flash green and then yellow. As soon as the led flashes yellow unplug it, wait for the led to go off, and then reinsert the device.
- Repeat step b until the led flashes purple and then leave the device plugged in. The flashing purple led indicates that the device is launched into the bootloader.
- Navigate to the BlackDog SDK installation folder where you copied the image files in step 2 (C:\Program Files\BlackDog SDK 1.0\mpscon\).
- Double-click the mpscon.exe.
mpscon displays the following prompt:
goKey>
Note: If an older version of Cygwin is installed on your machine, it's possible that the command window will flash on the screen and close immediately. You also may get an "impure_pointer" error. If this happens, update Cygwin to the most recent version and run mpscon.exe again.
- From the goKey prompt, erase the existing kernel image and file system. Type:
goKey>erase 1
- From the goKey prompt, enter the following to load the kernel image:
goKey>load 1 path_to_image/zImage-blackdog-primary.elf
mpscon displays messages similar to the following:
Uploading zImage-blackdog-primary.elf to key with options "load 1"...
Waiting for far end...done
Block 83 acked.
Received final ACK, transfer completed with 0 resends.
zImage-blackdog-primary.elf uploaded successfully @ 1414.650 kB/s Success
- From the goKey prompt, enter the following to load the file system image:
goKey>load -n 32 path_to_image/blackdog-primary.jffs2
mpscon displays messages similar to the following:
Uploading blackdog-primary.jffs2 to key with options "load -n 32"...
Waiting for far end...done
Block 8287 acked.
Received final ACK, transfer completed with 0 resends.
blackdog-primary.jffs2 uploaded successfully @ 1437.963 kB/s Success
- Exit the goKey program:
goKey>exit
- Unplug the device.
- Reinsert the device.
- The first boot takes several minutes. Open a shell on the device and confirm that the image was restored correctly.
 |
 |
 |
Copyright © Realm Systems, Inc. 2003-2005.
All rights reserved.
|
|