Dear Champs,
I tried to assign CMEM area over 128MB on DM368 but DM368 IPNC got stuck. It has not responded in console since then. Even it doesn’t respond to “ctrl-C”.
Details of DM368 IPNC configuration and the issue are as follows.
1. How to set CMEM area over 128MB.
1. ex) insmod modules/cmemk.ko phys_start=0x88000000 phys_end=0x8C000000 pools=1x362880
2. Symptom of the issue : System got stuck while running insmod. (No response in console. IPNC doesn’t respond to even ‘Ctrl-C’.)
3. Assigned Kernel memory size is 96MB.
4. Direct memory read/write over 128MB by application does have no issue. To check direct memory access, m_pUserPtr memory pointer was used as result of mmap() using i_dwPhyAddr = 0x88000000 and i_dwLength = 0x01000000.
m_fdMem = open("/dev/mem", O_RDWR); m_pUserPtr = (unsigned char*)mmap(NULL, i_dwLength, PROT_READ|PROT_WRITE, MAP_PRIVATE, m_fdMem, i_dwPhyAddr); |
5. IPNC environment
1. DM368
2. DVSDK: 2.10.1.18
3. linuxutils 2.24.03
To verify that linuxutils support CMEM area setting over 128M, I referred to the link:
In other source, I found out the same issue on DM365.
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg16768.html
I want to get confirmed that DM368 has no problem in setting CMEM over 128M and to get the detail information of how to set it if the link above has some broken information for DM368.
WS Yeo