<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mattwire</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mattwire"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Mattwire"/>
	<updated>2026-05-03T05:20:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42973</id>
		<title>Marvell Plug Computer Booting</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42973"/>
		<updated>2011-07-15T11:30:45Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to [[Amahi_Plug_Edition]]&lt;br /&gt;
&lt;br /&gt;
= SheevaPlug =&lt;br /&gt;
&lt;br /&gt;
Here's how to allow your SheevaPlug to boot from a USB drive or SD card.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connect to the serial console (use 2 stop bits &amp;amp; 115200 bps).&lt;br /&gt;
&lt;br /&gt;
= JTAG serial console =&lt;br /&gt;
If you do not have access to a serial console on your plug then you will need a JTAG module to do this:&lt;br /&gt;
* 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).&lt;br /&gt;
&lt;br /&gt;
'''Windows'''&lt;br /&gt;
&lt;br /&gt;
On Windows, install a driver &lt;br /&gt;
(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)].&lt;br /&gt;
&lt;br /&gt;
'''Linux'''&lt;br /&gt;
&lt;br /&gt;
On Linux, execute the following command:&lt;br /&gt;
        cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
        # if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;usb&amp;quot;, ENV{DEVTYPE}==&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
                ATTRS{idVendor}==&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}==&amp;quot;0102&amp;quot;, \&lt;br /&gt;
                DRIVER==&amp;quot;&amp;quot;, \&lt;br /&gt;
                RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
                ENV{DEVPATH}==&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
                ATTR{new_id}=&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # optionally create a convenience symlink for the console device&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, KERNEL==&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
                ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
                ATTRS{bInterfaceNumber}==&amp;quot;01&amp;quot;, \&lt;br /&gt;
                SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
        EOF&lt;br /&gt;
&lt;br /&gt;
Then use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&amp;lt;br/&amp;gt;&lt;br /&gt;
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!&lt;br /&gt;
&lt;br /&gt;
'''Mac OS X'''&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
       sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
       sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
       sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
&lt;br /&gt;
Then plug in the device to USB:&lt;br /&gt;
&lt;br /&gt;
       screen /dev/tty.usbserial-[TAB]B 115200&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
