Steps to Build Kernel and Root Filesystem for OMAP5912

16
OMAP

description

Steps to Build Kernel and Root Filesystem for OMAP5912

Transcript of Steps to Build Kernel and Root Filesystem for OMAP5912

Page 1: Steps to Build Kernel and Root Filesystem for OMAP5912

OMAP

Page 2: Steps to Build Kernel and Root Filesystem for OMAP5912

Abbreviation for OMAPAbbreviation for OMAPAbbreviation for OMAPAbbreviation for OMAP

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

Page 3: Steps to Build Kernel and Root Filesystem for OMAP5912

OMAP5912

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

Page 4: Steps to Build Kernel and Root Filesystem for OMAP5912

Application of OMAP

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

Page 5: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 6: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 7: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 8: Steps to Build Kernel and Root Filesystem for OMAP5912

Development Environment for Linux

• Bootloader• Bootloader Parameters• Kernel• Root Filesystem

Page 9: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 10: Steps to Build Kernel and Root Filesystem for OMAP5912

Bootloader Parameter

• Parameter gives information which baudrate system boots

• Parameter gives information about filesystem

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

Page 11: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 12: Steps to Build Kernel and Root Filesystem for OMAP5912

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.

Page 13: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 14: Steps to Build Kernel and Root Filesystem for OMAP5912

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.

Page 15: Steps to Build Kernel and Root Filesystem for OMAP5912

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

Page 16: Steps to Build Kernel and Root Filesystem for OMAP5912

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.