본문 바로가기

컴퓨터 과학 & 영상처리 관련/임베디드

120315


SBT-USC1K Drivers    를 설치 후 시리얼을 꽂는다

그 다음 테라텀 실행하고 시리얼 보면
아래와 같은 com 포트가 생김


시리얼로 일단 연결해놓고 전원이랑 usb를 꽂으면 부팅이 시작됨
이때 키보드를 존나게 눌러야 u-boot로 부팅됨


이게 부팅 화면

Texas Instruments X-Loader 1.4.4ss (Aug 19 2010 - 02:49:27)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2010.03-dirty (Aug 20 2010 - 20:50:46)

OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz,
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MB
NAND:  0 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial

Probing for expansion boards, if none are connected you'll see a harmless I2C error.

No EEPROM on expansion board
Beagle xM Rev A
Die ID #1cf200011ff00000015739eb0801400c
Hit any key to stop autoboot:  0
OMAP3 beagleboard.org #
OMAP3 beagleboard.org #
OMAP3 beagleboard.org #


OMAP3 beagleboard.org # help
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
echo    - echo args to console
editenv - edit environment variable
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
imxtract- extract a part of a multi-image
itest   - return true/false on integer compare
led     - led   - [0|1|green|all] [on|off]loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
md      - memory display
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub-system
mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mw      - memory write (fill)
nand    - NAND sub-system
nandecc - switch OMAP3 NAND ECC calculation algorithm
nboot   - boot from NAND device
nm      - memory modify (constant address)
printenv- print environment variables
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
setexpr - set environment variable as the result of eval expression
showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
test    - minimal test like /bin/sh
true    - do nothing, successfully
userbutton- Return the status of the Beagle board user botton

kermit -s beagle.bin
하면 보낼준비됨


간단하게 얘기하면
서버에서 kermit -s 파일명 하고 file - transfer - 0kermit receive로 바탕화면에 파일전송
그 다음 uboot 화면에서 loadb 82000000 함
그리고 uboot화면에서 kermit send 바탕화면 파일 선택하면 전송됨

OMAP3 beagleboard.org # loadb 82000000
## Ready for binary (kermit) download to 0x82000000 at 115200 bps...
## Total Size      = 0x000017d4 = 6100 Bytes
## Start Addr      = 0x82000000

OMAP3 beagleboard.org # go 82000000
## Starting application at 0x82000000 ...
####                         ##           ####                            #
 #  #                         #            #  #                           #
 #  #   ###    ###    ## #    #     ###    #  #   ###    ###   # ##    ## #
 ###   #   #      #  #  #     #    #   #   ###   #   #      #  ##  #  #  ##
 #  #  #####   ####   ##      #    #####   #  #  #   #   ####  #      #   #
 #  #  #      #   #  #        #    #       #  #  #   #  #   #  #      #  ##
####    ###    ####   ###    ###    ###   ####    ###    ####  #       ## #
                     #   #
                      ###
## Application terminated, rc = 0x0

----------------------
이 보드에서 reset은 메모리 내용이 사라지진 않는다..reset exception을 발생해서 재부팅하는거
파워를 뺏다가 한 1분뒤에 부팅하면 없어진다


bin 파일은 숨겨진 파일이 될 수 있으니깐 폴더옵션에서 보이게해놔

.s 파일은 어셈블러 파일 이라고 정하자...저번에는 .asm 이었는데

ti dm 3730칩