virus4love / rowboat

Automatically exported from code.google.com/p/rowboat
1 stars 0 forks source link

Serial ports on ICS #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I have android 2.3 from TI site and now on second sd card I put rowboat ICS 
version. On my 2.3 I'm able to run pppd via /dev/ttyS2 port.

But on ICS log cat show me 'Couldn't get channel number: I/O error'.

#setserial -G /dev/ttyS2
/dev/ttyS2 uart unknown port 0x0000 irq 0 bound_base 0 spd_normal

When I run setserial on 2.3, I see proper values of UART and IRQ.

There is any way to enable serial ports in ICS? 

Original issue reported on code.google.com by styczyns...@gmail.com on 7 Feb 2012 at 4:42

GoogleCodeExporter commented 9 years ago
If you are using kernel 2.6.37 (which is what rowboat ICS is using currently) 
then the serial port would be /dev/ttyO2

Original comment by vishvesh...@aim.com on 8 Feb 2012 at 8:19

GoogleCodeExporter commented 9 years ago
Yes, I use kernel 2.6.37, build by myself with added modules for ppp. I try to 
use /dev/ttyO2, but it is used by another process. In boot arguments it is used 
to output logs while booting. How I can use it for my own purposes?

Original comment by styczyns...@gmail.com on 8 Feb 2012 at 11:11

GoogleCodeExporter commented 9 years ago
change you boot string in mkbootscr

setenv bootargs 'console=ttyO2,115200n8 androidboot.console=ttyO2 mem=256M 
root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init ip=off 
omap_vout.vid1_static_vrfb_alloc=y vram=8M omapfb.vram=0:8M 
omapdss.def_disp=dvi omapfb.mode=dvi:1024x768-16'

the above is the default where the console and boot log are using /dev/tty02. 
if you wish to use the tty02 than you will have no console and will have to use 
ADB over (usb or ethernet)

Original comment by markesse...@gmail.com on 18 Feb 2012 at 4:16