|
|
#16 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
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: ... |
|
|
|
|
|
#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. |
|
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
wannabe developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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..
|
|
|
|
|
|
#19 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
|
|
|
|
|
|
#20 |
|
wannabe developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#21 |
|
discoverer of principles
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 1758576
Join Date: Dec 2011
Location: bath
Device: Kindle Touch
|
|
|
|
|
|
|
#22 |
|
wannabe developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 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. |
|
|
|
|
|
#23 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
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. 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. |
|
|
|
|
|
#24 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() 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...
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() Last edited by geekmaster; 10-06-2012 at 03:11 PM. |
|
|
|
|
|
#25 |
|
discoverer of principles
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" |
|
|
|
|
|
#26 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
Code:
[root@kindle root]# zcat /proc/config.gz |grep -i "kexec\|atags"
zcat: /proc/config.gz: No such file or directory
[root@kindle root]#
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() |
|
|
|
|
|
|
#27 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. :/ |
|
|
|
|
|
#28 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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]#
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() |
|
|
|
|
|
#29 |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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...
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() |
|
|
|
|
|
#30 | |
|
Embedded Cheerleader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,076
Karma: 3827911
Join Date: Feb 2012
Device: Intel 4004
|
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.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |