Author Topic: I GOT COM1  (Read 6141 times)

0 Members and 1 Guest are viewing this topic.

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
I GOT COM1
« on: June 21, 2005, 05:32:56 am »
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

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: I GOT COM1
« Reply #1 on: June 21, 2005, 05:37:00 am »
Code: [Select]

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
Code: [Select]

(/bin/sh < /dev/ttyS0 > /dev/ttyS0 2>/dev/ttyS0 &)

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Output during firmware flash
« Reply #2 on: June 21, 2005, 06:22:36 am »
The following is printed to serial during a firmware update

Code: [Select]

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

Offline spin

  • A few posts under my belt.
  • *
  • Posts: 23
Re: I GOT COM1
« Reply #3 on: June 21, 2005, 06:43:04 am »
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).

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: I GOT COM1
« Reply #4 on: June 21, 2005, 07:10:05 am »
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...

Offline bushing

  • Senior Member
  • Needs to get outside.
  • *****
  • Posts: 119
  • props to my peeps
Re: I GOT COM1
« Reply #5 on: June 21, 2005, 10:47:42 am »
Quote
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...



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

Offline sbingner

  • Administrator
  • Veteran.
  • *****
  • Posts: 1301
Re: I GOT COM1
« Reply #6 on: June 23, 2005, 07:24:50 am »
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:
Code: [Select]
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