2010년 2월 18일 목요일

OMAP-L138: Flashing ARMUBL, U-BOOT, Kernel, Ramdisk using U-boot(NAND BOOT)

U-boot command

1. ARM UBL
setenv flashing_armbul 'tftp 0xc0700000 jars/OMAPL138/arm-nand-ais.bin; nand erase 0x20000 0x20000; nand write.e 0xc0700000 0x20000 0x20000'
saveenv
run flashing_armbule

2. U-BOOT
setenv mmwrite 'mw 0xc0700000 0xffffffff 0x200; mw 0xc0700000 0xa1aced11 1; mw 0xc0700004 0xc1080000 1; mw 0xc0700008 0x0000005f 1; mw 0xc070000c 0x00000002 1; mw 0xc0700010 0x00000001 1; mw 0xc0700014 0xc1080000 1'
setenv nandwrite 'tftp 0xc0700800 jars/OMAPL138/u-boot-03.20.00.08_nand.bin; nand erase 0x40000 0x40000; nand write.e 0xc0700000 0x40000 0x40000'
setenv flashing_uboot 'run mmwrite; run nandwrite'
saveenv
run flashing_uboot

3. KERNEL
setenv flashing_uImage 'tftp 0xc0700000 jars/OMAPL138/uImage-03.20.00.08_nand; nand erase 0x200000 0x200000; nand write.e 0xc0700000 0x200000 0x200000'
saveenv
run flashing_uImage

4. RAMDISK
setenv flashing_ramdisk 'tftp 0xc1180000 jars/OMAPL138/ramdisk-base.gz; nand erase 0x400000 0x400000; nand write.e 0xc1180000 0x400000 0x400000'
saveenv
run flashing_ramdisk

2010년 2월 9일 화요일

OMAP-L138EVM SPI,Nand,Nor Flash Booting

OMAP-L138EVM SPI,Nand,Nor Flash Booting

1. Flashing images

(1). Flashing images to SPI Flash
(Serial flasher)
Serial Boot and Flash Loading Utility for OMAP-L138

(CCStudio)
1). Set the boot pins to emulation boot mode. This is done by setting switch S7 on the EVM according to the following table:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:ON, S7-6:OFF, S7-7:OFF, S7-8:ON)
2). CCStudio and connect to the ARM.
3). CCStudio and connect to the DSP.
4). Open the ARM, From GEL menu-> Full EVM -> SPI1_PINMUX
5). On the ARM load spiflash_writer.out program.
6). Run(F5)
7). In the Dialog Box - enter "armais"
8). In the Dialog Box - enter the path for the ais image(images/boot-strap/omapl1x8/arm-spi-ais.bin)
9). Now AIS image (UBL) has been flashed
10). On the ARM reload spiflash_writer.out program.
11). Run(F5)
12). In the Dialog Box - enter "uboot"
13). In the Dialog Box - enter path for uboot image(images/u-boot/omapl1x8/u-boot.bin)
14). Here it may take a couple of minutes
15). Disconnect DSP, disconnect ARM from CCS.
16). Power off the EVM
17). Place the EVM in NAND boot mode
18). Power on the EVM

(2). Flashing images to NAND Flash(CCStudio)
1). Set the boot pins to emulation boot mode. This is done by setting switch S7 on the EVM according to the following table:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:ON, S7-6:OFF, S7-7:OFF, S7-8:ON)
2). CCStudio and connect to the ARM.
3). CCStudio and connect to the DSP.
4). Open the ARM, From GEL menu-> Full EVM -> EMIFA_NAND_PINMUX (optionally NAND BOOTMODE can be set)
5). On the ARM load nand_writer.out program.
6). Run(F5)
7). In the Dialog Box - enter "armais"
8). In the Dialog Box - enter the path for the ais image(images/boot-strap/omapl1x8/arm-nand-ais.bin)
9). Now AIS image (UBL) has been flashed
10). On the ARM reload nand_writer.out program.
11). Run(F5)
12). In the Dialog Box - enter "uboot"
13). In the Dialog Box - enter path for uboot image(images/u-boot/omapl1x8/u-boot.bin)
14). Here it may take about 1 minute
15). Disconnect DSP, disconnect ARM from CCS.
16). Power off the EVM
17). Place the EVM in NAND boot mode
18). Power on the EVM

