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 03-23-2012, 05:10 PM   #16
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by wsxhwyy View Post
can i use the same method to boot main?
As you can read in the Select Boot thread, the MfgTool you can download there contains bootmode profiles for main, diags, and fastboot. Just select the bootmode you want from the menu.

Lets get back on topic. Just because I am trying to be helpful here is not a reason to continue this debricking conversation in this thread.

Please ask future debricking questions in a debricking thread. Thanks...

Last edited by geekmaster; 03-24-2012 at 01:27 AM. Reason: Reason: Reason: Reason: Reason: Reason: ...
geekmaster is offline   Reply With Quote
Old 03-28-2012, 10:54 AM   #17
wsxhwyy
Member
wsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the roughwsxhwyy is a jewel in the rough
 
Posts: 24
Karma: 7124
Join Date: Feb 2012
Device: KT
Quote:
Originally Posted by geekmaster View Post
As you can read in the Select Boot thread, the MfgTool you can download there contains bootmode profiles for main, diags, and fastboot. Just select the bootmode you want from the menu.

Lets get back on topic. Just because I am trying to be helpful here is not a reason to continue this debricking conversation in this thread.

Please ask future debricking questions in a debricking thread. Thanks...
Report:
I used this method to boot main and succeeded. You only have to change mmcblk0p2 to mmcblk0p1.
wsxhwyy is offline   Reply With Quote
Old 04-08-2012, 08:57 AM   #18
seaniko7
wannabe developer
seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.
 
seaniko7's Avatar
 
Posts: 192
Karma: 156548
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, 2xPW, PW2; Onyx: Boox M92
Does anybody know which toolchain is appropriate for KT kernel cross-compiling ? I used code sourcery and eldk without success..
seaniko7 is offline   Reply With Quote
Old 04-08-2012, 09:03 AM   #19
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Hm, CodeSourcery should work, I think, they have one of the most versatile ARM targeted gcc suites. In what way it doesn't work? But then, I don't have a Touch...
hawhill is offline   Reply With Quote
Old 04-08-2012, 09:14 AM   #20
seaniko7
wannabe developer
seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.
 
seaniko7's Avatar
 
Posts: 192
Karma: 156548
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, 2xPW, PW2; Onyx: Boox M92
I can compile kernel without issues, but after flashing it with kexec KT just freezes.
seaniko7 is offline   Reply With Quote
Old 04-08-2012, 12:17 PM   #21
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by seaniko7 View Post
I can compile kernel without issues, but after flashing it with kexec KT just freezes.
Did you tried kexec'ing with KT connected to power source (wall outlet)?
eureka is offline   Reply With Quote
Old 04-08-2012, 12:48 PM   #22
seaniko7
wannabe developer
seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.seaniko7 can grok the meaning of the universe.
 
seaniko7's Avatar
 
Posts: 192
Karma: 156548
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, 2xPW, PW2; Onyx: Boox M92
Of course. I can still use stock kernels, which kexec flash even without additional console arguments.

EDIT:

Executing on KT :
Code:
ldd --version
Gave me this output :
Code:
ldd (Sourcery G++ Lite 2009q3-67) 2.10.1
Which led me to downloading correct version of toolchain :

arm-2009q3-67-arm-none-linux-gnueabi

This particural one seems to work !

Last edited by seaniko7; 04-08-2012 at 01:02 PM.
seaniko7 is offline   Reply With Quote
Old 04-08-2012, 02:23 PM   #23
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by seaniko7 View Post
Of course. I can still use stock kernels, which kexec flash even without additional console arguments.
A little friendly advice: using the word "flash" in this context is misleading. You should use the term "execute" instead (as correctly implied by the name of the "kexec" command). "Flash" generally means writing to the MMC using a tool like "fastboot", when used in this forum.

@seaniko7: In general, your command of the English language is excellent.
Quote:
Originally Posted by seaniko7 View Post
arm-2009q3-67-arm-none-linux-gnueabi

This particural one seems to work !
Great news! That should save some of us (like me) a LOT of wasted effort trying to learn this on our own. Thanks!


