我用的是3.8版本的RDK,没做任何修改,直接编译,使用ubifs的方式可以运行,但挂载nfs则出现
TimeOut occure in boot_proc.
Program exit.
具体log如下:
[m3vpss ] 6208: CAMERA: Start in progress !!!
[m3vpss ] 6208: CAMERA: Start Done !!!
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org DM8127_IPNC ttyO0
Arago 2011.09 DM8127_IPNC ttyO0
DM8127_IPNC login: root (automatic login)
[m3vpss ] CT: 1000, 3dlut index:0
[host]
Application Run Completed
[m3vpss ] 6332: CAMERA: Fields = 2 (fps = 0), Total Resets = 0 (Avg 0 ms per reset)
root@DM8127_IPNC:~#
[host] ITT server task running !!!
[host]
ITT ittServer_run
[host] ITT Server Message initialization successful
[host]
ITT capture task created
[host] DCC server Message ques is open succefully
[host] Setting cmd <1> in message <40bb5100>
[host] Posting message <40bb5100> in QId <20002>
[m3vpss ] Command 1 recived from HOST A8
[host] Response from M3 is : 1
[m3vpss ] Command 2 recived from HOST A8
[m3vpss ] New DCC data of size <33603>
[m3video] Channel:1 inputframerate:30 targetfps:60
[m3vpss ] Call to VNF_LINK_CMD_UPDATE_DCC 536870980
[host] Response from M3 is : 1
[host] Default parameters were sent sucessfully
[host] Server Socket created with ID <22>
[m3video] Channel:0 inputframerate:60 targetfps:60
[m3video] Channel:2 inputframerate:60 targetfps:5
mkdosfs 3.0.12 (29 Oct 2011)
unable to get drive geometry, using default 255/63
/dev/sbulla has 255 heads and 63 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 1024 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 1 sector, and provides 247 clusters.
There is 1 reserved sector.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is d2e3abdd, no volume label.
g_file_storage gadget: No serial-number string provided!
g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla
Simple mixer control 'PGA',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left – Front Right
Limits: Capture 0 – 119
Front Left: Capture 80 [67%] [40.00dB] [on]
Front Right: Capture 80 [67%] [40.00dB] [on]
[m3vpss ] 8444: DISPLAY: Stop in progress !!!
Venc not supported!!
[m3vpss ] 8510: DISPLAY: Stop Done !!!
[m3vpss ] 8513: DISPLAY: Start in progress !!!
queue id:0
[m3vpss ] 8563: DISPLAY: Start Done !!!
[m3vpss ] 8563: DISPLAY: SDDAC(SEC1): 1340 fps, Latency (Min / Max) = ( 4 / 107 ), Callback Interval (Min / Max) = ( 33 / 34 ) !!!
[host] VNF MESSAGE RECIEVED: (Enable:0) (Mode:5) (Strength:0) (EnableTNF:0) (EnableSNF:0)
[host]
Channel Selected: 0
[host]
Channel Selected: 0,rate control = 0 [m3vpss ] 8496: VNF:
[m3vpss ] EnableSNF current SNF 1 => new 0!!!
[m3vpss ] NSF: EnableSNF 0 current mode 0!!!
[host]
========== Stream FrameRate1 = 30 =================
[host]
Channel Selected: 0
[host]
Channel Selected: 0
[host]
Channel Selected: 0
[host]
Channel Selected: 0,packet size = 100
[host]
Channel Selected: 0,encPreset = 0
[host]
Channel Selected: 0,enable = 0
[host]
Channel Selected: 1
[host]
Channel Selected: 1,rate control = 0 [m3vpss ] 8497: VNF:
[m3vpss ] EnableTNF current TNF 1 => new 0!!!
[m3vpss ] NSF: EnableTNF 0 current mode 1!!!
[m3vpss ] CT: 6032, 3dlut index:3
[m3vpss ] framerateParams->FrameRate = 30
[host]
Channel Selected: 1
[host]
Channel Selected: 1
[host]
Channel Selected: 1
[host]
Channel Selected: 1,packet size = 100
[host]
Channel Selected: 1,encPreset = 0
[host]
Channel Selected: 1,enable = 0
[host]
Channel Selected: 2
[host]
Channel Selected: 2,rate control = 2
[host] MJPEG in Rate Control OFF Mode
Check_device_version : DEVICE VER = 1 !!
[m3video] Channel:0 inputframerate:30 targetfps:30
[m3video] Channel:2 inputframerate:30 targetfps:5
[m3video] ENCLINK: new targetbitrate to set:10000000
[m3video] ENCLINK: new targetframerate to set:30000
[m3video] ENCLINK: new intraFrameInterval to set:30,new maxPicSizeRatioI to set = 960
[m3video] ENCLINK: new QP I Param to set:10 36 -1
[m3video] ENCLINK: new QP P Param to set:10 40 28
Simple mixer control 'PGA',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left – Front Right
Limits: Capture 0 – 119
Front Left: Capture 95 [80%] [47.50dB] [on]
Front Right: Capture 95 [80%] [47.50dB] [on]
Check_device_version : DEVICE VER = 1 !!
[m3video] ENCLINK: new PacketSize Param to set:100
[m3video] ENCLINK: new Encode Preset Param to set:0
[m3video] ENCLINK: new rate control algorithm to set:0
[m3video] Channel:1 inputframerate:30 targetfps:30
[m3video] JPGLINK: new targetframerate to set:5000 for bitrate 100000
[m3video] JPGLINK: new QP Param to set:1 51 80
[m3video] JPGLINK: new qualityFactor Param to set:80
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left – Front Right
Limits: Playback 0 – 127
Mono:
Front Left: Playback 101 [80%] [-13.00dB]
Front Right: Playback 101 [80%] [-13.00dB]
[m3video] JPGLINK: new rate control algorithm to set:2 for bitrate: 100000
[host]
Force IDR on Channel: 0
[host]
Force IDR on Channel: 1 [m3video] JPGLINK: Run time parameters changed 0
[m3video] ENCLINK: new targetbitrate to set:2000000
[m3video] ENCLINK: new targetframerate to set:30000
[m3video] ENCLINK: new intraFrameInterval to set:30,new maxPicSizeRatioI to set = 960
[m3video] ENCLINK: new QP I Param to set:10 36 -1
[m3video] ENCLINK: new QP P Param to set:10 40 28
SystemInit success
Schedule manager init success
[m3video] ENCLINK: new PacketSize Param to set:100
Dmva Schedule manager init success
[m3video] ENCLINK: new Encode Preset Param to set:0
[m3video] ENCLINK: new rate control algorithm to set:0
[m3video] Channel:2 inputframerate:30 targetfps:5
umount: can't umount /mnt/mmc: Invalid argument
killall: dhcpcd: no process killed
rm: cannot remove '/var/run/dhcpcd-eth0.pid': No such file or directory
TimeOut occure in boot_proc.
Program exit.
将文件系统打包成ubifs烧到flash中运行则一切正常,在网上看到很多人碰到类似的问题,但没有一个确定的解决方案
根据网上的信息,已经试过以下几种解决方法,都无效:
- SDK只能使用DHCP方式挂载NFS,静态IP无法挂载。 已经使用dhcp
- 重新编译烧写uboot和内核。 已经烧写过多次
- Flash_eraseall /dev/mtd5。 没有效果
- IP地址是否正确。 IP是使用dhcp的方式,确认在同一网段,而且从log上看已经成功挂载nfs,只是在启动app后出现问题
- SDK编译选项默认为64位,更改成32位后重新编译。 没有效果
- 确定uboot配置是否与内核一致。 确认过,都是工作在FULL_FEATURE模式
- 使用SDK原版filesys。 直接将filesys_ipnc_dm81xx.tar.gz解压后未修改的filesys挂载,问题依旧(timeout连续打印两次)
- 确定文件系统是否正确。 将filesys打包成ubifs文件烧写到flash中再运行,则一切正常
- Nfs文件系统确定挂载成功,只要不启动app,在nfs操作一切正常
- 有人说需要改Rules.mk . 我在里面只找到FS_CFG := ubifs看上去有点关系,但改成nfs后编译不成功
- 有人说改程序默认的IP地址与DHCP服务器同网段。 不知道是指什么地方,我把system_default.h里面的默认IP改掉了,没效果
貌似很多人都是重新编译然后烧写内核解决的,但我已经试过很多次了,都不行
Eason Wang:
1. 确保NFS就是你编译出UBIFS的一套,一个版本。
2. 是否有chmod 777 ?
chimey wang:
回复 Eason Wang:
1. 当然确保,我特意在里面加了一个说明文件来和原版区别,打包成UBIFS烧到flash里面,说明文件一样
2. 不仅我编译的不行,就算拿SDK自带的pre-build的bin也是一样的错误,我还试过3.0版本SDK的bin,也是烧flash可以,挂NFS不行,而且错误更离谱,挂NFS后会一直打印PHY=………………………………死循环
3 确定chmod 777过很多次,而且我还分别挂载过ubuntu 12.04和10.04系统上的NFS,都是一样的错误
两个不同版本的pre-build的bin都不行,我都怀疑是硬件有问题,但问题ubifs一切正常,不启动ipnc,只是挂载nfs操作或者编程都没问题
Grace huang:
回复 chimey wang:
请问问题解决了吗?
chimey wang:
回复 Grace huang:
没解决,
你也碰到同样的问题了?也是3.8版本?
Grace huang:
回复 chimey wang:
是的呢!
Jian Li14:
您好,请问您对makefile文件修改了没?为啥我make编译无法生成ubifs文件系统(我没做修改),如果需要修改,您能简单给我指导一下吗?谢谢啦 —–本人一只挣扎的菜鸟
Ternence_Hsu:
回复 Jian Li14:
你好;
建议看一下编译目录下面的Makefile 文件;
你可以通过make make ubifs_128 来编译出ubifs文件系统来;
Chris Meng:
回复 Ternence_Hsu:
你好,
使用SDK原版filesys。 直接将filesys_ipnc_dm81xx.tar.gz解压后未修改的filesys挂载,问题依旧(timeout连续打印两次)
解压原始的文件系统,然后make sysall,重新编译一遍,文件系统里的部分文件会更新,然后再尝试一下。uImage/uboot可以使用
我使用IPNC RDK 3.8在DM38x的参考设计上用NFS可以正常运行。使用的boot参数参考bin目录下的update.txt里面的配置。
请问你使用的硬件是Appro DM8127的参考设计么?
Louis:
回复 Chris Meng:
你好,
请尝试以下改动,ipnc_app/sys_server/src/system_control.c文件的PollingThread函数,
if(network_en && dhcp != pSysInfo->lan_config.net.dhcp_enable){ #if 0 // Louis debug SetDhcpEnable(dhcp); #endif
Jian Li14:
回复 Chris Meng:
是的,Appro DM8127