(3). Flashing images to NOR Flash(CCStudio)
1). Set the boot pins to emulation boot mode. This is done by setting switch S7 on the EVM according to the following table:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:ON, S7-6:OFF, S7-7:OFF, S7-8:ON)
2). CCStudio and connect to the ARM.
3). CCStudio and connect to the DSP.
4). Open the ARM, From GEL menu-> Full EVM -> EMIFA_NOR_PINMUX
5). On the ARM load norflash-writer.out program.
6). Run(F5)
7). In the Dialog Box - enter "armais"
8). In the Dialog Box - enter the path for the ais image(images/boot-strap/omapl1x8/arm-nor-ais.bin)
9). Now AIS image (UBL) has been flashed
10). On the ARM reload norflash-writer.out program.
11). Run(F5)
12). In the Dialog Box - enter "uboot"
13). In the Dialog Box - enter path for uboot image(images/u-boot/omapl1x8/u-boot.bin)
14). Here it may take a couple of minutes
15). Disconnect DSP, disconnect ARM from CCS.
16). Power off the EVM
17). Place the EVM in NAND boot mode
18). Power on the EVM


2. Booting U-Boot

1). SPI flash
In order to boot from SPI flash, which has been written with the boot images, set the SW7 switch on the base board as follows:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:OFF, S7-6:OFF, S7-7:OFF, S7-8:OFF)
2). NAND Flash
In order to boot from NAND flash, which has been written with the boot images, set the SW7 switch on the base board as follows:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:ON, S7-6:OFF, S7-7:OFF, S7-8:OFF)
3). NOR Flash
In order to boot from Nor flash, which has been written with the boot images, set the SW7 switch on the base board as follows:
(S7-1:OFF, S7-2:OFF, S7-3:OFF, S7-4:OFF, S7-5:ON, S7-6:ON, S7-7:ON, S7-8:OFF)

3. Booting Linux kernel using U-Boot
U-Boot Command:
setenv serverip 218.36.28.218
setenv gatewayip 218.36.28.254
setenv netmask 255.255.255.0
setenv ipaddr 218.36.28.217
saveenv

1). SDRAM
U-Boot Command:
setenv bootcmd 'tftp 0xc0700000 uImage; tftp 0xc1180000 ramdisk-base.gz; bootm 0xc0700000'
setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=dhcp eth=${ethaddr}

2). SPI flash
U-Boot Command:
sf probe 0
tftp 0xc0700000 uImage
sf erase 0x80000 0x200000
sf write 0xc0700000 0x80000 0x200000
tftp 0xc1180000 ramdisk-base.gz
sf erase 0x280000 0x400000
sf write 0xc1180000 0x280000 0x400000
setenv bootcmd 'sf probe 0;sf read 0xc0700000 0x80000 0x200000;sf read 0xc1180000 0x280000 0x400000;bootm 0xc0700000'
setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=dhcp eth=${ethaddr}

3). NAND Flash
(ramdisk as rootfs)
tftp 0xc0700000 uImage
nand erase 0x200000 0x200000
nand write.e 0xc0700000 0x200000 0x200000
tftp 0xc1180000 ramdisk-base.gz
nand erase 0x400000 0x400000
nand write.e 0xc1180000 0x400000 0x400000
setenv bootcmd 'nand read.e 0xc1180000 0x400000 0x400000; nboot.e 0xc0700000 0 0x200000; bootm'
setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=dhcp eth=${ethaddr}

(jffs2 image as rootfs)
tftp 0xc0700000 uImage
nand erase 0x200000 0x200000
nand write.e 0xc0700000 0x200000 0x200000
tftp -r rootfs-base.jffs2 -g 218.36.28.218
flash_eraseall /dev/mtdX
nandwrite -p /dev/mtdX rootfs-base.jffs2
setenv bootcmd 'nand read.e 0xc1180000 0x400000 0x400000; nboot.e 0xc0700000 0 0x200000; bootm'
setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/mtdblockX rw rootfstype=jffs2 ip=dhcp eth=${ethaddr}

Note: In the above commands 'X' in '/dev/mtdX' and '/dev/mtdblockX' refer to the NAND partition which is reserved for file system.

4). NOR Flash
tftp 0xc0700000 uImage
protect off 60080000 +200000
erase 60080000 +200000
cp.b c0700000 60080000 200000
tftp 0xc1180000 ramdisk-base.gz
protect off 60280000 +400000
erase 60280000 +400000
cp.b c1180000 60280000 400000
setenv bootcmd 'cp.b 60080000 c0700000 200000;cp.b 60280000 c1180000 400000;bootm 0xc0700000'
setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,4M ip=dhcp

