Difference between revisions of "Getting started with Linux on EM-X270"

From Compulab Mediawiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Image installation ==
+
#REDIRECT [[EM-X270: Linux: Getting started]]
 
 
=== Installation with LiveDisk ===
 
 
 
* Extract the contents of {{filename|LiveDisk.zip}} from [http://www.compulab.co.il/x270em/download/x270-em-linux.zip Linux package for EM-X270] onto USB flash drive.
 
* Insert the flash drive into "USB-A to mini-USB" adaptor supplied with EvalKit, and connect the other side of the adaptor to EM-X270.
 
* Power up the EM-X270 while holding the "suspend/resume" button. You may release the button as soon as you see CompuLab logo on the LCD screen.
 
* Wait until systems starts. You will be asked to calibrate the touchscreen and create a user to log in to the system
 
* Click on the '''Updater''' icon. EM-X270 updater application will start.
 
*: [[Image:em_x270_updater_screen.png]]
 
* Click '''Forward''' to continue, or '''Cancel''' if you decided to abandon the installation
 
*: [[Image:em_x270_updater_intro.png]]
 
* By default, updater application will search for {{filename|/media/usb/em_x270.img}} image file. Press '''Open''' or fill the filename entry to choose another image.
 
* After you've chosen the image, press '''Forward'''.
 
*: [[Image:em_x270_updater_file.png]]
 
* Press '''Start!''' button to update EM-X270.
 
*: [[Image:em_x270_updater_start.png]]
 
{{caution|
 
Make sure you do not interrupt the updater application after pressing '''Start!''', keep the USB flash drive inserted and the device powered up during the update process.
 
}}
 
{{tip|
 
Any time you would like to boot clean system from the USB flash drive, you can unpack the original LiveDisk.zip to the USB flash drive and start over.
 
}}
 
* Proceed to [[Getting_started_with_Linux_on_EM-X270#After_installation_and_restart|After installation and restart]] section.
 
 
 
=== Installation using NFS ===
 
 
 
* Follow the steps in [[Linux_Development_for_XScale_modules#Networked_Root_Filesystem|Networked Root Filesystem Guide]]
 
* Make sure to power off the EM-X270
 
* Connect EM-X270's ETH0 port to your local Ethernet
 
* Connect your host PC to the EM-X270 via a null modem cable supplied with the Eval Kit.
 
* Start terminal emulation software on your PC using the COM port to which the null modem is connected and configure it as described in [http://www.compulab.co.il/x270em/download/x270-em-uboot.zip EM-X270's U-Boot documentation].
 
* Power up the EM-X270. U-Boot will start and you will get the command prompt in your terminal program.
 
{{Note|If the boot settings of your EM-X270 are set to load the operating system, you may need to press and hold ^C while turning the EM-X270 on, in order to get command prompt.}}
 
* You can use U-boot {{cmd|dhcp}} command to obtain IP address or manually set {{parameter|ipaddr}} and {{parameter|serverip}} environment variables:
 
<pre>
 
> setenv serverip <host ip address>
 
> setenv ipaddr <EM-X270 ip address>
 
> saveenv
 
</pre>
 
* Next environment settings are passed to Linux Kernel and are needed for NFS root:
 
<pre>
 
> setenv bootargs "root=/dev/nfs nfsroot=<your host ip>:/path/to/rootfs console=ttyS0,115200 ip=dhcp"
 
</pre>
 
{{Note|If {{parameter|boot_mode}} environment variable is set to {{parameter|linux}} or {{parameter|wince}}, then it should be changed to {{parameter|install}} and {{parameter|bootcmd}} variable should be unset, so U-Boot will not override the {{parameter|bootargs}} variable.}}
 
* Use the following U-boot command to boot Linux on EM-X270:
 
<pre>
 
> tftp a0100000 uImage && bootm
 
</pre>
 
* After the image is loaded you will get Linux login prompt. Login as {{parameter|root}} into the system.
 
* Copy the kernel and Angstrom jffs2 files from {{filename|em_x270.img}} (ext2 image inside {{filename|LiveDisk.zip}}) to USB stick or NFS share, so you can access them from EM-X270.
 
* Now you can install kernel and filesystem images to the NAND flash either from USB stick or NFS share using standart Linux MTD utilities ({{cmd|flash_eraseall, nandwrite}}).
 
* Proceed to [[Getting_started_with_Linux_on_EM-X270#After_installation_and_restart|After installation and restart]] section.
 
 
 
=== After installation and restart ===
 
 
 
* After the installation proccess completed successfully, U-Boot on EM-X270 needs the following environment variables set prior to booting from NAND flash:
 
<pre>
 
> setenv boot_angstrom "setenv bootargs root=/dev/mtdblock5 rw rootfstype=jffs2 console=ttyS0,115200; fsload a0100000 uImage && bootm;"
 
> setenv boot_mode linux
 
> setenv nand_mode on
 
> saveenv
 
</pre>
 
* Now you can reset the EM-X270 and it will boot Angstrom Linux from the internal NAND flash. Note, that the first boot takes relatively much time because Angstrom Linux performs a lot of one-time initialization tasks.
 
 
 
== See also ==
 
 
 
* [[Angstrom Linux for EM-X270]]
 
* [[Linux Development for XScale modules]]
 

Latest revision as of 08:04, 23 December 2009