1
我使用OMAP-L138 Exp Kit。 首先請看我的U-boot屬性。執行c6accel樣本後出現分段錯誤
有它們是:
U-Boot > printenv
baudrate=115200
autoload=no
bootcmd=run netboot
bootfile=uImage-da850-omapl138-evm.bin
filesize=204104
fileaddr=C0700000
rootpath=/home/my_name/targetfs
netboot=tftpboot 0xc0700000 uImage-da850-omapl138-evm.bin; bootm 0xc0700000
bootargs=console=ttyS2,115200n8 mem=64M root=/dev/nfs rw nfsroot=192.168.1.218:/home/my_name/targetfs ip=192.168.1.231
netargs=console=ttyS2,115200n8 noinitrd rw mem=64M root=/dev/nfs rw nfsroot=192.168.1.218:/home/my_name/targetfs,nolock ip=192.168.1.231
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Jan 13 2011 - 01:05:37)
Environment size: 728/65532 bytes
在DVSDK的setup.sh我用下一個參數:板上存儲器64 MB,Linux內核位置 - TFTP,根文件系統位置 - NFS。 製作DVSDK成功了。 我也安裝在c6accel_1_01_00_07目錄中。
[email protected]_name-desktop:/usr/local/dvsdk/c6accel_1_01_00_07# make install
Creating /home/my_name/targetfs/c6accel_app
Copying kernel modules to target file system: /home/my_name/targetfs/c6accel_app/
Copying cmemk.ko
Copying dsplinkk.ko
Copying c6accel codec servers from /usr/local/dvsdk/c6accel_1_01_00_07
Copying c6accel test app from /usr/local/dvsdk/c6accel_1_01_00_07
Copying testfile from /usr/local/dvsdk/c6accel_1_01_00_07
現在我想執行C6accel示例。 所以我重置目標。 哦,不,它是什麼?
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0xc2000000) overlaps kernel (0xc0000000 -> 0xc4000000)
CMEMK Error: Failed to request_mem_region(0xc2000000, 18874368)
FATAL: Error inserting cmemk (/lib/modules/2.6.37/kernel/drivers/dsp/cmemk.ko): Bad address
好的。我忽略它並輸入登錄。
[email protected]:/c6accel_app# ls
benchmarking.txt dsplinkk.ko
c6accel_app loadmodules_omapl138_c6accel.sh
c6accel_omapl138.x674 test_files
cmemk.ko
好的!
[email protected]:/c6accel_app# ./loadmodules_omapl138_c6accel.sh
CMEMK module: built on Apr 12 2012 at 17:32:52
Reference Linux version 2.6.37
File /usr/local/dvsdk/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0xc2000000) overlaps kernel (0xc0000000 -> 0xc4000000)
CMEMK Error: Failed to request_mem_region(0xc2000000, 18874368)
FATAL: Error inserting cmemk (/lib/modules/2.6.37/kernel/drivers/dsp/cmemk.ko): Bad address
哎呀! 同樣的錯誤!
在文件loadmodules_omapl138_c6accel.sh我修改只有一個字符串
modprobe cmemk phys_start=0xC2000000 phys_end=0xC3200000 pools=20x4096 allowOverlap=1
所以,finnaly我有
modprobe cmemk phys_start=0xC4000000 phys_end=0xC5200000 pools=20x4096 allowOverlap=1
救了它。 嘗試2.
[email protected]:/c6accel_app# ./loadmodules_omapl138_c6accel.sh
CMEMK module: built on Apr 12 2012 at 17:32:52
Reference Linux version 2.6.37
File /usr/local/dvsdk/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc5000000 of size 0x11ec000
cmemk initialized
成功!然後我跑./c6accel_app
我很高興地看到
Test for Arithmetic RTS functions successful
******************************************************************************
All tests done.
******************************************************************************
libgcc_s.so.1 must be installed for pthread_cancel to work
但早期....
[email protected]:/c6accel_app# ls
Segmentation fault
什麼地方出現了。它完全破碎了。 在這種情況下應該怎麼做?謝謝。