P.S. The first post now contains a link to the "getkernels" tool, which extracts kernel images from mmcblk0.img or from /dev/mmcblk0, an all eink kindles:

Last edited by geekmaster; 04-08-2012 at 02:59 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 04:00 PM   #24
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I tried launching the Paperwhite diags kernel from the simple debricking pastebin using kexec, but I get this output:
Code:
[root@kindle us]# ./kexec.sh
Cannot open /proc/atags: No such file or directory
kexec_load failed: Function not implemented
entry       = 0x70008000 flags = 280000
nr_segments = 2
segment[0].buf   = 0x2a068
segment[0].bufsz = a0
segment[0].mem   = 0x70001000
segment[0].memsz = 1000
segment[1].buf   = 0x4012d048
segment[1].bufsz = 4653c0
segment[1].mem   = 0x70008000
segment[1].memsz = 466000
Bummer. I was hoping to boot the Paperwhite diags partition this way, because ENABLE_DIAGS does not work.

EDIT: Also, kexec -e drops USBNet so you cannot start a shell, but the kindle still shows up as an RNDIS device. The kindle framework and menu system still works though. But the search bar ";un" command does nothing, and I need to restart the kindle before I can use USBNet again...

Last edited by geekmaster; 10-06-2012 at 04:11 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 05:31 PM   #25
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
@geekmaster, could you please post output of Paperwhite's:
Code:
zcat /proc/config.gz |grep -i "kexec\|atags"
eureka is offline   Reply With Quote
Old 10-06-2012, 06:45 PM   #26
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by eureka View Post
@geekmaster, could you please post output of Paperwhite's:
Code:
zcat /proc/config.gz |grep -i "kexec\|atags"
Code:
[root@kindle root]# zcat /proc/config.gz |grep -i "kexec\|atags"
zcat: /proc/config.gz: No such file or directory
[root@kindle root]# 
geekmaster is offline   Reply With Quote
Old 10-06-2012, 07:01 PM   #27
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Awesome. -_-".

