Changes

From Amahi Wiki
Jump to: navigation, search
1,705 bytes added ,  16:15, 5 April 2014
no edit summary
{{MessageBox|backgroundcolor = #FBB|
image =Warning.png|
heading =WARNING|
message = '''DEPRECATED'''<br>This is no longer supported.}}
 
 
Amahi "Plug Edition" &mdash; How to run Amahi on your Plug Computer!
* [http://www.globalscaletechnologies.com/t-guruplugdetails.aspx GuruPlug]
* [http://en.wikipedia.org/wiki/SheevaPlug SheevaPlug]
* [http://www.globalscaletechnologies.com/t-openrdcdetails.aspx OpenRD Client]
* [http://www.globalscaletechnologies.com/t-openrdbdetails.aspx OpenRD Base] (unverified)
Supported but not recommended, due to compatibility or speed:
* [http://www.cs.cmu.edu/~ecc/dockstar-howto.html Rooted] [http://www.seagate.com/www/en-us/products/network_storage/freeagent_dockstar/ Seagate DockStar] &mdash; (128MB RAM - a little slow)
* Any other device based on the [http://plugcomputer.org Marvell Plug Computer]
 
Known Issues:
* [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.
* 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])
= Requirements =
You'll need:
* A Linux Computer
* A storage device, of 2GB or more, that your plug computer can boot from
* The latest Amahi "rootfs" from the [http://dl.amahi.org/marvell/ Amahi4Plug repo] look for the latest file named '''amahi-marvell-*.tar.bz2'''
; '''Step 2'''
: 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)
; '''Step 3'''
= Known issues =
For a list of working / not working apps for plug computers, see [[SP Plug Apps|Plug Apps page]]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]
= Detailed Installation Instructions =
{| cellpadding="7"
! 2GB Flash Drive<br/>or SD Card
! 4GB Flash Drive<br/>or SD Card
! 8GB Flash Drive<br/>or SD Card
! 16GB Flash Drive<br/>or SD Card
|-
|2GB, unformatted
|4GB, unformatted
|512MB, Linux Swap<br/>7.5GB, unformatted
|1GB, Linux Swap<br/>15GB, unformatted
Edit the ''create-amahi-f12-plug-disk.sh'' script:
* Change the first line, the one that says '''partition="..."''' to point to the partition you want to use to boot your plug computer.<br/>If you're not sure, '''ls -l /dev/disk/by-id/''' and see if you can find it there.
* Change the second line '''swap="..."''' 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.* Change the third line, if needed. It should contain the name of the Amahi ''rootfs'' file you downloaded. Example: '''rootfs="amahi-marvell-1.0.9.tar.bz2"'''
* Comment (add a # character at the beginning of) the two following lines, the ones that say '''echo "Please edit this script...''' and '''exit 0'''.
<font color="red" div style="fontborder: 1px solid #B66; padding: .5em 1em; color: #000; background-weightcolor: #FEE; margin: bold3px 3px 1em 3px;">Big Warning'''BIG WARNING! Putting the wrong partitions in this script will completely erase those partitions! Be careful what partitions you target!</fontdiv>
Run the ''create-amahi-f12-plug-disk.sh'' scriptunder root:
sh create-amahi-f12-plug-disk.sh
== Step 2: Boot your plug ==
== Post Install Action ==
If all seems to work, you can now disable your old DHCP server, and let your plug computer act as your new DHCP server.<br/> You'll need to [[RenewIP|release and then renew the IP address]] of your client computers, once your old DHCP server is disabled.<br/> 
You'll then be able to access the Amahi dashboard at http://hda, and your installed apps using http://app_name
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:
mkswap /dev/sda2 swapon -a
You will also need to edit the /etc/fstab file to use that new partition at startup
Check that everything is now working with
free
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.
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.
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.
 
= Tips and Tricks =
Tips, tricks and howto's can be found at [[Plug Tips and Tricks]]
 
= Known Issues =
* See the [http://bugs.amahi.org/projects/show/plug bug tracker] for reported bugs against the plug edition.
* See [[Plug_warboard]] for documented issues.
 
These are mostly what matter for debugging:
{{Code|/root/hda-install.log}}
<br>{{Code|egrep -v 'POST<nowiki>|GET|</nowiki>progress' /tmp/amahi-ruby-install.log}}
12,424

edits