HN user

kholk

3 karma
Posts0
Comments2
View on HN
No posts found.
Access UART ports 11 years ago

The parameters are 115200, -> 8n1 <-…… Remember to enable kmsg to UART in the kernel commandline and … personally, I use PuTTY on Linux as well (just give the right permissions to the tty device you're going to use).

About cmdline parms, note that downstream and mainline DO differ, so take this as reference: Downstream 3.4/3.10/QC kernels: console=ttyHSL0,115200,n8 Mainline, korg 4.4-rc4 currently: console=ttyMSM0,115200,n8

Aside from this, and if you're a developer you actually should know, here's a lil cool info: you can also use an Arduino to communicate with your device on UART…. Just be sure to NOT connect any VCC to the board, otherwise … you'll have to say goodbye!

Wiring UART is a serious thing and requires soldering experience: use good, non-conductive flux in VERY SMALL quantities and possibly thin-as-hair insulated wires.

My suggestion is to fix those wires somewhere in your phone and "export" thicker ones outside of the phone, practicing a small hole in the housing: this will make your "mod" to last longer, and will make it "safer" since you won't be never anymore touching the mainboard with a soldering iron.

That said… this post finally gives wonderful pieces of informations to all of the very experienced developers out there who want to experiment very new, wonderful things, opening nearly endless possibilities on Sony platforms.

Also, Sony has got a wonderful open device "section" on their Developer World website, you may want to check it out: http://developer.sonymobile.com/knowledge-base/open-source/o...

...and even if it seems that they are just playing with AOSP, they are effectively creating a good, sane base with clean code that can be also easily used for porting/running alternative OSes, like Sailfish, FirefoxOS etc, like you can see on the Mozilla page here: https://hacks.mozilla.org/2015/10/build-and-run-firefox-os-o...

So..... hands up for Sony's friendship with the opensource community!