Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-23-2012, 04:10 PM   #16
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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 12:27 AM. Reason: Reason: Reason: Reason: Reason: Reason: ...
geekmaster is offline   Reply With Quote
Old 03-28-2012, 09: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
 
Enthusiast
Old 04-08-2012, 07:57 AM   #18
seaniko7
wannabe developer
seaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipedia
 
seaniko7's Avatar
 
Posts: 141
Karma: 47458
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, PW; 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 online now   Reply With Quote
Old 04-08-2012, 08:03 AM   #19
hawhill
Guru
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: 764
Karma: 1646497
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kindle 3 WiFi
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, 08:14 AM   #20
seaniko7
wannabe developer
seaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipedia
 
seaniko7's Avatar
 
Posts: 141
Karma: 47458
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, PW; Onyx: Boox M92
I can compile kernel without issues, but after flashing it with kexec KT just freezes.
seaniko7 is online now   Reply With Quote
Old 04-08-2012, 11:17 AM   #21
eureka
discoverer of principles
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: 610
Karma: 1758576
Join Date: Dec 2011
Location: bath
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, 11:48 AM   #22
seaniko7
wannabe developer
seaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipediaseaniko7 knows more than wikipedia
 
seaniko7's Avatar
 
Posts: 141
Karma: 47458
Join Date: Mar 2011
Device: Kindle: 2xKeyboard, Classic, 2xTouch, PW; 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 12:02 PM.
seaniko7 is online now   Reply With Quote
Old 04-08-2012, 01:23 PM   #23
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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 01:59 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 03:00 PM   #24
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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 03:11 PM.
geekmaster is offline   Reply With Quote
Old 10-06-2012, 04:31 PM   #25
eureka
discoverer of principles
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: 610
Karma: 1758576
Join Date: Dec 2011
Location: bath
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, 05:45 PM   #26
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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, 06: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: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
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, 06:33 PM   #28
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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, 04:30 AM   #29
geekmaster
Всё гениальное просто.
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: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
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, 07:10 AM   #30
knc1
Embedded Cheerleader
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: 4,076
Karma: 3827911
Join Date: Feb 2012
Device: Intel 4004
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.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:14 PM.


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