我使用 OMAP-L138 Exp 套件。首先请查看我的 U-boot 属性。
它们是:
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 目录中进行了安装。
root@my_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
行。我忽略它并输入登录名。
root@arago:/c6accel_app# ls
benchmarking.txt dsplinkk.ko
c6accel_app loadmodules_omapl138_c6accel.sh
c6accel_omapl138.x674 test_files
cmemk.ko
行!
root@arago:/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_opl138_c6accel.sh 我只修改了一个字符串
modprobe cmemk phys_start=0xC2000000 phys_end=0xC3200000 pools=20x4096 allowOverlap=1
所以,最后我有
modprobe cmemk phys_start=0xC4000000 phys_end=0xC5200000 pools=20x4096 allowOverlap=1
保存了它。 尝试2。
root@arago:/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
不过早……
root@arago:/c6accel_app# ls
Segmentation fault
东西坏了。它已经完全坏掉了。在这种情况下我该怎么办?谢谢你。