이것저것/My_Work

[EMDK-4000] - u-boot 설치

우담바라 2007. 3. 9. 16:48
EMDK-4000에는 부트로더가 두개가있다

Linux   => u-boot
WinCE => e-boot

[ u-boot 설치 ]

1] 사전 작업

    시리얼과 USB연결은 필수~!! 연결 확인~!!

   보드에서의 부팅 스위치 셋팅은 'CuteMobile'로 한다.

'SW602'도  셋~!!!

구분

CuteMobile

Linux

WinCE

SMC

SW601

1-2

2-3

2-3

2-3

SW602

1-2

1-2

2-3

2-3

SW603

2-3

2-3

1-2

2-3

SW604

2-3

2-3

2-3

1-2

SW605

OFF

ON

ON

ON


 DNW 동작, 시리얼 연결( Baud Rate : 115200, COM Port :COM1 )

  셋팅 후, 전원 인가~!!
 
  DNW화면에 뭔가 주르륵 나오면서 숫자를 카운터 하는것을 볼수있다.
  'B'를 눌러 Downloder 모드로 간다.
  (그냥 두면, CuteMobile 이 동작하게된다.)


+----------------------------------------------------------+
| EMDK-4000 Boot loader for CuteMobile and USB Downloader  |
+----------------------------------------------------------+
Press [b] key to boot USB downloader.

Wait or press [ESC] key to execute USB down2 seconds.

+------------  Executing USB Downloader --------------+


DIVN_UPLL0
MPLLVal [M:61h,P:1h,S:2h]
CLKDIVN:7h


+------------------------------------------------+
| EMDK-4000 USB Downloader ver 1.3 October 01, 2006 |
+------------------------------------------------+
FCLK=296.4MHz,DMA mode
USB: IN_ENDPOINT:1 OUT_ENDPOINT:3
FORMAT: <ADDR(DATA):4>+<SIZE(n+10):4>+<DATA:n>+<CS:2>
NOTE: 1. Power off/on or press the reset button for 1 sec
        in order to get a valid USB device address.
      2. For additional menu, Press any key.

USB host is not connected yet.
USB host is connected. Waiting a download.



2] 다운로드 및 설치
   현 상태에서 'Enter' 키를 눌르면 아래와 같은 메뉴가 뜬다.

###### Select Menu ######
 [0] Download & Run
 [1] Download Only
 [2] Test SDRAM
 [3] Change The Console UART Ch.
 [4] Clear unused area in SDRAM
 [5] K9S1208 Program

    '1' 번 선택.

Download Only is selected.
 Enter a new temporary download address(0x3...):


  Download address(0x3...): 0x30100000 입력

Download Only is selected.
Enter a new temporary download address(0x3...):0x30100000
The temporary download address is 0x30100000.
USB host is connected. Waiting a download.

  Menu 창 =>  USB port | Transmit 을 선택하면,
  다이얼로그 창이 뜬다. 거기에서 u-boot.bin  파일을  선택 !!

Now, Downloading [ADDRESS:30100000h,TOTAL:123110]
RECEIVED FILE SIZE:  123110
(1006.9KB/S,0.1S)
Now, Checksum calculation
Download O.K.


###### Select Menu ######
 [0] Download & Run
 [1] Download Only
 [2] Test SDRAM
 [3] Change The Console UART Ch.
 [4] Clear unused area in SDRAM
 [5] K9S1208 Program

 [5] K9S1208 Program  선택 !!

K9S1208 Nand flash program start....

[SMC(K9S1208V0M) NAND Flash bad block check]
NFSTAT: 0x87
ID=0(0xec76)

[SMC(K9S1208V0M) NAND Flash writing program]
The program buffer: 0x30100000~0x31ffffff

Source size:0h~1e0e6h

Available target block number: 0~4095
Input target block number:

Input target block number: 0
Input program file size(bytes):

  file 사이즈는 DNW 화면을 보면, 다운 받을때 파일 사이즈가 출력되어있다.
여기에서는
                   RECEIVED FILE SIZE:  123110

Available target block number: 0~4095
Input target block number:0
Input program file size(bytes): 123110
File:123110[7-block,16-page,230-bytes].
........
###### Select Menu ######
 [0] Download & Run
 [1] Download Only
 [2] Test SDRAM
 [3] Change The Console UART Ch.
 [4] Clear unused area in SDRAM
 [5] K9S1208 Program







이상 끝~!!!