Viewing kernel messages the hard way..

When searching over the file system of the Trendtac (with Firefox/Bon Echo using file:///) I stumbled upon a file called cmdline in which the following was written:

mem=128M console=ttyS0,115200n8 root=/dev/ssfdca1 rw noatime

This means the console output is directed to a serial port named ttyS0 but the odd thing is there is no 'real' serial port on the Trendtac

Inside the EPC700 mini laptop, accessible through the battery compartment is a small 4 pin connector (J502).
It is probably used as a programming connector during production but it also emulates a simple serial port for console output. You can see it on this photo: serial port connector

The connectors pin connection is as follows:

  • (1) +5 Volt
  • (2) TX Data (out)
  • (3) RX Data (in)
  • (4) GND

If unsure which is which, check with a multimeter against a known ground (the metal frame of one of the USB ports for example).

Since the signals TX and RX data are at TTL/CMOS levels and not suitable for direct connection to a real RS232 port, you need to convert the signals with a TTL to RS232 converter like the MAX232(A) or compatible.

This my homebrew adapter cable: TTL to RS232 adapter

The schematic is found here: Schematic

The converter is meant to be used with a so-called null-modem cable, of you don't have such a cable just exchange the pins 2 and 3 on the SUBD-connector and use a straight cable. To test the console port I hooked up the Trendtac to my main (Kubuntu) Linux PC and installed a program called minicom The serial settings for minicom are 115200 baud 8 bits with no handshake signals. With minicom active I switched on the Trendtac and behold: kernel messages !

After the Trendtac booted up to the desktop the messages in minicom ended with 'Press Enter to activate this console' and after pressing Enter I had root access !

From here on it was rather easy to enable the telnetd in /etc/init.d/Start and after that I could log in over the network too.

-- Gert vd Knokke - 15 Aug 2008

Connectors and stuff

The connector seems to be an SR connector. It is used in some hardware like this: ACT-DSL-BUS cable or another. You can use the cable and something like this to build a usb->trendtac serial console cable. For the usb cable you can also use a 2.5 euro usb->serial cable for mobile phones. Getting the SR connector is probably the most expensive wink . PS: I have yet to get confirmed that the conrad cables are indeed correct.
Topic attachments
I Attachment Action Size Date Who Comment
jpgjpeg trendtac_RS232_adapter.jpeg manage 296.3 K 15 Aug 2008 - 21:16 GertvdKnokke My 'universal' TTL tot RS232 adapter adapted for the Trendtac
jpgjpeg trendtac_rs232.jpeg manage 30.6 K 15 Aug 2008 - 21:16 GertvdKnokke Schematic of the TTL to RS232 converter
Topic revision: r3 - 06 Sep 2008 - 17:10:37 - ArdVanBreemen
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback