View Single Post
Old 07-02-2012, 07:03 PM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by bax21 View Post
I didn't realize that Kindle had a serial port until I accidentally turned up a reference to it on this forum. I have found pinouts to the port, but no explicit references to it takling to the ouside world. Any links would be greatly appreciated.
One good place to stumble on serial port information is here:
https://wiki.mobileread.com/wiki/Hard...ex#Serial_Port

The Kindles run Linux, and a character stream device is just a character stream device.

The hardware's primary serial port (the ones described at above link) begin life during the boot sequence as /dev/console.

During the boot sequence the console device will (usually) be re-assigned.
Do:
cat /proc/cmdline
and you should find a: console= command line option.
That assigned device name is that hardware serial port after the kernel boot up completes.

Just open/read/write/flush/close like any other character device.
Which is why you don't find many references, it is just a bit of "basic" knowledge in how Linux works.
knc1 is offline   Reply With Quote