现在的位置: 首页 > 综合 > 正文

DM8148开发记录 一

2013年08月27日 ⁄ 综合 ⁄ 共 6641字 ⁄ 字号 评论关闭

http://processors.wiki.ti.com/index.php/Category:DaVinci

http://processors.wiki.ti.com/index.php/Category:DaVinci_Linux

http://processors.wiki.ti.com/index.php/Category:EZSDK

http://processors.wiki.ti.com/index.php/Category:DVSDK

http://processors.wiki.ti.com/index.php/Category:OMX

首先在开启采集程序的时候,遇到这个问题:DM8148  VPSS_GRPX : please open fb1 node first

烧写模式:

NAND boot mode

Switch S1, S1[5:1] ==> 10010 , other pins should be 0 (i.e. OFF). This sets BTM[4:0] in NAND boot mode
Switch SW2---->NAND ON

SPI boot mode

Switch S1, S1[5:1] ==> 10110 , other pins should be 0 (i.e. OFF). This sets BTM[4:0] in SPI boot mode
Switch SW2---->SPI ON

UART boot mode

Switch S1, S1[5:1] ==> 00001 , other pins should be 0 (i.e. OFF). This sets BTM[4:0] in UART boot mode
Switch SW2---->NAND ON

SD boot mode

Switch S1, S1[5:1] ==> 10111 , other pins should be 0 (i.e. OFF). This sets BTM[4:0] in SD boot mode
Switch SW2----> Depending on where ENV storage is required enable the appropriate switch.

NOR boot mode

Switch S1, S1[5:1] ==> 10000 , S1[8] ==> 1 , other pins should be 0 (i.e. OFF). This sets BTM[4:0] in NOR boot mode
Switch SW2---->NAND OFF, SPI OFF


例子: 我也遇到了这样的问题

/** flashing first boot loader into nand **/

TI8148_EVM# mmc rescan 0

TI8148_EVM# fatls mmc 0

TI8148_EVM# mw.b 0x81000000 0xFF 0x20000

TI8148_EVM$ fatload mmc 0 0x81000000 MLO

TI8148_EVM# nandecc hw 2

TI8148_EVM# nand erase 0x0 0x20000

TI8148_EVM# nand write.i 0x81000000 0x0 0x20000

TI8148_EVM# nandecc hw 0

/** flashing u-boot into nand **/

TI8148_EVM# mmc rescan 0

TI8148_EVM# fatls mmc 0

TI8148_EVM# mw.b 0x81000000 0xFF 0x20000

TI8148_EVM$ fatload mmc 0 0x81000000 u-boot.bin

TI8148_EVM# nandecc hw 0

TI8148_EVM# nand erase 0x20000 0x60000

TI8148_EVM# nand write.i 0x81000000 0x20000 0x60000

2.from userland(after root prompt up) using mtd utils

root@ti814x:~#

root@ti814x:~# flash_erase /dev/mtd0 0 0

Erasing 128 Kibyte @ 0 -- 100 % complete

root@ti814x:~# flash_erase /dev/mtd1 0 0

Erasing 128 Kibyte @ 1e0000 -- 100 % complete

root@ti814x:~# flash_erase /dev/mtd4 0 0

Erasing 128 Kibyte @ 3e0000 -- 100 % complete

root@ti814x:~# nandwrite -p /dev/mtd0 /media/UPLOAD_mmc/MLO

Writing data to block 0 at offset 0x0

root@ti814x:~# nandwrite -p /dev/mtd1 /media/UPLOAD_mmc/u-boot.bin

Writing data to block 0 at offset 0x0

Writing data to block 1 at offset 0x20000

root@ti814x:~# nandwrite -p /dev/mtd4 /media/UPLOAD_mmc/uImage

Writing data to block 0 at offset 0x0

Writing data to block 1 at offset 0x20000

Writing data to block 2 at offset 0x40000

.....

.....

Writing data to block 21 at offset 0x2a0000

after reebooting.....

board is not booting. Just it get struck giving ccc in minicom window..

CCCCCCCCCCCCCCCCCCC      (here i get struck )

Now i switched to SD card boot mode and flashed only first boot loader..

1.at u-boot level( using SD boot..)

TI8148_EVM#mmc rescan 0

TI8148_EVM#mw.b 0x81000000 0xFF 0x20000

TI8148_EVM#fatload mmc 0 0x81000000 MLO

reading MLO

70544 bytes read

TI8148_EVM#nandecc hw 2

HW ECC BCH8 Selected

TI8148_EVM#nand erase 0x0 0x20000

NAND erase: device 0 offset 0x0, size 0x20000

Erasing at 0x0 -- 100% complete.

OK

TI8148_EVM#nand write.i 0x81000000 0x0 0x20000

NAND write: device 0 offset 0x0, size 0x20000

131072 bytes written: OK

TI8148_EVM#nandecc hw 0

HW ECC Hamming Code selected

switch to NAND BOOT mode... reset the board..

