问题一:显示烧写内核 davinci_interrupt 368: VBUS error workaround (delay coming) *****
ttyUSB* 只有4个。 如果将下图的 * 改成 M 则有 6个 ttyUSB* 这样就相当于不支持CDC驱动了,不符合要求了。
我查了相关资料和硬件给的原理图,发现硬件设计是这样的
但是我查看了,TI官方给出的方案是这样的。
所以我怀疑是不是应该加一个电容比较好,还有就是我发现核心板VBUS是直接接5V供电
执行命令 ls –l /sys/bus/usb/drivers/option/***/
4个ttyUSB 和 6个ttyUSB 比较
4 ttyUSB
6ttyUSB
root@dm368-evm:~# ls –l /sys/bus/usb/drivers/option/***/
ls: –l: No such file or directory
/sys/bus/usb/drivers/option/1-1:2.0/:
bAlternateSetting bNumEndpoints power
bInterfaceClass driver subsystem
bInterfaceNumber ep_82 supports_autosuspend
bInterfaceProtocol interface ttyUSB0
bInterfaceSubClass modalias uevent
/sys/bus/usb/drivers/option/1-1:2.1/:
bAlternateSetting bNumEndpoints supports_autosuspend
bInterfaceClass driver ttyUSB1
bInterfaceNumber modalias uevent
bInterfaceProtocol power
bInterfaceSubClass subsystem
/sys/bus/usb/drivers/option/1-1:2.2/:
bAlternateSetting driver power
bInterfaceClass ep_02 subsystem
bInterfaceNumber ep_83 supports_autosuspend
bInterfaceProtocol ep_84 ttyUSB2
bInterfaceSubClass interface uevent
bNumEndpoints modalias
/sys/bus/usb/drivers/option/1-1:2.3/:
bAlternateSetting driver subsystem
bInterfaceClass ep_03 supports_autosuspend
bInterfaceNumber ep_85 ttyUSB3
bInterfaceProtocol interface uevent
bInterfaceSubClass modalias
bNumEndpoints power
/sys/bus/usb/drivers/option/1-1:2.4/:
bAlternateSetting driver subsystem
bInterfaceClass ep_04 supports_autosuspend
bInterfaceNumber ep_86 ttyUSB4
bInterfaceProtocol interface uevent
bInterfaceSubClass modalias
bNumEndpoints power
/sys/bus/usb/drivers/option/1-1:2.5/:
bAlternateSetting driver subsystem
bInterfaceClass ep_05 supports_autosuspend
bInterfaceNumber ep_87 ttyUSB5
bInterfaceProtocol interface uevent
bInterfaceSubClass modalias
bNumEndpoints power
/sys/bus/usb/drivers/option/module/:
drivers parameters
root@dm368-evm:~#
附录:
烧写内核
Starting kernel …
Uncompressing Linux……………………………………………………………………………………………………………………………… done, booting the kernel.
Linux version 2.6.32.17-davinci1 (root@tarena) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #108 PREEMPT Fri Sep 25 18:59:37 CST 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 12192
Kernel 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,4050K
PID 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 total
Memory: 43984KB available (4144K code, 388K data, 144K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Calibrating delay loop… 147.86 BogoMIPS (lpj=739328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
EVM: HD imager video input
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Continuous mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca9543a_probe
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
lconfig->line_length is 0.
ch0 default output "COMPOSITE", mode "NTSC"
###### logicpd_encoder_init ######
###### vid_enc_register_encoder ######
###### mgr->num_encoders is 0 ######
###### **ch_id is 0 ######
###### mode_info.name is NTSC ######
###### logicpd_encoder_setoutput : my_mode_info->name is 640×480 ######
###### logicpd_encoder_setmode ######
###### mode_info->name is 640×480 ######
###### logicpd_encoder_setmode : mymode is 640×480 ######
########## logicpd_encoder_channel_info.params.mode is 640×480 ##########
###### logicpd_encoder_initialize : outindex is 0,output is LCD ######
###### davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ######
###### davinci_enc_set_prgb and mgr->current_mode.name is 640×480 ######
###### Enable LCD Display ######
###### PLL1 value is 32785 ######
###### PLLCTL value is 81 ######
###### davinci_enc_set_prgb : davinci_enc_set_display_timing ######
set VENC_HST in davinci_enc_set_display_timing,mode->hsync_len is 9
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.32.17-davinci1 musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP 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 registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 85
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 4050KB
davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 900KB
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
davincifb davincifb.0: dm_osd1_fb: 640x480x4@0,0 with framebuffer size 600KB
davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 900KB
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
davinci gpio led module init …….
register davinci gpio module is ok …….
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
brd: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
nand_bbt: ECC error while reading bad block table
Creating 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.3
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: New USB device found, idVendor=12d1, idProduct=1573
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technology
usb 1-1: SerialNumber: 0123456712ABCA17
usb 1-1: configuration #2 chosen from 3 choices
UBI: attached mtd3 to ubi0
UBI: MTD device name: "filesystem"
UBI: MTD device size: 128 MiB
UBI: number of good PEBs: 1024
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 5
UBI: total number of reserved PEBs: 1019
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 2/1
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 353
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (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:00
usbcore: registered new interface driver cdc_ether
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1:2.5: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usbcore: registered new interface driver usbtest
rtc-ds1307 1-0068: rtc core: registered ds1339 as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
ths7303 1-002c: ths7303 write failed
ths7303: probe of 1-002c failed with error -121
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
EVM: switch to tvp5150 SD video input
tvp5150 1-005d: chip found @ 0x5d (DaVinci I2C adapter)
vpfe-capture vpfe-capture: v4l2 sub device tvp5150 registered
EVM: switch to tvp7002 HD video input
vpfe-capture vpfe-capture: v4l2 sub device ths7353 register fails
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 250, minor# 0
AF Driver initialized
aew major#: 249, minor# 0
AEW Driver initialized
###### osd_init ######
### VPBE OSD DRIVER INIT ###
Trying to register davinci display video device.
layer=c10d7400,layer->video_dev=c10d7570
Trying to register davinci display video device.
layer=c10d7800,layer->video_dev=c10d7970
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused mmcsd1
Clocks: disable unused spi0
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
davinci_emac_probe: using random MAC addr: ae:6a:86:57:ef:af
emac-mii: probed
rtc-ds1307 1-0068: setting system clock to 2015-09-24 20:03:48 UTC (1443125028)
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU64G 59.4 GiB
mmcblk0: p1
UBIFS: 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: lzo
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:14.
Freeing init memory: 144K
INIT: version 2.86 booting
Please wait: booting…
Error Cannot open /dev/tty0: No such device or address
Starting udev
davinci_interrupt 368: VBUS error workaround (delay coming) *****
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mmcblk0.
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
Root filesystem already rw, not remounting
Caching udev devnodes
Populating dev cachemv: cannot rename '/tmp/devices': No such file or directory
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: 5
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
cmemk: disagrees about version of symbol __class_create
cmemk: Unknown symbol __class_create
cmemk: disagrees about version of symbol class_destroy
cmemk: Unknown symbol class_destroy
cmemk: disagrees about version of symbol device_create
cmemk: Unknown symbol device_create
cmemk: disagrees about version of symbol device_destroy
cmemk: Unknown symbol device_destroy
FATAL: Error inserting cmemk (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/cmemk.ko): Unknown symbol in module, or unknown parameter (see dmesg)
irqk: disagrees about version of symbol __class_create
irqk: Unknown symbol __class_create
irqk: disagrees about version of symbol class_destroy
irqk: Unknown symbol class_destroy
irqk: disagrees about version of symbol clk_get
irqk: Unknown symbol clk_get
irqk: disagrees about version of symbol device_create
irqk: Unknown symbol device_create
irqk: disagrees about version of symbol device_destroy
irqk: Unknown symbol device_destroy
FATAL: Error inserting irqk (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/irqk.ko): Unknown symbol in module, or unknown parameter (see dmPHY: 1:01 – Link is Up – 100/Full
esg)
edmak: disagrees about version of symbol __class_create
edmak: Unknown symbol __class_create
edmak: disagrees about version of symbol class_destroy
edmak: Unknown symbol class_destroy
edmak: disagrees about version of symbol device_create
edmak: Unknown symbol device_create
edmak: disagrees about version of symbol device_destroy
edmak: Unknown symbol device_destroy
FATAL: Error inserting edmak (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/edmak.ko): Unknown symbol in module, or unknown parameter (see dmesg)
/zslf/appZSLF.sh: line 9: ppp_config_copy: not found
start copy th config file from zslf/config to /etc/ppp/peers.
############## ZSLF ##################
start copy the config file from zslf to thttpd/www.
/zslf/appZSLF.sh: line 17: ppp_config_copy: not found
Create a shared memory segment 32769.
24 Sep 20:04:05 ntpdate[1096]: no servers can be used, exiting
mkdir: cannot create directory '/media/mmcblk0p1/bak': File exists
## davinci_pio_led:ioctl:out: GPIO-81=1 now.ret= 0 ##
setrlimit ok
FD_SETSIZE= 1024
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project http://arago-project.org dm368-evm ttyS0
Arago 2011.02 dm368-evm ttyS0
dm368-evm login:
执行 dmesg
root@dm368-evm:~# dmesg
Linux version 2.6.32.17-davinci1 (root@tarena) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #108 PREEMPT Fri Sep 25 18:59:37 CST 2015
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 12288
free_area_init_node: node 0, pgdat c0469290, node_mem_map c049b000
DMA zone: 96 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 12192 pages, LIFO batch:1
DaVinci dm36x_rev1.2 variant 0x8
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 12192
Kernel 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,4050K
PID 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 total
Memory: 43984KB available (4144K code, 388K data, 144K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Calibrating delay loop… 147.86 BogoMIPS (lpj=739328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
EVM: HD imager video input
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Continuous mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca9543a_probe
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
lconfig->line_length is 0.
ch0 default output "COMPOSITE", mode "NTSC"
###### logicpd_encoder_init ######
###### vid_enc_register_encoder ######
###### mgr->num_encoders is 0 ######
###### **ch_id is 0 ######
###### mode_info.name is NTSC ######
<logicpd_encoder_setoutput>
###### logicpd_encoder_setoutput : my_mode_info->name is 640×480 ######
###### logicpd_encoder_setmode ######
###### mode_info->name is 640×480 ######
Start of logicpd_encoder_setmode..
###### logicpd_encoder_setmode : mymode is 640×480 ######
########## logicpd_encoder_channel_info.params.mode is 640×480 ##########
</logicpd_encoder_setoutput>
###### logicpd_encoder_initialize : outindex is 0,output is LCD ######
LogicPD Encoder initialized
<logicpd_encoder_enumoutput>
</logicpd_encoder_enumoutput>
<logicpd_encoder_getoutput>
</logicpd_encoder_getoutput>
<logicpd_encoder_getmode>
</logicpd_encoder_getmode>
###### davinci_enc_set_mode_platform : next davinci_enc_priv_setmode ######
###### davinci_enc_set_prgb and mgr->current_mode.name is 640×480 ######
###### Enable LCD Display ######
###### PLL1 value is 32785 ######
###### PLLCTL value is 81 ######
###### davinci_enc_set_prgb : davinci_enc_set_display_timing ######
set VENC_HST in davinci_enc_set_display_timing,mode->hsync_len is 9
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
DaVinci OTG revision 00140901 phy 21f0 control 00
musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
musb_hdrc: MHDRC RTL version 1.500
musb_hdrc: setup fifo_mode 2
musb_hdrc: 9/9 max ep, 4032/4096 memory
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.32.17-davinci1 musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Registered /proc/driver/musb_hdrc
NET: Registered protocol family 2
IP 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 registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 85
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
<logicpd_encoder_getmode>
</logicpd_encoder_getmode>
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
<logicpd_encoder_getmode>
</logicpd_encoder_getmode>
davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
davincifb davincifb.0: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 4050KB
davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 900KB
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
<logicpd_encoder_getmode>
</logicpd_encoder_getmode>
###### davinci_enc_get_mode ######
###### davinci_get_cur_encoder ######
<logicpd_encoder_getmode>
</logicpd_encoder_getmode>
davincifb davincifb.0: dm_osd1_fb: 640x480x4@0,0 with framebuffer size 600KB
davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 900KB
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
davinci gpio led module init …….
register davinci gpio module is ok …….
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
brd: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_bbt: ECC error while reading bad block table
nand_read_bbt: Bad block at 0x00000b440000
nand_read_bbt: Bad block at 0x00000ff00000
nand_read_bbt: Bad block at 0x00000ff20000
nand_read_bbt: Bad block at 0x00000ff40000
nand_read_bbt: Bad block at 0x00000ff60000
nand_read_bbt: Bad block at 0x00000ff80000
nand_read_bbt: Bad block at 0x00000ffa0000
nand_read_bbt: Bad block at 0x00000ffc0000
nand_read_bbt: Bad block at 0x00000ffe0000
nand_read_bbt: Bad block at 0x00001b4c0000
Creating 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.3
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
usb 1-1: new high speed USB device using musb_hdrc and address 2
usb 1-1: New USB device found, idVendor=12d1, idProduct=1573
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technology
usb 1-1: SerialNumber: 0123456712ABCA17
usb 1-1: configuration #2 chosen from 3 choices
UBI: attached mtd3 to ubi0
UBI: MTD device name: "filesystem"
UBI: MTD device size: 128 MiB
UBI: number of good PEBs: 1024
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 5
UBI: total number of reserved PEBs: 1019
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 2/1
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 353
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (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:00
usbcore: registered new interface driver cdc_ether
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1:2.5: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
usbcore: registered new interface driver usbtest
rtc-ds1307 1-0068: rtc core: registered ds1339 as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
ths7303 1-002c: ths7303 write failed
ths7303: probe of 1-002c failed with error -121
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
EVM: switch to tvp5150 SD video input
tvp5150 1-005d: chip found @ 0x5d (DaVinci I2C adapter)
vpfe-capture vpfe-capture: v4l2 sub device tvp5150 registered
EVM: switch to tvp7002 HD video input
vpfe-capture vpfe-capture: v4l2 sub device ths7353 register fails
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 250, minor# 0
AF Driver initialized
aew major#: 249, minor# 0
AEW Driver initialized
###### osd_init ######
### VPBE OSD DRIVER INIT ###
<davinci_display_init>
Trying to register davinci display video device.
layer=c10d7400,layer->video_dev=c10d7570
Trying to register davinci display video device.
layer=c10d7800,layer->video_dev=c10d7970
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
</davinci_init>
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused mmcsd1
Clocks: disable unused spi0
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
davinci_emac_probe: using random MAC addr: ae:6a:86:57:ef:af
emac-mii: probed
rtc-ds1307 1-0068: setting system clock to 2015-09-24 20:03:48 UTC (1443125028)
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU64G 59.4 GiB
mmcblk0: p1
UBIFS: 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: lzo
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:14.
Freeing init memory: 144K
davinci_interrupt 368: VBUS error workaround (delay coming)
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mmcblk0.
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
kjournald starting. Commit interval 5 seconds
EXT3 FS on mmcblk0p1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
eth0: attached PHY driver [LXT971] (mii_bus:phy_addr=1:01, id=1378e2)
cmemk: disagrees about version of symbol __class_create
cmemk: Unknown symbol __class_create
cmemk: disagrees about version of symbol class_destroy
cmemk: Unknown symbol class_destroy
cmemk: disagrees about version of symbol device_create
cmemk: Unknown symbol device_create
cmemk: disagrees about version of symbol device_destroy
cmemk: Unknown symbol device_destroy
irqk: disagrees about version of symbol __class_create
irqk: Unknown symbol __class_create
irqk: disagrees about version of symbol class_destroy
irqk: Unknown symbol class_destroy
irqk: disagrees about version of symbol clk_get
irqk: Unknown symbol clk_get
irqk: disagrees about version of symbol device_create
irqk: Unknown symbol device_create
irqk: disagrees about version of symbol device_destroy
irqk: Unknown symbol device_destroy
PHY: 1:01 – Link is Up – 100/Full
edmak: disagrees about version of symbol __class_create
edmak: Unknown symbol __class_create
edmak: disagrees about version of symbol class_destroy
edmak: Unknown symbol class_destroy
edmak: disagrees about version of symbol device_create
edmak: Unknown symbol device_create
edmak: disagrees about version of symbol device_destroy
edmak: Unknown symbol device_destroy
## davinci_pio_led:ioctl:out: GPIO-81=1 now.ret= 0 ##
INIT: Id "1" respawning too fast: disabled for 5 minutes
Chris Meng:
你好,
你能否用示波器测量一下VBUS上的电压,看是否有不正常的跌落?这样可以确认是否VBUS电流不够电压被拉低导致的问题。
JUKE CHEN:
回复 Chris Meng:
我们硬件工程师,vbus直接接的5V,我用示波器测试了一下,跌落是有的。 如果硬件不能改了,软件应该怎么改程序呢?
Chris Meng:
回复 JUKE CHEN:
你好,
软件上没有很好的方法。
建议硬件上涨VBUS上加一个大电容,减少VBUS的跌落。
JUKE CHEN:
回复 Chris Meng:
你确定是硬件的问题吗? 那硬件除了,需要加电容,还有什么需要完善的?
JUKE CHEN:
回复 Chris Meng:
还有就是这个 VBUS标准电压应该是多少?
Chris Meng:
回复 JUKE CHEN:
你好,
DM36x的数据手册里面有如下描述:
USB_VBUS
This pin is used by the USB Controller to detect apresence of 5V power (4.4V is the threshold) on theUSB_VBUS line for normal operation. This power issourced by the USB Component that is assuming therole of a Host. In other words, the power on theUSB_VBUS line is not sourced by the Device. FromDM365 perspective, when operating as a Host, itensures that the external power supply that theDM365 has sourced is within the required voltagelevel (>= 4.4V) and when DM365 is operating as aDevice, the presence of a 5V power on the VBUSLine is used to signify the presence of an externalHost.
JUKE CHEN:
回复 Chris Meng:
亲 davinci_interrupt 368: VBUS error workaround (delay coming) 这个问题,我搞了一个月了,还是没有进展啊。
你能再帮我,看看,哪里有问题了吗?
guangyun wang:
我用的bbb板子,sdk是《ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install》,也遇到了移植系统后,卡在 ti81xx_interrupt 1146: VBUS error workaround (delay coming)这了,反复打印这条信息。
请问,你最后是怎么解决的啊?