hi, all:
I meet problem when using h264venc-r demo on DM365. My boot cmdline is "mem=64M console=ttyS0,115200n8 noinitrd rw ip=192.168.42.101 root=/dev/nfs nfsroot=192.168.42.65:/home/fx/project/dm365/filesys dm365_imp.oper_mode=0".
And use default param in demo to insmod cmem.ko: "insmod cmemk.ko phys_start=0x86500000 phys_end=0x88000000 pools=2x2457600,1x1843200,1x4297168,1x100000,1x400000,1x300000,1x100000,3x100000,1x100000,2x100000,1x100000,1x100000,1x100000,1x100000,1x100000,1x100000,1x3550000,6x180,3x38016 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672"
When I run the program 'h264venc-r', the kernel panic and wrong information is following:
root@./h264venc-r
ADDRSPACE Protocol Registration Success
MEMTCMUnable to handle kernel paging request at virtual address fbc40018
Protocol Registpgd = c1b8c000
[fbc40018] *pgd=00000000
Reading Confi
guration file ..Internal error: Oops: 5 [#1]
Modules linked in: dm365mmap edmak irqk cmemk ipv6
CPU: 0
PC is at ioctl+0x1fc/0x3d8 [irqk]
LR is at __init_begin+0x3fff8000/0x30
pc : [<bf056480>] lr : [<00000000>] Not tainted
sp : c1b1dee0 ip : fbc40018 fp : c1b1df24
r10: 00000190 r9 : bf058140 r8 : bee8af10
r7 : bf057504 r6 : 00000000 r5 : bf057864 r4 : bf057850
r3 : bf0576a4 r2 : 00000004 r1 : 00000001 r0 : bf05785c
Flags: nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: 5317F
Table: 81B8C000 DAC: 00000015
Process h264venc-r (pid: 842, stack limit = 0xc1b1c258)
Stack: (0xc1b1dee0 to 0xc1b1e000)
dee0: 00000000 408db2a0 00000000 0000000a 00000004 00000000 c0036aec c109ee00
df00: bee8af10 00000000 00000005 c109ee00 c1b1c000 00000000 c1b1df44 c1b1df28
df20: c00a0e30 bf056294 c00600c0 c109ee00 00000005 bee8af10 c1b1df74 c1b1df48
df40: c00a1110 c00a0dc4 c008c00c 00000000 c1b1dfb0 00000000 bee8af10 00000000
df60: c109ee00 c1b1c000 c1b1dfa4 c1b1df78 c00a119c c00a0e5c c1b1df9c 00000000
df80: c00369fc 00000000 00000000 00000004 00000036 c002ff88 00000000 c1b1dfa8
dfa0: c002fde0 c00a1148 00000000 00000000 00000005 00000000 bee8af10 00000000
dfc0: 00000000 00000000 00000004 00000036 00000000 00000000 40025000 bee8afac
dfe0: 00000000 bee8af10 0002fc58 4023527c 60000010 00000005 00000000 00000000
Backtrace:
[<bf056284>] (ioctl+0x0/0x3d8 [irqk]) from [<c00a0e30>] (do_ioctl+0x7c/0x98)
[<c00a0db4>] (do_ioctl+0x0/0x98) from [<c00a1110>] (vfs_ioctl+0x2c4/0x2ec)
r6 = BEE8AF10 r5 = 00000005 r4 = C109EE00
[<c00a0e4c>] (vfs_ioctl+0x0/0x2ec) from [<c00a119c>] (sys_ioctl+0x64/0x8c)
r9 = C1B1C000 r8 = C109EE00 r6 = 00000000 r5 = BEE8AF10
r4 = 00000000
[<c00a1138>] (sys_ioctl+0x0/0x8c) from [<c002fde0>] (ret_fast_syscall+0x0/0x2c)
r8 = C002FF88 r7 = 00000036 r6 = 00000004 r5 = 00000000
r4 = 00000000
Code: 0a000009 e3a01001 e1a01e11 e28cc4fa (e59c3000)
/../../test/testvecs/config/testparams.cfg...
Running in Output Dump Mode
Encoder Creation Done
Size of I/P buffer:25344
Size of I/P buffer:12672
Output stream buffer size:38016
Output stream buffer size:792
Starting Encode...
Reading Input Frame - Input Frame Read Done
The program have stop the last line "Reading Input Frame - Input Frame Read Done", and the OS have no response, must to reset.
How can I run the demo? What did cause the problem?
Thanks a lot!