Steps to Build Kernel and Root Filesystem for OMAP5912
description
Transcript of Steps to Build Kernel and Root Filesystem for OMAP5912
![Page 1: Steps to Build Kernel and Root Filesystem for OMAP5912](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/1.jpg)
OMAP
![Page 2: Steps to Build Kernel and Root Filesystem for OMAP5912](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/8.jpg)
Development Environment for Linux
• Bootloader• Bootloader Parameters• Kernel• Root Filesystem
![Page 9: Steps to Build Kernel and Root Filesystem for OMAP5912](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/10.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/12.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/13.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/14.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/15.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022082512/554a0218b4c905557a8b514e/html5/thumbnails/16.jpg)
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.