09-25-2012, 01:25 PM | #31 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
Yes, the kernel comment was made mostly in jest. Frustration talking more than anything else.
Thanks for confirming that it's possible to fix this with u-boot. I've searched but have not found anything in the forum discussing the steps involved in getting it done. If you could provide a pointer it would be appreciated. |
09-25-2012, 03:30 PM | #32 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
09-25-2012, 08:22 PM | #33 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
The problem for me is not so much how to use u-boot, but rather how to use it to correct my specific problem, i.e. how to repair/replace/rebuild the p1 partition. Has anyone done this and documented the process?
|
09-26-2012, 08:39 AM | #34 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Hi mate, just read your mails and such.
And Knc1's link to Uboot. First time I ever looked at it. Scary. So perhaps we should list out the knowns and work towards the unknowns. Knowns: you have the file you want. You know the "place" you want it to go. There is a tool that can one to the other. You have the parts required to do it. Unknowns: how to initiate "safe" file transfer including: how to ensure file transfer does not stall (this appears to have happened twice now according to my recollection when people have tried to undemo, check on that, will this affect our Uboot connection too? for example) Where to put the files (The file copying params look like expect addresses rather than helpful names, putting it in the wrong place would be "bad", like Ghost-busters "bad") If I missed something add it below. So you are seeking those answers, taking a stab at some likely commands or perhaps starting a thread en-labelled "Using U-Boot? I do What Now???" - well in your own words, would also be a great idea. My interest, other than fixing your now - marginally stable - device is also to understand why the dd connections seemingly dumped mid flash on two occasions. Fixing that would prevent this. So, I have had a look at the manual. Code:
ext2load <interface> <dev[:part]> [addr] [filename] fsinfo protect <on/off> [addr/all] setenv <variable> <value> The memory copy stuff as well??? I guess you have to boot from somewhere to get that stuff happening maybe haven't read all the docs. a useful kernel image - you have one of those I'd imagine by now. So yeah. just list out those questions and get them answered one by one in the absence of a catch-all guide for the DX. On the bright side - It looks like we really need one! Karma baby. Last edited by twobob; 09-26-2012 at 08:42 AM. Reason: Will this affect our Uboot connection too? |
09-26-2012, 09:04 AM | #35 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I am curious if serial connections have a similar problem to the ubuntu USB network dropout problem:
On my ubuntu system, nmcli caused USB to drop about 30 seconds after a connection. I uninstalled nmcli from my host PC, but now when I reboot it I need to start the connections manually (on this computer, I use "sudo ifconfig eth2 up; sudo dhclient eth2"). That prevents the dropped USB network connection. Alternatively, I previously used my "mntusb" script (see the K3 index wiki), which prevents mntcli from dropping the connection. Or the reboots could just be the watchdog timer in the kindle mentioned elsewhere by knc1. Last edited by geekmaster; 09-26-2012 at 11:14 AM. |
09-26-2012, 10:01 AM | #36 |
Enthusiast
Posts: 42
Karma: 31420
Join Date: Sep 2006
Location: Milky Way galaxy, Orion-Cygnus arm, Sol-III, North America, USA, FL
Device: various iDevices
|
@twobob I'm wondering what state of health the file structure is in. Can I just (somehow) get the right contents into the partition, or is the partition itself damaged - and presumably have to be fixed first.
@geekmaster I have not tried this (and it may be general knowledge) but the following is claimed to disable serial port timeout: touch /mnt/us/DO_NOT_KILL_UART This was found here: http://openinkpot.org/wiki/Device/Ki...eparatorySteps |
09-26-2012, 10:21 AM | #37 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Reasons:
The nickel quick tour (to bring this post back to the "what next" question):
Either: i.ROM "Downloader code" (either serial UART or USB UART, it runs on the device on which it first finds activity); or U-Boot command processor. In the case of the U-Boot command processor, this is a fairly "high-level" application - it will have programmed into it how to start the DRAM (and other neat things). In the case of the i.ROM command processor, this is a fairly "low-level" application (see: AN3996.pdf for details) - the user ("host") end is expected to send the i.ROM ("client") end the required hardware description (DCD) and sequence of "commands" to be run (address, data, data size tuples) **prior** to loading the next application code. And yes, there is a watchdog that needs to be service once it is started - and it gets started **prior** to the user having a chance to inject code into the execution path. The watchdog timer has two "time out" settings - The shortest one only generates an interrupt (request for service) as a warning that your time is almost over; and The longer one generates both an interrupt and an "illegal instruction" causing the SoC to trap into a hard-coded shutdown sequence. The watchdog may be service at any time in its count down sequence by writing two special data values to it, and/or It may be serviced by the short (getting short of time) interrupt. The watchdog timing intervals (either or both) may be changed at any time during the count down sequence. The parameters as set in the i.ROM code is to look for external activity for a relatively long time (2 to 3 minutes) and if none found, do a shutdown of the SoC. Once external activity is detected (which selects either the serial UART or the USB UART as the external source of commands) the watchdog is reprogrammed to disconnect and re-initialize the (selected) UART every 90 seconds of in-activity. ** The what next answer: ** We need to use either the various source codes and/or the i.ROM "peek and poke" (as in Basic) commands to determine the contents of that flash media descriptor block. From that, we will then know where (and what) sort of storage layout (mmcblk* logical sections) descriptor block to read. Which answers the question - Where do I write that external file to in the address space. (Known so far on MobileRead as a "magic offset" from address zero.) Disclaimer the above is from memory and may well include technical errors - but it is just intended to be a general over-view, not a detailed, technical description. Last edited by knc1; 09-26-2012 at 10:44 AM. |
|
09-26-2012, 10:28 AM | #38 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Note: Of course I had to skip a few of the details - Freescale had 3,000+ pages to describe it, I only had one post.
|
09-26-2012, 11:20 AM | #39 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
https://www.mobileread.com/forums/showthread.php?t=66170 Last edited by geekmaster; 09-26-2012 at 11:35 AM. |
|
09-26-2012, 11:28 AM | #40 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
My post never got close to the point of loading the kernel. And another over-sight on my part - the DX has both mmc and mtd storage parts on it, I never mentioned the mtd device setup. But if I (or we) wrote up all the details, we would just have another one of those 3,000+ page Freescale manuals. |
|
09-26-2012, 11:30 AM | #41 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Jeebers. at least it's nice and simple then.
There's more to digest there than a footlong. On this one I am genuinely glad not to have to have my head caved in through understanding. Going to be mighty careful with the dx... |
09-26-2012, 11:34 AM | #42 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Last edited by geekmaster; 09-26-2012 at 11:37 AM. |
|
09-26-2012, 11:40 AM | #43 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
noob guide = only change what is broken = find out what is broken = change that
|
09-26-2012, 11:41 AM | #44 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Say what? You don't have a hard disk drive in your Kindle? Why not? There are SSD "hard disk" drives on a mini-PCIe card (the card/connector holding the 3G modem/radio) dating back to at least the EeePC 701 (probably before that). I never had a chance to drag out the test equipment to see if the hard disk bus was wired to that connector (the PCIe lines) - a mini-PCIe card is not **required** to have the PCIe lines connected. And the Kindle may only have the serial and USB lines on the connector connected to the SoC chip. I just never had a RoundToIt that it would take to ID what connector lines are enabled on my K3. |
|
09-26-2012, 11:45 AM | #45 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
It's clearly an enormous area to digest in one splatter.
chinese water torture could possibly drill it in, I'll have a play |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch unbriking troubles | aguzman | Kindle Developer's Corner | 9 | 09-06-2012 07:23 AM |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 10:06 AM |