COM iMX25 Linux: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
Christoph (talk | contribs)
Christoph (talk | contribs)
No edit summary
Line 1: Line 1:
==<br/>FAQ ==
==<br/>FAQ ==


==<br/>Virtual machine for development ==
==<br/>Linux virtual machine for development ==


=== Get the VM ===
=== Get the Virtual machine ===
* [http://www.vmware.com/go/get-player-de Get the VMware player]
* [http://www.vmware.com/go/get-player-de Get the VMware player]


* [http://dl.dropbox.com/u/19433555/Debian%20Squeeze%20v1.1.zipx Debian Squeeze VMware Image (zipx Archiv)] Passwords: devel:devel / root:root
* [http://dl.dropbox.com/u/19433555/Debian%20Squeeze%20v1.1.zipx Debian Squeeze VMware Image (zipx Archiv)]<br/>Password for devel user: '''devel'''<br/>Password for root user: '''root'''
 
  History:
  History:
   
   
Line 23: Line 24:
=== Sources for the iMX25 Kernel: ===
=== Sources for the iMX25 Kernel: ===


* [http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2 Kernel version: 2.6.38]
* [http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2 Kernel version: 2.6.38 from www.kernel.org]


* [[media:Linux-2.6.38_DHCOM_iMX25_patch.zip|Patch to DHCOM iMX25 Linux (2011-09-22)]]
* [[media:Linux-2.6.38_DHCOM_iMX25_patch.zip|Patch to DHCOM iMX25 Linux (2011-09-22)]]
Line 31: Line 32:
=== How to build a kernel: ===
=== How to build a kernel: ===


  1. tar xfjv linux-2.6.38.tar.bz2
  1. Start the Console on Linux
  2. cd /kernel/path
2. $ tar xfjv linux-2.6.38.tar.bz2
  3. patch -p1 <linux-2.6.38_DHCOM_iMX25.patch
  3. $ cd /kernel/path
  4. cp .config /kernel/path
  4. $ patch -p1 <linux-2.6.38_DHCOM_iMX25.patch
  5. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage
  5. $ cp .config /kernel/path
  6. $ ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage
   
   
  The uImage file will you find in ../build-linux/arch/arm/boot
  The uImage file will you find in ../build-linux/arch/arm/boot


==<br/>Update the Kernel ==
==<br/>Update the kernel with U-Boot ==
 
You can update the linux kernel with [[COM iMX25 Bootloader U-Boot#Flash Update|U-Boot flash update]].


* [[media:Linux-2.6.38_DHCOM_iMX25_kernel.zip|Current built of the 2.6.38 DHCOM iMX25 linux kernel (2011-09-22)]]
* [[media:Linux-2.6.38_DHCOM_iMX25_kernel.zip|Current built of the 2.6.38 DHCOM iMX25 linux kernel (2011-09-22)]]


  1. Go to the U-Boot console by pressing <Return> on a RS232 terminal (during startup)
  1. Go to the U-Boot console by pressing <Return> on a RS232 terminal (during startup)
  2. update linux
  2. $ update linux
 
==<br/>How to use/update our root file system ==
 
* [http://dl.dropbox.com/u/19433555/rootFS_DN_20110805ext4_HL1%20%2806.12.2011%29.tar.bz2 Current Debian root file system (2011-12-06)]


==<br/>How to use our root file system ==
  1. Format a SD card with ext3 file system (e.g. you can use palimpsest)
  1. Format a SD card with ext3 file system (you can use palimpsest)
    $ palimpsest
  2. Copy root file system onto the SD card
  2. Copy root file system onto the SD card
     -Start terminal
     Start the Console on Linux
     -su
     $ su
     -chmod 755 /directory/of/the/SD-card
     $ chmod 755 /path/of/the/SD-card
     -cd /directory/of/the/SD-card
     $ cd /path/of/the/SD-card
     -tar jxvf rootFS_file.tar.bz2
     $ tar xfjv Name_of_RootFS_file.tar.bz2


==<br/>How to control the display brightness ==
==<br/>How to control the display brightness ==
  echo <value> >/sys/class/leds/pwm:out/brightness
  $ echo <value> >/sys/class/leds/pwm:out/brightness
   
   
  value range: 0..255
  value range: 0..255
Line 67: Line 75:
  For the Qt-Browser change demoname to browser
  For the Qt-Browser change demoname to browser
=== Login/Shutdown system ===
=== Login/Shutdown system ===
  Name:    root
  Login:
password: foo
  Name:    root
  password: foo
   
   
  shutdown -h now
  Shutdown:
  $ shutdown -h now


==<br/>Busybox system ==
==<br/>Busybox system ==
Line 79: Line 89:
  For the Qt-Browser change demoname to browser
  For the Qt-Browser change demoname to browser
=== Login/Shutdown system ===
=== Login/Shutdown system ===
  Name: root
  Login:
  Name:     root
  password: n/a
   
   
  halt
  Shutdown:
  $ halt

Revision as of 12:51, 6 December 2011


FAQ


Linux virtual machine for development

Get the Virtual machine

History:

v1.1 - Debian Squeeze v1.1.zipx    - Update Eclipse to Indigo with CDT 8.0
                                   - Add demo project "crosshelloworld"

v1.0 - Debian Squeeze.zipx         - First release

Setting up a Eclipse Cross Executable Project:

  • Use Eclipse Indigo (version 3.7.1) for your project.
  • Create a new C++ Project and choose as Executable Project type "Cross-Compile Project" and as Toolchains "Cross GCC"
  • Click the Button "Next" and specify under "Tool command path" the Toolchain path. For Codesourcery it is the folder "CodeSourcery/Sourcery_G++_Lite/bin". Under Prefix type "arm-none-linux-gnueabi-".


Building your own Kernel

Sources for the iMX25 Kernel:

How to build a kernel:

1. Start the Console on Linux
2. $ tar xfjv linux-2.6.38.tar.bz2
3. $ cd /kernel/path
4. $ patch -p1 <linux-2.6.38_DHCOM_iMX25.patch
5. $ cp .config /kernel/path
6. $ ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage

The uImage file will you find in ../build-linux/arch/arm/boot


Update the kernel with U-Boot

You can update the linux kernel with U-Boot flash update.

1. Go to the U-Boot console by pressing <Return> on a RS232 terminal (during startup)
2. $ update linux


How to use/update our root file system

1. Format a SD card with ext3 file system (e.g. you can use palimpsest)
   $ palimpsest
2. Copy root file system onto the SD card
   Start the Console on Linux
   $ su
   $ chmod 755 /path/of/the/SD-card
   $ cd /path/of/the/SD-card
   $ tar xfjv Name_of_RootFS_file.tar.bz2


How to control the display brightness

$ echo <value> >/sys/class/leds/pwm:out/brightness

value range: 0..255


Debian system

Calibrating the touchscreen

TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

Running example Qt Apps

QWS_MOUSE_PROTO=Tslib:/dev/input/event0 /usr/qt/demos/demoname/demoname -qws
For the Qt-Browser change demoname to browser

Login/Shutdown system

Login:
  Name:     root
  password: foo

Shutdown:
  $ shutdown -h now


Busybox system

Calibrating the touchscreen

TSLIB_TSDEVICE=/dev/event0 ts_calibrate

Running example Qt Apps

QWS_MOUSE_PROTO=Tslib:/dev/event0 /usr/qt/demos/demoname/demoname -qws
For the Qt-Browser change demoname to browser

Login/Shutdown system

Login:
  Name:     root
  password: n/a

Shutdown:
  $ halt