Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2012, 08:19 AM   #31
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Could it be a software-handshake (ctrl-s, ctrl-q) problem with the terminal program? Could it be a buffer full problem?

Try different handshake settings. Try a different serial comm program. Perhaps that program is sending a crtl-s (XOFF) to the kindle at that point (after a certain number of characters have been received), making the kindle output "pause"... Try typing a crtl-q (XON) at that point to see if it continues.
geekmaster is offline   Reply With Quote
Old 06-05-2012, 08:25 AM   #32
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 geekmaster View Post
Could it be a software-handshake (ctrl-s, ctrl-q) problem with the terminal program? Could it be a buffer full problem?

Try different handshake settings. Try a different serial comm program. Perhaps that program is sending a crtl-s (XOFF) to the kindle at that point (after a certain number of characters have been received), making the kindle output "pause"... Try typing a crtl-q (XON) at that point to see if it continues.
Sorry, did not think of software flow control problems -
Add the checks GM suggests into the steps of my post above at the appropriate points.

You might also mention what serial comm program and host OS your using.
knc1 is offline   Reply With Quote
Old 06-05-2012, 08:27 AM   #33
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Sorry, did not think of software flow control problems - ...
I did not think of them until now either. It is hard to think of everything at once. It is a lot easier to think of ANOTHER THING when all the other things you tried have failed. Incremental evolution of ideas...
Quote:
Originally Posted by knc1 View Post
... You might also mention what serial comm program and host OS your using.
Post #18 shows that he is using minicom, the same program that seaniko7 used in the video.

Last edited by geekmaster; 06-05-2012 at 08:33 AM.
geekmaster is offline   Reply With Quote
Old 06-05-2012, 08:52 AM   #34
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
K3 Rescue Image?

This one looks interesting:
Quote:
bootcmd_root_mmc=setenv bootargs $(bootargs_base) root=/dev/mmcblk1p1 rw ip=none
bootcmd_root_mvn=setenv bootargs $(bootargs_base) root=/dev/mmcblk0p1 rw ip=none
If that is not just a "left over" from lab126 development environment, the K3 has a second eMMC block and another root file system (plus maybe another kernel?).

As can be seen in the eMMC documentation, the part has the ability to hardware host two boot partitions (three if you count the user area of the flash).
Ref: http://drpbox.knetconnect.com/k3/KLMxGxxEHx.pdf
Page 9.


Once we get the immediate problem solved, BB can try that out for us.

Last edited by knc1; 06-05-2012 at 08:58 AM.
knc1 is offline   Reply With Quote
Old 06-05-2012, 08:55 AM   #35
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
This one looks interesting:

If that is not just a "left over" from lab126 development environment, the K3 has a second eMMC block and another root file system (plus maybe another kernel?).

As can be seen in the eMMC documentation, the part has the ability to hardware host two boot partitions.
Ref: http://drpbox.knetconnect.com/k3/KLMxGxxEHx.pdf
mmcblk1 is an external mmc device (SD card) that they have in their development system, according to comments in the source code. Those pins may be buried under the SoC chip in the production devices though. It would be nice to find them and add an SD socket.
geekmaster is offline   Reply With Quote
Old 06-05-2012, 12:19 PM   #36
BusterBrown
Kindle Expirmenter
BusterBrown began at the beginning.
 
BusterBrown's Avatar
 
Posts: 25
Karma: 10
Join Date: May 2012
Location: Washington State, USA
Device: k2k3k4
Hi guys, I was just kidding about the language translation. I have the clip downloaded from youtube so, I can see what should be displayed on my screen. Please look at my post #11. As I said before, I am working with a good unit that boots correctly with my serial adaptor connected. My next step is going to be monitoring the data flow with my scope and see if it ends at the same time I stop getting text on the computer screen. I am beginning to think something is wrong with my minicom setup but, the scope will confirm this.
BusterBrown is offline   Reply With Quote
Old 06-05-2012, 12:23 PM   #37
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 BusterBrown View Post
Hi guys, I was just kidding about the language translation. I have the clip downloaded from youtube so, I can see what should be displayed on my screen. Please look at my post #11. As I said before, I am working with a good unit that boots correctly with my serial adaptor connected. My next step is going to be monitoring the data flow with my scope and see if it ends at the same time I stop getting text on the computer screen. I am beginning to think something is wrong with my minicom setup but, the scope will confirm this.
Disable flow control in minicom.
U-boot may not recognize flow control but /dev/console does and your only getting as far as the kernel initialization of /dev/console if the messages are to be beleived.

