|  03-23-2012, 04:10 PM | #16 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 Join Date: Nov 2011 Location: Multiverse 6627A Device: K1 to PW3 | 
			
			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: ... | 
|   |   | 
|  03-28-2012, 09:54 AM | #17 | |
| Member            Posts: 24 Karma: 7124 Join Date: Feb 2012 Device: KT | Quote: 
 I used this method to boot main and succeeded. You only have to change mmcblk0p2 to mmcblk0p1. | |
|   |   | 
|  04-08-2012, 07:57 AM | #18 | 
| wannabe developer            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..
		 | 
|   |   | 
|  04-08-2012, 08:03 AM | #19 | 
| Wizard            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...
		 | 
|   |   | 
|  04-08-2012, 08:14 AM | #20 | 
| wannabe developer            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.
		 | 
|   |   | 
|  04-08-2012, 11:17 AM | #21 | 
| but forgot what it's like            Posts: 741 Karma: 2345678 Join Date: Dec 2011 Location: north (by northwest) Device: Kindle Touch | |
|   |   | 
|  04-08-2012, 11:48 AM | #22 | 
| wannabe developer            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 Code: ldd (Sourcery G++ Lite 2009q3-67) 2.10.1 arm-2009q3-67-arm-none-linux-gnueabi This particural one seems to work ! Last edited by seaniko7; 04-08-2012 at 12:02 PM. | 
|   |   | 
|  04-08-2012, 01:23 PM | #23 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 Join Date: Nov 2011 Location: Multiverse 6627A Device: K1 to PW3 | 
			
			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.  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. | 
|   |   | 
|  10-06-2012, 03:00 PM | #24 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 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  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. | 
|   |   | 
|  10-06-2012, 04:31 PM | #25 | 
| but forgot what it's like            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" | 
|   |   | 
|  10-06-2012, 05:45 PM | #26 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 Join Date: Nov 2011 Location: Multiverse 6627A Device: K1 to PW3 | |
|   |   | 
|  10-06-2012, 06:01 PM | #27 | 
| BLAM!            Posts: 13,506 Karma: 26047202 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. :/ | 
|   |   | 
|  10-06-2012, 06:33 PM | #28 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 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]# | 
|   |   | 
|  10-07-2012, 04:30 AM | #29 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 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... | 
|   |   | 
|  10-07-2012, 07:10 AM | #30 | |
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | Quote: 
 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. | |
|   |   | 
|  | 
| 
 | 
|  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 08:13 AM | 
| 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 |