U-Boot 2010.06 (May 13 2012 - 10:13:17)

TI8148-GP rev 2.1

ARM clk: 600MHz

DDR clk: 400MHz

I2C: ready

DRAM: 2 GiB

NAND: HW ECC Hamming Code selected

256 MiB

*** Warning - bad CRC or NAND, using default environment

MMC: OMAP SD/MMC: 0

Net: <ethaddr> not set. Reading from E-fuse

Detected MACID:90:d7:eb:c6:3d:66

cpsw

Hit any key to stop autoboot: 0

device 0 offset 0x240000, size 0x4

NAND read: device 0 offset 0x260000, size 0x400000

4194304 bytes read: OK

Booting from NAND

## Booting kernel from Legacy Image at 81000000 ...

Image Name: MontaVista Automotive Technology

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 2814088 Bytes = 2.7 MiB

Load Address: 80008000

Entry Point: 80008000

Verifying Checksum ... OK

Loading Kernel Image ... OK

OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Linux version 2.6.37.6.ps-110721-ti-jacinto5 (mallikarjuna@mallikarjuna-desktop) (gcc version 4.4.1 (MontaVista Linux G++ 4.4-111220) ) #7 PREEMPT Thu May 17 11:48:07 IST 2012

CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f

CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: ti8148evm

vram size = 52428800 at 0x0

reserved size = 52428800 at 0x0

FB: Reserving 52428800 bytes SDRAM for VRAM

Memory policy: ECC disabled, Data cache writeback

OMAP chip is TI8148 2.0

Built 1 zonelists in Zone order, mobility grouping on. Total pages: 30126

Kernel command line: console=ttyO0,115200 rootfstype=jffs2 root=/dev/mtdblock5 rootwait rw ip=:::::eth0:off mem=169M notifyk.vpssm3_sva=0xBF900000 vram=50M ti814xfb.vram=0:16M,1:16M,2:6M

PID hash table entries: 512 (order: -1, 2048 bytes)

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 119MB = 119MB total

its booging and got the root prompt..

ti814x login: root

root@ti814x:~# l

.

Regards,

Mallikarjuna Reddy A

参考网站

http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#EVM_Switch_Settings

 编译app例子的时候,遇到的错误 # lnkv5T bin/ti_platforms_evmTI814X/app_remote.xv5T ... rm -f package/cfg/bin/ti_platforms_evmTI814X/app_remote.xv5T.map /opt/DM8148/arm-2009q1/bin/arm-none-linux-gnueabi-gcc  -Wl,--gc-sections  -o bin/ti_platforms_evmTI814X/app_remote.xv5T package/cfg/bin/ti_platforms_evmTI814X/app_remote_pv5T.ov5T  package/cfg/bin/ti_platforms_evmTI814X/app_remote/app.ov5T package/cfg/bin/ti_platforms_evmTI814X/app_remote/main_native.ov5T -Wl,-T,package/cfg/bin/ti_platforms_evmTI814X/app_remote_pv5T.xdl   -Wl,-Map=package/cfg//bin/ti_platforms_evmTI814X/app_remote.xv5T.map  -L/opt/DM8148/arm-2009q1/arm-none-linux-gnueabi/lib -lpthread -lrt -ldl /opt/DM8148/ezsdk/component-sources/codec_engine_3_22_01_06/packages/ti/sdo/ce/osal/linux/lib/release/osal_linux_470.av5T(Loader_linux.ov5T): In function `Loader_loadLibrary': Loader_linux.c:(.text.Loader_loadLibrary+0x68): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /opt/DM8148/arm-2009q1/arm-none-linux-gnueabi/lib/libdl.a(dlclose.o): In function `dlclose': dlclose.c:(.text+0x0): undefined reference to `__dlclose' collect2: ld returned 1 exit status gmake[1]: *** [bin/ti_platforms_evmTI814X/app_remote.xv5T] Error 1 gmake: *** [/opt/DM8148/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/apps/video_copy,.executables] Error 2 make: *** [all] Error 2 root@ubuntu:/opt/DM8148/ezsdk/component-sources/codec_engine_3_22_01_06/examples/ti/sdo/ce/examples/apps/video_copy# 解决了cmemk.ko加载问题 #setenv bootargs 'console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2  rw mem=120M mem=364M@0x80000000 mem=320M@0x9FC00000 mem=120M vmalloc=500M  notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd' setenv bootargs 'console=ttyO0,115200n8 root=/dev/mmcblk0p2 mem=120M rootwait vmalloc=500M  notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd' 

但还是不怎么明白

mem=364M@0x80000000 mem=320M@0x9FC00000

表示什么意思

qt的问题

root@dm814x-evm:~# export TSLIB_TSDEVICE=/dev/input/event0
root@dm814x-evm:~# export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 Auto:/dev/inp
ut/mice"                                                                        
root@dm814x-evm:~#

管脚设置好,就可以从flash烧写

抱歉!评论已关闭.