Steps to boot the Linux kernel with Initial ramdisk

Sanjiv Malik sanjiv at faith.co.jp
Mon Jun 20 20:11:34 CDT 2005


Hi All,

I am just including this discussion for sake of completion since I got this up with difficulty:

- Put your initrd.img.gz in some folder in under linux and define the complete path of  in the Makefile. I put it in arch/arm/boot and  define in top level Makefile as 
ZTEXTADDR = 0x10800000
INITRD_PHYS = 0x10800000
INITRD = ./arch/arm/boot/initrd.img.gz
export INITRD
- give command " make bootpImage"
- boot image will be created in linuxx-x-x/arch/arm/boot/bootp/bootp   <- Note that your image name is bootp in bootp folder
- convert this image to the format supported by uboot:
    - cd arch/arm/boot/bootp
    - arm-linux-objcopy -O binary -R .note -R .comment -S bootp linux.bin
    - gzip -9 linux.bin
    - /root/work/u-boot/tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x10c08000 -e 0x10c08000 -n "My Linux" -d linux.bin.gz uImage.cc
    
Now uImage.cc is your boot Image

>From the u-boot prompt
give the following command:

- tftpboot 0x10000000 uImage.cc   -> will get the Image 'in'

- setenv bootargs root=/dev/rd/0 rw  mem=32M console=ttyS0,115200n8 init=/bin/sh  ip=dhcp nfsroot=

- bootm


Hopefully, you should be able to get it up. Please let me know if still some trouble.


More information about the Linux-omap-open-source mailing list