5). USB Storage
usb reset
fatload usb 0:1 0xC0700000 uImage
fatls usb 0:1
setenv bootcmd 'usb start; fatload usb 0:1 0xC0700000 uImage; bootm 0xc0700000'

Tiny-X

Tiny-X

Connect the OMAP-L138 and XDS510USB

Connect the OMAP-L138 and XDS510USB

1. Installation Instructions
Copy the entire "evmomapl138_v1" folder here: C:\CCStudio_v3.3\boards\

2. CCS V3.3 Setting
1). Setup CCStudio v3.3
2). File - Import... : C:\CCStudio_v3.3\boards\evmomapl138_v1\import\OMAPL138_sdxds510usb.ccs
3). OMAPL138_XDS510USB - ARM9_0 - Properties - GEL File : C:\CCStudio_v3.3\boards\evmomapl138_v1\gel\OMAPL138_ARM.gel
4). OMAPL138_XDS510USB - TMS320C674XP_0 - Properties - GEL File : C:\CCStudio_v3.3\boards\evmomapl138_v1\gel\OMAPL138_DSP.gel
5). Save & Quit

3. OMAP-L138EVM Setting
S7 DIP Switch Setting
S7:1 - OFF
S7:2 - OFF
S7:3 - OFF
S7:4 - OFF
S7:5 - ON
S7:6 - OFF
S7:7 - OFF
S7:8 - ON

(S7 DIP Switch Functions)



(S7 DIP Switch Boot Modes)


4. SdConfig V3.3
Emulator - Test
Emulator - Reset

5. CCStudio v3.3
1). Open - OMAPL138_XDS510USB/ARM9_0
2). OMAPL138_XDS510USB/ARM9_0 - Debug - Connect
3). OMAPL138_XDS510USB/ARM9_0 - GEL - Wake Core - Wake_DSP
4). Open - OMAPL138_XDS510USB/TMS320C674XP_0
5). OMAPL138_XDS510USB/TMS320C674XP_0 - Debug - Connect

OMAPL138_XDS510USB/ARM9_0


OMAPL138_XDS510USB/TMS320C674XP_0

2010년 2월 8일 월요일

Connect the OMAP3530EVM and XDS510USB

1. OMAP3530EVM SW1 Setting
OMAP Processor Module - SW1-1 ON : JTAG enabled.



2. SdConfig V3.3
1). Connect the OMAP3530EVM and XDS510USB Emulrator.
2). Run the SdConfig V3.3.
3). Reset the Emulrator.



3. Setup CCStudio v3.3
1). Run the Setup CCStudio v3.3.
2). Add to System(MISTRAL_OMAP3530_XDS510USB).
3). Save & Quit



4. CCStudio v3.3



5. CortexA – Open - Connected
1). Load the GEL files(Mistral_Omap35xx_CortexA8.gel).
2). Debug - Connect.
3). GEL - OMAP35xx Functions - C64xxPlusRelease_FromReset.



6. C6400PLUS – Open - Connected
1). Load the GEL files(sdomap35xx_C64plus.gel).
2). Debug - Connect.

Install the Code Composer Studio V3.3

Install the Code Composer Studio V3.3

1. Install the CCS_v3.3



2. Install the CCS_v3.3_SR12
Download and Install the "Service Release 12.1 (3.3.82.13)" at the software-dl.ti.com



3. Install the OMAP35xx_CSP_v3.3.201
Download and Install the "OMAP35xx_CSP_v3.3.201.exe" at the Texas Instruments



4. Install the setupCCSPlatinum_v30330

Download and Install the Emulation Driver(setupCCSPlatinum_v30330) at the support.spectrumdigital.com



Google I/O

An Introduction to Android
http://sites.google.com/site/io/an-introduction-to-android

Anatomy & Physiology of an Android
http://sites.google.com/site/io/anatomy--physiology-of-an-android

Dalvik VM Internals
http://sites.google.com/site/io/dalvik-vm-internals

Inside the Android Application Framework
http://sites.google.com/site/io/inside-the-android-application-framework

Building an Android Application 101
http://sites.google.com/site/io/building-an-android-application

YouTube Android Developers
http://www.youtube.com/user/androiddevelopers

Android Site...

==========================================================
Android.com
Android Developers
Android Open Source Project
Google Code
==========================================================
2008 2010 Korean Android
AndroidSide
AndroidPub
==========================================================