Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
= SheevaPlug =
Here's how to allow your SheevaPlug to boot from a USB driveor SD card.<br/>You'll need a JTAG module to achieve this.
Connect to the serial console (use 2 stop bits & 115200 bps).
 
= JTAG serial console =
If you do not have access to a serial console on your plug then you will need a JTAG module to do this:
* Connect the JTAG module to the SheevaPlug (be careful; connecting it the wrong way will fry it! See the warning sticker on the plug, and the photo on the box for proper connection), and connect the USB side to your computer (can be Windows, Linux or Mac).
= '''Windows =''' 
On Windows, install a driver
(Use the disc that came with plug or You can download it from [http://sourceforge.net/projects/esia/files/drivers/ here]), and [http://plugcomputer.org/plugwiki/index.php/SerialTerminal/Windows/PuTTY use PuTTY (serial)].
= '''Linux =''' 
On Linux, execute the following command:
cat > /etc/udev/rules.d/85-sheevaplug.rules <<'EOF'
Once connected, if you want to close your terminal session, hit Ctrl-A followed by Shift-K. You'll be asked if you're sure you want to kill this window; just say yes!
= On '''Mac OS X ='''
On Mac OS X, Install the [http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_14.dmg FTDI driver], download [http://dl.dropbox.com/u/3022105/Amahi/sheeva/Info.plist.patch Info.plist.patch] to your desktop, then run the following commands to connect to the SheevaPlug console:
For [TAB], hit the TAB key; the value there will be unique to each SheevaPlug computer, so TAB will allow you to auto-fill the correct value. Type '''B''' after that value has been auto-filled.
= Once Connectedvia a serial console =
Once connected, if you want to close your terminal session, hit Ctrl-A followed by Ctrl-K (or Shift-K on Linux). You'll be asked if you're sure you want to kill this window; just say yes!
* Reset the SheevaPlug.
* At the terminal, press enter a couple of seconds after boot to prevent it from booting using the onboard flash (Ubuntu). You should end up with a ''Marvell>>'' prompt.
 
'''arcNumber'''
 
The ArcNumber parameter references a particular mach-type/machine from the kernel's Arm machine table. This needs to be configured correctly for your device otherwise it may not boot or may not have all the features (eg. arcNumber=2678 is required for eSata Sheevaplug).
 
Find the correct arcNumber for your device [http://www.arm.linux.org.uk/developer/machines/ here].
 
'''USB Boot'''
 
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):
setenv mainlineLinux yes
saveenv
reset
 
'''SD Card Boot'''
 
* If you want to make it permanently boot from the SD card, the commands you need to run are:
('''NOTE:''' this step is only necessary once. I assume that the swap root partition is /dev/mmcblk0p1 and the root swap partition is /dev/mmcblk0p2).
setenv mainlineLinux yes
setenv arcNumber 2097
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'rw root=/dev/mmcblk0p2 mmcblk0p1 rootdelay=15 rootfstype=ext3' setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:2 1 0x800000 /boot/uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x0800000'
saveenv
19

edits