Steps to Build Kernel and Root Filesystem for OMAP5912

Post on 06-May-2015

3.100 views 2 download

description

Steps to Build Kernel and Root Filesystem for OMAP5912

Transcript of Steps to Build Kernel and Root Filesystem for OMAP5912

OMAP

Abbreviation for OMAPAbbreviation for OMAPAbbreviation for OMAPAbbreviation for OMAP

OMAP – OMAP – OOpen pen MMulti Media ulti Media AApplication pplication PPlatformlatform

OMAP5912

• The OMAP5912 is a dual core processor with ARM and DSP integrated into a single silicon.

Application of OMAP

• Java enabled Mobile• Smart Phone• PDA• Wireless Internet Applications• Networking Applications• Digital set top boxes

Features of OMAP5912

• OMAP5912 processor (192MHz ARM, 192MHz DSP)

• 32 Mega Bytes Mobile DDR SDRAM• 32 Mega Bytes on-board Flash• 10 Mega bit Ethernet Interface• USB Host Interface• AIC23 stereo codec• RS-232 serial port

Requirement's

• OMAP5912 starter kit-OSK• Personal computer• RJ-45 Ethernet cable• Universal 5V power supply• 9 pin serial null modem cable• An open source kernel for OSK• A filesystem to work with OSK

Requirement's from Host Side

• Red Hat Linux 7.3 or 9.0• 1 GB free disk space• Serial port• Local CD-ROM drive• Ethernet adapter

Development Environment for Linux

• Bootloader• Bootloader Parameters• Kernel• Root Filesystem

Bootloader Support• Bootloader – U- Boot • Patch for OMAP5912 Board Support in

Bootloader• Compile Bootloader for required

architecture.• There are 2 ways of Recovering the

Bootloader 1. USB 2. Serial Cable

Bootloader Parameter

• Parameter gives information which baudrate system boots

• Parameter gives information about filesystem

• Parameter gives information to the kernel where root filesystem information.

Kernel

• Download tar image from kernel.org

• Check for architecture support, if not patch for the support in kernel.

• Configure the kernel make OMAP make omap_osk_5912_defconfig

Kernel

• make menuconfig- configure the kernel.• Cross-Compile the kernel to get kernel

Image by make ARCH= ( arch type ) make CROSS_COMPILE= (Compiler name) make ImageName

• Kernel Image is fused through means bootloader command.

Root Filesystem

• Create a default required directories• Copy the libc-2.3.2.so with his link

to /lib directory.• Copy the required libraries for our

applications.• make a entry in /etc/rc.d to mount

proc and sys filesystem

Root Filesystem

• BusyBox-BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

• make menuconfig to configure the required command.

• copy the executable image to /bin directory

• make a symbolic link to image to create a required image.

Root Filesystem Image

• Create a flash based root filesystem image using mkfs.jffs2

• Image is fused through 2 modes 1. Network – Mounting the filesystem 2. Serial – Permanently fusing the filesystem

Application Porting

• Application are ported in 2 ways 1. Permanently Fusing 2. Temporarily.

• Permanently- Make the image and fused into the flash permanently.

• Temporarily- Mounting the filesystem, temporarily for testing purposes.