Menu

#35 PC can find board'irda card,but the board can't find the PC irda.

2012R2
open
nobody
None
middle
none
ALL
2014-08-26
2013-07-05
panmingquan
No

[#7602] PC can find board'irda card,but the board can't find the PC irda.
Move Item | Delete Item | Clone Item | Merge Item
Submitted By: ren qiang
Open Date
2013-01-22 12:37:00
Priority:
Assignee:
Fixed In Release:
Status:
Found In Release:
Release:
Board:
Processor:

Silicon Revision:
Uboot version or rev.:
Toolchain version or rev.:
Is this bug repeatable?:
Resolution:
App binary format:
Summary:
Details: (Edit)

bf537 bf548 bf527 and bf609 have the same bug.
Bellow is the log on bf609.

  • On host linux PC, we set up irda by follow steps:
  • Install irtty-sir module:
    modprobe irtty-sir
  • Attach IrDA stack to IrDA devices:
    irattach /dev/ttyS1 -s
    (Device node ttyS0 represents COM1, and ttyS1 represents COM2. I set irda device to COM2 in bios.)

  • Bellow is the log on target board.
    Welcome to minicom 2.5

OPTIONS: I18n
Compiled on May 2 2011, 00:39:27.
Port /dev/ttyS0

Press CTRL-A Z for help on special keys

root:/>

U-Boot 2012.07-rc2 (ADI-2012R1-pre)-00265-g92c7d92-dirty (Dec 17 2012 - 15:56:59)

CPU: ADSP bf609-0.0 (Detected Rev: 0.0) (parallel flash boot)
Board: ADI BF609 EZ-Kit board
Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System0: 125 MHz, System1: 125 MHz, Dclk: 250 MHz
RAM: 128 MiB
Flash: 16 MiB
MMC: Blackfin SDH: 0
In: serial
Out: serial
Err: serial
KGDB: [on serial] ready
other init
Net: mii0
Hit any key to stop autoboot: 0
bfin>
bfin> tftp 0x2000000 uImage
Waiting for PHY auto negotiation to complete. done
ENET Speed is 100 Mbps - FULL duplex connection
Using mii0 device
TFTP from server 10.100.4.174; our IP address is 10.100.4.50
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################
done
Bytes transferred = 9859904 (967340 hex)
bfin> bootm

Booting kernel from Legacy Image at 02000000 ...

Image Name: bf609-0.0-3.5.7-ADI-2012R2-pre
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 9859840 Bytes = 9.4 MiB
Load Address: 00001000
Entry Point: 0028fa80
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0028fa80
Linux version 3.5.7-ADI-2012R2-pre (test@test-OptiPlex-390) (gcc version 4.3.5 (ADI-2012R2-RC2) ) #2 Tue Jan 22 11:44:35 CST 2013
register early platform devices
bootconsole [early_shadow0] enabled
ERROR: Not running on ADSP-BF609: unknown CPUID 0x0000 Rev 0.0
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 128MB
Kernel Managed Memory: 128MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x001bfb78
rodata = 0x001bfb9c-0x002501dc
bss = 0x00251000-0x002642f4
data = 0x00264300-0x0028c000
stack = 0x0028a000-0x0028c000
init = 0x0028c000-0x00ab0000
available = 0x00ab0000-0x07f00000
DMA Zone = 0x07f00000-0x08000000
Hardware Trace active and enabled
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF609 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock, 125 MHz SCLk, 125 MHz SCLK0, 125 MHz SCLK1 and 250 MHz DCLK
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
L2 SRAM : uncacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
L2 SRAM : uncacheable in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32258
Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory available: 117936k/131072k RAM, (8336k init code, 1786k kernel code, 818k data, 1024k dma, 1172k reserved)
NR_IRQS:291
Configuring Blackfin Priority Driven Interrupts
Console: colour dummy device 80x25
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (9 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 64 KB (51 KB free)
Blackfin L2 SRAM: 256 KB (256 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
ezkit_init(): request emac pins failed
bio: create slab <bio-0> at 0
SCSI subsystem initialized
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: bfin-spi probe success
bfin-spi bfin-spi.1: master is unqueued, this is deprecated
bfin-spi bfin-spi.1: bfin-spi probe success
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-bfin-twi i2c-bfin-twi.0: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01e00
i2c-bfin-twi i2c-bfin-twi.1: Blackfin on-chip I2C TWI Contoller, regs_base@ffc01f00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
PTP clock support registered
NET: Registered protocol family 23
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
msgmni has been set to 230
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc02000 (irq = 88) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02400 (irq = 91) is a BFIN-UART
physmap platform flash device: 01000000 at b0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008821
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
Creating 3 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000080000 : "bootloader(nor)"
0x000000080000-0x000000480000 : "linux kernel(nor)"
0x000000480000-0x000001000000 : "file system(nor)"
m25p80 spi0.1: w25q32 (4096 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000080000 : "bootloader(spi)"
0x000000080000-0x000000200000 : "linux kernel(spi)"
0x000000200000-0x000000400000 : "file system(spi)"
CAN device driver interface
bfin_can bfin_can.0: bfin_can device registered(&reg_base=ffc00a00, rx_irq=47, tx_irq=48, err_irq=49, sclk=125000000)
DWMAC100
No HW DMA feature register supported
Enhanced/Alternate descriptors
RX IPC Checksum Offload not configured.
stmmac_dvr_probe: warning: cannot get CSR clock
stmmac: probed
eth0: PHY ID 20005c90 at 1 IRQ 0 (stmmac-0:01) active
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
input: bfin-rotary as /devices/platform/bfin-rotary/input/input0
i2c /dev entries driver
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x04c73000 - 256 pages at 0x07f00000
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
eth0: device MAC address 02:80:ad:20:31:e8
No MAC Management Counters available
IP-Config: Guessing netmask 255.0.0.0
IP-Config: Complete:
device=eth0, addr=10.100.4.50, mask=255.0.0.0, gw=255.255.255.255
host=10.100.4.50, domain=, nis-domain=(none)
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
Freeing unused kernel memory: 8336k freed

BusyBox v1.20.2 (2013-01-22 11:32:28 CST) hush - the humble shell

root:/> PHY: stmmac-0:01 - Link is Up - 100/Full

root:/>
root:/> version
kernel: Linux release 3.5.7-ADI-2012R2-pre, build #2 Tue Jan 22 11:44:35 CST 2013
toolchain: /home/test/workspace/src/kernel/output/host/usr/bin/bfin-linux-uclibc-gcc release gcc ��版��本 4.3.5 (ADI-2012R2-RC2)
user-dist: release git-6e99baa, build #1 2013��年 01��月 22��日 ��星��期��二 11:42:03 CST
root:/> modprobe irtty-sir
root:/>
root:/>
root:/> lsmod
Module Size Used by
irtty_sir 2449 0
sir_dev 7379 1 irtty_sir
root:/>
root:/> ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyBF0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyBF1
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
root:/> irattach /dev/ttyBF1 -s
root:/>
root:/> cat /proc/net/irda/discovery
IrLMP: Discovery log:

root:/>
root:/>
root:/> ls -lh /bin/busybox
-rwsr-xr-x 1 root root 446.3K Jan 22 2013 /bin/busybox
root:/> time ircp /bin/busybox
time: can't execute 'ircp': No such file or directory
Command exited with non-zero status 127
real 0m 0.00s
user 0m 0.00s
sys 0m 0.00s
root:/>

  • Bellow is the log on PC.
    test@test-irda:~$
    test@test-irda:~$ irattach /dev/ttyBF1 -s
    Failed to open device /dev/ttyBF1: No such file or directory
    test@test-irda:~$ cat /proc/net/irda/discovery
    IrLMP: Discovery log:

nickname: buildroot, hint: 0x0400, saddr: 0x58c8041e, daddr: 0x4beb4566

test@test-irda:~$
test@test-irda:~$ cat /proc/net/irda/discovery
IrLMP: Discovery log:

nickname: buildroot, hint: 0x0400, saddr: 0x58c8041e, daddr: 0xf10f3370

test@test-irda:~$

2 Attachments

Discussion

  • panmingquan

    panmingquan - 2013-07-05
     
  • Sonic Zhang

    Sonic Zhang - 2013-07-09
    • Priority: 3 --> middle
     

Log in to post a comment.