Using Tftp To Boot The New Linux Kernel; Flashing The New Linux Kernel - Texas Instruments OMAP35x Getting Started Manual

Evm
Table of Contents

Advertisement

OMAP35x EVM Getting Started Guide V02.01.01
Document
Document Number

7.2.2 Using TFTP to boot the New Linux Kernel

1) Power on the EVM board, and abort the automatic boot sequence by pressing the "Enter key" in the
console window.
2) Set the following environment variables to ensure that you are starting from a default, clean U-Boot
environment.
OMAP3EVM # setenv serverip <tftp server ip address>
OMAP3EVM # setenv bootfile uImage
OMAP3EVM # setenv bootargs
root=/dev/mtdblock4 rw rootfstype=jffs2
OMAP3EVM # setenv bootcmd 'tftpboot 0x80000000 uImage ; bootm'
This configuration boots a new Linux kernel via TFTP with a NAND flash based file system
3) The initenv-samsung.txt and initenv-micron scripts provide the options for setting the bootargs for the
appropriate target file system that is being used for the boot. Kindly refer to the appropriate script files for
the flash parts that are being used on the board for more details.
In case of use of ramdisk file system, use the following commands:
OMAP3EVM # setenv bootargs mem=128M console=ttyS0,115200n8
root=/dev/ram0 initrd=0x81600000,40M ramdisk_size=40960
You could use TFTP to transfer the ramdisk image from the development PC or flash it on the NAND
flash. Refer section 5.4.2 "Running the Re-flash Procedure" for more details on flashing the file systems
on the target
In case of use of NFS, use the following commands:
OMAP3EVM # setenv bootargs mem=128M console=ttyS0,115200n8 noinitrd
ip=dhcp rw root=/dev/nfs
nfsroot=/mnt/nfs,nolock,rsize=4096,wsize=4096,proto=tcp

7.2.3 Flashing the New Linux Kernel

The Linux kernel can also be flashed on the NAND and then could be used for the boot. Perform the
following steps for flashing the new or rebuilt Linux Kernel
1. Make sure that the environment variables are properly set
OMAP3EVM # setenv serverip <tftp server ip address>
OMAP3EVM # setenv bootfile uImage
2. Transfer the new kernel image using TFTP
OMAP3EVM # tftpboot 0x80000000 uImage
3. Flash the Kernel Image onto the Samsung NAND flash using the following commands.
OMAP3EVM # mw.b 0x81600000 0xff 0x1400000
OMAP3EVM # onenand erase block 20-59
OMAP3EVM # tftpboot 0x81600000 uImage
Rev
Date
mem=128M console=ttyS0,115200n8 noinitrd
44
1.7
May 22 2009

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omap3503Omap35 series

Table of Contents