>I use OMAP-L138 Exp Kit.首先,请查看我的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_omapl138_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
有些东西坏了。它已经完全崩溃了。在这种情况下我该怎么办?谢谢。
棺材很容易打开....
设备具有 64 MB 的内存。通过此命令
bootargs=console=ttyS2,115200n8 mem=64M root=/dev/nfs rw nfsroot=192.168.1.218:/home/my_name/targetfs ip=192.168.1.231
我只是说:"好的,内核,全部拿走。这一切都是为了你"
所以。。。我得到了我想要的:32 mb - 用于内核。其他 32 mb 用于 CMEM。没有更多的分段错误。