Cmemk error

I'm trying to use the onboard dsp of my XM rev A.

The image was generated using narcissus. I check marked all kernel
modules and the dsp examples and some other stuff that i needed..

Here is my boot.cmd

setenv vram '24M'
setenv defaultdisplay tv
setenv omapfb.mode 'tv:pal'
setenv omapfb.vram '0:12M,1:8M,2:4M'
setenv memmap 'mem=99M@0x80000000 mem=384@0x88000000'
run loaduimage
run mmcboot

I used mkimage to generate boot.scr

And here is the serial output on

http://pastebin.com/eS5FnQmv

Notice the cmem error at the end.

Loading kernel modules for gstreamer-ti...
Running /usr/share/ti/gst/omap3530/loadmodules.sh[ 130.506896] CMEMK
module: built on Jan 25 2011 at 21:07:57
[ 130.513336] Reference Linux version 2.6.32
[ 130.518707] File /OE/angstrom-dev/work/beagleboard-angstrom-linux-
gnueabi/ti-linuxutils-1_2_25_05_11-r100d/linuxutils_2_25_05_11/
packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 130.540557] CMEM Range Overlaps Kernel Physical - allowing overlap
[ 130.546905] CMEM phys_start (0x86300000) overlaps kernel
(0x80000000 -> 0xa0000000)
[ 130.555938] CMEMK Error: Failed to request_mem_region(0x86300000,
16777216)
FATAL: Error inserting cmemk (/lib/modules/2.6.32/kernel/drivers/dsp/
cmemk.ko): Bad address
[ 130.606719] DSPLINK Module (1.65.00.03) created on Date: Jan 25
2011 Time: 20:51:12
[ 130.727905] SDMAK module: built on Jan 25 2011 at 21:08:00
[ 130.733428] Reference Linux version 2.6.32
[ 130.744476] File /OE/angstrom-dev/work/beagleboard-angstrom-linux-
gnueabi/ti-linuxutils-1_2_25_05_11-r100d/linuxutils_2_25_05_11/
packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c

Any suggestions? It says kernel memory overlap allowed. Then an
error :s..

Go into the script and raise the start and end address for the memory.

Keep trying values until some work.

/usr/share/ti/gst/omap3530/loadmodules.sh

I'm trying to use the onboard dsp of my XM rev A.

The image was generated using narcissus. I check marked all kernel
modules and the dsp examples and some other stuff that i needed..

Here is my boot.cmd

setenv vram '24M'
setenv defaultdisplay tv
setenv omapfb.mode 'tv:pal'
setenv omapfb.vram '0:12M,1:8M,2:4M'
setenv memmap 'mem=99M@0x80000000 mem=384@0x88000000'
run loaduimage
run mmcboot

I used mkimage to generate boot.scr

And here is the serial output on

cmem error - Pastebin.com

  • [ 0.000000] Kernel command line: console=ttyS2,115200n8 mpurate=1000 buddy=none camera=lbcm3m1 vram=24M omapfb.mode=dvi:640x480MR-16@60 omapdss.def_disp=tv root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
  • [ 0.000000] Beagle expansionboard: none
  • [ 0.000000] Beagle cameraboard: lbcm3m1

your 'memmap' var isn't making it into bootargs (neither are mode and vram).

regards,

Koen

I think I mixed up the uImage. Used the uImage from the demo image
instead of the generated one.
Don't have my board handy atm. Or i would've checked and posted.
Does it matter?

var isn't making it into bootargs
:s
Possible reasons?

setenv defaultdisplay tv seems to be working perfectly!?

Cole Christensen wrote:

Go into the script and raise the start and end address for the memory.

Keep trying values until some work.

/usr/share/ti/gst/omap3530/loadmodules.sh

that won't help until the kernel leaves some memory aside for CMEM which it does not.

Kernel command line: console=ttyS2,115200n8 mpurate=1000 buddy=none camera=lbcm3m1 vram=24M
omapfb.mode=dvi:640x480MR-16@60 omapdss.def_disp=tv root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

I'm confused.

I used the dsplink bootscript in the bootscript folder.
Just renamed it to boot.scr.
At least cmem isnt giving an error now during the boot now.

But when i run /usr/share/ti/ ti dsplink examples loadmodules.sh
I get

Warning! You need to use mem=126M or less on the kernel cmdline
You have 458988kB total memory for Linux

When i check system monitor. I get 400 something memory. Shouldn't
this be 99!?

Pastebin -> http://pastebin.com/BZgteiFU

It works.
I was checking using the run script.
There's a problem mentioned in one of the other posts.
Have to reset the DSP between different out files. Because of some
cache problem.

Individually running the modules with lpmOFF and lpmON in between is
OK.

Now to set up the Host PC's.

We are working in a team of 4.
One is programming in CCS3.3 for the DSP in windows.
Another is working in QT-Creator in Ubuntu.

I have to set up their pc's for dsplink.

Any guidelines/links anyone? I can't seem to find the 'one' tutorial
to follow.