Requirements
CA-42 cable
A way to connect wires to pins
A DockStar
A Linux machine or virtual machine with a TFTP server installed and running
The "redstone" kernel and latest ramdisk
Downloads
Download the following 2 files to your TFTP directory, then chmod 777 both of them:
http://archlinuxarm.org/mirror/ce/ce_ke ... ne_v63.img
http://archlinuxarm.org/mirror/ce/ce_ramdisk_v2.0b.img
Connecting the Serial Cable
Assuming you have a CA-42 cable, here is something to give you an idea of how and where to connect the cable:
With the ethernet port facing 12-o'clock, north of you, the pins in question are the bottom-right 3. The one on the very far bottom-right is GND, the one directly next to it (to the left) is TX, and the one left of that one (still on the bottom) is RX.
Using PuTTY or screen, connect to /dev/ttyUSB0 with speed 115200 and turn the DockStar on. You should see U-Boot running. If not, try reconnecting the cables.
Reflashing
Download the kernel and ramdisk to your TFTP directory (be sure to chmod 777 them). Grab the server's IP address (with ifconfig).
Reset all the boot variables to defaults on the DockStar in the serial connection:
- Code: Select all
resetenv
After it reboots, set the DockStar's IP address (make it anything that is close to your LAN's addresses, e.g. 192.168.1.123), using:
- Code: Select all
setenv ipaddr 192.168.1.123
Set the TFTP server's IP address:
- Code: Select all
setenv serverip 192.168.1.101
Set the MAC address to match what is on the bottom of the DockStar (replace the zeroes):
- Code: Select all
setenv ethaddr 00:00:00:00:00:00
Set the 26-character Pogoplug ID (the biggest number on the bottom):
- Code: Select all
setenv cesvcid 00000000000000000000000000
Set the boot command:
- Code: Select all
setenv console 'console=ttyS0,115200'
setenv bootargs_root 'root=/dev/mtdblock2 ro'
setenv bootcmd 'nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000'
Save these values:
- Code: Select all
saveenv
Erase the NAND:
- Code: Select all
nand erase 0x100000 0x400000
Grab the kernel from the TFTP server:
- Code: Select all
tftp 0x800000 ce_kernel_redstone_v63.img
(note transfer-size -- Should be 1978608)
Write the kernel to the proper location:
- Code: Select all
nand write.e 0x800000 0x100000 0x1e30f0
(the last number is the kernel size in hex that showed after tftp, change if needed)
Grab the Pogoplug ramdisk from TFTP:
- Code: Select all
tftp 0x1000000 ce_ramdisk_v2.0b.img
(note transfer-size -- Should be 11770380)
Set the boot arguments to match the ramdisk size:
- Code: Select all
setenv bootargs $(console) root=/dev/mtdblock2 initrd=0x1000000,0xb39a59
(that last number is the ramdisk size in hex that showed after tftp)
Boot it:
- Code: Select all
bootm 0x800000
You can install Arch Linux ARM or another operating system again after reflashing.