Also - this adapter __must__ be 1.8v __not__ 3.3v
It is not known that the Kindle SoC is 3.3v tolerant.
knc1 is offline   Reply With Quote
Old 06-05-2012, 12:35 PM   #38
BusterBrown
Kindle Expirmenter
BusterBrown began at the beginning.
 
BusterBrown's Avatar
 
Posts: 25
Karma: 10
Join Date: May 2012
Location: Washington State, USA
Device: k2k3k4
This is how Minicom is setup:
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB2 |
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : No |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
I am using Linux Mint 12 and have the Sparkfun level converter, Max 232, U232-P9 USB to serial and getting 1.8 volt supply from the Kindle serial port.
BusterBrown is offline   Reply With Quote
Old 06-05-2012, 01:36 PM   #39
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 BusterBrown View Post
I am using Linux Mint 12 and have the Sparkfun level converter, Max 232, U232-P9 USB to serial and getting 1.8 volt supply from the Kindle serial port.
That is a CMOS input signal that controls the lamp power to the upper connector. You can't pull enough power from its pull-up resistor to power your level converter.
I.E: Once the SoC gets re-configured by the kernel in its startup process, you are losing power to the level converter.

Re-option your level converter to be powered by the USB side.

The minicom options all look reasonable (both hardware and software flow control disabled).
knc1 is offline   Reply With Quote
Old 06-05-2012, 02:08 PM   #40
BusterBrown
Kindle Expirmenter
BusterBrown began at the beginning.
 
BusterBrown's Avatar
 
Posts: 25
Karma: 10
Join Date: May 2012
Location: Washington State, USA
Device: k2k3k4
I just monitored the data from the Kindle with my scope and sure enough, No data after the Kernel boot as in post 11. I also checked the 1.8 volt supply for the K3 and it doesn't change very much. I could try using an external 1.8 volt suppy though. Looking at the video again it looks like there is a (b) in the 'program callout' portion of the port setup?? See attached picture. http://s618.photobucket.com/albums/tt266/wallyntoni/K3/
BusterBrown is offline   Reply With Quote
Old 06-05-2012, 02:20 PM   #41
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
The K4 and K5 have a 1K series resistor on both Rx and Tx. The K3 may be the same. The kindle Tx cannot sink enough current to bring the SoC side of its 1K resistor down to a logic zero.

I used a series diode, to allow the kindle to pull Tx down to 0.7v (good logic zero), then on the serial adapter side a 20K pullup resistor to 3.3v (or 5v). Less than 20K pullup will not give a good logic zero.

That does not seem to be a problem here though because you seem to have good output.

The K4 and K5 do NOT get a good ground from the serial connector. It is better to get a ground from elsewhere, like the USB cable.

On a K3, I did not test this, but you might have a voltage level problem on the SoC side of the internal pullup resistor, if you are supplying too much current.
geekmaster is offline   Reply With Quote
Old 06-05-2012, 06:02 PM   #42
BusterBrown
Kindle Expirmenter
BusterBrown began at the beginning.
 
BusterBrown's Avatar
 
Posts: 25
Karma: 10
Join Date: May 2012
Location: Washington State, USA
Device: k2k3k4
Case solved...... I just used an external 1.8 volt supply and guess what IT WORKS..... this is really strange that I would get data from U-boot but, not the kernel. Guess you guys know what you are talking about. Thanks for all that replied to this thread.
BusterBrown is offline   Reply With Quote
Old 06-05-2012, 06:11 PM   #43
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 BusterBrown View Post
Case solved...... I just used an external 1.8 volt supply and guess what IT WORKS..... this is really strange that I would get data from U-boot but, not the kernel. Guess you guys know what you are talking about. Thanks for all that replied to this thread.
Pins on an SoC, nearly all SoCs, nearly all pins, are programmable.

If the kernel was built with the early printK / early console option(s), then initializing the /dev/console driver would have been __almost__ the first thing it does after being uncompressed and the image starting execution.

Betting that the pin characteristics would be programmed by the kernel driver the same as either the SoC default or those programmed by U-boot is a poor bet.

So what you have learned just adds to our knowledge of the considerations in using this (un-documented for us) hardware.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch serial port recovery. geekmaster Kindle Developer's Corner 41 03-11-2013 09:41 PM
Kindle 4 Non touch serial port pinout geekmaster Kindle Developer's Corner 10 01-25-2012 06:12 PM
Help with unbricking kindle via serial port yifanlu Kindle Developer's Corner 12 03-10-2011 07:51 AM
Problem with battery and USB port witch_moon Bookeen 2 12-23-2008 11:34 AM
Internals & serial port dottedmag Netronix 1 05-12-2008 05:38 PM


All times are GMT -4. The time now is 06:17 PM.


MobileRead.com is a privately owned, operated and funded community.