On 27 apr 2008, at 13:09, Uffe Jakobsen wrote:
>
> Hi,
>
> jacco wrote:
>>
>> The part of the graphing script communicating with the device is
>> this:
>>
>> printf \x11\x00\x00\x00\xB6\x00\x00\x00\xC7 > /dev/tty
>> dd if=/dev/tty of=/root/tmp/output bs=1 count=31 &
>>
>> The result I get:
>>
>> [EMAIL PROTECTED] 36 ~# ./test.sh
>> x11x00x00x00xB6x00x00x00xC7
>> [EMAIL PROTECTED] 37 ~# dd: /dev/tty: Input/output error
>> 1+0 records in
>> 1+0 records out
>> 1 bytes transferred in 6.744 secs (0 bytes/sec)
>>
>
> Looking at the script part that you've provided in your email and
> looking at the supplied output
> I would say that you use the wrong tty device.
>
> The output that was supposed to go to the solar-device is output to
> your own terminal.
> Now I'm not that familiar with OpenBSD but /dev/tty is usualy the
> system concole device on most unix'es
>
> On Solaris/BSD's serial-devices/-ports are usually called something
> like /dev/cua?? /dev/ttyd?
>
> But maybe someone on this list that know OpenBSD better that I can
> help you with that actual device naming for serial devices on
> OpenBSD ?
Ok, that cleared a bit for me, tty is indeed the terminal, not an
serial device port on OpenBSD. It should be something like /dev/cua00,
but that doesn't work either:
[EMAIL PROTECTED] 13 ~# ./test.sh
x11x00x00x00xB6x00x00x00xC7dd: /dev/cua00: Device busy
Please forgive me, since I'm a Mac user, I'm not too familiar with
this stuff.
Here's my dmesg output, booting OpenBSD on the soekris:
OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem = 133787648 (127MB)
avail mem = 121737216 (116MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c6:15:08
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c6:15:09
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c6:15:0a
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ppb0 at pci0 dev 10 function 0 "TI PCI2250 PCI-PCI" rev 0x02
pci1 at ppb0 bus 1
sis3 at pci1 dev 0 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 5, address 00:00:24:c4:d8:f0
nsphyter3 at sis3 phy 0: DP83815 10/100 PHY, rev. 1
sis4 at pci1 dev 1 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 11, address 00:00:24:c4:d8:f1
nsphyter4 at sis4 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-1024>
wd0: 1-sector PIO, LBA, 977MB, 2001888 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
revision 3 wdstatus 0
ohci0 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq
11, version 1.0, legacy support
isa0 at gscpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
usb0 at ohci0: USB revision 1.0
uhub0 at usb0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
biomask fbc5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
WARNING: NVRAM century is 19 but RTC year is 2008
And part of my /etc/ttys:
console "/usr/libexec/getty Pc" vt220 off secure
ttyC0 "/usr/libexec/getty Pc" vt220 on secure
ttyC1 "/usr/libexec/getty Pc" vt220 on secure
ttyC2 "/usr/libexec/getty Pc" vt220 on secure
ttyC3 "/usr/libexec/getty Pc" vt220 on secure
ttyC4 "/usr/libexec/getty Pc" vt220 off secure
ttyC5 "/usr/libexec/getty Pc" vt220 on secure
ttyC6 "/usr/libexec/getty Pc" vt220 off secure
ttyC7 "/usr/libexec/getty Pc" vt220 off secure
ttyC8 "/usr/libexec/getty Pc" vt220 off secure
ttyC9 "/usr/libexec/getty Pc" vt220 off secure
ttyCa "/usr/libexec/getty Pc" vt220 off secure
ttyCb "/usr/libexec/getty Pc" vt220 off secure
tty00 "/usr/libexec/getty std.9600" vt220 on secure
tty01 "/usr/libexec/getty std.9600" unknown off
tty02 "/usr/libexec/getty std.9600" unknown off
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech