You are on page 1of 5

/*******************************************************************************

*****************************
*
*
*Document
: Updating Linux Kernel Image (uImage) on Calixto Hardware.
*
*Prerequisites : nandflashing & Binary files should be installed properly.
*
********************************************************************************
****************************/
1. Copy 'uImage' named file from folder tftpboot_updated at location mentioned w
here tftpboot_firsttime is copied during nandflashing. Eg. at location /tftpboot
.
2. Now connect serial cable & start minicom session. To start minicom, refer min
icom_session document. Poweron the board & enter into uboot mode by pressing any
key when display shows following screen:

U-Boot 2009.11 (May 07 2011 - 10:41:02)


I2C: ready
DRAM: 128 MB
NAND: 128 MiB
MMC: davinci: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:
serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
boot mode.
uboot>

// Press any key to enter into u

################################################################################
################################################################################
#

3. Now enter following commands:


uboot>setenv serverip 192.168.1.35 // This IP Address is an IP address
of PC through which Nand flashing is to be done.
uboot>setenv ipaddr 192.168.1.37 for calixto hardware.
uboot>saveenv
################################################################################
################################################################################
#

4. Connect 'Cross' LAN cable from PC to Calixto board. Then enter following comm
and:
uboot>tftp c0700000 uImage
Display will show following screen:
U-Boot > tftp c0700000 uImage
Using device
TFTP from server 192.168.1.35; our IP address is 192.168.1.37
Filename 'uImage'.
Load address: 0xc0700000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################################
done
Bytes transferred = 1975468 (1e24ac hex)
################################################################################
################################################################################
#

5. Erasing and flashing NAND with copied uImage.


uboot>nand erase 0x200000 0x250000
completed.

//Check that 100% is

uboot>nand write.e 0xc0700000 0x200000 0x250000


completed.

//Check that 100% is

uboot>nand read.e 0xc0700000 0x200000 0x250000


completed.

//Check that 100% is

uboot>setenv bootcmd "mw 0x68000014 0x364200; nand read.e 0xc0700000 0x2


00000 0x250000;bootm 0xc0700000;"
uboot>setenv bootargs "mem=128M lpj=747520 console=ttyS2,115200n8 noinit
rd rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs"
uboot>saveenv
uboot>setenv bootargs "mem=128M lpj=747520 console=ttyS2,115200n8 noinit
rd rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs"
uboot>saveenv
################################################################################
################################################################################
#

7. Boot the board normally.Issue the following command.


uboot>boot
################################################################################
################################################################################
######

8. Check the date of the updated kernel. It should be Thu Jul 5 14:45:22 IST 201
2. Location is given below:
I2C:

ready
DRAM: 128 MB
NAND: 128 MiB
MMC: davinci: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:
serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
uboot>

NAND read: device 0 offset 0x200000, size 0x250000


2424832 bytes read: OK
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.33-rc4-classic-cavy
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size:
1975404 Bytes = 1.9 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
#############################
Linux version 2.6.33-rc4-classic-cavy (vinit@LTP045) (gcc version 4.4.1 (Sourcer
y G++ Lite 2009q3-67) ) #33 PREEMPT Thu Jul 5 14:45:22 IST 2012 #
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
#############################
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
.
.
.
.
.
.

.
.
.
################################################################################
################################################################################
######

9. Following display confirms successful Nandflashing:


.
.
.
.
.
PHY: 1:00 - Link is Up - 100/Full
socket write /tmp/socket_DIGNOSTICS_MODULE 4
Starting telnet daemon.
Starting Dropbear SSH server: Starting syslogd/klogd: done
Starting thttpd.
_____
_____
_
_
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
|
| _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___|
|___|
Arago Project http://arago-project.org am180x-evm ttyS2
Arago 2010.12 am180x-evm ttyS2
am180x-evm login:
################################################################################
################################################################################
#####

10. Login as root.:


login: root
password: root -----> If ssh session is enabled.

################################################################################
################################################################################
####
11. Poweroff the board.
host$poweroff

Display will show following screen Wait till it displays 'system halted'.
Broadcast message from root (ttyS2) (Wed Jan 26 00:17:06 2011):
The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
Stopping telnet daemon.
Stopping system message bus: stopped process in pidfile '/var/run/dbus/pid' (pid
943)
dbus.
Stopping Dropbear SSH server: [953] Jan 26 00:17:08 Premature exit: Terminated b
y signal
dropbear.
Stopping thttpd.
ALSA: Storing mixer settings...
Deconfiguring network interfaces... done.
Stopping syslogd/klogd: stopped syslogd (pid 1048)
stopped klogd (pid 1050)
done
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
System halted.
################################################################################
################################################################################
####
--------------------------- **************** Here ends installation procedure **
*************** ---------------------------------

You might also like