COM iMX25 Linux: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Line 19: | Line 19: | ||
* [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] | ||
* [[file:linux-2.6. | * [[file:linux-2.6.38_DHCOM_iMX25_patch.zip|Patch to DHCOM iMX25 Linux (2011-10-13)]] | ||
* [[file:. | * [[file:linux-2.6.38_DHCOM_iMX25_config.zip|Kernel configuration for DHCOM iMX25 Linux (2011-10-13)]] | ||
=== How to build a kernel: === | === How to build a kernel: === | ||
Line 27: | Line 27: | ||
1. tar xfjv linux-2.6.38.tar.bz2 | 1. tar xfjv linux-2.6.38.tar.bz2 | ||
2. cd /kernel/path | 2. cd /kernel/path | ||
3. patch -p1 <linux-2.6. | 3. patch -p1 <linux-2.6.38_DHCOM_iMX25.patch | ||
4. cp .config /kernel/path | 4. cp .config /kernel/path | ||
5. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage | 5. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage |
Revision as of 11:20, 28 November 2011
FAQ
Virtual machine for development
Get the VM
- Debian Squeeze VMware Image (zipx Archiv) Passwords: devel:devel / root:root
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. tar xfjv linux-2.6.38.tar.bz2 2. cd /kernel/path 3. patch -p1 <linux-2.6.38_DHCOM_iMX25.patch 4. cp .config /kernel/path 5. ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- make uImage The uImage file will you find in ../build-linux/arch/arm/boot
How to use our root file system
1. Format a SD card with ext3 file system 2. Copy root file system onto the SD card -Start terminal -su -chmod 755 /directory/of/the/SD-card -cd /directory/of/the/SD-card -tar jxvf 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
Name: root password: foo 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
Name: root halt