And the 5.2.0 source packages aren't out, so no way to check the defconfig. :/
NiLuJe is offline   Reply With Quote
Old 10-06-2012, 07:33 PM   #28
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Code:
[root@kindle /proc]# ls -al|grep -v ^d
-r--r--r--    1 root     root             0 Oct  6 22:31 board_id
-r--r--r--    1 root     root             0 Oct  6 22:31 bootmode
-r--r--r--    1 root     root             0 Oct  6 22:31 buddyinfo
-r--r--r--    1 root     root             0 Oct  6 22:31 cmdline
-r--r--r--    1 root     root             0 Oct  6 22:31 cpuinfo
-r--r--r--    1 root     root             0 Oct  6 22:31 crypto
-r--r--r--    1 root     root             0 Oct  6 22:31 devices
-r--r--r--    1 root     root             0 Oct  6 22:31 diskstats
-r--r--r--    1 root     root             0 Oct  6 22:31 dma-engine
-r--r--r--    1 root     root             0 Oct  6 22:31 execdomains
-r--r--r--    1 root     root             0 Oct  6 22:31 fb
-r--r--r--    1 root     root             0 Oct  6 22:31 filesystems
-r--r--r--    1 root     root             0 Oct  6 22:31 interrupts
-r--r--r--    1 root     root             0 Oct  6 22:31 iomem
-r--r--r--    1 root     root             0 Oct  6 22:31 ioports
-r--r--r--    1 root     root             0 Oct  6 22:31 kallsyms
-r--------    1 root     root             0 Oct  6 22:30 kmsg
-r--------    1 root     root             0 Oct  6 22:31 kpagecount
-r--------    1 root     root             0 Oct  6 22:31 kpageflags
-rw-r--r--    1 root     root             0 Oct  6 22:31 latency_stats
-r--r--r--    1 root     root             0 Oct  6 22:31 loadavg
-r--r--r--    1 root     root             0 Oct  6 22:31 locks
-r--r--r--    1 root     root             0 Oct  6 22:31 mac_addr
-r--r--r--    1 root     root             0 Oct  6 22:31 mac_sec
-r--r--r--    1 root     root             0 Oct  6 22:31 meminfo
-r--r--r--    1 root     root             0 Oct  6 22:31 misc
-r--r--r--    1 root     root             0 Oct  6 22:31 modules
lrwxrwxrwx    1 root     root            11 Oct  6 22:31 mounts -> self/mounts
lrwxrwxrwx    1 root     root             8 Oct  6 22:31 net -> self/net
-r--r--r--    1 root     root             0 Oct  6 22:31 pagetypeinfo
-r--r--r--    1 root     root             0 Oct  6 22:31 panel_id
-r--r--r--    1 root     root             0 Oct  6 22:31 partitions
-r--r--r--    1 root     root             0 Oct  6 22:31 postmode
-r--r--r--    1 root     root             0 Oct  6 22:31 sched_debug
-r--r--r--    1 root     root             0 Oct  6 22:31 schedstat
lrwxrwxrwx    1 root     root            64 Oct  6 21:46 self -> 7004
-rw-r--r--    1 root     root             0 Oct  6 22:31 slabinfo
-r--r--r--    1 root     root             0 Oct  6 22:31 softirqs
-r--r--r--    1 root     root             0 Oct  6 22:31 stat
-r--r--r--    1 root     root             0 Oct  6 22:31 swaps
--w--w--w-    1 root     root             0 Oct  6 22:31 tcpreset
-r--r--r--    1 root     root             0 Oct  6 22:31 timer_list
-rw-r--r--    1 root     root             0 Oct  6 22:31 touch
-r--r--r--    1 root     root             0 Oct  6 22:31 uptime
-r--r--r--    1 root     root             0 Oct  6 22:31 usid
-r--r--r--    1 root     root             0 Oct  6 22:31 version
-r--------    1 root     root             0 Oct  6 22:31 vmallocinfo
-r--r--r--    1 root     root             0 Oct  6 22:31 vmstat
-r--r--r--    1 root     root             0 Oct  6 22:31 zoneinfo
[root@kindle /proc]#
geekmaster is offline   Reply With Quote
Old 10-07-2012, 05:30 AM   #29
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: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
This happens on other ARM devices too, and there is a kernel patch to fix it:
http://docs.openmoko.org/trac/attach...2.6.22.5.patch

So we need a patched kernel to support kexec, so we can load a custom kernel? Catch-22?

I could see a multi-stage leveraged approach, where we tether boot a custom u-boot that does not need atags, and use that to run kexec to load a kernel without the missing atags problem (if I am beginning to understand how that works). At least it is a place to start looking. I hope we find an untethered boot approach instead, but this is a start until then...
geekmaster is offline   Reply With Quote
Old 10-07-2012, 08:10 AM   #30
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
This happens on other ARM devices too, and there is a kernel patch to fix it:
http://docs.openmoko.org/trac/attach...2.6.22.5.patch
Did I not read somewhere in one of these information post dumps that the K5/Kpw was running 2.6.31?

That patch from back in the 2.6.22 days should have made it into the code, although it may not have been optioned in the build configuration.

Hint:
If you have read access to the u-boot environment area, dump the script strings and see how it is setup for network booting.

Those defaults may be the same as the K4/K5 - but might not.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Did I get my kindle stuck in USB Drive Mode? peacedog Amazon Kindle 9 02-13-2020 09:13 AM
extract initramfs from kindle dx kernel image chinaet Kindle Developer's Corner 16 04-19-2013 01:16 PM
[Kindle Touch] Boot over USB HID serial / "USB downloader" mode eureka Kindle Developer's Corner 16 02-25-2012 11:21 PM
Troubleshooting Kindle 3 usb drive mode problem readpro Amazon Kindle 7 10-25-2011 01:22 AM
Does Kindle spread USB virus like USB flash drive? rockchen General Discussions 49 02-17-2011 11:03 AM


All times are GMT -4. The time now is 01:29 PM.


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