Hello!
I have downloaded source from Appro server and successfully build it and now I try run it on my board with DM365 and MT9P031. I try run system from NFS and flash.
When I run system from NFS I get this:# ./system_server queue id:0 FileMngThread created Creat queue id:32769 queue id:32769 AlramThread created Share memory init success IPNC_DM365_2.0.0-gb36a56e4-dirty (kirill@kirill) (gcc version 4 queue id:65538 Creat queue id:65538 queue id:65538 queue id:32769 CPU is DM365DEMOCFG Value : 0 Videocodecmode : 0 Videocodecres : 0 ./av_server.out FD OSD DM365 AEWB TI2A AUDIO 8000 720P H264 4000000 VBR AUTO MENUOFF & Check_device_version : DEVICE VER = 1 !! ApproDrvInit: 7 Creat queue id:98307 queue id:98307 AVSERVER UI: Initializing. DRV_SyncRst: module = 47, domain = 0, state = 0 DRV_SyncRst: module = 47, domain = 0, state = 3 CLK Hz, ARM Hz = 297000000DDR Hz = 243000000 VPSS Hz = 243000000 IMCOP Hz = 243000000 [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter CONFIGURING AVSERVER FOR DM365 ..... SENSOR FPS VALUE = 30 I2C-address 0x90 DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT: layer.pix_fmt.bytesperline = 640, layer.pix_fmt.width = 640, layer.pix_fmt.height = 480, layer.pix_fmt.sizeimage =460800queue id:98307 DavinciDisplay DavinciDisplay.1: pixfmt->width = 640, layer->layer_info.config.line_length= 640 FR : 0 users registered from exsiting face album IPNC_DM365_2.0.0-gb36a56e4-dirty (kirill@kirill) (gcc version 4 IPNC AUTO_IRIS = 1 ##################### GBCE in EVAL MODE queue id:65538 TI 2A TRIAL VERSION!!! TI 2A Expiration date: 2010, Dec 31 Simple mixer control 'PGA',0 Capabilities: cvolume Capture channels: Mono Limits: Capture 0 - 3 Mono: Capture 2 [67%] Simple mixer control 'Mono DAC',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 63 Mono: Playback 47 [75%] killall: wis-streamer: no process killed SystemInit success Schedule manager init success umount: /mnt/mmc: not mounted mount: special device /dev/mmcblk0 does not exist mount: special device /dev/mmcblk0p1 does not exist net_config.c: start net_get_hwaddr system_control.c: start SetDhcpEnable, val 0 nenfs: RPC call returned error 101 killall: dhcpcd: no process killed rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory net_config.c: startnfs: RPC call returned error 101 net_set_ifaddr file_msg_drv.c: start fSetDhcpEnable, val 0 net_config.c: start net_set_ifaddr net_config.c: start net_set_netmask net_config.c: start net_set_gateway net_config.c: start net_search_gateway net_search_gateway:eth0, 1A8C0, 0, 1 net_config.c: start net_add_gateway net_config.c: start net_set_dns nfs: server 192.168.10.3 not responding, still tryingLink on network card is active.
But when I run system from flash I get this: # ./system_server queue id:0 FileMngThread created Creat queue id:65538 queue id:65538 AlramThread created Share memory init success IPNC_DM365_2.0.0-gb36a56e4-dirty (kirill@kirill) (gcc version 4 Creat queue id:98307 queue id:98307 queue id:65538 CPU is DM365 DEMOCFG Value : 0 Videocodecmode : 0 Videocodecres : 0 queue id:98307 ./av_server.out FD OSD DM365 AEWB TI2A AUDIO 8000 720P H264 4000000 VBR AUTO MENUOFF & CPU CurrentStatus is = 0Check_device_version : DEVICE VER = 1 !! AVSERVER UI: Initializing. DRV_SyncRst: module = 47, domain = 0, state = 0 DRV_SyncRst: module = 47, domain = 0, state = 3 CLK Hz, ARM Hz = 297000000 DDR Hz = 243000000 VPSS Hz = 243000000 IMCOP Hz = 243000000 [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter ApproDrvInit: 7 queue id:32769 CONFIGURING AVSERVER FOR DM365 ..... SENSOR FPS VALUE = 30 I2C-address 0x90DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT: layer.pix_fmt.bytesperline = 640, layer.pix_fmt.width = 640, layer.pix_fmt.height = 480, layer.pix_fmt.sizeimage =460800 queue id:32769 DavinciDisplay DavinciDisplay.1: pixfmt->width = 640, layer->layer_info.config.line_length= 640 FR : 0 users registered from exsiting face album IPNC_DM365_2.0.0-gb36a56e4-dirty (kirill@kirill) (gcc version 4 IPNC AUTO_IRIS = 1 ##################### GBCE in EVAL MODE queue id:98307 TI 2A TRIAL VERSION!!!TI 2A Expiration date: 2010, Dec 31 Simple mixer control 'PGA',0 Capabilities: cvolume Capture channels: Mono Limits: Capture 0 - 3 Mono: Capture 2 [67%] Simple mixer control 'Mono DAC',0 Capabilities: pvolume pvolume-joined Playback channels: Mono Limits: Playback 0 - 63 Mono: Playback 47 [75%] killall: wis-streamer: no process killed SystemInit success Schedule manager init success umount: /mnt/mmc: not mounted mount: special device /dev/mmcblk0 does not exist mount: special device /dev/mmcblk0p1 does not exist killall: dhcpcd: no process killed 1:01 not found rm: cannot remov1:02 not founde `/var/run/dhcpcd-eth0.pid': No such file or directory net_config.c:net_search_gateway:eth0, 1A8C0, 0, 1 dns=192.168.1.1 net_config.c:net_search_gateway:eth0, 1A8C0, 0, 1 net_config.c:net_search_gateway:eth0, 0, FE01A8C0, 3 dns=192.168.1.1 ERROR: Module g_file_storage does not exist in /proc/modules g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005 g_file_storage gadget: Number of LUNs=1 g_file_storage gadget-lun0: ro=0, file: /dev/sbulla Unable to handle kernel NULL pointer dereference at virtual address 00000004 pgd = c09f4000 [00000004] *pgd=811d9031, *pte=00000000, *ppte=00000000 Internal error: Oops: 17 [#1] Modules linked in: g_file_storage sbull iscsi_tcp libiscsi scsi_transport_iscsi usbmon musb_hdrc usbcore davinci_mmc mmc_block mmc_core ppp_deflate ppp_async ppp_synctty ppp_generic netconsole slhc tun loop nfsdlCPU: 0 PC is at phy_read+0x1c/0x60 LR is at emac_control+0x118/0x4d4 pc : [<c0201010>] lr : [<c020321c>] Not tainted sp : c0c3dcc8 ip : c0c3dce8 fp : c0c3dce4 r10: c0c3deb0 r9 : c0c3c000 r8 : 00000000 r7 : 00000001 r6 : c0c3ddac r5 : 00000000 r4 : c0c3c000 r3 : c12b7284 r2 : c0c3ddac r1 : 00000001 r0 : 00000000 Flags: Nzcv IRQs off FIQs on Mode SVC_32 Segment user Control: 5317F Table: 809F4000 DAC: 00000015 Process system_server (pid: 729, stack limit = 0xc0c3c258) Stack: (0xc0c3dcc8 to 0xc0c3e000) dcc0: c12b7280 c12b7280 c0c3ddac c0c3ddac c0c3dda4 c0c3dce8 dce0: c020321c c0201004 c0c3dd14 c0c3dcf8 c0c3dd14 c0c3dd00 c00b0750 c00b06bc dd00: ffffffea ffffffea c0c3dd3c c0c3dd18 c00d22e4 c00b06f8 00000000 c05cda58 dd20: 00000000 c197abb8 c197ac2c c0c3df08 c0c3dd74 c0c3dd40 c00a62f8 c00a61f4 dd40: c0c3dd74 c0c3dd50 c00b13fc c01d134c c197aa80 c0c3df08 c197abb8 c0c3c000 dd60: 00000000 00000003 c0c3ddc4 c0c3dd78 c00a8ad4 c00b13d4 00000101 c02e7ef8 dd80: 60000013 c12b7280 c0c3ddac c0c3c000 00000000 c0c3deb0 c0c3de6c c0c3dda8dda0: c0207574 c0203114 c0c3df08 00000001 00000001 00000001 c0c3de3c c0c3ddc8 ddc0: c00a8d8c c00b63dc c2c03b18 c04602a0 c0460220 c05cdc58 c0c3df4c 00000000 dde0: 00000020 00000000 c02f30f8 00000000 c0c3de14 c030de00 c0053b68 c01bf918 de00: c009410c 00000204 00000000 00000000 c0053ba8 00000000 00000020 00000000 de20: c02f30f8 00000000 c0078c5c 32398320 00003135 c0c3df08 00000001 00000000 de40: c0c3de6c c0c3de50 00000016 42223dd4 c197abb8 000089f0 c12b7000 c0c3deb0 de60: c0c3de8c c0c3de70 c0270c44 c0207444 c0c3de8c c0c3deb0 000089f0 42223db4 de80: c0c3df04 c0c3de90 c02720c0 c02708b4 c0c3deec c0c3dea0 c01d5d24 c01d4fcc dea0: 0000000a ffffffff ffffffff 00000000 30687465 00000000 00000000 00000000 dec0: 42223de0 00000000 00000000 00000000 00000119 c0c3df3c c05cda34 c060f9a0 dee0: 000089f0 42223db4 c060f9a0 00000004 c0c3c000 00000000 c0c3df24 c0c3df08 df00: c0264228 c0271b80 c0c3df64 c060f9a0 42223db4 000089f0 c0c3df44 c0c3df28 df20: c00ab770 c0264040 00000002 c060f9a0 00000004 42223db4 c0c3df74 c0c3df48 df40: c00aba94 c00ab748 c0d8b4a0 00000004 0003a5c8 00000000 42223db4 000089f0 df60: 00000004 c0c3c000 c0c3dfa4 c0c3df78 c00abb70 c00ab7e0 c0c3dfa4 00000001 df80: c0265364 00000000 00000001 42223db4 00000036 c0034f88 00000000 c0c3dfa8 dfa0: c0034f58 c00abacc 00000000 00000001 00000004 000089f0 42223db4 42223de0 dfc0: 00000000 00000001 42223db4 00000036 00000000 00000000 00000000 ffffffff dfe0: 00000004 42223db0 0001a30c 4016b27c 60000010 00000004 72c57de5 cbb7c2b3 Backtrace:[<c0200ff4>] (phy_read+0x0/0x60) from [<c020321c>] (emac_control+0x118/0x4d4) r7 = C0C3DDAC r6 = C0C3DDAC r5 = C12B7280 r4 = C12B7280 [<c0203104>] (emac_control+0x0/0x4d4) from [<c0207574>] (emac_ioctl+0x140/0x4a0) [<c0207434>] (emac_ioctl+0x0/0x4a0) from [<c0270c44>] (dev_ifsioc+0x3a0/0x3e8) r6 = C0C3DEB0 r5 = C12B7000 r4 = 000089F0 [<c02708a4>] (dev_ifsioc+0x0/0x3e8) from [<c02720c0>] (dev_ioctl+0x550/0x5ec) r6 = 42223DB4 r5 = 000089F0 r4 = C0C3DEB0 [<c0271b70>] (dev_ioctl+0x0/0x5ec) from [<c0264228>] (sock_ioctl+0x1f8/0x230) [<c0264030>] (sock_ioctl+0x0/0x230) from [<c00ab770>] (do_ioctl+0x38/0x98) r6 = 000089F0 r5 = 42223DB4 r4 = C060F9A0 [<c00ab738>] (do_ioctl+0x0/0x98) from [<c00aba94>] (vfs_ioctl+0x2c4/0x2ec) r6 = 42223DB4 r5 = 00000004 r4 = C060F9A0 [<c00ab7d0>] (vfs_ioctl+0x0/0x2ec) from [<c00abb70>] (sys_ioctl+0xb4/0xe8) r9 = C0C3C000 r8 = 00000004 r6 = 000089F0 r5 = 42223DB4 r4 = 00000000 [<c00ababc>] (sys_ioctl+0x0/0xe8) from [<c0034f58>] (__sys_trace_return+0x0/0x28) r8 = C0034F88 r7 = 00000036 r6 = 42223DB4 r5 = 00000001 r4 = 00000000 Code: e3cd4d7f e3c4403f e1a05000 e1a07001 (e5906004)
How can I solve this problem?Thank you and excuse me for my bad english.
I have inserted printk() in drivers/net/davinci_emac.c and found what problem in emac_ioctl function.
I get this output:mount: special device /dev/mmcblk0p1 does not existDebug SYS_MSG_DO_BOOT_PROCBootProc2[01/Jan/2000:00:00:33 +0000] boa: server version Boa/0.94.13[01/Jan/2000:00:00:33 +0000] boa: server built Dec 17 2010 at 09:44:42.[01/Jan/2000:00:00:33 +0000] boa: starting server pid=736, port 80queue id:0UDPString=uuid:Upnp-TVEmulator-1_0-00_0075546551</UDN>emac_ioctl: cmd SIOCDEVPRIVATE, ioctl 22Upnp port is 0UPnP Initialized OK ip=192.168.10.254, port=49152desc_doc_url start ioctl EMAC_PRIV_MII_READ= http://192.168copy_from_user OK.10.254/tvdevicelocal_irq_save OKUnable to handle kernel NULL pointer dereference at virtual address 00000004pgd = c27d4000[00000004] *pgd=82065031, *pte=00000000, *ppte=00000000Internal error: Oops: 17 [#1]
Function emac_control() in ioctl EMAC_PRIV_MII_READ is a root this problem, but why?
Hmm, this is a very strage, but I have problem in function phy_read, file drivers/net/phy/phy.c
I have inserted in it debug output and get this:Normal output when board loaded:Starting phy_read, reg 0x1phy_read: reg 0x1, val 0x786dStarting phy_read, reg 0x1phy_read: reg 0x1, val 0x786dStarting phy_read, reg 0x5phy_read: reg 0x5, val 0x45e1Starting phy_read, reg 0x4phy_read: reg 0x4, val 0x1e1
And another output: start ioctl EMAlocal_irq_save OKlink_speed 100000000, link_mode 3emac_control EMAC_IOCTL_READ_PHY_REG, reg 0x1Starting phy_read, reg 0x1Unable to handle kernel NULL pointer dereference at virtual address 00000004
I have Realtek RTL8201BL phy-chip on my board.
How can I solve this problem?Thanks.
OK, I solve this problem.
Could you please state clear how you solved the problem? This might help others.
Thanks.
Hi Kirill,
I think it's time this post was made, but we have the same problem with the RTL8201 and appro dm368 IPNC. Is this HW or SW problem?
Can you tell us the solution that you found?
Thanks you in advance.
Sakho