= Once Connected via a serial console =&lt;br /&gt;
&lt;br /&gt;
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!&lt;br /&gt;
* Reset the SheevaPlug.&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
&lt;br /&gt;
'''arcNumber'''&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Find the correct arcNumber for your device [http://www.arm.linux.org.uk/developer/machines/ here].&lt;br /&gt;
&lt;br /&gt;
'''USB Boot'''&lt;br /&gt;
&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_root 'root=/dev/sda1 rootdelay=15'&lt;br /&gt;
       setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
'''SD Card Boot'''&lt;br /&gt;
&lt;br /&gt;
* If you want to make it permanently boot from the SD card, the commands you need to run are:&lt;br /&gt;
('''NOTE:''' this step is only necessary once. I assume that the root partition is /dev/mmcblk0p1 and the swap partition is /dev/mmcblk0p2).  &lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_console console=ttyS0,115200&lt;br /&gt;
       setenv bootargs_root 'rw root=/dev/mmcblk0p1 rootdelay=15 rootfstype=ext3'&lt;br /&gt;
       setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x800000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x0800000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= GuruPlug =&lt;br /&gt;
&lt;br /&gt;
Configuring [[Uboot for GuruPlug]]&lt;br /&gt;
&lt;br /&gt;
= Pogoplug / DockStar =&lt;br /&gt;
&lt;br /&gt;
See the instructions here on how to allow the PogoPlug &amp;amp; DockStar to boot from USB: http://plugapps.com/index.php5?title=PlugApps:Pogoplug_Setboot&amp;lt;br/&amp;gt;&lt;br /&gt;
Stop after executing the ''pogo_u-boot_install.sh'' script in step 1.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Client =&lt;br /&gt;
&lt;br /&gt;
The instructions for the OpenRD client are roughly similar to the ones for Sheevaplug. There are a few notable differences though.&lt;br /&gt;
* If your serial port does not work you need to use  VID 0403 and PID 9e90&lt;br /&gt;
* the arcNumber for OpenRD Client is 2361&lt;br /&gt;
* when booting from an usb device the device will be /dev/sdb if you also have an internal disk mounted. You need to change bootargs accordingly (e.g. root=/dev/sdb1)&lt;br /&gt;
* apparently doing 'usb start' twice from u-boot makes that the usb device is not re-detected. In that case it is needed to powercycle the device.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Base =&lt;br /&gt;
&lt;br /&gt;
I have no OpenRD Base but the key difference between Base and Client as far as booting concerns is the arcNumber. OpenRD Base has arcNumber 2325&amp;lt;br&amp;gt;&lt;br /&gt;
If you manage to get things working with OpenRD Base please update this section.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
* See also [https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB]&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_warboard&amp;diff=42967</id>
		<title>Plug warboard</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_warboard&amp;diff=42967"/>
		<updated>2011-07-15T11:30:10Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to [[Amahi_Plug_Edition]]&lt;br /&gt;
&lt;br /&gt;
When you note a problem, please indicate what version you're running (0.2, 0.3, ...)&lt;br /&gt;
&lt;br /&gt;
= Warboard =&lt;br /&gt;
&lt;br /&gt;
* VPN works. the date needs to be set to something recent:&lt;br /&gt;
         date --set 'Thu May 27 16:44:57 EDT 2010'&lt;br /&gt;
         hwclock --systohc --utc&lt;br /&gt;
* tar and unzip need to be in the image:&lt;br /&gt;
         yum -y install tar unzip&lt;br /&gt;
* Greyhole *is* working&lt;br /&gt;
* crontab does not appear to be working&lt;br /&gt;
* had to add with noatime in / to prevent flash burnout&lt;br /&gt;
* should control monit - it keeps on pounding the flash with messages in /var/log/monit&lt;br /&gt;
* would like to add swap to flash based drives&lt;br /&gt;
* mt-daapd and amahi-transmission are dying&lt;br /&gt;
* ntpd is not installed??&lt;br /&gt;
  [root@fedora-arm ~]# date&lt;br /&gt;
  Sun Apr 30 06:57:12 EDT 2000&lt;br /&gt;
&lt;br /&gt;
= OpenVPN =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
      # service openvpn start&lt;br /&gt;
      Starting openvpn: FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
      FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
      FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `nat': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
                                                           [FAILED]&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fixed =&lt;br /&gt;
&lt;br /&gt;
* local DNS server is not working for external hostnames (caused by dnssec enabled in named.conf). Workaround&lt;br /&gt;
          echo -e 'DNSSEC=&amp;quot;off&amp;quot;\nDLV=&amp;quot;off&amp;quot;' &amp;gt; /etc/sysconfig/dnssec&lt;br /&gt;
          service named restart&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42961</id>
		<title>Plug Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42961"/>
		<updated>2011-07-15T11:28:46Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to [[Amahi_Plug_Edition]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page contains some tips, tricks and howto's for the plug distro. Feel free to add your own. &lt;br /&gt;
&lt;br /&gt;
= Setting the timezone =&lt;br /&gt;
&lt;br /&gt;
The timezone is not set on a new plug install (See [http://bugs.amahi.org/issues/show/757 #757].  To set it manually follow the steps below:&lt;br /&gt;
&lt;br /&gt;
* Login as root or su to root.&lt;br /&gt;
* choose from /usr/share/zoneinfo which timezone you want to set your plug to.&lt;br /&gt;
* Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime'''&lt;br /&gt;
* Issue the command '''hda-php-zone-change &amp;quot;Europe/Amsterdam&amp;quot;''' to set the timezone for PHP.&lt;br /&gt;
''Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.''&lt;br /&gt;
&lt;br /&gt;
= Useful commands =&lt;br /&gt;
The following useful commands are not installed by default:&lt;br /&gt;
* which&lt;br /&gt;
* man&lt;br /&gt;
* scp&lt;br /&gt;
* ssh&lt;br /&gt;
* make&lt;br /&gt;
&lt;br /&gt;
To install issue the command:&lt;br /&gt;
 yum -y install which man openssh-clients make&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
== Using the onboard NAND flash as a swap drive ==&lt;br /&gt;
Note that many devices are configured to fallback to booting from NAND flash if no USB/SD card is found.  This makes it almost impossible to brick your device.&lt;br /&gt;
&lt;br /&gt;
''If you use the NAND flash as swap you will lose this ability.''&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
== Copy a root filesystem from one disk to another ==&lt;br /&gt;
This may be useful if you have set up things on a USB device and want to copy to an internal harddisk:&lt;br /&gt;
&lt;br /&gt;
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly&lt;br /&gt;
{{Code|&lt;br /&gt;
# /dev/sda1 is the target filesystem; must have an empty filesystem on it&lt;br /&gt;
mount /dev/sda1 /mnt&lt;br /&gt;
mkdir /mnt2&lt;br /&gt;
# /dev/sdb2 is the source filesystem&lt;br /&gt;
mount /dev/sdb1 /mnt2&lt;br /&gt;
cd  /mnt2&lt;br /&gt;
cp -ar * /mnt&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42955</id>
		<title>Plug notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42955"/>
		<updated>2011-07-15T11:27:04Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: Redirected page to Amahi Plug Edition&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Amahi_Plug_Edition]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note: Most of this information is duplicated elsewhere.  It needs to be verified and removed as necessary.'''&lt;br /&gt;
&lt;br /&gt;
See [[Amahi_Plug_Edition | Amahi_Plug_Edition]] for installation and supported devices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Misc Notes =&lt;br /&gt;
&lt;br /&gt;
* restarting rpm db in chrooted environment:&lt;br /&gt;
{{Code|rm /var/lib/rpm/__db*&lt;br /&gt;
rpm --rebuilddb -vv}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--* May need to add the following line to /etc/resolv.conf if you have DNS issues:&lt;br /&gt;
 nameserver 8.8.8.8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--  OLD NOTES&lt;br /&gt;
* 2 stop bits to get the bootloader to recognize keyboard and stop autobooting&lt;br /&gt;
* speed: 115200 /dev/ttyUSB1&lt;br /&gt;
* root/fedoraarm default password&lt;br /&gt;
* rpms installed for development: rsync, git, vim-enhanced, sudo, make, rpm-build, tar, httpd-devel, boot-devel, gcc-c++&lt;br /&gt;
* passenger: need rubygems-1.3.5-4.fc12.noarch.rpm with macro changes&lt;br /&gt;
* rpms installed for amahi: httpd, ruby, samba, &lt;br /&gt;
* build hdactl, hda-platform, install (with --nodeps)&lt;br /&gt;
&lt;br /&gt;
RPMs not available from the mirrors:&lt;br /&gt;
* hda-greyhole&lt;br /&gt;
* cadaver&lt;br /&gt;
* rubygem-gd2 - actually - is this one necessary?&lt;br /&gt;
* ruby-RMagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* ssh into the plug&lt;br /&gt;
* yum -y install httpd&lt;br /&gt;
&lt;br /&gt;
* Install the hda-release&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-release&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install hdactl&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hdactl&amp;quot; arch=&amp;quot;armv5tel&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now install &amp;lt;code&amp;gt;hda-platform&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-platform&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install dependencies:&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;yum -y install rubygems ruby-libs ruby-mysql&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the Amahi installer.&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;service amahi-installer start&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* And last but not least, get the installer going by accessing it with a browser:&lt;br /&gt;
       &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://your_ip_address:2000&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* input the install code and install!&lt;br /&gt;
* NOTE: it may be better to &lt;br /&gt;
* report bugs!--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42949</id>
		<title>Plug Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42949"/>
		<updated>2011-07-15T11:25:39Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page contains some tips, tricks and howto's for the plug distro. Feel free to add your own. &lt;br /&gt;
&lt;br /&gt;
= Setting the timezone =&lt;br /&gt;
&lt;br /&gt;
The timezone is not set on a new plug install (See [http://bugs.amahi.org/issues/show/757 #757].  To set it manually follow the steps below:&lt;br /&gt;
&lt;br /&gt;
* Login as root or su to root.&lt;br /&gt;
* choose from /usr/share/zoneinfo which timezone you want to set your plug to.&lt;br /&gt;
* Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime'''&lt;br /&gt;
* Issue the command '''hda-php-zone-change &amp;quot;Europe/Amsterdam&amp;quot;''' to set the timezone for PHP.&lt;br /&gt;
''Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.''&lt;br /&gt;
&lt;br /&gt;
= Useful commands =&lt;br /&gt;
The following useful commands are not installed by default:&lt;br /&gt;
* which&lt;br /&gt;
* man&lt;br /&gt;
* scp&lt;br /&gt;
* ssh&lt;br /&gt;
* make&lt;br /&gt;
&lt;br /&gt;
To install issue the command:&lt;br /&gt;
 yum -y install which man openssh-clients make&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
== Using the onboard NAND flash as a swap drive ==&lt;br /&gt;
Note that many devices are configured to fallback to booting from NAND flash if no USB/SD card is found.  This makes it almost impossible to brick your device.&lt;br /&gt;
&lt;br /&gt;
''If you use the NAND flash as swap you will lose this ability.''&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
== Copy a root filesystem from one disk to another ==&lt;br /&gt;
This may be useful if you have set up things on a USB device and want to copy to an internal harddisk:&lt;br /&gt;
&lt;br /&gt;
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly&lt;br /&gt;
{{Code|&lt;br /&gt;
# /dev/sda1 is the target filesystem; must have an empty filesystem on it&lt;br /&gt;
mount /dev/sda1 /mnt&lt;br /&gt;
mkdir /mnt2&lt;br /&gt;
# /dev/sdb2 is the source filesystem&lt;br /&gt;
mount /dev/sdb1 /mnt2&lt;br /&gt;
cd  /mnt2&lt;br /&gt;
cp -ar * /mnt&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42943</id>
		<title>Marvell Plug Computer Booting</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42943"/>
		<updated>2011-07-15T11:22:19Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SheevaPlug =&lt;br /&gt;
&lt;br /&gt;
Here's how to allow your SheevaPlug to boot from a USB drive or SD card.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connect to the serial console (use 2 stop bits &amp;amp; 115200 bps).&lt;br /&gt;
&lt;br /&gt;
= JTAG serial console =&lt;br /&gt;
If you do not have access to a serial console on your plug then you will need a JTAG module to do this:&lt;br /&gt;
* 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).&lt;br /&gt;
&lt;br /&gt;
'''Windows'''&lt;br /&gt;
&lt;br /&gt;
On Windows, install a driver &lt;br /&gt;
(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)].&lt;br /&gt;
&lt;br /&gt;
'''Linux'''&lt;br /&gt;
&lt;br /&gt;
On Linux, execute the following command:&lt;br /&gt;
        cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
        # if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;usb&amp;quot;, ENV{DEVTYPE}==&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
                ATTRS{idVendor}==&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}==&amp;quot;0102&amp;quot;, \&lt;br /&gt;
                DRIVER==&amp;quot;&amp;quot;, \&lt;br /&gt;
                RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
                ENV{DEVPATH}==&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
                ATTR{new_id}=&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # optionally create a convenience symlink for the console device&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, KERNEL==&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
                ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
                ATTRS{bInterfaceNumber}==&amp;quot;01&amp;quot;, \&lt;br /&gt;
                SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
        EOF&lt;br /&gt;
&lt;br /&gt;
Then use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&amp;lt;br/&amp;gt;&lt;br /&gt;
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!&lt;br /&gt;
&lt;br /&gt;
'''Mac OS X'''&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
       sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
       sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
       sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
&lt;br /&gt;
Then plug in the device to USB:&lt;br /&gt;
&lt;br /&gt;
       screen /dev/tty.usbserial-[TAB]B 115200&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
= Once Connected via a serial console =&lt;br /&gt;
&lt;br /&gt;
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!&lt;br /&gt;
* Reset the SheevaPlug.&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
&lt;br /&gt;
'''arcNumber'''&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Find the correct arcNumber for your device [http://www.arm.linux.org.uk/developer/machines/ here].&lt;br /&gt;
&lt;br /&gt;
'''USB Boot'''&lt;br /&gt;
&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_root 'root=/dev/sda1 rootdelay=15'&lt;br /&gt;
       setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
'''SD Card Boot'''&lt;br /&gt;
&lt;br /&gt;
* If you want to make it permanently boot from the SD card, the commands you need to run are:&lt;br /&gt;
('''NOTE:''' this step is only necessary once. I assume that the root partition is /dev/mmcblk0p1 and the swap partition is /dev/mmcblk0p2).  &lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_console console=ttyS0,115200&lt;br /&gt;
       setenv bootargs_root 'rw root=/dev/mmcblk0p1 rootdelay=15 rootfstype=ext3'&lt;br /&gt;
       setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x800000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x0800000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= GuruPlug =&lt;br /&gt;
&lt;br /&gt;
Configuring [[Uboot for GuruPlug]]&lt;br /&gt;
&lt;br /&gt;
= Pogoplug / DockStar =&lt;br /&gt;
&lt;br /&gt;
See the instructions here on how to allow the PogoPlug &amp;amp; DockStar to boot from USB: http://plugapps.com/index.php5?title=PlugApps:Pogoplug_Setboot&amp;lt;br/&amp;gt;&lt;br /&gt;
Stop after executing the ''pogo_u-boot_install.sh'' script in step 1.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Client =&lt;br /&gt;
&lt;br /&gt;
The instructions for the OpenRD client are roughly similar to the ones for Sheevaplug. There are a few notable differences though.&lt;br /&gt;
* If your serial port does not work you need to use  VID 0403 and PID 9e90&lt;br /&gt;
* the arcNumber for OpenRD Client is 2361&lt;br /&gt;
* when booting from an usb device the device will be /dev/sdb if you also have an internal disk mounted. You need to change bootargs accordingly (e.g. root=/dev/sdb1)&lt;br /&gt;
* apparently doing 'usb start' twice from u-boot makes that the usb device is not re-detected. In that case it is needed to powercycle the device.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Base =&lt;br /&gt;
&lt;br /&gt;
I have no OpenRD Base but the key difference between Base and Client as far as booting concerns is the arcNumber. OpenRD Base has arcNumber 2325&amp;lt;br&amp;gt;&lt;br /&gt;
If you manage to get things working with OpenRD Base please update this section.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
* See also [https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB https://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB]&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42937</id>
		<title>Plug notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42937"/>
		<updated>2011-07-15T11:20:59Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note: Most of this information is duplicated elsewhere.  It needs to be verified and removed as necessary.'''&lt;br /&gt;
&lt;br /&gt;
See [[Amahi_Plug_Edition | Amahi_Plug_Edition]] for installation and supported devices.&lt;br /&gt;
&lt;br /&gt;
= Using the onboard NAND flash as a swap drive =&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
= Misc Notes =&lt;br /&gt;
&lt;br /&gt;
* restarting rpm db in chrooted environment:&lt;br /&gt;
{{Code|rm /var/lib/rpm/__db*&lt;br /&gt;
rpm --rebuilddb -vv}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--* May need to add the following line to /etc/resolv.conf if you have DNS issues:&lt;br /&gt;
 nameserver 8.8.8.8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--  OLD NOTES&lt;br /&gt;
* 2 stop bits to get the bootloader to recognize keyboard and stop autobooting&lt;br /&gt;
* speed: 115200 /dev/ttyUSB1&lt;br /&gt;
* root/fedoraarm default password&lt;br /&gt;
* rpms installed for development: rsync, git, vim-enhanced, sudo, make, rpm-build, tar, httpd-devel, boot-devel, gcc-c++&lt;br /&gt;
* passenger: need rubygems-1.3.5-4.fc12.noarch.rpm with macro changes&lt;br /&gt;
* rpms installed for amahi: httpd, ruby, samba, &lt;br /&gt;
* build hdactl, hda-platform, install (with --nodeps)&lt;br /&gt;
&lt;br /&gt;
RPMs not available from the mirrors:&lt;br /&gt;
* hda-greyhole&lt;br /&gt;
* cadaver&lt;br /&gt;
* rubygem-gd2 - actually - is this one necessary?&lt;br /&gt;
* ruby-RMagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* ssh into the plug&lt;br /&gt;
* yum -y install httpd&lt;br /&gt;
&lt;br /&gt;
* Install the hda-release&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-release&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install hdactl&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hdactl&amp;quot; arch=&amp;quot;armv5tel&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now install &amp;lt;code&amp;gt;hda-platform&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-platform&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install dependencies:&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;yum -y install rubygems ruby-libs ruby-mysql&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the Amahi installer.&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;service amahi-installer start&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* And last but not least, get the installer going by accessing it with a browser:&lt;br /&gt;
       &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://your_ip_address:2000&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* input the install code and install!&lt;br /&gt;
* NOTE: it may be better to &lt;br /&gt;
* report bugs!--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42931</id>
		<title>Marvell Plug Computer Booting</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Marvell_Plug_Computer_Booting&amp;diff=42931"/>
		<updated>2011-07-15T11:17:17Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= SheevaPlug =&lt;br /&gt;
&lt;br /&gt;
Here's how to allow your SheevaPlug to boot from a USB drive or SD card.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connect to the serial console (use 2 stop bits &amp;amp; 115200 bps).&lt;br /&gt;
&lt;br /&gt;
= JTAG serial console =&lt;br /&gt;
If you do not have access to a serial console on your plug then you will need a JTAG module to do this:&lt;br /&gt;
* 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).&lt;br /&gt;
&lt;br /&gt;
'''Windows'''&lt;br /&gt;
&lt;br /&gt;
On Windows, install a driver &lt;br /&gt;
(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)].&lt;br /&gt;
&lt;br /&gt;
'''Linux'''&lt;br /&gt;
&lt;br /&gt;
On Linux, execute the following command:&lt;br /&gt;
        cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
        # if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;usb&amp;quot;, ENV{DEVTYPE}==&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
                ATTRS{idVendor}==&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}==&amp;quot;0102&amp;quot;, \&lt;br /&gt;
                DRIVER==&amp;quot;&amp;quot;, \&lt;br /&gt;
                RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
                ENV{DEVPATH}==&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
                ATTR{new_id}=&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
        &lt;br /&gt;
        # optionally create a convenience symlink for the console device&lt;br /&gt;
        ACTION==&amp;quot;add&amp;quot;, KERNEL==&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
                ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
                ATTRS{bInterfaceNumber}==&amp;quot;01&amp;quot;, \&lt;br /&gt;
                SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
        EOF&lt;br /&gt;
&lt;br /&gt;
Then use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&amp;lt;br/&amp;gt;&lt;br /&gt;
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!&lt;br /&gt;
&lt;br /&gt;
'''Mac OS X'''&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
       sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
       sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
       sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
&lt;br /&gt;
Then plug in the device to USB:&lt;br /&gt;
&lt;br /&gt;
       screen /dev/tty.usbserial-[TAB]B 115200&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
= Once Connected via a serial console =&lt;br /&gt;
&lt;br /&gt;
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!&lt;br /&gt;
* Reset the SheevaPlug.&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
&lt;br /&gt;
'''arcNumber'''&lt;br /&gt;
&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
Find the correct arcNumber for your device [http://www.arm.linux.org.uk/developer/machines/ here].&lt;br /&gt;
&lt;br /&gt;
'''USB Boot'''&lt;br /&gt;
&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_root 'root=/dev/sda1 rootdelay=15'&lt;br /&gt;
       setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
'''SD Card Boot'''&lt;br /&gt;
&lt;br /&gt;
* If you want to make it permanently boot from the SD card, the commands you need to run are:&lt;br /&gt;
('''NOTE:''' this step is only necessary once. I assume that the root partition is /dev/mmcblk0p1 and the swap partition is /dev/mmcblk0p2).  &lt;br /&gt;
       setenv mainlineLinux yes&lt;br /&gt;
       setenv arcNumber 2097&lt;br /&gt;
       setenv bootargs_console console=ttyS0,115200&lt;br /&gt;
       setenv bootargs_root 'rw root=/dev/mmcblk0p1 rootdelay=15 rootfstype=ext3'&lt;br /&gt;
       setenv bootcmd_mmc 'mmcinit; ext2load mmc 0:1 0x800000 /boot/uImage'&lt;br /&gt;
       setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x0800000'&lt;br /&gt;
       saveenv&lt;br /&gt;
       reset&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= GuruPlug =&lt;br /&gt;
&lt;br /&gt;
Configuring [[Uboot for GuruPlug]]&lt;br /&gt;
&lt;br /&gt;
= Pogoplug / DockStar =&lt;br /&gt;
&lt;br /&gt;
See the instructions here on how to allow the PogoPlug &amp;amp; DockStar to boot from USB: http://plugapps.com/index.php5?title=PlugApps:Pogoplug_Setboot&amp;lt;br/&amp;gt;&lt;br /&gt;
Stop after executing the ''pogo_u-boot_install.sh'' script in step 1.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Client =&lt;br /&gt;
&lt;br /&gt;
The instructions for the OpenRD client are roughly similar to the ones for Sheevaplug. There are a few notable differences though.&lt;br /&gt;
* If your serial port does not work you need to use  VID 0403 and PID 9e90&lt;br /&gt;
* the arcNumber for OpenRD Client is 2361&lt;br /&gt;
* when booting from an usb device the device will be /dev/sdb if you also have an internal disk mounted. You need to change bootargs accordingly (e.g. root=/dev/sdb1)&lt;br /&gt;
* apparently doing 'usb start' twice from u-boot makes that the usb device is not re-detected. In that case it is needed to powercycle the device.&lt;br /&gt;
&lt;br /&gt;
= OpenRD Base =&lt;br /&gt;
&lt;br /&gt;
I have no OpenRD Base but the key difference between Base and Client as far as booting concerns is the arcNumber. OpenRD Base has arcNumber 2325&amp;lt;br&amp;gt;&lt;br /&gt;
If you manage to get things working with OpenRD Base please update this section.&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42925</id>
		<title>Amahi Plug Edition</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42925"/>
		<updated>2011-07-15T10:43:51Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Amahi &amp;quot;Plug Edition&amp;quot; &amp;amp;mdash; How to run Amahi on your Plug Computer!&lt;br /&gt;
&lt;br /&gt;
For discussions see the [https://forums.amahi.org/viewforum.php?f=40 Amahi Plug Computer Forum].&lt;br /&gt;
&lt;br /&gt;
= Supported devices =&lt;br /&gt;
&lt;br /&gt;
* [http://www.ionicsplug.com/products.html Ionics Plugs]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-guruplugdetails.aspx GuruPlug]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdcdetails.aspx OpenRD Client]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdbdetails.aspx OpenRD Base] (unverified)&lt;br /&gt;
&lt;br /&gt;
Supported but not recommended, due to compatibility or speed:&lt;br /&gt;
&lt;br /&gt;
* [http://www.tonidoplug.com/ TonidoPlug]&lt;br /&gt;
* [http://www.plugapps.com/index.php5?title=Getting_Started:_Pogoplug Rooted] [http://www.pogoplug.com/ Pogoplug] &amp;amp;mdash; (256 RAM)&lt;br /&gt;
* [http://www.cs.cmu.edu/~ecc/dockstar-howto.html Rooted] [http://www.seagate.com/www/en-us/products/network_storage/freeagent_dockstar/ Seagate DockStar] &amp;amp;mdash; (128MB RAM - a little slow)&lt;br /&gt;
* Any other device based on the [http://plugcomputer.org Marvell Plug Computer]&lt;br /&gt;
&lt;br /&gt;
Known Issues:&lt;br /&gt;
* [http://www.globalscaletechnologies.com/p-35-openrd-ultimate.aspx OpenRD Ultimate] will need some tweaking as the current kernel does not support OpenRD Ultimate yet.&lt;br /&gt;
* eSata [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug] will need an updated kernel to support the eSata port ([http://bugs.amahi.org/issues/show/850 #850])&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
You'll need:&lt;br /&gt;
* A Linux Computer&lt;br /&gt;
* A storage device, of 2GB or more, that your plug computer can boot from&lt;br /&gt;
* The latest Amahi &amp;quot;rootfs&amp;quot; from the [http://dl.amahi.org/marvell/ Amahi4Plug repo] look for the latest file named '''amahi-marvell-*.tar.bz2'''&lt;br /&gt;
* [http://dl.amahi.org/marvell/create-amahi-f12-plug-disk.sh This script] to copy the above ''rootfs'' into your storage device. Important: you &amp;lt;u&amp;gt;will&amp;lt;/u&amp;gt; have to modify this script to suit your device, as it obliterates the content of it&lt;br /&gt;
&lt;br /&gt;
= Quick Overview =&lt;br /&gt;
&lt;br /&gt;
Because of the headless nature of the Plug devices, there are some more steps than the typical Amahi release to make things work smoothly.&lt;br /&gt;
&lt;br /&gt;
There are three major steps in getting things going&lt;br /&gt;
&lt;br /&gt;
; '''Step 1'''&lt;br /&gt;
: Download the latest [http://dl.amahi.org/marvell/ rootfs image] then use the script to extract and put it into an empty USB hard drive, USB flash drive, or SD card (depending on what your device supports). While it does that, you may want to setup a profile for your HDA at [http://www.amahi.org/ Amahi]&lt;br /&gt;
&lt;br /&gt;
; '''Step 2'''&lt;br /&gt;
: Boot your device using the drive or card you created in step 1. Find out the IP it got assigned from your existing DHCP server (typically your router). Alternately if you have console access log in at the console prompt (user: admin, password: amahi) and run /sbin/ifconfig. The ip address is at the second line of the eth0 section (inet addr)&lt;br /&gt;
&lt;br /&gt;
; '''Step 3'''&lt;br /&gt;
: Install Amahi, by loading &amp;lt;code&amp;gt;http://plug_ip:2000&amp;lt;/code&amp;gt; and entering the install code you got when you [https://www.amahi.org/user created your Amahi profile].&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
For a list of working / not working apps for plug computers, see [[Plug Apps| Plug Apps]] page. Also, please check and file any issues in the [http://bugs.amahi.org/projects/show/plug Amahi bug tracker project for the Plug port]&lt;br /&gt;
&lt;br /&gt;
= Detailed Installation Instructions =&lt;br /&gt;
&lt;br /&gt;
Fully detailed procedure.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Prepare your boot device ==&lt;br /&gt;
&lt;br /&gt;
Connect your boot device (USB hard drive, USB flash drive, or SD card) into a working Linux machine (you can use your plug computer!)&lt;br /&gt;
&lt;br /&gt;
If needed, partition your device to create a partition you'll use to boot. No need to format it.&lt;br /&gt;
&lt;br /&gt;
If a swap partition is desired (highly recommended for the PogoPlug &amp;amp; DockStar), create a second partition on your storage device, between 512MB and 2GB (depending on how big your storage device is), and format it as ''Linux Swap''.&lt;br /&gt;
&lt;br /&gt;
Example partitioning depending on your boot device type &amp;amp; size:&lt;br /&gt;
{| cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
! 2GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 4GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 8GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 16GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! USB Hard Drive&amp;lt;br/&amp;gt;(40+ GB)&lt;br /&gt;
|-&lt;br /&gt;
|2GB, unformatted&lt;br /&gt;
|4GB, unformatted&lt;br /&gt;
|512MB, Linux Swap&amp;lt;br/&amp;gt;7.5GB, unformatted&lt;br /&gt;
|1GB, Linux Swap&amp;lt;br/&amp;gt;15GB, unformatted&lt;br /&gt;
|2GB, Linux Swap&amp;lt;br/&amp;gt;The rest, unformatted&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Download the Amahi ''rootfs'' file and ''create-clean-f12-disk.sh'' script into your Linux machine. Don't store them on the storage device you want to use on your plug computer.&amp;lt;br/&amp;gt;&lt;br /&gt;
Edit the ''create-amahi-f12-plug-disk.sh'' script:&lt;br /&gt;
* Change the first line, the one that says '''partition=&amp;quot;...&amp;quot;''' to point to the partition you want to use to boot your plug computer.&amp;lt;br/&amp;gt;If you're not sure, '''ls -l /dev/disk/by-id/''' and see if you can find it there.&lt;br /&gt;
* Change the second line '''swap=&amp;quot;...&amp;quot;''' to point to the partition you want to use for swap.  If you do not have a swap partition just set this to a partition that does not exist.&lt;br /&gt;
* Change the third line, if needed. It should contain the name of the Amahi ''rootfs'' file you downloaded. Example: '''rootfs=&amp;quot;amahi-marvell-1.0.tar.bz2&amp;quot;'''&lt;br /&gt;
* Comment (add a # character at the beginning of) the two following lines, the ones that say '''echo &amp;quot;Please edit this script...''' and '''exit 0'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #B66; padding: .5em 1em; color: #000; background-color: #FEE; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
'''BIG WARNING! Putting the wrong partitions in this script will completely erase those partitions! Be careful what partitions you target!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the ''create-amahi-f12-plug-disk.sh'' script under root:&lt;br /&gt;
&lt;br /&gt;
      sh create-amahi-f12-plug-disk.sh&lt;br /&gt;
&lt;br /&gt;
== Step 2: Boot your plug ==&lt;br /&gt;
&lt;br /&gt;
Boot the plug computer with your newly created drive/card attached. Give it a few minutes to boot, and it will be ready for the Amahi installation.&lt;br /&gt;
&lt;br /&gt;
If you need help getting your plug computer to boot from USB or SD, instead of the on-board Flash memory, see our [[Marvell Plug Computer Booting]] page.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Install Amahi ==&lt;br /&gt;
&lt;br /&gt;
Note that for this step to work correctly, your plug computer needs to have access to Internet. Maybe you can just SSH into it, and ping www.amahi.org to make sure it works.&lt;br /&gt;
&lt;br /&gt;
Find the plug computer IP address (check your router DHCP logs or DHCP server), and launch the Amahi installer by visiting http://plug_computer_ip:2000&lt;br /&gt;
&lt;br /&gt;
(Use nmap or ping -b to find new devices on your LAN, if you can't find your plug computer IP address on your DHCP server.)&lt;br /&gt;
&lt;br /&gt;
It will ask for an install code. That code can be obtained by creating an Amahi profile here: https://www.amahi.org/user (you'll need to create an account first, if you don't already have one).&lt;br /&gt;
&lt;br /&gt;
== Enjoy ==&lt;br /&gt;
&lt;br /&gt;
After it reboots, access your HDA by logging in at &amp;lt;code&amp;gt;http://plug_computer_ip&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Username: admin&lt;br /&gt;
    Password: amahi&lt;br /&gt;
&lt;br /&gt;
The root password is: amahi&amp;lt;br/&amp;gt;&lt;br /&gt;
(Change it!)&lt;br /&gt;
&lt;br /&gt;
== Post Install Action ==&lt;br /&gt;
&lt;br /&gt;
If all seems to work, you can now disable your old DHCP server, and let your plug computer act as your new DHCP server.&lt;br /&gt;
&lt;br /&gt;
You'll need to [[RenewIP|release and then renew the IP address]] of your client computers, once your old DHCP server is disabled.&lt;br /&gt;
&lt;br /&gt;
You'll then be able to access the Amahi dashboard at http://hda, and your installed apps using http://app_name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you created a swap partition while partitioning your storage device, you might need to tell Amahi to use that partition for swap space. You'll need to change '''/dev/sda2''' for the real path to your swap partition. SSH into your Amahi server, and execute the following:&lt;br /&gt;
&lt;br /&gt;
     mkswap /dev/sda2&lt;br /&gt;
     swapon -a&lt;br /&gt;
&lt;br /&gt;
You will also need to edit the /etc/fstab file to use that new partition at startup&lt;br /&gt;
&lt;br /&gt;
Check that everything is now working with&lt;br /&gt;
&lt;br /&gt;
         free&lt;br /&gt;
&lt;br /&gt;
The total on the swap line should not be 0 if all worked out. Otherwise make sure the fstab has the right device for swapping.&lt;br /&gt;
&lt;br /&gt;
Note: On the SheevaPlug, the onboard NAND flash is called /dev/mtdblock2. You might want to use it as a swap partition, as it would be faster than your SD card or USB drive.&lt;br /&gt;
&lt;br /&gt;
= Customize and Extend =&lt;br /&gt;
&lt;br /&gt;
If you need customizations for your device, you can install the [http://fedoraproject.org/wiki/Architectures/ARM/CrossToolchain ARM cross compilation toolset] to compile things like the kernel, multimedia libraries, etc. etc.&lt;br /&gt;
&lt;br /&gt;
= Tips and Tricks =&lt;br /&gt;
Tips, tricks and howto's can be found at [[Plug Tips and Tricks]]&lt;br /&gt;
&lt;br /&gt;
= Known Issues =&lt;br /&gt;
* See the [http://bugs.amahi.org/projects/show/plug bug tracker] for reported bugs against the plug edition.&lt;br /&gt;
* See [[Plug_warboard]] for documented issues.&lt;br /&gt;
&lt;br /&gt;
These are mostly what matter for debugging:&lt;br /&gt;
{{Code|/root/hda-install.log}}&lt;br /&gt;
&amp;lt;br&amp;gt;{{Code|egrep -v 'POST&amp;lt;nowiki&amp;gt;|GET|&amp;lt;/nowiki&amp;gt;progress' /tmp/amahi-ruby-install.log}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42919</id>
		<title>Plug notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42919"/>
		<updated>2011-07-15T10:41:17Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note: Most of this information is duplicated elsewhere.  It needs to be verified and removed as necessary.'''&lt;br /&gt;
&lt;br /&gt;
See [[Amahi_Plug_Edition | Amahi_Plug_Edition]] for installation and supported devices.&lt;br /&gt;
&lt;br /&gt;
= Getting the plug booting Fedora 12 =&lt;br /&gt;
&lt;br /&gt;
Here are the steps to make the plug boot from USB&lt;br /&gt;
* General [http://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB directions]&lt;br /&gt;
* Connect the ethernet cable to your network (Mouton says: is this necessary now? Can't we just wait until the Amahi Install section below to connect the plug to the LAN?)&lt;br /&gt;
* 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).&lt;br /&gt;
* On Windows: install a driver (disc that came with plug), and [http://plugcomputer.org/plugwiki/index.php/SerialTerminal/Windows/PuTTY use PuTTY (serial)].&lt;br /&gt;
* On Linux, execute the following command, and use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&lt;br /&gt;
{{Text|Text=cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb&amp;quot;, ENV{DEVTYPE}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
        ATTRS{idVendor}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;0102&amp;quot;, \&lt;br /&gt;
        DRIVER&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;quot;, \&lt;br /&gt;
        RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
        ENV{DEVPATH}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
        ATTR{new_id}&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; optionally create a convenience symlink for the console device&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, KERNEL&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
        ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
        ATTRS{bInterfaceNumber}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;01&amp;quot;, \&lt;br /&gt;
        SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
EOF}}&lt;br /&gt;
* Reset the device from the JTAG module (Mouton says: how? I tried to push the button, but that doesn't seem to reset the device... Do you mean login using the terminal emulator, and issue a reboot command..?)&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
{{Code|setenv mainlineLinux yes&lt;br /&gt;
setenv arcNumber 2097&lt;br /&gt;
setenv bootargs_root 'root&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;/dev/sda1 rootdelay&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;15'&lt;br /&gt;
setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
saveenv&lt;br /&gt;
reset}}&lt;br /&gt;
* In order to install the rootfs onto a flash or disk, mount the flash drive on a linux system and execute the [http://dl.amahi.org/marvell/create-clean-f12-disk.sh create-clean-f12-disk.sh] script. You'll need to have the [http://dl.amahi.org/marvell/amahi-marvell-0.5.tar.bz2 amahi-marvell-0.5.tar.bz2] file in the current directory. It may take a while, but this must be done before booting up the plug and installing Amahi.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This script is very dangerous (it can destroy the machine it is run on if not used properly). You will need to change the partition destination.&lt;br /&gt;
&lt;br /&gt;
* Insert USB Flash Drive into the plug.&lt;br /&gt;
* Once this is complete, the JTAG module can be disconnected.  There will be no need for serial connection any longer.  Once the USB Flash Drive is connected and the plug booted, you will be able to connect via SSH (default root password is &amp;quot;amahi&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
= Connecting to a Plug on a Mac =&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
{{Code|sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
screen /dev/tty.usbserial-[TAB]B 115200}}&lt;br /&gt;
&lt;br /&gt;
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. 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!&lt;br /&gt;
&lt;br /&gt;
= Using the onboard NAND flash as a swap drive =&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
= Misc Notes =&lt;br /&gt;
&lt;br /&gt;
* restarting rpm db in chrooted environment:&lt;br /&gt;
{{Code|rm /var/lib/rpm/__db*&lt;br /&gt;
rpm --rebuilddb -vv}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--* May need to add the following line to /etc/resolv.conf if you have DNS issues:&lt;br /&gt;
 nameserver 8.8.8.8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--  OLD NOTES&lt;br /&gt;
* 2 stop bits to get the bootloader to recognize keyboard and stop autobooting&lt;br /&gt;
* speed: 115200 /dev/ttyUSB1&lt;br /&gt;
* root/fedoraarm default password&lt;br /&gt;
* rpms installed for development: rsync, git, vim-enhanced, sudo, make, rpm-build, tar, httpd-devel, boot-devel, gcc-c++&lt;br /&gt;
* passenger: need rubygems-1.3.5-4.fc12.noarch.rpm with macro changes&lt;br /&gt;
* rpms installed for amahi: httpd, ruby, samba, &lt;br /&gt;
* build hdactl, hda-platform, install (with --nodeps)&lt;br /&gt;
&lt;br /&gt;
RPMs not available from the mirrors:&lt;br /&gt;
* hda-greyhole&lt;br /&gt;
* cadaver&lt;br /&gt;
* rubygem-gd2 - actually - is this one necessary?&lt;br /&gt;
* ruby-RMagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* ssh into the plug&lt;br /&gt;
* yum -y install httpd&lt;br /&gt;
&lt;br /&gt;
* Install the hda-release&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-release&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install hdactl&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hdactl&amp;quot; arch=&amp;quot;armv5tel&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now install &amp;lt;code&amp;gt;hda-platform&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-platform&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install dependencies:&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;yum -y install rubygems ruby-libs ruby-mysql&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the Amahi installer.&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;service amahi-installer start&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* And last but not least, get the installer going by accessing it with a browser:&lt;br /&gt;
       &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://your_ip_address:2000&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* input the install code and install!&lt;br /&gt;
* NOTE: it may be better to &lt;br /&gt;
* report bugs!--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42913</id>
		<title>Amahi Plug Edition</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42913"/>
		<updated>2011-07-15T10:41:14Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Amahi &amp;quot;Plug Edition&amp;quot; &amp;amp;mdash; How to run Amahi on your Plug Computer!&lt;br /&gt;
&lt;br /&gt;
For discussions see the [https://forums.amahi.org/viewforum.php?f=40 Amahi Plug Computer Forum].&lt;br /&gt;
&lt;br /&gt;
= Supported devices =&lt;br /&gt;
&lt;br /&gt;
* [http://www.ionicsplug.com/products.html Ionics Plugs]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-guruplugdetails.aspx GuruPlug]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdcdetails.aspx OpenRD Client]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdbdetails.aspx OpenRD Base] (unverified)&lt;br /&gt;
&lt;br /&gt;
Supported but not recommended, due to compatibility or speed:&lt;br /&gt;
&lt;br /&gt;
* [http://www.tonidoplug.com/ TonidoPlug]&lt;br /&gt;
* [http://www.plugapps.com/index.php5?title=Getting_Started:_Pogoplug Rooted] [http://www.pogoplug.com/ Pogoplug] &amp;amp;mdash; (256 RAM)&lt;br /&gt;
* [http://www.cs.cmu.edu/~ecc/dockstar-howto.html Rooted] [http://www.seagate.com/www/en-us/products/network_storage/freeagent_dockstar/ Seagate DockStar] &amp;amp;mdash; (128MB RAM - a little slow)&lt;br /&gt;
* Any other device based on the [http://plugcomputer.org Marvell Plug Computer]&lt;br /&gt;
&lt;br /&gt;
Known Issues:&lt;br /&gt;
* [http://www.globalscaletechnologies.com/p-35-openrd-ultimate.aspx OpenRD Ultimate] will need some tweaking as the current kernel does not support OpenRD Ultimate yet.&lt;br /&gt;
* eSata [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug] will need an updated kernel to support the eSata port ([http://bugs.amahi.org/issues/show/850 #850])&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
You'll need:&lt;br /&gt;
* A Linux Computer&lt;br /&gt;
* A storage device, of 2GB or more, that your plug computer can boot from&lt;br /&gt;
* The latest Amahi &amp;quot;rootfs&amp;quot; from the [http://dl.amahi.org/marvell/ Amahi4Plug repo] look for the latest file named '''amahi-marvell-*.tar.bz2'''&lt;br /&gt;
* [http://dl.amahi.org/marvell/create-amahi-f12-plug-disk.sh This script] to copy the above ''rootfs'' into your storage device. Important: you &amp;lt;u&amp;gt;will&amp;lt;/u&amp;gt; have to modify this script to suit your device, as it obliterates the content of it&lt;br /&gt;
&lt;br /&gt;
= Quick Overview =&lt;br /&gt;
&lt;br /&gt;
Because of the headless nature of the Plug devices, there are some more steps than the typical Amahi release to make things work smoothly.&lt;br /&gt;
&lt;br /&gt;
There are three major steps in getting things going&lt;br /&gt;
&lt;br /&gt;
; '''Step 1'''&lt;br /&gt;
: Download the latest [http://dl.amahi.org/marvell/ rootfs image] then use the script to extract and put it into an empty USB hard drive, USB flash drive, or SD card (depending on what your device supports). While it does that, you may want to setup a profile for your HDA at [http://www.amahi.org/ Amahi]&lt;br /&gt;
&lt;br /&gt;
; '''Step 2'''&lt;br /&gt;
: Boot your device using the drive or card you created in step 1. Find out the IP it got assigned from your existing DHCP server (typically your router). Alternately if you have console access log in at the console prompt (user: admin, password: amahi) and run /sbin/ifconfig. The ip address is at the second line of the eth0 section (inet addr)&lt;br /&gt;
&lt;br /&gt;
; '''Step 3'''&lt;br /&gt;
: Install Amahi, by loading &amp;lt;code&amp;gt;http://plug_ip:2000&amp;lt;/code&amp;gt; and entering the install code you got when you [https://www.amahi.org/user created your Amahi profile].&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
For a list of working / not working apps for plug computers, see [[Plug Apps| Plug Apps]] page. Also, please check and file any issues in the [http://bugs.amahi.org/projects/show/plug Amahi bug tracker project for the Plug port]&lt;br /&gt;
&lt;br /&gt;
= Detailed Installation Instructions =&lt;br /&gt;
&lt;br /&gt;
Fully detailed procedure.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Prepare your boot device ==&lt;br /&gt;
&lt;br /&gt;
Connect your boot device (USB hard drive, USB flash drive, or SD card) into a working Linux machine (you can use your plug computer!)&lt;br /&gt;
&lt;br /&gt;
If needed, partition your device to create a partition you'll use to boot. No need to format it.&lt;br /&gt;
&lt;br /&gt;
If a swap partition is desired (highly recommended for the PogoPlug &amp;amp; DockStar), create a second partition on your storage device, between 512MB and 2GB (depending on how big your storage device is), and format it as ''Linux Swap''.&lt;br /&gt;
&lt;br /&gt;
Example partitioning depending on your boot device type &amp;amp; size:&lt;br /&gt;
{| cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
! 2GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 4GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 8GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 16GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! USB Hard Drive&amp;lt;br/&amp;gt;(40+ GB)&lt;br /&gt;
|-&lt;br /&gt;
|2GB, unformatted&lt;br /&gt;
|4GB, unformatted&lt;br /&gt;
|512MB, Linux Swap&amp;lt;br/&amp;gt;7.5GB, unformatted&lt;br /&gt;
|1GB, Linux Swap&amp;lt;br/&amp;gt;15GB, unformatted&lt;br /&gt;
|2GB, Linux Swap&amp;lt;br/&amp;gt;The rest, unformatted&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Download the Amahi ''rootfs'' file and ''create-clean-f12-disk.sh'' script into your Linux machine. Don't store them on the storage device you want to use on your plug computer.&amp;lt;br/&amp;gt;&lt;br /&gt;
Edit the ''create-amahi-f12-plug-disk.sh'' script:&lt;br /&gt;
* Change the first line, the one that says '''partition=&amp;quot;...&amp;quot;''' to point to the partition you want to use to boot your plug computer.&amp;lt;br/&amp;gt;If you're not sure, '''ls -l /dev/disk/by-id/''' and see if you can find it there.&lt;br /&gt;
* Change the second line '''swap=&amp;quot;...&amp;quot;''' to point to the partition you want to use for swap.  If you do not have a swap partition just set this to a partition that does not exist.&lt;br /&gt;
* Change the third line, if needed. It should contain the name of the Amahi ''rootfs'' file you downloaded. Example: '''rootfs=&amp;quot;amahi-marvell-1.0.tar.bz2&amp;quot;'''&lt;br /&gt;
* Comment (add a # character at the beginning of) the two following lines, the ones that say '''echo &amp;quot;Please edit this script...''' and '''exit 0'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #B66; padding: .5em 1em; color: #000; background-color: #FEE; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
'''BIG WARNING! Putting the wrong partitions in this script will completely erase those partitions! Be careful what partitions you target!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the ''create-amahi-f12-plug-disk.sh'' script under root:&lt;br /&gt;
&lt;br /&gt;
      sh create-amahi-f12-plug-disk.sh&lt;br /&gt;
&lt;br /&gt;
== Step 2: Boot your plug ==&lt;br /&gt;
&lt;br /&gt;
Boot the plug computer with your newly created drive/card attached. Give it a few minutes to boot, and it will be ready for the Amahi installation.&lt;br /&gt;
&lt;br /&gt;
If you need help getting your plug computer to boot from USB or SD, instead of the on-board Flash memory, see our [[Marvell Plug Computer Booting]] page.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Install Amahi ==&lt;br /&gt;
&lt;br /&gt;
Note that for this step to work correctly, your plug computer needs to have access to Internet. Maybe you can just SSH into it, and ping www.amahi.org to make sure it works.&lt;br /&gt;
&lt;br /&gt;
Find the plug computer IP address (check your router DHCP logs or DHCP server), and launch the Amahi installer by visiting http://plug_computer_ip:2000&lt;br /&gt;
&lt;br /&gt;
(Use nmap or ping -b to find new devices on your LAN, if you can't find your plug computer IP address on your DHCP server.)&lt;br /&gt;
&lt;br /&gt;
It will ask for an install code. That code can be obtained by creating an Amahi profile here: https://www.amahi.org/user (you'll need to create an account first, if you don't already have one).&lt;br /&gt;
&lt;br /&gt;
== Enjoy ==&lt;br /&gt;
&lt;br /&gt;
After it reboots, access your HDA by logging in at &amp;lt;code&amp;gt;http://plug_computer_ip&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Username: admin&lt;br /&gt;
    Password: amahi&lt;br /&gt;
&lt;br /&gt;
The root password is: amahi&amp;lt;br/&amp;gt;&lt;br /&gt;
(Change it!)&lt;br /&gt;
&lt;br /&gt;
== Post Install Action ==&lt;br /&gt;
&lt;br /&gt;
If all seems to work, you can now disable your old DHCP server, and let your plug computer act as your new DHCP server.&lt;br /&gt;
&lt;br /&gt;
You'll need to [[RenewIP|release and then renew the IP address]] of your client computers, once your old DHCP server is disabled.&lt;br /&gt;
&lt;br /&gt;
You'll then be able to access the Amahi dashboard at http://hda, and your installed apps using http://app_name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you created a swap partition while partitioning your storage device, you might need to tell Amahi to use that partition for swap space. You'll need to change '''/dev/sda2''' for the real path to your swap partition. SSH into your Amahi server, and execute the following:&lt;br /&gt;
&lt;br /&gt;
     mkswap /dev/sda2&lt;br /&gt;
     swapon -a&lt;br /&gt;
&lt;br /&gt;
You will also need to edit the /etc/fstab file to use that new partition at startup&lt;br /&gt;
&lt;br /&gt;
Check that everything is now working with&lt;br /&gt;
&lt;br /&gt;
         free&lt;br /&gt;
&lt;br /&gt;
The total on the swap line should not be 0 if all worked out. Otherwise make sure the fstab has the right device for swapping.&lt;br /&gt;
&lt;br /&gt;
Note: On the SheevaPlug, the onboard NAND flash is called /dev/mtdblock2. You might want to use it as a swap partition, as it would be faster than your SD card or USB drive.&lt;br /&gt;
&lt;br /&gt;
= Customize and Extend =&lt;br /&gt;
&lt;br /&gt;
If you need customizations for your device, you can install the [http://fedoraproject.org/wiki/Architectures/ARM/CrossToolchain ARM cross compilation toolset] to compile things like the kernel, multimedia libraries, etc. etc.&lt;br /&gt;
&lt;br /&gt;
= Tips and Tricks =&lt;br /&gt;
Tips, tricks and howto's can be found at [[Plug Tips and Tricks]]&lt;br /&gt;
&lt;br /&gt;
= Known Issues =&lt;br /&gt;
* See [[Plug_warboard]] for documented issues.&lt;br /&gt;
&lt;br /&gt;
These are mostly what matter for debugging:&lt;br /&gt;
{{Code|/root/hda-install.log}}&lt;br /&gt;
&amp;lt;br&amp;gt;{{Code|egrep -v 'POST&amp;lt;nowiki&amp;gt;|GET|&amp;lt;/nowiki&amp;gt;progress' /tmp/amahi-ruby-install.log}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42907</id>
		<title>Plug notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42907"/>
		<updated>2011-07-15T10:35:37Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Note: Most of this information is duplicated elsewhere.  It needs to be verified and removed as necessary.'''&lt;br /&gt;
&lt;br /&gt;
See [[Amahi_Plug_Edition | Amahi_Plug_Edition]] for installation and supported devices.&lt;br /&gt;
&lt;br /&gt;
= Getting the plug booting Fedora 12 =&lt;br /&gt;
&lt;br /&gt;
Here are the steps to make the plug boot from USB&lt;br /&gt;
* General [http://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB directions]&lt;br /&gt;
* Connect the ethernet cable to your network (Mouton says: is this necessary now? Can't we just wait until the Amahi Install section below to connect the plug to the LAN?)&lt;br /&gt;
* 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).&lt;br /&gt;
* On Windows: install a driver (disc that came with plug), and [http://plugcomputer.org/plugwiki/index.php/SerialTerminal/Windows/PuTTY use PuTTY (serial)].&lt;br /&gt;
* On Linux, execute the following command, and use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&lt;br /&gt;
{{Text|Text=cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb&amp;quot;, ENV{DEVTYPE}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
        ATTRS{idVendor}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;0102&amp;quot;, \&lt;br /&gt;
        DRIVER&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;quot;, \&lt;br /&gt;
        RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
        ENV{DEVPATH}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
        ATTR{new_id}&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; optionally create a convenience symlink for the console device&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, KERNEL&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
        ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
        ATTRS{bInterfaceNumber}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;01&amp;quot;, \&lt;br /&gt;
        SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
EOF}}&lt;br /&gt;
* Reset the device from the JTAG module (Mouton says: how? I tried to push the button, but that doesn't seem to reset the device... Do you mean login using the terminal emulator, and issue a reboot command..?)&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
{{Code|setenv mainlineLinux yes&lt;br /&gt;
setenv arcNumber 2097&lt;br /&gt;
setenv bootargs_root 'root&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;/dev/sda1 rootdelay&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;15'&lt;br /&gt;
setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
saveenv&lt;br /&gt;
reset}}&lt;br /&gt;
* In order to install the rootfs onto a flash or disk, mount the flash drive on a linux system and execute the [http://dl.amahi.org/marvell/create-clean-f12-disk.sh create-clean-f12-disk.sh] script. You'll need to have the [http://dl.amahi.org/marvell/amahi-marvell-0.5.tar.bz2 amahi-marvell-0.5.tar.bz2] file in the current directory. It may take a while, but this must be done before booting up the plug and installing Amahi.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This script is very dangerous (it can destroy the machine it is run on if not used properly). You will need to change the partition destination.&lt;br /&gt;
&lt;br /&gt;
* Insert USB Flash Drive into the plug.&lt;br /&gt;
* Once this is complete, the JTAG module can be disconnected.  There will be no need for serial connection any longer.  Once the USB Flash Drive is connected and the plug booted, you will be able to connect via SSH (default root password is &amp;quot;amahi&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
= Connecting to a Plug on a Mac =&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
{{Code|sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
screen /dev/tty.usbserial-[TAB]B 115200}}&lt;br /&gt;
&lt;br /&gt;
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. 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!&lt;br /&gt;
&lt;br /&gt;
= Using the onboard NAND flash as a swap drive =&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
= Reporting issues =&lt;br /&gt;
&lt;br /&gt;
These are mostly what matter for debugging:&lt;br /&gt;
* {{Code|/root/hda-install.log}}&lt;br /&gt;
* {{Code|egrep -v 'POST&amp;lt;nowiki&amp;gt;|GET|&amp;lt;/nowiki&amp;gt;progress' /tmp/amahi-ruby-install.log}}&lt;br /&gt;
* See [[SP_warboard]] for documented issues.&lt;br /&gt;
&lt;br /&gt;
= Misc Notes =&lt;br /&gt;
&lt;br /&gt;
* restarting rpm db in chrooted environment:&lt;br /&gt;
{{Code|rm /var/lib/rpm/__db*&lt;br /&gt;
rpm --rebuilddb -vv}}&lt;br /&gt;
&lt;br /&gt;
= How to use two HDA on the same network =&lt;br /&gt;
[[How to use two HDA on the same network]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--* May need to add the following line to /etc/resolv.conf if you have DNS issues:&lt;br /&gt;
 nameserver 8.8.8.8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--  OLD NOTES&lt;br /&gt;
* 2 stop bits to get the bootloader to recognize keyboard and stop autobooting&lt;br /&gt;
* speed: 115200 /dev/ttyUSB1&lt;br /&gt;
* root/fedoraarm default password&lt;br /&gt;
* rpms installed for development: rsync, git, vim-enhanced, sudo, make, rpm-build, tar, httpd-devel, boot-devel, gcc-c++&lt;br /&gt;
* passenger: need rubygems-1.3.5-4.fc12.noarch.rpm with macro changes&lt;br /&gt;
* rpms installed for amahi: httpd, ruby, samba, &lt;br /&gt;
* build hdactl, hda-platform, install (with --nodeps)&lt;br /&gt;
&lt;br /&gt;
RPMs not available from the mirrors:&lt;br /&gt;
* hda-greyhole&lt;br /&gt;
* cadaver&lt;br /&gt;
* rubygem-gd2 - actually - is this one necessary?&lt;br /&gt;
* ruby-RMagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* ssh into the plug&lt;br /&gt;
* yum -y install httpd&lt;br /&gt;
&lt;br /&gt;
* Install the hda-release&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-release&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install hdactl&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hdactl&amp;quot; arch=&amp;quot;armv5tel&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now install &amp;lt;code&amp;gt;hda-platform&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-platform&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install dependencies:&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;yum -y install rubygems ruby-libs ruby-mysql&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the Amahi installer.&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;service amahi-installer start&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* And last but not least, get the installer going by accessing it with a browser:&lt;br /&gt;
       &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://your_ip_address:2000&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* input the install code and install!&lt;br /&gt;
* NOTE: it may be better to &lt;br /&gt;
* report bugs!--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42901</id>
		<title>Plug Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42901"/>
		<updated>2011-07-15T10:31:48Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page contains some tips, tricks and howto's for the plug distro. Feel free to add your own. &lt;br /&gt;
&lt;br /&gt;
= Setting the timezone =&lt;br /&gt;
&lt;br /&gt;
The timezone is not set on a new plug install (See [http://bugs.amahi.org/issues/show/757 #757].  To set it manually follow the steps below:&lt;br /&gt;
&lt;br /&gt;
* Login as root or su to root.&lt;br /&gt;
* choose from /usr/share/zoneinfo which timezone you want to set your plug to.&lt;br /&gt;
* Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime'''&lt;br /&gt;
* Issue the command '''hda-php-zone-change &amp;quot;Europe/Amsterdam&amp;quot;''' to set the timezone for PHP.&lt;br /&gt;
''Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.''&lt;br /&gt;
&lt;br /&gt;
= Useful commands =&lt;br /&gt;
The following useful commands are not installed by default:&lt;br /&gt;
* which&lt;br /&gt;
* man&lt;br /&gt;
* scp&lt;br /&gt;
* ssh&lt;br /&gt;
* make&lt;br /&gt;
&lt;br /&gt;
To install issue the command:&lt;br /&gt;
 yum -y install which man openssh-clients make&lt;br /&gt;
&lt;br /&gt;
= Copy a root filesystem from one disk to another =&lt;br /&gt;
This may be useful if you have set up things on a USB device and want to copy to an internal harddisk:&lt;br /&gt;
&lt;br /&gt;
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly&lt;br /&gt;
{{Code|&lt;br /&gt;
# /dev/sda1 is the target filesystem; must have an empty filesystem on it&lt;br /&gt;
mount /dev/sda1 /mnt&lt;br /&gt;
mkdir /mnt2&lt;br /&gt;
# /dev/sdb2 is the source filesystem&lt;br /&gt;
mount /dev/sdb1 /mnt2&lt;br /&gt;
cd  /mnt2&lt;br /&gt;
cp -ar * /mnt&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_warboard&amp;diff=42895</id>
		<title>Plug warboard</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_warboard&amp;diff=42895"/>
		<updated>2011-07-15T10:31:38Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For installation notes, etc. see [[Plug notes]].&lt;br /&gt;
&lt;br /&gt;
When you note a problem, please indicate what version you're running (0.2, 0.3, ...)&lt;br /&gt;
&lt;br /&gt;
= Warboard =&lt;br /&gt;
&lt;br /&gt;
* VPN works. the date needs to be set to something recent:&lt;br /&gt;
         date --set 'Thu May 27 16:44:57 EDT 2010'&lt;br /&gt;
         hwclock --systohc --utc&lt;br /&gt;
* tar and unzip need to be in the image:&lt;br /&gt;
         yum -y install tar unzip&lt;br /&gt;
* Greyhole *is* working&lt;br /&gt;
* crontab does not appear to be working&lt;br /&gt;
* had to add with noatime in / to prevent flash burnout&lt;br /&gt;
* should control monit - it keeps on pounding the flash with messages in /var/log/monit&lt;br /&gt;
* would like to add swap to flash based drives&lt;br /&gt;
* mt-daapd and amahi-transmission are dying&lt;br /&gt;
* ntpd is not installed??&lt;br /&gt;
  [root@fedora-arm ~]# date&lt;br /&gt;
  Sun Apr 30 06:57:12 EDT 2000&lt;br /&gt;
&lt;br /&gt;
= OpenVPN =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&lt;br /&gt;
      # service openvpn start&lt;br /&gt;
      Starting openvpn: FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
      FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
      FATAL: Module ip_tables not found.&lt;br /&gt;
      iptables v1.4.5: can't initialize iptables table `nat': iptables who? (do you need to insmod?)&lt;br /&gt;
      Perhaps iptables or your kernel needs to be upgraded.&lt;br /&gt;
                                                           [FAILED]&lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fixed =&lt;br /&gt;
&lt;br /&gt;
* local DNS server is not working for external hostnames (caused by dnssec enabled in named.conf). Workaround&lt;br /&gt;
          echo -e 'DNSSEC=&amp;quot;off&amp;quot;\nDLV=&amp;quot;off&amp;quot;' &amp;gt; /etc/sysconfig/dnssec&lt;br /&gt;
          service named restart&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42889</id>
		<title>Plug notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_notes&amp;diff=42889"/>
		<updated>2011-07-15T10:24:31Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Installation =&lt;br /&gt;
&lt;br /&gt;
See [[Amahi_Plug_Edition | Amahi_Plug_Edition]] for installation and supported devices.&lt;br /&gt;
&lt;br /&gt;
= Warboard and Apps =&lt;br /&gt;
&lt;br /&gt;
For known issues, check the [[Plug warboard | warboard]]&lt;br /&gt;
&lt;br /&gt;
= Applications =&lt;br /&gt;
&lt;br /&gt;
For known issues and working apps check the [[Plug Apps | Plug Apps]] page&lt;br /&gt;
&lt;br /&gt;
= Getting the plug booting Fedora 12 =&lt;br /&gt;
&lt;br /&gt;
Here are the steps to make the plug boot from USB&lt;br /&gt;
* General [http://fedoraproject.org/wiki/Architectures/ARM/SheevaplugUSB directions]&lt;br /&gt;
* Connect the ethernet cable to your network (Mouton says: is this necessary now? Can't we just wait until the Amahi Install section below to connect the plug to the LAN?)&lt;br /&gt;
* 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).&lt;br /&gt;
* On Windows: install a driver (disc that came with plug), and [http://plugcomputer.org/plugwiki/index.php/SerialTerminal/Windows/PuTTY use PuTTY (serial)].&lt;br /&gt;
* On Linux, execute the following command, and use [http://sourceforge.net/projects/gtkterm/ gtkterm]: use 2 stop bits &amp;amp; 115200 bps speed when creating the profile; keep the defaults for the rest. Instead of gtkterm, you can also use the simpler screen: ''yum -y install screen; screen /dev/ttyUSB1 115200''&lt;br /&gt;
{{Text|Text=cat &amp;gt; /etc/udev/rules.d/85-sheevaplug.rules &amp;lt;&amp;lt;'EOF'&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; if no driver has claimed the interface yet, load ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb&amp;quot;, ENV{DEVTYPE}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;usb_interface&amp;quot;, \&lt;br /&gt;
        ATTRS{idVendor}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c&amp;quot;, ATTRS{idProduct}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;0102&amp;quot;, \&lt;br /&gt;
        DRIVER&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;&amp;quot;, \&lt;br /&gt;
        RUN+=&amp;quot;/sbin/modprobe -b ftdi_sio&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; add the sheevaplug VID and PID to the list of devices supported by ftdi_sio&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, SUBSYSTEM&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;drivers&amp;quot;, \&lt;br /&gt;
        ENV{DEVPATH}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;/bus/usb-serial/drivers/ftdi_sio&amp;quot;, \&lt;br /&gt;
        ATTR{new_id}&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;&amp;quot;1c0c 0102&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; optionally create a convenience symlink for the console device&lt;br /&gt;
ACTION&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;add&amp;quot;, KERNEL&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;ttyUSB*&amp;quot;, \&lt;br /&gt;
        ATTRS{interface}==&amp;quot;SheevaPlug JTAGKey FT2232D B&amp;quot;, \&lt;br /&gt;
        ATTRS{bInterfaceNumber}&amp;lt;nowiki&amp;gt;==&amp;lt;/nowiki&amp;gt;&amp;quot;01&amp;quot;, \&lt;br /&gt;
        SYMLINK+=&amp;quot;sheevaplug&amp;quot;&lt;br /&gt;
EOF}}&lt;br /&gt;
* Reset the device from the JTAG module (Mouton says: how? I tried to push the button, but that doesn't seem to reset the device... Do you mean login using the terminal emulator, and issue a reboot command..?)&lt;br /&gt;
* 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&amp;gt;&amp;gt;'' prompt.&lt;br /&gt;
* There are some commands you need to run to make it permanently boot from the USB port ('''NOTE:''' this step is only necessary once):&lt;br /&gt;
{{Code|setenv mainlineLinux yes&lt;br /&gt;
setenv arcNumber 2097&lt;br /&gt;
setenv bootargs_root 'root&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;/dev/sda1 rootdelay&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;15'&lt;br /&gt;
setenv bootcmd_usb 'usb start; ext2load usb 0:1  0x6400000 /boot/uImage'&lt;br /&gt;
setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x6400000'&lt;br /&gt;
saveenv&lt;br /&gt;
reset}}&lt;br /&gt;
* In order to install the rootfs onto a flash or disk, mount the flash drive on a linux system and execute the [http://dl.amahi.org/marvell/create-clean-f12-disk.sh create-clean-f12-disk.sh] script. You'll need to have the [http://dl.amahi.org/marvell/amahi-marvell-0.5.tar.bz2 amahi-marvell-0.5.tar.bz2] file in the current directory. It may take a while, but this must be done before booting up the plug and installing Amahi.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' This script is very dangerous (it can destroy the machine it is run on if not used properly). You will need to change the partition destination.&lt;br /&gt;
&lt;br /&gt;
* Insert USB Flash Drive into the plug.&lt;br /&gt;
* Once this is complete, the JTAG module can be disconnected.  There will be no need for serial connection any longer.  Once the USB Flash Drive is connected and the plug booted, you will be able to connect via SSH (default root password is &amp;quot;amahi&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
= Connecting to a Plug on a Mac =&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
{{Code|sudo patch -p0 &amp;lt; ~/Desktop/Info.plist.patch&lt;br /&gt;
sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
sudo kextload /System/Library/Extensions/FTDIUSBSerialDriver.kext&lt;br /&gt;
screen /dev/tty.usbserial-[TAB]B 115200}}&lt;br /&gt;
&lt;br /&gt;
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. 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!&lt;br /&gt;
&lt;br /&gt;
= Amahi Install =&lt;br /&gt;
&lt;br /&gt;
After booting from it,&lt;br /&gt;
&lt;br /&gt;
* Configure a profile for the system in http://www.amahi.org. Pay attention to the IP of the HDA you configure. Let's call it PLUG_FIXED_IP.&lt;br /&gt;
* Ensure you have inserted the USB Flash Drive and boot the system&lt;br /&gt;
* Until we optimize things, it will take 4 or 5 minutes to boot the first time.&lt;br /&gt;
* The first time it boots, it will try to use DHCP. In my case, I configured a static IP so that when it boots with DHCP I know what IP it has. This may be different than the static you configured above.&lt;br /&gt;
Note that the sticker on the SP device with the MAC address on it is sometimes wrong. i.e. the MAC address your device will use will be different from the address on this sticker. Use nmap or ping -b to find new devices on your LAN, if you can't find it on your DHCP server.&lt;br /&gt;
* Access the installer via http://IP_OR_NAME_OF_THE_PLUG_IN_DHCP:2000/&lt;br /&gt;
* Wait patiently if it does not respond. This does require internet connectivity&lt;br /&gt;
* The installer takes about 1 minute to install with that :)&lt;br /&gt;
* Input the install code for that system&lt;br /&gt;
* When asked to, click the big red button to reboot&lt;br /&gt;
* The reboot will take a minute or two&lt;br /&gt;
* Access it with the configured IP:    http://IP_OR_NAME_OF_THE_PLUG/&lt;br /&gt;
* First login: admin/amahi. I will ask you to reset the password the first time&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' With about 1/8th of the rpms on a typical x86 install, you will experience a lot of failures with apps (VPN does not work, apps will be missing deps, etc. etc.).&lt;br /&gt;
&lt;br /&gt;
= Using the onboard NAND flash as a swap drive =&lt;br /&gt;
&lt;br /&gt;
{{Code|cfdisk /dev/mtdblock2}}&lt;br /&gt;
* Create a &amp;quot;Linux swap / Solaris&amp;quot; partition that takes all the space: &lt;br /&gt;
# remove any existing partitions, if any&lt;br /&gt;
# create a new primary partition&lt;br /&gt;
# select Type option, enter &amp;quot;82&amp;quot;&lt;br /&gt;
# select Write option&lt;br /&gt;
# select Quit option&lt;br /&gt;
{{Code|mkswap /dev/mtdblock2&lt;br /&gt;
echo &amp;quot;/dev/mtdblock2          swap                    swap    defaults        0 0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
swapon -a}}&lt;br /&gt;
&lt;br /&gt;
= Reporting issues =&lt;br /&gt;
&lt;br /&gt;
These are mostly what matter for debugging:&lt;br /&gt;
* {{Code|/root/hda-install.log}}&lt;br /&gt;
* {{Code|egrep -v 'POST&amp;lt;nowiki&amp;gt;|GET|&amp;lt;/nowiki&amp;gt;progress' /tmp/amahi-ruby-install.log}}&lt;br /&gt;
* See [[SP_warboard]] for documented issues.&lt;br /&gt;
&lt;br /&gt;
= Misc Notes =&lt;br /&gt;
&lt;br /&gt;
* restarting rpm db in chrooted environment:&lt;br /&gt;
{{Code|rm /var/lib/rpm/__db*&lt;br /&gt;
rpm --rebuilddb -vv}}&lt;br /&gt;
&lt;br /&gt;
= How to use two HDA on the same network =&lt;br /&gt;
[[How to use two HDA on the same network]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--* May need to add the following line to /etc/resolv.conf if you have DNS issues:&lt;br /&gt;
 nameserver 8.8.8.8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--  OLD NOTES&lt;br /&gt;
* 2 stop bits to get the bootloader to recognize keyboard and stop autobooting&lt;br /&gt;
* speed: 115200 /dev/ttyUSB1&lt;br /&gt;
* root/fedoraarm default password&lt;br /&gt;
* rpms installed for development: rsync, git, vim-enhanced, sudo, make, rpm-build, tar, httpd-devel, boot-devel, gcc-c++&lt;br /&gt;
* passenger: need rubygems-1.3.5-4.fc12.noarch.rpm with macro changes&lt;br /&gt;
* rpms installed for amahi: httpd, ruby, samba, &lt;br /&gt;
* build hdactl, hda-platform, install (with --nodeps)&lt;br /&gt;
&lt;br /&gt;
RPMs not available from the mirrors:&lt;br /&gt;
* hda-greyhole&lt;br /&gt;
* cadaver&lt;br /&gt;
* rubygem-gd2 - actually - is this one necessary?&lt;br /&gt;
* ruby-RMagick&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* ssh into the plug&lt;br /&gt;
* yum -y install httpd&lt;br /&gt;
&lt;br /&gt;
* Install the hda-release&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-release&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install hdactl&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hdactl&amp;quot; arch=&amp;quot;armv5tel&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now install &amp;lt;code&amp;gt;hda-platform&amp;lt;/code&amp;gt;&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;rpm -Uvh --nodeps &amp;lt;latest_rpm repo=&amp;quot;amahi-f12&amp;quot; rpm=&amp;quot;hda-platform&amp;quot; arch=&amp;quot;noarch&amp;quot; output=&amp;quot;url&amp;quot; /&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install dependencies:&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;yum -y install rubygems ruby-libs ruby-mysql&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start the Amahi installer.&lt;br /&gt;
** &amp;lt;small&amp;gt;&amp;lt;code&amp;gt;service amahi-installer start&amp;lt;/code&amp;gt;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* And last but not least, get the installer going by accessing it with a browser:&lt;br /&gt;
       &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://your_ip_address:2000&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* input the install code and install!&lt;br /&gt;
* NOTE: it may be better to &lt;br /&gt;
* report bugs!--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42883</id>
		<title>Plug Tips and Tricks</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Plug_Tips_and_Tricks&amp;diff=42883"/>
		<updated>2011-07-15T10:21:35Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page contains some tips, tricks and howto's for the plug distro. Feel free to add your own. &lt;br /&gt;
&lt;br /&gt;
= Setting the timezone =&lt;br /&gt;
&lt;br /&gt;
The timezone is not set on a new plug install (See [http://bugs.amahi.org/issues/show/757 #757].  To set it manually follow the steps below:&lt;br /&gt;
&lt;br /&gt;
* Login as root or su to root.&lt;br /&gt;
* choose from /usr/share/zoneinfo which timezone you want to set your plug to.&lt;br /&gt;
* Issue the command '''rm /etc/localtime; ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime'''&lt;br /&gt;
* Issue the command '''hda-php-zone-change &amp;quot;Europe/Amsterdam&amp;quot;''' to set the timezone for PHP.&lt;br /&gt;
''Obviously replace Europe/Amsterdam with whatever timezone you want to set the timezone to.''&lt;br /&gt;
&lt;br /&gt;
= Copy a root filesystem from one disk to another =&lt;br /&gt;
This may be useful if you have set up things on a USB device and want to copy to an internal harddisk:&lt;br /&gt;
&lt;br /&gt;
The code below assumes the old (usb) disk is at /dev/sdb1 and the new (internal) disk is at /dev/sda1. Substitute accordingly&lt;br /&gt;
{{Code|&lt;br /&gt;
# /dev/sda1 is the target filesystem; must have an empty filesystem on it&lt;br /&gt;
mount /dev/sda1 /mnt&lt;br /&gt;
mkdir /mnt2&lt;br /&gt;
# /dev/sdb2 is the source filesystem&lt;br /&gt;
mount /dev/sdb1 /mnt2&lt;br /&gt;
cd  /mnt2&lt;br /&gt;
cp -ar * /mnt&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42877</id>
		<title>Amahi Plug Edition</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42877"/>
		<updated>2011-07-15T10:15:48Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Amahi &amp;quot;Plug Edition&amp;quot; &amp;amp;mdash; How to run Amahi on your Plug Computer!&lt;br /&gt;
&lt;br /&gt;
For discussions see the [https://forums.amahi.org/viewforum.php?f=40 Amahi Plug Computer Forum].&lt;br /&gt;
&lt;br /&gt;
= Supported devices =&lt;br /&gt;
&lt;br /&gt;
* [http://www.ionicsplug.com/products.html Ionics Plugs]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-guruplugdetails.aspx GuruPlug]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdcdetails.aspx OpenRD Client]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdbdetails.aspx OpenRD Base] (unverified)&lt;br /&gt;
&lt;br /&gt;
Supported but not recommended, due to compatibility or speed:&lt;br /&gt;
&lt;br /&gt;
* [http://www.tonidoplug.com/ TonidoPlug]&lt;br /&gt;
* [http://www.plugapps.com/index.php5?title=Getting_Started:_Pogoplug Rooted] [http://www.pogoplug.com/ Pogoplug] &amp;amp;mdash; (256 RAM)&lt;br /&gt;
* [http://www.cs.cmu.edu/~ecc/dockstar-howto.html Rooted] [http://www.seagate.com/www/en-us/products/network_storage/freeagent_dockstar/ Seagate DockStar] &amp;amp;mdash; (128MB RAM - a little slow)&lt;br /&gt;
* Any other device based on the [http://plugcomputer.org Marvell Plug Computer]&lt;br /&gt;
&lt;br /&gt;
Known Issues:&lt;br /&gt;
* [http://www.globalscaletechnologies.com/p-35-openrd-ultimate.aspx OpenRD Ultimate] will need some tweaking as the current kernel does not support OpenRD Ultimate yet.&lt;br /&gt;
* eSata [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug] will need an updated kernel to support the eSata port ([http://bugs.amahi.org/issues/show/850 #850])&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
You'll need:&lt;br /&gt;
* A Linux Computer&lt;br /&gt;
* A storage device, of 2GB or more, that your plug computer can boot from&lt;br /&gt;
* The latest Amahi &amp;quot;rootfs&amp;quot; from the [http://dl.amahi.org/marvell/ Amahi4Plug repo] look for the latest file named '''amahi-marvell-*.tar.bz2'''&lt;br /&gt;
* [http://dl.amahi.org/marvell/create-amahi-f12-plug-disk.sh This script] to copy the above ''rootfs'' into your storage device. Important: you &amp;lt;u&amp;gt;will&amp;lt;/u&amp;gt; have to modify this script to suit your device, as it obliterates the content of it&lt;br /&gt;
&lt;br /&gt;
= Quick Overview =&lt;br /&gt;
&lt;br /&gt;
Because of the headless nature of the Plug devices, there are some more steps than the typical Amahi release to make things work smoothly.&lt;br /&gt;
&lt;br /&gt;
There are three major steps in getting things going&lt;br /&gt;
&lt;br /&gt;
; '''Step 1'''&lt;br /&gt;
: Download the latest [http://dl.amahi.org/marvell/ rootfs image] then use the script to extract and put it into an empty USB hard drive, USB flash drive, or SD card (depending on what your device supports). While it does that, you may want to setup a profile for your HDA at [http://www.amahi.org/ Amahi]&lt;br /&gt;
&lt;br /&gt;
; '''Step 2'''&lt;br /&gt;
: Boot your device using the drive or card you created in step 1. Find out the IP it got assigned from your existing DHCP server (typically your router). Alternately if you have console access log in at the console prompt (user: admin, password: amahi) and run /sbin/ifconfig. The ip address is at the second line of the eth0 section (inet addr)&lt;br /&gt;
&lt;br /&gt;
; '''Step 3'''&lt;br /&gt;
: Install Amahi, by loading &amp;lt;code&amp;gt;http://plug_ip:2000&amp;lt;/code&amp;gt; and entering the install code you got when you [https://www.amahi.org/user created your Amahi profile].&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
For a list of working / not working apps for plug computers, see [[Plug Apps| Plug Apps]] page. Also, please check and file any issues in the [http://bugs.amahi.org/projects/show/plug Amahi bug tracker project for the Plug port]&lt;br /&gt;
&lt;br /&gt;
= Detailed Installation Instructions =&lt;br /&gt;
&lt;br /&gt;
Fully detailed procedure.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Prepare your boot device ==&lt;br /&gt;
&lt;br /&gt;
Connect your boot device (USB hard drive, USB flash drive, or SD card) into a working Linux machine (you can use your plug computer!)&lt;br /&gt;
&lt;br /&gt;
If needed, partition your device to create a partition you'll use to boot. No need to format it.&lt;br /&gt;
&lt;br /&gt;
If a swap partition is desired (highly recommended for the PogoPlug &amp;amp; DockStar), create a second partition on your storage device, between 512MB and 2GB (depending on how big your storage device is), and format it as ''Linux Swap''.&lt;br /&gt;
&lt;br /&gt;
Example partitioning depending on your boot device type &amp;amp; size:&lt;br /&gt;
{| cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
! 2GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 4GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 8GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 16GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! USB Hard Drive&amp;lt;br/&amp;gt;(40+ GB)&lt;br /&gt;
|-&lt;br /&gt;
|2GB, unformatted&lt;br /&gt;
|4GB, unformatted&lt;br /&gt;
|512MB, Linux Swap&amp;lt;br/&amp;gt;7.5GB, unformatted&lt;br /&gt;
|1GB, Linux Swap&amp;lt;br/&amp;gt;15GB, unformatted&lt;br /&gt;
|2GB, Linux Swap&amp;lt;br/&amp;gt;The rest, unformatted&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Download the Amahi ''rootfs'' file and ''create-clean-f12-disk.sh'' script into your Linux machine. Don't store them on the storage device you want to use on your plug computer.&amp;lt;br/&amp;gt;&lt;br /&gt;
Edit the ''create-amahi-f12-plug-disk.sh'' script:&lt;br /&gt;
* Change the first line, the one that says '''partition=&amp;quot;...&amp;quot;''' to point to the partition you want to use to boot your plug computer.&amp;lt;br/&amp;gt;If you're not sure, '''ls -l /dev/disk/by-id/''' and see if you can find it there.&lt;br /&gt;
* Change the second line '''swap=&amp;quot;...&amp;quot;''' to point to the partition you want to use for swap.  If you do not have a swap partition just set this to a partition that does not exist.&lt;br /&gt;
* Change the third line, if needed. It should contain the name of the Amahi ''rootfs'' file you downloaded. Example: '''rootfs=&amp;quot;amahi-marvell-1.0.tar.bz2&amp;quot;'''&lt;br /&gt;
* Comment (add a # character at the beginning of) the two following lines, the ones that say '''echo &amp;quot;Please edit this script...''' and '''exit 0'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #B66; padding: .5em 1em; color: #000; background-color: #FEE; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
'''BIG WARNING! Putting the wrong partitions in this script will completely erase those partitions! Be careful what partitions you target!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the ''create-amahi-f12-plug-disk.sh'' script under root:&lt;br /&gt;
&lt;br /&gt;
      sh create-amahi-f12-plug-disk.sh&lt;br /&gt;
&lt;br /&gt;
== Step 2: Boot your plug ==&lt;br /&gt;
&lt;br /&gt;
Boot the plug computer with your newly created drive/card attached. Give it a few minutes to boot, and it will be ready for the Amahi installation.&lt;br /&gt;
&lt;br /&gt;
If you need help getting your plug computer to boot from USB or SD, instead of the on-board Flash memory, see our [[Marvell Plug Computer Booting]] page.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Install Amahi ==&lt;br /&gt;
&lt;br /&gt;
Note that for this step to work correctly, your plug computer needs to have access to Internet. Maybe you can just SSH into it, and ping www.amahi.org to make sure it works.&lt;br /&gt;
&lt;br /&gt;
Find the plug computer IP address (check your router DHCP logs or DHCP server), and launch the Amahi installer by visiting http://plug_computer_ip:2000&lt;br /&gt;
&lt;br /&gt;
(Use nmap or ping -b to find new devices on your LAN, if you can't find your plug computer IP address on your DHCP server.)&lt;br /&gt;
&lt;br /&gt;
It will ask for an install code. That code can be obtained by creating an Amahi profile here: https://www.amahi.org/user (you'll need to create an account first, if you don't already have one).&lt;br /&gt;
&lt;br /&gt;
== Enjoy ==&lt;br /&gt;
&lt;br /&gt;
After it reboots, access your HDA by logging in at &amp;lt;code&amp;gt;http://plug_computer_ip&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Username: admin&lt;br /&gt;
    Password: amahi&lt;br /&gt;
&lt;br /&gt;
The root password is: amahi&amp;lt;br/&amp;gt;&lt;br /&gt;
(Change it!)&lt;br /&gt;
&lt;br /&gt;
== Post Install Action ==&lt;br /&gt;
&lt;br /&gt;
If all seems to work, you can now disable your old DHCP server, and let your plug computer act as your new DHCP server.&lt;br /&gt;
&lt;br /&gt;
You'll need to [[RenewIP|release and then renew the IP address]] of your client computers, once your old DHCP server is disabled.&lt;br /&gt;
&lt;br /&gt;
You'll then be able to access the Amahi dashboard at http://hda, and your installed apps using http://app_name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you created a swap partition while partitioning your storage device, you might need to tell Amahi to use that partition for swap space. You'll need to change '''/dev/sda2''' for the real path to your swap partition. SSH into your Amahi server, and execute the following:&lt;br /&gt;
&lt;br /&gt;
     mkswap /dev/sda2&lt;br /&gt;
     swapon -a&lt;br /&gt;
&lt;br /&gt;
You will also need to edit the /etc/fstab file to use that new partition at startup&lt;br /&gt;
&lt;br /&gt;
Check that everything is now working with&lt;br /&gt;
&lt;br /&gt;
         free&lt;br /&gt;
&lt;br /&gt;
The total on the swap line should not be 0 if all worked out. Otherwise make sure the fstab has the right device for swapping.&lt;br /&gt;
&lt;br /&gt;
Note: On the SheevaPlug, the onboard NAND flash is called /dev/mtdblock2. You might want to use it as a swap partition, as it would be faster than your SD card or USB drive.&lt;br /&gt;
&lt;br /&gt;
= Customize and Extend =&lt;br /&gt;
&lt;br /&gt;
If you need customizations for your device, you can install the [http://fedoraproject.org/wiki/Architectures/ARM/CrossToolchain ARM cross compilation toolset] to compile things like the kernel, multimedia libraries, etc. etc.&lt;br /&gt;
&lt;br /&gt;
= Tips and Tricks =&lt;br /&gt;
Tips, tricks and howto's can be found at [[Plug Tips and Tricks]]&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42871</id>
		<title>Amahi Plug Edition</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Amahi_Plug_Edition&amp;diff=42871"/>
		<updated>2011-07-15T10:06:33Z</updated>

		<summary type="html">&lt;p&gt;Mattwire: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Amahi &amp;quot;Plug Edition&amp;quot; &amp;amp;mdash; How to run Amahi on your Plug Computer!&lt;br /&gt;
&lt;br /&gt;
For discussions see the [https://forums.amahi.org/viewforum.php?f=40 Amahi Plug Computer Forum].&lt;br /&gt;
&lt;br /&gt;
= Supported devices =&lt;br /&gt;
&lt;br /&gt;
* [http://www.ionicsplug.com/products.html Ionics Plugs]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-guruplugdetails.aspx GuruPlug]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdcdetails.aspx OpenRD Client]&lt;br /&gt;
* [http://www.globalscaletechnologies.com/t-openrdbdetails.aspx OpenRD Base] (unverified)&lt;br /&gt;
&lt;br /&gt;
Supported but not recommended, due to compatibility or speed:&lt;br /&gt;
&lt;br /&gt;
* [http://www.tonidoplug.com/ TonidoPlug]&lt;br /&gt;
* [http://www.plugapps.com/index.php5?title=Getting_Started:_Pogoplug Rooted] [http://www.pogoplug.com/ Pogoplug] &amp;amp;mdash; (256 RAM)&lt;br /&gt;
* [http://www.cs.cmu.edu/~ecc/dockstar-howto.html Rooted] [http://www.seagate.com/www/en-us/products/network_storage/freeagent_dockstar/ Seagate DockStar] &amp;amp;mdash; (128MB RAM - a little slow)&lt;br /&gt;
* Any other device based on the [http://plugcomputer.org Marvell Plug Computer]&lt;br /&gt;
&lt;br /&gt;
Known Issues:&lt;br /&gt;
* [http://www.globalscaletechnologies.com/p-35-openrd-ultimate.aspx OpenRD Ultimate] will need some tweaking as the current kernel does not support OpenRD Ultimate yet.&lt;br /&gt;
* eSata [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug] will need an updated kernel to support the eSata port ([http://bugs.amahi.org/issues/show/850 #850])&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
You'll need:&lt;br /&gt;
* A Linux Computer&lt;br /&gt;
* A storage device, of 2GB or more, that your plug computer can boot from&lt;br /&gt;
* The latest Amahi &amp;quot;rootfs&amp;quot; from the [http://dl.amahi.org/marvell/ Amahi4Plug repo] look for the latest file named '''amahi-marvell-*.tar.bz2'''&lt;br /&gt;
* [http://dl.amahi.org/marvell/create-amahi-f12-plug-disk.sh This script] to copy the above ''rootfs'' into your storage device. Important: you &amp;lt;u&amp;gt;will&amp;lt;/u&amp;gt; have to modify this script to suit your device, as it obliterates the content of it&lt;br /&gt;
&lt;br /&gt;
= Quick Overview =&lt;br /&gt;
&lt;br /&gt;
Because of the headless nature of the Plug devices, there are some more steps than the typical Amahi release to make things work smoothly.&lt;br /&gt;
&lt;br /&gt;
There are three major steps in getting things going&lt;br /&gt;
&lt;br /&gt;
; '''Step 1'''&lt;br /&gt;
: Download the latest [http://dl.amahi.org/marvell/ rootfs image] then use the script to extract and put it into an empty USB hard drive, USB flash drive, or SD card (depending on what your device supports). While it does that, you may want to setup a profile for your HDA at [http://www.amahi.org/ Amahi]&lt;br /&gt;
&lt;br /&gt;
; '''Step 2'''&lt;br /&gt;
: Boot your device using the drive or card you created in step 1. Find out the IP it got assigned from your existing DHCP server (typically your router). Alternately if you have console access log in at the console prompt (user: admin, password: amahi) and run /sbin/ifconfig. The ip address is at the second line of the eth0 section (inet addr)&lt;br /&gt;
&lt;br /&gt;
; '''Step 3'''&lt;br /&gt;
: Install Amahi, by loading &amp;lt;code&amp;gt;http://plug_ip:2000&amp;lt;/code&amp;gt; and entering the install code you got when you [https://www.amahi.org/user created your Amahi profile].&lt;br /&gt;
&lt;br /&gt;
= Known issues =&lt;br /&gt;
&lt;br /&gt;
For a list of working / not working apps for plug computers, see [[Plug Apps|Apps page]]. Also, please check and file any issues in the [http://bugs.amahi.org/projects/show/plug Amahi bug tracker project for the Plug port]&lt;br /&gt;
&lt;br /&gt;
= Detailed Installation Instructions =&lt;br /&gt;
&lt;br /&gt;
Fully detailed procedure.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Prepare your boot device ==&lt;br /&gt;
&lt;br /&gt;
Connect your boot device (USB hard drive, USB flash drive, or SD card) into a working Linux machine (you can use your plug computer!)&lt;br /&gt;
&lt;br /&gt;
If needed, partition your device to create a partition you'll use to boot. No need to format it.&lt;br /&gt;
&lt;br /&gt;
If a swap partition is desired (highly recommended for the PogoPlug &amp;amp; DockStar), create a second partition on your storage device, between 512MB and 2GB (depending on how big your storage device is), and format it as ''Linux Swap''.&lt;br /&gt;
&lt;br /&gt;
Example partitioning depending on your boot device type &amp;amp; size:&lt;br /&gt;
{| cellpadding=&amp;quot;7&amp;quot;&lt;br /&gt;
! 2GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 8GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! 16GB Flash Drive&amp;lt;br/&amp;gt;or SD Card&lt;br /&gt;
! USB Hard Drive&amp;lt;br/&amp;gt;(40+ GB)&lt;br /&gt;
|-&lt;br /&gt;
|2GB, unformatted&lt;br /&gt;
|512MB, Linux Swap&amp;lt;br/&amp;gt;7.5GB, unformatted&lt;br /&gt;
|1GB, Linux Swap&amp;lt;br/&amp;gt;15GB, unformatted&lt;br /&gt;
|2GB, Linux Swap&amp;lt;br/&amp;gt;The rest, unformatted&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Download the Amahi ''rootfs'' file and ''create-clean-f12-disk.sh'' script into your Linux machine. Don't store them on the storage device you want to use on your plug computer.&amp;lt;br/&amp;gt;&lt;br /&gt;
Edit the ''create-amahi-f12-plug-disk.sh'' script:&lt;br /&gt;
* Change the first line, the one that says '''partition=&amp;quot;...&amp;quot;''' to point to the partition you want to use to boot your plug computer.&amp;lt;br/&amp;gt;If you're not sure, '''ls -l /dev/disk/by-id/''' and see if you can find it there.&lt;br /&gt;
* Change the second line, if needed. It should contain the name of the Amahi ''rootfs'' file you downloaded. Example: '''rootfs=&amp;quot;amahi-marvell-0.9.tar.bz2&amp;quot;'''&lt;br /&gt;
* Comment (add a # character at the beginning of) the two following lines, the ones that say '''echo &amp;quot;Please edit this script...''' and '''exit 0'''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 1px solid #B66; padding: .5em 1em; color: #000; background-color: #FEE; margin: 3px 3px 1em 3px;&amp;quot;&amp;gt;&lt;br /&gt;
'''BIG WARNING! Putting the wrong partitions in this script will completely erase those partitions! Be careful what partitions you target!&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the ''create-amahi-f12-plug-disk.sh'' script under root:&lt;br /&gt;
&lt;br /&gt;
      sh create-amahi-f12-plug-disk.sh&lt;br /&gt;
&lt;br /&gt;
== Step 2: Boot your plug ==&lt;br /&gt;
&lt;br /&gt;
Boot the plug computer with your newly created drive/card attached. Give it a few minutes to boot, and it will be ready for the Amahi installation.&lt;br /&gt;
&lt;br /&gt;
If you need help getting your plug computer to boot from USB or SD, instead of the on-board Flash memory, see our [[Marvell Plug Computer Booting]] page.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Install Amahi ==&lt;br /&gt;
&lt;br /&gt;
Note that for this step to work correctly, your plug computer needs to have access to Internet. Maybe you can just SSH into it, and ping www.amahi.org to make sure it works.&lt;br /&gt;
&lt;br /&gt;
Find the plug computer IP address (check your router DHCP logs or DHCP server), and launch the Amahi installer by visiting http://plug_computer_ip:2000&lt;br /&gt;
&lt;br /&gt;
(Use nmap or ping -b to find new devices on your LAN, if you can't find your plug computer IP address on your DHCP server.)&lt;br /&gt;
&lt;br /&gt;
It will ask for an install code. That code can be obtained by creating an Amahi profile here: https://www.amahi.org/user (you'll need to create an account first, if you don't already have one).&lt;br /&gt;
&lt;br /&gt;
== Enjoy ==&lt;br /&gt;
&lt;br /&gt;
After it reboots, access your HDA by logging in at &amp;lt;code&amp;gt;http://plug_computer_ip&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    Username: admin&lt;br /&gt;
    Password: amahi&lt;br /&gt;
&lt;br /&gt;
The root password is: amahi&amp;lt;br/&amp;gt;&lt;br /&gt;
(Change it!)&lt;br /&gt;
&lt;br /&gt;
== Post Install Action ==&lt;br /&gt;
&lt;br /&gt;
If all seems to work, you can now disable your old DHCP server, and let your plug computer act as your new DHCP server.&lt;br /&gt;
&lt;br /&gt;
You'll need to [[RenewIP|release and then renew the IP address]] of your client computers, once your old DHCP server is disabled.&lt;br /&gt;
&lt;br /&gt;
You'll then be able to access the Amahi dashboard at http://hda, and your installed apps using http://app_name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you created a swap partition while partitioning your storage device, you might need to tell Amahi to use that partition for swap space. You'll need to change '''/dev/sda2''' for the real path to your swap partition. SSH into your Amahi server, and execute the following:&lt;br /&gt;
&lt;br /&gt;
     mkswap /dev/sda2&lt;br /&gt;
     swapon -a&lt;br /&gt;
&lt;br /&gt;
You will also need to edit the /etc/fstab file to use that new partition at startup&lt;br /&gt;
&lt;br /&gt;
Check that everything is now working with&lt;br /&gt;
&lt;br /&gt;
         free&lt;br /&gt;
&lt;br /&gt;
The total on the swap line should not be 0 if all worked out. Otherwise make sure the fstab has the right device for swapping.&lt;br /&gt;
&lt;br /&gt;
Note: On the SheevaPlug, the onboard NAND flash is called /dev/mtdblock2. You might want to use it as a swap partition, as it would be faster than your SD card or USB drive.&lt;br /&gt;
&lt;br /&gt;
= Customize and Extend =&lt;br /&gt;
&lt;br /&gt;
If you need customizations for your device, you can install the [http://fedoraproject.org/wiki/Architectures/ARM/CrossToolchain ARM cross compilation toolset] to compile things like the kernel, multimedia libraries, etc. etc.&lt;br /&gt;
&lt;br /&gt;
= Tips and Tricks =&lt;br /&gt;
Tips, tricks and howto's can be found at [[Plug Tips and Tricks]]&lt;/div&gt;</summary>
		<author><name>Mattwire</name></author>
		
	</entry>
</feed>