发布时间:2025-12-09 13:55:04 浏览次数:4
参看:UG: DaVinci PSP Installation on DM36x EVM
参看:DM368 NAND Flash启动揭秘
参看:DM36x的UBL分析以及串口启动
UBL 是 RBL 引导启动的一段小程序,主要负责初始化时钟,串口,NAND,DDR2 等,然后把 uboot, kernel, rootfs 复制到 DDR2 上并引导 uboot。为什么 UBL 跟串口启动一起讲,那是因为这两个关系很密切,很多代码是共用的,而且代码都放在同一个目录下,所以就合起来一起讲了。
ubl 的代码放在 dvsdk 目录下的/psp/flash-utils 文件夹。 flash-utils 目录里有很多基于不同平台的文件夹,但对我 DM36x 来说,只需要 Common 和 DM36x 两个文件夹就可以了,其他的都可以删掉,而且删掉后清爽多了,呵呵。UBL 的源码分析网上已经很多人介绍了,我移植的时候参考了一篇很好的文章:http://zjbintsystem.blog.51cto.com/964211/392000
修改各个目录下的 makefile,主要是屏蔽掉不编译的选项。
这个文件很重要,里面包括了所有的 CPU 内部接口的初始化,包括时钟,DDR2,串口……。要是换了 DDR2 那就得在这修改 DDR 的配置。因为这个文件没有定义 CPU 的主频和 DDR2 频率的配置,使用了默认的//Arm 297 DDR 243 MHZ,所以我再这个文件的头部定义了一个宏#define ARM432_DDR340_OSC24
由 于 DEVICE_DDR2Init() 函 数 调 用 的 DDR_Get_Val() 编 译 时 报 错 , 这 个 是 因 为DDR_Get_Val()函数里面的除法和求余函数跟编译器不匹配造成的。改发就是把算好的值代替掉 DDR_Get_Val()。
这个链接文件里面有内存的起始地址和大小,NAND 的起始地址和大小的配置,这个根据板子的实际情况修改好。
完成上面的修改后就可以 make 了,生成的 ubl_DM36x_nand.bin 就是我们所要的 NAND 启动的 UBL 了。
串口启动相关的代码在/psp/flash-utils/DM36x/GNU 下面的 sfh,sft,slh,slt。其中 sfh,sft,是一对,sfh(Serial Flasher host)是 PC 端的下载工具,sft(Serial Flasher target)是运行在 ARM 上的程序。编译 sfh 需要 sfl 文件,从 UART 启动时,RBL 先跟 sfh 通讯把 sft 下载到 IRAM 中运行,然后 sft 通过跟 sfh通讯,在 PC 端用命令行的方式把要下载的代码烧写到 NAND 上去。下面是使用的介绍:
Serial Flasher Usage====================More info can be found by running the utility with the '-h' option.sfh_DM36x.exe -h1) Erase the NAND flashsfh_DM36x.exe -nanderase2) Flash the NAND with a UBL and u-boot imagesfh_DM36x.exe -nandflash <UBL binary file> <binary application file>The entry point of the UBL is assumed to be 0x0100, but this can be changed by using the-UBLStartAddr option. The entry point and load address of the application default to0x81080000 (u-boot defaults). To change these values, use the -APPStartAddr and-APPLoadAddr option.NOTE: Currently, YOU MUST USE THE UBL BINARY CREATED BY THE UBL PROJECTIN THIS PACKAGE. If you use any other UBL binary, the boot procedure will most likely fail.同样,slh 和 slt 也是一样的道理,只是他们是把代码下载到内部 RAM 或者 DDR2 上面去。
下面是使用介绍:
Serial Loader Usage===================More info can be found by running the utility with the '-h' option.slh_DM36x.exe -h1) Load a UBL or small UBL-like application to the DM36x IRAMslh_DM36x.exe -load2IRAM <UBL binary file>2) Load a larger image compiled to run at start of DDR spaceslh_DM36x.exe -load2DDR <binary application file>For the load to IRAM option, the file size is limited to 14KB, and the application assumes an entrypoint address of 0x0100 (the smallest allowed). The entry point address canbe modified by usingthe -startAddr command line option, with the address specified in hex.For the load to DDR option, the file size is limited to 32MB, and the application assumes a loadaddress and entry point address of 0x80000000.The entry point address can be altered by using the -startAddr command line option, as with the-load2IRAM case. The load address can be altered from the default by using the -loadAddrcommand line optionsfh_DM365x.exe 为 DVSDK 自带,所在位置如下图:
由于使用 sfh_DM36x.exe 需要安装.Net Framework 2.0 或更高的版本,所以先安装.net 固件。
1.PC 端打开命令行工具, 把 sfh_DM36x.exe 和要烧写的 UBL, uboot 文件放在同一个目录下,
编写脚本 download.bat 然后使用命令
sfh_DM36x -nandflash ubl_DM36x_nand.bin u-boot.bin -p “COM1”
如 果 需 要 指 定 UBOOT 的 装 在 地 址 或 入 口 地 址 的 话 需 要 加 上 -APPStartAddr 和 -APPLoadAddr 指定。
PS: 如上图所示插上短路帽则将板子设为串口启动,BTSET[2:0]=011 即NAND Boot mode
烧写过程:
1、368 设备主板插上短路帽,超级终端连接设备,看到打印。
ps:此时 BTSET[2:0]=011 为串口模式
此时断开超级终端
2.烧写文件目录找到 脚本,把里面的串口改为本地串口,运行该脚本,直到出现以下信息。
关闭该运行窗口,再次运行该脚本,打开运行窗口,出现以下信息
加载到 100%会自动关闭运行窗口
3.本地打开 tftp server 目录指向烧写文件目录
C:\Users\zslf\Desktop\shaoxie\sx\DM368\sx\u-boot 和 ubl 及烧写工具
4.打开虚拟机 ip 为 192.168.2.78(虚拟机要有文件系统)
5.关闭设备,拔掉短路帽,开启设备,会自动加载内核及文件系统,如下图
ps:此时 BTSET[2:0]=000 为 nand 启动模式
直到出现进入 uboot 界面如下图
6.在 uboot 下修改相关配置参数,依次设置以下指令,即完成板子烧写。
setenv bootargs dm365_imp.oper_mode=0 mem=48M console=ttyS0,115200n8 noinitrd rwubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs video=davincifb:osd0=720x480x16,4050K ;setenvbootcmd 'nand read 0x80700000 0x400000 0x400000;bootm 0x80700000';saveenvresetDM368用于小型化设备作为视频监控设备,本文主要说明的是怎样烧写DM368.
DM368采用的是NandFlash作为存储芯片,采用的是ubi文件系统.
DM368烧写分为三个步骤:通过串口烧写UBL和U-boot;u-boot下烧写uImage,主机下烧写ubi文件系统,修改启动参数;制作SD卡;
串口启动时用跳线帽短接指定的两个电阻;
分两次双击download.bat(必须执行两次双击,每次执行都必须执行完毕)。完成后即烧写完了UBL和U-boot,断电后取下两个跳线帽;
以下宏定义指令文件所在位置:
/home/zslf/dm368/dvsdk_dm368_4_02_00_06/psp/u-boot-2010.12/include/configs#
vi davinci_dm365evm.h
在编译uboot的时候 设置 serverip、bootargs 等。
第二部分烧写内核和文件系统实际上是自动化烧写完毕的。在这里分析下怎样实现的,主要是通过u-boot中bootcmd参数实现自动烧写uImage,nfs文件系统中软链接实现烧写ubi文件系统;
#define CONFIG_BOOTCOMMAND “tftp 0x80700000 uImage; nand erase 0x400000 0x400000; nand write 0x80700000 0x400000 0x400000;set bootcmd ‘ setenv bootcmd ‘ ‘;saveenv;nand read 0x80700000 0x400000 0x400000;bootm 0x80700000 ‘;set serverip 192.168.2.76;set ipaddr 192.168.2.194;saveenv;tftp 0x80700000 uImage;reset”
上述设置对应u-boot状态下bootcmd参数,含义是第一次上电后通过进入u-boot状态下通过tftp下载内核uIamge到内存0x80700000;修改再次启动的bootcmd参数;并将内核烧写到NandFlash中; ;修改再次启动的bootcmd参数;设置服务器ip(即主机IP),板子的ip,再进行复位;
#define CONFIG_BOOTARGS \
“mem=60M console=ttyS0,115200n8 noinitrd rw eth=03:0E:EF:F2:FF:85 ip=192.168.2.194::192.168.2.1 nfsroot=192.168.2.78:/home/zslf/dm368/rootfs,nolock video=davincifb:osd0=720x480x16,4050K dm365_imp.oper_mode=0”
上述设置bootargs,实现nfs挂载,从而实现第一次进入nfs文件系统中后可以烧写ubi文件系统;
#define CONFIG_IPADDR 192.168.2.194
#define CONFIG_SERVERIP 192.168.2.76
#define CONFIG_GATEWAYIP 192.168.2.1
#define CONFIG_ETHADDR 0A:26:C4:9F:7D:19
设置服务ip,开发板地址,网关,mac地址;
在nfs文件系统的/etc/rc5.d/下有一个链接脚本,实现ubi文件系统的自动化烧写,如下图所示:
可以看出是一个软链接,真正的脚本在/zslf/write.sh
write.sh中 的内容是:
rootfs-php为ubifs文件系统,需要放在nfs根根文件系统的zslf目录下;
上述脚本即为烧写ubi文件系统,烧写完毕后重启系统;
有上面的原理可以得出第二阶段的烧写步骤:
1.配置tftpd服务器,准备uImage内核,如下图所示:
例如:设置tftpd服务器的服务目录为D:\tftp32pd_base\DM368
将内核放在服务目录下,如下图所示:
上述可知/home/zslf/dm368/rootfs为nfs根文件系统;ubi文件系统rootfs-php。
放在/home/zslf/dm368/rootfs/zslf/下
3.(取下短路帽,从Nand启动),上电上电后,不要执行任何操作,系统自动烧写内核uImage和ubi文件系统,烧写完后,系统进行软复位,自动进入U-boot状态;
4.修改bootargs参数
修改bootargs参数,文件系统由nfs启动改为ubi文件系统启动;
修改如下:
setenv bootargs dm365_imp.oper_mode=0 mem=48M console=ttyS0,115200n8 noinitrd rw ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs video=davincifb:osd0=720x480x16,4050K ;setenv bootcmd ‘nand read 0x80700000 0x400000 0x400000;bootm 0x80700000’;
setenv bootcmd ‘nand read 0x80700000 0x400000 0x400000;bootm 0x80700000’
saveenv
reset;
1.利用sd-format.sh脚本格式化sd卡,建立基本的SD卡;
2.拷贝/zslf文件系统;
至此DM368烧写完毕;
#!/bin/she=""m=""n="xxxx"while [ 1 ]don="xxxx"e=`fdisk -l | grep /dev/sdb1 | awk '{print $1}'`if [ -z "$e" ];thenecho "####no sd ####"elseecho "####have sd !####"m=`df | grep media | awk '{print $1}'`if [ -n "$m" ];thenumount $mfi#umount $eecho "####start to format sd with ext3 filesystem!####"mkfs.ext3 "$e"echo "####end format sd!####"#echo "copy zslf_app_dir"mount $e /media/mmcblk0p1#cp -a zslf /media/mmcblk0p1/mkdir /media/mmcblk0p1/bakmkdir /media/mmcblk0p1/videoumount $eecho "##############zslf sd fomat and copy filesystem!##########################"echo "please remove sd!"fisleep 5if [ -n "$e" ];thenwhile [ -n "$n" ]don=`fdisk -l | grep /dev/sdb1 | awk '{print $1}'`sleep 5donefidoneU-Boot 2010.12-rc2 (May 27 2014 - 16:50:48)Cores: ARM 297 MHzDDR: 243 MHzDRAM: 128 MiBNAND: 512 MiBBad block table found at page 262080, version 0x01Bad block table found at page 262016, version 0x01Net: Ethernet PHY: LXT972 @ 0x01DaVinci-EMACHit any key to stop autoboot: 2 1 0 NAND read: device 0 offset 0x400000, size 0x4000004194304 bytes read: OK## Booting kernel from Legacy Image at 80700000 ...Image Name: Linux-2.6.32.17-davinci1Created: 2015-11-23 9:14:53 UTCImage Type: ARM Linux Kernel Image (uncompressed)Data Size: 2243956 Bytes = 2.1 MiBLoad Address: 80008000Entry Point: 80008000Verifying Checksum ... OKLoading Kernel Image ... OKOKStarting kernel ...Uncompressing Linux.................................................................................................................................................. done, booting the kernel.Linux version 2.6.32.17-davinci1 (root@zslf-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #117 PREEMPT Mon Nov 23 17:14:48 CST 2015CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177CPU: VIVT data cache, VIVT instruction cacheMachine: DaVinci DM36x EVMMemory policy: ECC disabled, Data cache writebackDaVinci dm36x_rev1.2 variant 0x8Built 1 zonelists in Zone order, mobility grouping off. Total pages: 12192Kernel command line: dm365_imp.oper_mode=0 mem=48M console=ttyS0,115200n8 noinitrd rw ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs video=davincifb:osd0=720x480x16,4050KPID hash table entries: 256 (order: -2, 1024 bytes)Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)Memory: 48MB = 48MB totalMemory: 43900KB available (4216K code, 393K data, 148K init, 0K highmem)SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1Hierarchical RCU implementation.NR_IRQS:245Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)Mount-cache hash table entries: 512CPU: Testing write buffer coherency: okDaVinci: 8 gpio irqsNET: Registered protocol family 16davinci_serial_init:97: failed to get UART2 clockEVM: HD imager video inputbio: create slab <bio-0> at 0DM365 IPIPE initialized in Continuous modeSCSI subsystem initializedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbpca9543a_probevpss vpss: dm365_vpss vpss probedvpss vpss: dm365_vpss vpss probe successdm365_afew_hw_initlconfig->line_length is 0.ch0 default output "COMPOSITE", mode "NTSC"###### vpbe_encoder_init ############ vid_enc_register_encoder ############ mgr->num_encoders is 0 ############ **ch_id is 0 ############ mode_info.name is NTSC ############ vpbe_encoder_initialize ############ output is COMPOSITE,outindex is 0 ############ vpbe_encoder_setoutput ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is NTSC ############ 22VPBE Encoder initialized ############ vpbe_encoder_setoutput ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is NTSC ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is NTSC ############ 33encoder->mode_ops->setmode: error is 0 ############ davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ######VPBE Encoder Initialized###### 11VPBE Encoder Initialized ######Switching to clocksource timer0_1musb_hdrc: version 6.0, cppi-dma, host, debug=0musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12musb_hdrc musb_hdrc: MUSB HDRC host drivermusb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1usb usb1: New USB device found, idVendor=1d6b, idProduct=0002usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1usb usb1: Product: MUSB HDRC host driverusb usb1: Manufacturer: Linux 2.6.32.17-davinci1 musb-hcdusb usb1: SerialNumber: musb_hdrcusb usb1: configuration #1 chosen from 1 choicehub 1-0:1.0: USB hub foundhub 1-0:1.0: 1 port detectedNET: Registered protocol family 2IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP established hash table entries: 2048 (order: 2, 16384 bytes)TCP bind hash table entries: 2048 (order: 1, 8192 bytes)TCP: Hash tables configured (established 2048 bind 2048)TCP reno registeredNET: Registered protocol family 1RPC: Registered udp transport module.RPC: Registered tcp transport module.RPC: Registered tcp NFSv4.1 backchannel transport module.Installing knfsd (copyright (C) 1996 okir@monad.swb.de).msgmni has been set to 85alg: No test for stdrng (krng)io scheduler noop registeredio scheduler anticipatory registered (default)###### davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ######davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 4050KBdavincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB###### davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ######davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KBdavincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KBDM365 IPIPEIF probedimp serializer initializeddavinci_previewer initializeddavinci_resizer initializeddavinci gpio led module init ....... register davinci gpio module is ok ....... Serial: 8250/16550 driver, 2 ports, IRQ sharing disabledserial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550Aconsole [ttyS0] enabledserial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550Abrd: module loadedNAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)nand_bbt: ECC error while reading bad block tableCreating 5 MTD partitions on "davinci_nand.0":0x000000000000-0x0000003c0000 : "bootloader"0x0000003c0000-0x000000400000 : "params"0x000000400000-0x000000820000 : "kernel"0x000000820000-0x000008820000 : "filesystem"0x000008820000-0x000020000000 : "zslf"davinci_nand davinci_nand.0: controller rev. 2.3UBI: attaching mtd3 to ubi0UBI: physical eraseblock size: 131072 bytes (128 KiB)UBI: logical eraseblock size: 126976 bytesUBI: smallest flash I/O unit: 2048UBI: VID header offset: 2048 (aligned 2048)UBI: data offset: 4096usb 1-1: new high speed USB device using musb_hdrc and address 2usb 1-1: New USB device found, idVendor=12d1, idProduct=15c1usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3usb 1-1: Product: HUAWEI Mobile V7R11usb 1-1: Manufacturer: Huawei Technologies Co., Ltd.usb 1-1: SerialNumber: 0123456789ABCDEFusb 1-1: configuration #2 chosen from 3 choicesUBI: attached mtd3 to ubi0UBI: MTD device name: "filesystem"UBI: MTD device size: 128 MiBUBI: number of good PEBs: 1024UBI: number of bad PEBs: 0UBI: max. allowed volumes: 128UBI: wear-leveling threshold: 4096UBI: number of internal volumes: 1UBI: number of user volumes: 1UBI: available PEBs: 5UBI: total number of reserved PEBs: 1019UBI: number of PEBs reserved for bad PEB handling: 10UBI: max/mean erase counter: 2/1UBI: image sequence number: 0UBI: background thread "ubi_bgt0d" started, PID 354PPP generic driver version 2.4.2PPP Deflate Compression module registeredPPP BSD Compression module registeredPPP MPPE Compression module registeredNET: Registered protocol family 24tun: Universal TUN/TAP device driver, 1.6tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>cdc_bind,[546]usb0: register 'cdc_ether' at usb-musb_hdrc-1, CDC Ethernet Device, 02:1e:10:1f:00:00usbcore: registered new interface driver cdc_etherconsole [netcon0] enablednetconsole: network logging startedInitializing USB Mass Storage driver...usbcore: registered new interface driver usb-storageUSB Mass Storage support registered.usbcore: registered new interface driver usbserialUSB Serial support registered for genericusbcore: registered new interface driver usbserial_genericusbserial: USB Serial Driver coreUSB Serial support registered for GSM modem (1-port)option 1-1:2.2: GSM modem (1-port) converter detectedusb 1-1: GSM modem (1-port) converter now attached to ttyUSB0option 1-1:2.3: GSM modem (1-port) converter detectedusb 1-1: GSM modem (1-port) converter now attached to ttyUSB1option 1-1:2.4: GSM modem (1-port) converter detectedusb 1-1: GSM modem (1-port) converter now attached to ttyUSB2option 1-1:2.5: GSM modem (1-port) converter detectedusb 1-1: GSM modem (1-port) converter now attached to ttyUSB3option 1-1:2.6: GSM modem (1-port) converter detectedusb 1-1: GSM modem (1-port) converter now attached to ttyUSB4usbcore: registered new interface driver optionoption: v0.7.2:USB Driver for GSM modemsusbcore: registered new interface driver usbtestrtc-ds1307 1-0068: rtc core: registered ds1339 as rtc0i2c /dev entries driverLinux video capture interface: v2.00ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)ths7303 1-002c: ths7303 write failedths7303: probe of 1-002c failed with error -121vpfe_initvpfe-capture: vpss clock vpss_master enabledvpfe-capture vpfe-capture: v4l2 device registeredvpfe-capture vpfe-capture: video device registeredEVM: switch to tvp5150 SD video inputtvp5150 1-005d: chip found @ 0x5d (DaVinci I2C adapter)vpfe-capture vpfe-capture: v4l2 sub device tvp5150 registeredEVM: switch to tvp7002 HD video inputvpfe-capture vpfe-capture: v4l2 sub device ths7353 register failsvpfe_register_ccdc_device: DM365 ISIFDM365 ISIF is registered with vpfe.af major#: 250, minor# 0AF Driver initializedaew major#: 249, minor# 0AEW Driver initialized###### osd_init ######### VPBE OSD DRIVER INIT ###Trying to register davinci display video device.layer=c10b1400,layer->video_dev=c10b1570Trying to register davinci display video device.layer=c10b1800,layer->video_dev=c10b1970davinci_init:DaVinci V4L2 Display Driver V1.0 loadedwatchdog watchdog: heartbeat 60 secdavinci_mmc davinci_mmc.0: Using DMA, 4-bit modeAdvanced Linux Sound Architecture Driver Version 1.0.21.No device for DAI tlv320aic3xNo device for DAI davinci-i2sasoc: tlv320aic3x <-> davinci-i2s mapping okALSA device list:#0: DaVinci EVM (tlv320aic3x)TCP cubic registeredNET: Registered protocol family 17Clocks: disable unused mmcsd1Clocks: disable unused spi0Clocks: disable unused spi1Clocks: disable unused spi2Clocks: disable unused spi3Clocks: disable unused spi4Clocks: disable unused pwm0Clocks: disable unused pwm1Clocks: disable unused pwm2Clocks: disable unused pwm3Clocks: disable unused timer1Clocks: disable unused timer3Clocks: disable unused emacClocks: disable unused voice_codecClocks: disable unused rtoClocks: disable unused mjcpdavinci_emac_probe: using random MAC addr: b2:55:85:e9:2b:0eemac-mii: probedmmc0: new high speed SDHC card at address e624rtc-ds1307 1-0068: setting system clock to 2015-11-24 11:00:54 UTC (1448362854)mmcblk0: mmc0:e624 SU64G 59.4 GiB mmcblk0: p1UBIFS: mounted UBI device 0, volume 0, name "rootfs"UBIFS: file system size: 126341120 bytes (123380 KiB, 120 MiB, 995 LEBs)UBIFS: journal size: 6348800 bytes (6200 KiB, 6 MiB, 50 LEBs)UBIFS: media format: w4/r0 (latest is w4/r0)UBIFS: default compressor: lzoUBIFS: reserved for root: 4952683 bytes (4836 KiB)VFS: Mounted root (ubifs filesystem) on device 0:14.Freeing init memory: 148KINIT: version 2.86 bootingPlease wait: booting...Error Cannot open /dev/tty0: No such device or addressStarting udevudev: starting version 141Root filesystem already rw, not remountingCaching udev devnodesPopulating dev cacheFAT: bogus number of reserved sectorsVFS: Can't find a valid FAT filesystem on dev mmcblk0.mv: cannot rename '/tmp/devices': No such file or directoryEXT3-fs warning: maximal mount count reached, running e2fsck is recommendedkjournald starting. Commit interval 5 secondsEXT3 FS on mmcblk0p1, internal journalEXT3-fs: mounted filesystem with writeback data mode.ALSA: Restoring mixer settings...Configuring network interfaces... eth0: attached PHY driver [LXT971] (mii_bus:phy_addr=1:01, id=1378e2)done.Setting up IP spoofing protection: rp_filter.INIT: Entering runlevel: 5Starting system message bus: dbus.Starting telnet daemon.Starting syslogd/klogd: doneCMEMK module: built on Oct 26 2015 at 22:19:29Reference Linux version 2.6.32File /home/zslf/dm368/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02_bak/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.callocated heap buffer 0xc7000000 of size 0x4400000heap fallback enabled - will try heap if pool buffer is not availableCMEM Range Overlaps Kernel Physical - allowing overlapCMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)cmemk initializedIRQK module: built on Oct 26 2015 at 22:17:36Reference Linux version 2.6.32File /home/zslf/dm368/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02_bak/packages/ti/sdo/linuxutils/irq/src/module/irqk.cirqk initializedEDMAK module: built on Oct 26 2015 at 22:16:49Reference Linux version 2.6.32File /home/zslf/dm368/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02_bak/packages/ti/sdo/linuxutils/edma/src/module/edmak.c/zslf/appZSLF.sh: line 9: ppp_config_copy: not foundstart copy th config file from zslf/config to /etc/ppp/peers.cp: cannot stat '/zslf/config/ppp-off': No such file or directorycp: cannot stat '/zslf/config/ppp0_on_state.txt': No such file or directory############## ZSLF ##################start copy the config file from zslf to thttpd/www./zslf/appZSLF.sh: line 17: ppp_config_copy: not foundCreate a shared memory segment 32769.24 Nov 11:01:09 ntpdate[993]: no servers can be used, exitingmkdir: cannot create directory '/media/mmcblk0p1/bak': File exists## davinci_pio_led:ioctl:out: GPIO-81=1 now.ret= 0 ## setrlimit okFD_SETSIZE= 1024### Serial_ttyUSB0_Init ###### Complete serial_open ###### Complete serial_config ###### Complete fcntl ###### Serial_ttyUSB0_Init End ###### MU909_SetCFUN ###start MU909_SetCFUN ##strATCommand is AT+CFUN=1.AT+CFUN=1OK##strATCommand is AT+CMEE=2.AT+CMEE=2OK##strATCommand is AT+CPIN?.AT+CPIN?+CPIN: READYOK##strATCommand is AT+CEREG=2.AT+CEREG=2OK##strATCommand is AT^HCSQ?.AT^HCSQ?^HCSQ: "LTE",52,49,166,34OK##strATCommand is AT+COPS?.AT+COPS?+COPS: 0,0,"CMCC",7OK##strATCommand is AT^SYSCFGEX="03",3fffffff,1,2,7fffffffffffffff,,.AT^SYSCFGEX="03",3fffffff,1,2,7fffffffffffffff,,OK##strATCommand is AT^NDISDUP=1,1,"cmnet".AT^NDISDUP=1,1,"cmnet"OK^NDISSTAT: 1,,,"IPV4"^NDISSTAT: 1,,,"IPV6"udhcpc (v1.13.2) startedSending discover...Sending select for 10.67.239.228...Lease of 10.67.239.228 obtained, lease time 518400adding dns 221.130.33.60adding dns 221.130.33.52######## encode ############ timenow->tm_year = 115 ###_____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _||__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org dm368-evm ttyS0Arago 2011.02 dm368-evm ttyS0dm368-evm login: 24 Nov 11:01:32 ntpdate[1189]: no server suitable for synchronization foundzslf module ok...dlsym load ok!***after***#### parseStreamingArgs - streaming to [124.65.158.106:22616] ######## parseStreamingArgs - streaming to [192.168.2.91:22616] ######## parseVideoArgs - (0) 720x480 ######## parseVideoArgs - (1) 720x480 ######## parseAudioArgs - 44100,2,32000,1 ####### parseArgs - config/devInfo.txt, Name:[联通小单?##### output_store ######?56001],ID:[YS-###### davinci_get_cur_encoder ######56001] ###Encode streaming star###### vpbe_encoder_initialize ######ting...1234###### output is COMPOSITE,outindex is 0 ############ vpbe_encoder_setoutput ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is NTSC ############ 22VPBE Encoder initialized ############ vpbe_encoder_setoutput ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is NTSC ############ davinci_enc_set_output : next davinci_enc_set_mode_platform ############ davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ############ output_show ############ davinci_enc_get_output ############ davinci_get_cur_encoder ############ mode_store ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_set_mode ############ davinci_get_cur_encoder ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is PAL ############ davinci_enc_set_mode : next davinci_enc_set_mode ############ davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ############ mode_show ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ######Found width=720 height=480, yres_virtual=480,xres_virtual=720, l###### davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_set_mode ############ davinci_get_cur_encoder ############ dm365 = 1 ############ mode_info->std is 1 ############ mode is PAL ############ davinci_enc_set_mode : next davinci_enc_set_mode ############ davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ######ine_length=384###### davinci_enc_get_mode ############ davinci_get_cur_encoder ############ davinci_enc_get_mode ############ davinci_get_cur_encoder ######567sd write module ok...____Mp4Recover module ok!/media/mmcblk0p1/video/temp/YS-56001_11-24_10h59m49s.mp4 Need to recover!~~~~~~~~~~~~~~now! is ready to recover!now! is get_data!get data all!now! is make mp4!### sps.pic_width_in_mbs_minus1 : 0sps.pic_height_in_map_units_minus1 : 0sps.vui_parameters.time_scale : 139596691sps.vui_parameters.num_units_in_tick : 376021250 ###now! is follow handle!__cgy in main all!sd write init ok## davinci_pio_led:ioctl:out: GPIO-47=0 now.ret= 0 ## func_sd_input_data ok+###READY TO PM###18there is a sd need to be mounted 0000### name:[mpeg4enc] ###### name:[h264enc] ####davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124## name:[mpeg2enc] ###### name:[jpegenc] ###### name:[g711enc] ###### name:[aacenc] ######Ready to open encoder###davinci_previewer davinci_previewer.2: ipipe_set_preview_config############v4l2_device_call_until_err sdinfo->grp_id : 5.vpfe-capture vpfe-capture: error in getting g_fmt from sub device############v4l2_device_call_until_err sdinfo->grp_id : 5.###succeed to open encoder###setrlimit okFD_SETSIZE= 1024udp port multiplexing : 1#### InitUdpSocket - SO_RCVBUF : 217088, SO_SNDBUF : 217088 ####mount: /dev/mmcblk0p1 already mounted or /media/mmcblk0p1/ busy###### len = 26 #########mount: according to mtab, /dev/mmcblk0p1 is already mounted on /media/mmcblk0p1add sd card############# PUID:83bjwLgn.strModel:bjw-2013PUID=83### do_login: sockfd = 32 Login response status : dACK vpfe-capture vpfe-capture: IPIPE Chainedvpfe-capture vpfe-capture: Resizer present*****input=0****EVM: switch to tvp5150 SD video input***############v4l2_device_call_until_err sdinfo->grp_id : 5.###j=1###*** Video ASK Rep *** startdata ok!*****queryInput=0*******############v4l2_device_call_until_err sdinfo->grp_id : 5.setsockopt ok!vpfe-capture vpfe-capture: width = 736, height = 480, bpp = 1vpfe-capture vpfe-capture: adjusted width = 736, height = 480, bpp = 1, bytesperline = 736, sizeimage = 529920vpfe-capture vpfe-capture: width = 736, height = 480, bpp = 1vpfe-capture vpfe-capture: adjusted width = 736, height = 480, bpp = 1, bytesperline = 736, sizeimage = 529920### BJW_DealMsg - VIDEO: FORCE IDR ###BJW_DealMsg - CONNECTED 42### videoThrFxn - video0 construct IDR ###***succeed to get capture***### sps.pic_width_in_mbs_minus1 : 0sps.pic_height_in_map_units_minus1 : 0sps.vui_parameters.time_scale : 139596691sps.vui_parameters.num_units_in_tick : 376021250 ###.dm368-evm login: _____ _____ _ _ | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_ | | _| .'| . | . | | __| _| . | | | -_| _| _||__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_| |___| |___| Arago Project http://arago-project.org dm368-evm ttyS0Arago 2011.02 dm368-evm ttyS0dm368-evm login: rootroot@dm368-evm:~#