Difference between revisions of "How to forge a local file system server with IGEPv2 Board"
From IGEP - ISEE Wiki
Line 61: | Line 61: | ||
- [http://gitorious.org/owncloud/owncloud/archive-tarball/master Owncloud software] | - [http://gitorious.org/owncloud/owncloud/archive-tarball/master Owncloud software] | ||
− | - [http:// | + | - [http://labs.igep.es/index.php/Linux_Kernel_2.6.35.y Kernel 2.6.35.y] |
- [http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] | - [http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] |
Revision as of 13:12, 26 October 2011
Contents
Introduction
Objectives
This project aims to create a local file system server using ARM Platform. It is very useful for this purpose for the next reasons:
-ARM is designed for low power consumption. This server should be connected to power supply all the day, if you use this architecture you can lower your electric bill.
-ARM-Embedded is usually cheaper than a X86-Embedded processor.
-If you have a good internet broadband, is not difficult to configure your server to accept external http request.
-Your data are 100% under your control, other services you don't know where are your files.
-Commercial services offer premium accounts with extra hard disk space, in your server you can use all the space as your HD or SD supports.
When you finish this how-to, you will have your own local web service similar than Dropbox and SugarSync. Your service will powered by Owncloud.org software. I used for this tutorial Owncloud 3 alpha 1 release to prove all new characteristics, but you can follow this tutorial using the stable version. There characteristics are: File management, WebDAV access, sharing, music streaming, calendar, contacts, users & groups, image gallery, online text editor, online task manager and bookmarks. For more information go to Owncloud.org page.
Limitations
When i finished this project, i tested the system performance making some tests. After this i did the next conclusions:
- If you upload a folder with more than 100 files, i recommend that you compress it before the upload.
- Don't compress via Web a folder large than 100 MB, use WebDAV for download it.
- Don't upload more than 750 MB via Web, use WebDAV for this purpose.
- The Web uses HTML5 technology, it tested with Firefox 7 and Chromium 14 browser and mobile phone with IOS 4.3.3. Older browsers maybe have problems.
Hardware Used
The hardware used for this project is:
- IGEPv2 Board Revision C with 1 GHz Processor and 512MB Ram.
- 5 V power supply.
- MicroSD card 2GB at least with SD card adapter.
- IGEPv2 Serial Debug cable, it isn't necessary later.
- Ethernet cable.
- Switch or Router.
- External USB Hard Disk with USB cable.
Software Used
I used a laptop with Ubuntu 10.04 environment to make this how-to, but most of the contents are valid also for other GNU/Linux distributions. We do not issue any guarantee that this will work on other distributions. I used the following software:
- Linaro Headless: is a minimal Linaro distribution, i used: linaro-m-headless-tar-20101108-2.tar.gz.
- Gparted
- Igep-x-loader-2.1.0-3.tar.bz2
- Linaro Toolchain
- LAMP
- OpenSSH Server
Under construction
Installing Linaro Headless
Using this tutorial(microSD) and this other(IGEPxloader) to install Linaro Headless in your SD card. I run well with the software detailed above. Use igep0020_config to make MLO file. Is not necessary to compile the Kernel if you don't need it, but it's necessary that its name is zImage.
Create a new file into the boot partition named igep.ini with these content and save the file.
[kernel] ; Kernel load address, NOT Modify kaddress=0x80008000 ; RAM disk load Address, NOT Modify ;rdaddress=0x84000000 ; Board Serial ID serial.low=00000001 serial.high=00000000 ; Board Revision revision=0003 ; Kernel Image Name kImageName=zImage ; Kernel RAM Disk Image Name ;kRdImageName=initrd.img-2.6.35-1010-linaro-omap MachineID=2344 ; Where Machine ID = 2344 for IGEPv2 and ID = 2717 for IGEP Module [kparams] ;buddy=igep0022 ;buddy=base0010 ; Setup the Kernel console params console=ttyS2,115200n8 ; Enable early printk ;earlyprintk=serial,ttyS2,115200 ; Setup the Board Memory Configuration ;mem=430M mem=512M ; Setup the Boot Delay boot_delay=0 ; Setup the ARM Processor Speed ;mpurate=800 ; Setup the loglevel ;loglevel=7 ; Enable Kernel Debug Output ;debug=1 ; Fix RTC Variable ;fixrtc=1 ; Configure nocompcache variable nocompcache=1 ; Configure Frame Buffer Configuration ;omapfb.mode=dvi:1280x720MR-16@60 ;omapfb.mode=dvi:hd720-16@60 ; Configure Video Ram assigned vram=40M ; Configure Video RAM assigned to every frame buffer omapfb.vram=0:12M,1:16M,2:12M ; Configure frame buffer debug output ;omapfb.debug=1 ; Configure DSS Video Debug option ;omapdss.debug=1 ; Configure the Board Ethernet Mac Address smsc911x.mac=0xb2,0xb1,0x1f,0xb5,0xcd,0xdf ; --- Configure UBI FS boot --- ;ubi.mtd=2 ;root=ubi0:igep0020-rootfs ;rootfstype=ubifs ; --- Configure NFS boot --- ;ip=192.168.2.123:192.168.2.129:192.168.2.1:255.255.255.0::eth0: ;root=/dev/nfs ;nfsroot=192.168.2.129:/srv/nfs/igep_rootfs ; --- Configure MMC boot --- root=/dev/mmcblk0p2 rw rootwait ; Assign Init program ;init=/bin/bash
NOTE: I recomend change MAC adress.
Set up internet connection
Under construction
Creating and editing Server Users
Under construction
Installing Open SSH Server
Under construction
Installing LAMP
Apache
Under construction
PHP
Under construction
MySQL
Under construction
PHPmyAdmin
Under construction
Enabling Automatic Updates
Under construction
Set up a External HD
Under construction
Set up Owncloud.org Software
Installing Owncloud.org
Under construction
Configuring Owncloud.org
Under construction
Configuring Apache and PHP for Owncloud
Under construction