News:

I have updated the spam detection on registrations, and as such I am enabling new users.  If we have spam, I will change it back to by approval.

Main Menu

I GOT COM1

Started by sbingner, June 21, 2005, 06:32:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sbingner

script echo "HELLO COM1" to /dev/ttyS0 and I get "HELLO COM1" on my serial port set at 115,200 8n1 -- I a Futuredial LG 5350 USB cable (it essentiall has an inline MAX232 converter) for $9 at radio shack, chopped off the cell phone end and connected the YELLOW (RX) wire to pin5, BLUE(TX) to pin7, BROWN(DCD) to pin9 and ORANGE(CTS) to pin13

Now I'm going to start a shell on it, I'll post if that works but I had to throw this out

Sam

sbingner

HELLO COM1
#
#
#
# ls
bin         dos         lib         lost+found  sbin        usr
dev         etc         linuxrc     proc        tmp
# pwd
/
# cat /proc/cpuinfo
Processor       : ARM ARM720T rev 2 (v4l)
BogoMIPS        : 36.65
Features        : swp half thumb 26bit

Hardware        : CL-7312 (Phatnoise v1.1)
Revision        : 0000
Serial          : 0000000000000000
#

from the following in a hack.sh script
(/bin/sh < /dev/ttyS0 > /dev/ttyS0 2>/dev/ttyS0 &)

sbingner

The following is printed to serial during a firmware update

could not open drive id file
using V1 offset to /dev/mem
could not open drive id file
using V1 offset to /dev/mem
progpld /dos/blank.bif
programming /dos/blank.bif
*...11 bytes
ok
progpld /dos/prog.bif
programming /dos/prog.bif
*................................................................................................5498 bytes
ok
þcould not open drive id file
using V1 offset to /dev/mem

spin

Woot :-) Congrats! I am ordering a cable now for the same purpose... I think I have the pin-outs for my BMW's GPS unit... If only there was a USB or PCMCIA interface on this thing... I will probably end up running some daemon off the serial port that would let another PC system interface with it (slip/pppoe + sshd). The end goal will be some wireless network integration, with the ability to send commands via the cd-changer head unit. With a support PC, it would be possible to update the DMS over wireless (ip forwarding, ssh forward, etc).

sbingner

well, first we need to get it so we can boot a different kernel... unfortunately the current one has no module support and no ppp modules ;)

You should be able to do the interface though...

bushing

Quotewell, first we need to get it so we can boot a different kernel... unfortunately the current one has no module support and no ppp modules ;)

You should be able to do the interface though...


For what it's worth, I still don't understand why we don't get kernel messages during bootup on the serial interface ... it makes no sense to me. ???

-b

sbingner

Quote


For what it's worth, I still don't understand why we don't get kernel messages during bootup on the serial interface ... it makes no sense to me. ???

-b

from dmesg:
ttyAM0 at I/O 0x100 (irq = 12) is a CLPS711x
ttyAM1 at I/O 0x1100 (irq = 28) is a CLPS711x

led me to look up ttyAM0 - I found http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader#Serial_Console

to have kernel messages we need console=ttyAM0

See