Buildroot
making Embedded Linux easy
Aim: Generate any or all of a cross-compilation toolchain, a root filesystem, a kernel image and a
bootloader image for mini2440 board using buildroot.
Step 1:
dowload this buildroot:
#cd /home/nani/
#wget [Link]/downloads/[Link]
step2:
#tar -xvf [Link]
#cd buildroot-2011.08
step3:
#sudo apt-get install gcc bison flex git ncurses-dev texinfo
#make menuconfig
step4:
Target Architecture ->arm
step5:
Target Architecture Variant ---> arm920t
step6:
Toolchain --->
[Link] --->Toolchain type ------->Buildroot toolchain
[Link] --->Kernel Headers ---------> Linux 2.6 (manually specified version)
[Link] --->() linux version ---------> 2.6.29
[Link] --->Build/install a shared libgcc?
[Link] --->Enable compiler OpenMP support
[Link] --->Enable compiler tls support
[Link] --->Enable large file (files > 2 GB) support
[Link] --->Enable IPv6 support
[Link] --->Enable RPC support
[Link] --->Enable toolchain locale/i18n support
[Link] --->Enable C++ support
[Link] --->Enable stack protection support
step7:
System configuration --->
1. System configuration ---> ()System hostname --------> mini2440
2. System configuration ---> ()System banner----------> wellcom to mini2440
3. System configuration ---> Port to run a getty (login prompt) on ------------> ttySAC0
4. System configuration ---> Baudrate to use -------->115200
5. System configuration ---> remount root filesystem read-write during boot
step8:
Package Selection for the target ------------->
[Link] Selection for the target ---->Libraries ---> Hardware handling ---> libts - The Touchscreen
tslib Library
[Link] Selection for the target ---->Graphic libraries and applications------->SDL
[Link] Selection for the target ---->Audio and video libraries and applications ---> ffmpeg
[Link] Selection for the target ---->Audio and video libraries and applications ---> madplay
step9:
Filesystem images --->
[Link] images --->[*] tar the root filesystem
[Link] images ---> [*] jffs2 root filesystem
[Link] images ---> Flash Type ---> (X) NAND flash with 2kB Page and 128 kB erasesize
[Link] images --->[*] initramfs for initial ramdisk of linux kernel
step10 :
Bootloaders --->
[Link] ---> [*] U-Boot
[Link] ---> [*] U-Boot --->( )U-Boot board name -----> mini2440
[Link] ---> [*] U-Boot --->(X) Custom tarball
[Link] ---> [*] U-Boot --->( ) URL of custom U-Boot tarball ---->path to [Link]
[Link] ---> [*] U-Boot --->U-Boot binary format-----> (X) [Link]
[Link] ---> [*] U-Boot ---> [*] Network Settings (NEW)
[Link] ---> [*] U-Boot ---> [*] Network Settings (NEW) ---->
([Link]) server ip (NEW)
([Link]) ip address (NEW)
([Link]) gateway ip (NEW)
step10:
kernel ------->
1. kernel ------->Kernel version ----> (X) Custom tarball
2.
kernel ------->()URL of custom kernel tarball --->path to your [Link]
3.
kernel ------->Kernel configuration --->(X) Using a custom config file
4.
kernel ------->Configuration file path ---->path to mini2440_n35_defconfig
5. kernel ------->Kernel binary format-------> (X) uImage
6. kernel ------->[*] Install kernel image to /boot in target
step11:
exit
exit ---> YES
step 12:
make
step 13 :
#cd /home/nani/buildroot-2011.08/fs/skeleton/etc
##########append code below to profile
gedit profile
/***********************************/
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
/***********************************/
Create a new directory name 'profile.d' to keep our system profile startup script, this will be the [Link]
to setup the touchscreen environment's setting.
/************************************************/
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/[Link]
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
/************************************************/
AND
Setup the network ip address require in the etc/network/interface file.
# static ip
auto eth0
iface eth0 inet static
address [Link]
netmask [Link]
network [Link]
broadcast [Link]
gateway [Link]
go to this dir
cd buildroot-2011.08/target/generic
gedit device_table_dev.txt
line no 59 . uncommant it
#/dev/dsp
666
29
14
step14:
make
step 15:
#cd /home/ravi/buildroot-2011.08/output/images
#ls
rootfs.jffs2
[Link]
uImage
step:
boot the mini2440 with uImage and rootfs
[Link]
you will get like this
wellcome to mini2440
login as root
cd /
vi etc/[Link]
uncommand
# module_raw input
exit
commands
#ts_calibrate
#ts_test