Nexus one linux console?

This is a discussion on Nexus one linux console? within the Nexus One Development & Hacking forums, part of the Nexus One Development category; Hi all, Is there anyway to achieve a linux console on the nexus one, during BOOT time? My intent is to see the kernel log ...


Nexus One Forum Nexus One Forum RSS Feed Find us on Facebook Nexus One Twitter
Register Button
Go Back   Nexus One/Nexus S Forum - Google Phone Forum » Nexus One Development » Nexus One Development & Hacking

Nexus One Development & Hacking General area for Nexus One Programming / Development / Hacking

Reply
Old 08-10-2011, 03:53 AM   #1
Junior Member
 
Member #17592
Join Date: Aug 2011
Posts: 5
Phone: Not Listed
Carrier: Not Listed
Nexus one linux console?

Hi all,
Is there anyway to achieve a linux console on the nexus one, during BOOT time?

My intent is to see the kernel log messages during android boot, as I would if I set
up an embedded linux platform, hooked a serial to its e.g. /dev/ttyS0, and connected to
it from a serial terminal (e.g. CuteCom, Procomm, Windows HyperTerminal etc.).

Is this achievable using the "regular" (micro USB to USB) cable, or should there be some dedicated cable?

Can someone please tell me how this can be done? I am sure there is a neat method to do so, I just haven't figured out how, from the current stuff I have read.

Thanks,
Ron.
ronubo is offline   Reply With Quote
Old 08-10-2011, 08:28 AM   #2
Super Moderator
 
danger-rat's Avatar
 
Member #12109
Join Date: Oct 2010
Location: USA
Posts: 1,961
Phone: Nexus One-point-three
Carrier: Not Listed
There's a couple of apps by Chainfire on the Market which run live dmesg and logcat streams as boot animations, so it's probably possible, but how you would go about achieving it is beyond my Android Fu...

Chainfire is an xda user, so you may be able to track him down.
If you succeed, I'd be interested to know the answer... xD
__________________
"There is no charge for awesomeness"
danger-rat is offline   Reply With Quote
Old 08-10-2011, 08:38 AM   #3
Junior Member
 
Member #17592
Join Date: Aug 2011
Posts: 5
Phone: Not Listed
Carrier: Not Listed
The thing is, that I'm looking for the "console" support on android bootstrap. I'm looking
at it as an embedded linux developer, as in "What do I do if my kernel does not boot up"?
In this case I will never even get to a "logcat", or "dmesg" state.

I would like to see the infamous "uncompressing linux..." message.

When an embedded linux, such as android comes up, its sequence would usually be something like this:

0. Power up - CPU jumps to a well defined, hardcoded addres, where the first "bootloader" is stored.
1. bootloader does its magic: Sets up DRAM controllers, sets up execution environment (e.g. making "C" code possible, by preparing stack region etc, and allowing some more bootloader code to be written in a non-assembly language,
2. bootloader setups "console" - e.g. setup UART - and in the the Nexus I would expect (or hope?) to have it set up something on the USB port. What is this thing? I have no clue
3. Fetch/decompress/boot kernel - here, assuming a "console" was set up before, a "console=..." argument can be given to the kernel as an argument.

Now the question is how do these things work with Nexus-One specifically.
Do you think the XDA forum would be a better place to ask?
My previous "low-level" questions remained unanswered :-/


Thanks,
Ron
ronubo is offline   Reply With Quote
Old 08-23-2011, 07:42 AM   #4
Junior Member
 
Member #17942
Join Date: Aug 2011
Posts: 1
Phone: Nexus S
Carrier: Not Listed
Quote:
Originally Posted by ronubo View Post
The thing is, that I'm looking for the "console" support on android bootstrap. ...
2. bootloader setups "console" - e.g. setup UART - and in the the Nexus I would expect (or hope?) to have it set up something on the USB port. What is this thing? I have no clue
...
Check the XDA thread:
232 - serial - USART - UART - xda-developers

"TTL level (~3.3v?) serial is present on the D+/D- pins of the micro USB connector whenever VBUS (usb +5v power) is not present. This is physical UART1 (ttyMSM0)"
af3556 is offline   Reply With Quote
Reply

Lower Navigation
Go Back   Nexus One/Nexus S Forum - Google Phone Forum » Nexus One Development » Nexus One Development & Hacking

Tags
/dev/console, /dev/tty, console debug, linux bootup, serial console

Divider


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Search tags for this page
android linux console log
,
android nexus one linux console
,
android serial terminal
,
galaxy nexus uart console
,
google nexus-s modem linux uart
,
htc android serial console
,
iphone bootloader assembly language
,
linux boot from nexus one usb
,
nexus one serial console
,
nexus s /dev/tty boot debugger
,

nexus s connector serial

,

nexus s console

,

nexus s kernel serial

,

nexus s serial cable

,
nexus s serial out
,
nexus s uart console
,
nexus usb uart
,
serial console nexus-s
,

uart+android+nexus+s+serial+output debug

,

usb+to+uart+android+nexus s

Click on a term to search our sites for related topics.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
got a free Nexus one from Linux Collaboration Summit zambithegreat Nexus One General Discussion 2 04-17-2010 02:31 PM
Own a console? xPatriicK Off Topic Forum 22 01-08-2010 09:57 AM