2007年1月23日 星期二

OSK5912 u-boot environmemt variable for linux 2.6.18

bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=00:00:00:12:34:56
filesize=449f14
fileaddr=10000000
netmask=255.255.254.0
ipaddr=156.117.97.156
serverip=156.117.97.139
bootcmd=bootm 0x00040000
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttyS0,115200n8 noinitrd ip=none root=/dev/mtdblock3 rootfstype=
cramfs


Use CRAMFS.

OSK5912 u-boot environmemt variable for linux 2.4.20

bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=00:00:00:12:34:56
filesize=449f14
fileaddr=10000000
netmask=255.255.254.0
ipaddr=156.117.97.156
serverip=156.117.97.139
bootargs=console=ttyS0,115200n8 noinitrd ip=none root=/dev/mtdblock3 rootfstype=jffs
2 init=/linuxrc
bootcmd=bootm 0x00040000
stdin=serial
stdout=serial
stderr=serial


Use JFFS2 file system.

2007年1月22日 星期一

OMAP5912 OSK5912 and Multi-ICE

The following steps will help multi-ice connect to OSK5912.

1. Edit configuration irlength.arm of Multi-ICE server , add OMAPBYPASS and LEAD3 item
--------------------------------------------------------------------------------
; Known DSPs and other 3rd party devices
OMAPBYPASS=8
LEAD3=38
--------------------------------------------------------------------------------

2.Edit config file for OMAP5912
--------------------------------------------------------------------------------
[Title]
OMAP5912
[tap 0]
OMAPBYPASS
[tap 1]
ARM926EJ-S
[tap 2]
LEAD3
[TAPINFO]
YES
; JTAG clock rate set to 10MHz, with adaptive clocking turned ON
[Timing]
Low=0
High=0
Adaptive=ON
[Reset]
nTRST
nSRST
--------------------------------------------------------------------------------

3. Start Multi-ICE server and load configure file.
4. The following command could execute at CLI interface of AXD or realview debugger.
And these command will configure clock of OMAP5912 and initial SDRAM and EMIF for OSK5912 (OMAP5912 starter kit).
--------------------------------------------------------------------------------
smem 0xfffecb04,0xffffffff,32
smem 0xfffe0004,0xffffffff,32
smem 0xfffece04,0x00000400,32
smem 0xfffece08,0x00000886,32
smem 0xfffece24,0x00000015,32
smem 0xfffece14,0x1,16
smem 0xfffece18,0x0,16


smem 0xfffece00,0x3000,16
smem 0xfffecf00,0x2830,16
smem 0xfffec808,0x000000f5,32
smem 0xfffec808,0x000000a0,32
smem 0xfffeb048,0x0000aaaa,32
smem 0xfffeb048,0x00005555,32


smem 0xfffecc80,0x7,32
smem 0xfffecc20,0x001200f6,32
smem 0xfffecc84,0x7,32
smem 0xfffecc84,0x0,32
smem 0xfffecc84,0x1,32
smem 0xfffecc84,0x2,32
smem 0xfffecc70,0x33,32

smem 0xfffecc78,0x0,32
smem 0xfffeccc0,0x00000006,32
smem 0xfffecccc,0x00000006,32
smem 0xfffecc68,0x00000006,32

smem 0xfffecc10,0x002130b0,32
smem 0xfffecc14,0x8180fff3,32
smem 0xfffecc1c,0x30003361,32
--------------------------------------------------------------------------------

4. Total restore step

4-1. Use jlink erase flash with addition reset and halt in project setting.
4-2. connect board with multi-ice and use previous initial script to initial system.
4-3. use "download to memory" to download u-boot binary image to 0x10800000
4-4. set pc counter to 0x10800000 and go.
4-5. you should see message output at serial port at 115200 bps baudrate.
4-6. use ram-version u-boot to un-protect the flash and erase the flash. (protect off all , erase 0x0 0x3FFFF)
4-7. halt the system with AXD and use "download to memory" to download u-boot binary image to 0x10800000 again.
4-8. program the u-boot into flash with command " cp.b 0x10800000 0x0 0x2000".