Environment settings
~~~~~~~~~~~~~~~~~~~~
echo $PATH
export PATH=$PATH:/home/vinuz/CodeSourcery_2011_3_41/Sourcery_G++_Lite/bin/
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
u-boot (The initial MLO is also build along with this)
~~~~~~~
u-boot-main --> tested OK
make distclean
make omap3_beagle_config
make
After build:
cp MLO /media/boot
cp u-boot.img /media/boot
if reqd: cp u-boot.bin /media/boot
minicom
~~~~~~~
setenv baudrate 19200
Linux kernel
~~~~~~~~~~~~
linux --> linux-stable --> tested OK
Kernel cloning:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git -v
make distclean
make omap2plus_defconfig
make uImage LOADADDR=0x80008000
cp arch/arm/boot/uImage /media/boot/
cp ~/rd-ext2.bin /media/boot/
Loading kernel from mmc
~~~~~~~~~~~~~~~~~~~~~~~
setenv bootargs console=ttyO2,115200n8 root=/dev/ram0 rw ramdisk_size=32768 initrd=0x81600000,32M
OR
setenv bootargs console=ttyO2,19200n8 root=/dev/ram0 rw ramdisk_size=32768 initrd=0x81600000,32M
fatload mmc 0 81600000 rd-ext2.bin
fatload mmc 0 80000000 uImage
bootm 80000000
busybox
~~~~~~~
git clone git://busybox.net/busybox.git
make defconfig
make
make CONFIG_PREFIX=/home/vinux/targetfs install
--copy reqd files & create dirs --
dd if=/dev/zero of=ramdisk.bin bs=1k count=16384
mke2fs -F -m0 ramdisk.bin
mount -t ext2 ramdisk.bin /mnt -o loop
tar -C targetfs -cf - . | tar -C /mnt -xf -
umount /mnt
cp ramdisk.bin /media/boot
[/home/vinuz/targetfs/ - tested working fine]
tftp
~~~~
tftp -g -r hi.txt 172.16.9.111