![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 212044
Join Date: Jun 2012
Location: Betelgeuse
Device: Kindle B008
|
Update script does not work
I was using this program to make a custom update. I run this command:
Code:
kindletool create ota -d k3w test.sh update_custom_script.bin Code:
#!/bin/sh echo 'Hello test!' mkdir `date +%d_%m_%Y` |
![]() |
![]() |
![]() |
#2 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Your Kindle is not JailBroken, or if it is using my jailbreak, you'll need to whitelist your package name (in linkjail/etc/whitelist)
![]() Keep in mind that unless you have a serial console plugged in, you won't actually see the echo anywhere, and the directory will be created in a temporary folder, that the updater will probably delete at the end of the update process ![]() If you want to actually print something on screen, look into eips. You can check bin/libkh in any of my hacks to check how I usually use it, but basically, to print something on the bottom of the screen (on a K2/K3/K4, at least, might be slightly different on the Touch): Code:
# Pull some helper functions for logging _FUNCTIONS=/etc/rc.d/functions [ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS} # Print a <= 48 characters message on the bottom of the screen (NOTE: Redirect to /dev/null to kill unavailable character & pixel not in range warning messages) eips 1 $((${SCREEN_Y_RES} / ${EIPS_Y_RES} - 2)) "Hello world!" >/dev/null Last edited by NiLuJe; 06-21-2012 at 04:10 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 212044
Join Date: Jun 2012
Location: Betelgeuse
Device: Kindle B008
|
You seem to be everywhere! I was the guy who could not compile Kindle Tools! And yes, I was using your jailbreak, not knowing it was you.
So now I have: The update was not successful. Please record the error code shown below and call Customer Service at 1-866-3 bla bla bla. To resume using your Kindle, press R key on your keyboard UPDATE ERROR: 3. Edit: I found another of your posts that says error 3 is common: Quote:
Edit2: I tried putting my folder in /mnt/us but it is still not there. So how wold I do it? Will unpacking a separate executable and using system("mkdir bla bla bla") in C work, or is there another way? Last edited by rusHack; 06-21-2012 at 04:45 PM. Reason: EDIT |
|
![]() |
![]() |
![]() |
#4 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
And what did customer service have to say about your script? Would they debug it for you? ![]() |
|
![]() |
![]() |
![]() |
#5 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 212044
Join Date: Jun 2012
Location: Betelgeuse
Device: Kindle B008
|
Quote:
Last edited by rusHack; 06-21-2012 at 05:12 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Ha, I was just wondering if you weren't the same guy ;D.
Don't reboot your Kindle with a custom update package still on the root of the USB drive, always use the 'Update your Kindle' link in the Settings menu. (That's an error from the updater running at boot, not the ota updater). And you're not seeing anything from the script because in this case, the script hasn't even been able to run, the updater just rejected the package because it's signed by us, not Amazon (and the only way to patch this updater is via a kernel patch). Last edited by NiLuJe; 06-21-2012 at 05:18 PM. |
![]() |
![]() |
![]() |
#7 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 212044
Join Date: Jun 2012
Location: Betelgeuse
Device: Kindle B008
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The kernel has an "auto-pilot" mode (en_LAB126) that is called while it is still running as a memory resident system.
(See that "Damn shell reboot" thread for details) If it finds an update_*.bin file on what, under normal operation is the USB Storage area, it will run it. These packages must be signed. The kernel only ships with Amazon's public key, they do not include a MR_dev public key - so we get to add that to the kernel ourselves. Common term: "Patch" But in fact, will probably just be added to the source and the kernel rebuilt rather than done as a binary patch. Since we also need this feature for the K3 "rescue kernel" ... Since I own a K3 ... Since I have done such things in the past ... I may do it unless someone beats me to it. Since I am nearly at the end of my three score and ten ... Time is short here, so don't hold your breath for me to get it done. |
![]() |
![]() |
![]() |
#9 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@rusHack: Hence my "Don't reboot with a custom update" warning
![]() @knc1: http://yifan.lu/2011/06/25/one-more-...-for-kindle-3/ I seem to remember seaniko7 also building another one... ![]() Actually, I don't even remember if that's the same updater from the initramfs recovery shell that's run at boot, or a third (?) one :?. Last edited by NiLuJe; 06-21-2012 at 08:16 PM. |
![]() |
![]() |
![]() |
#10 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
The only thing I am sure of, is this system isn't put together in any obvious way. Almost as if it was done in a hurry, out of the "spare (firmare) parts" that where laying on the shelf. Plenty of room for research into the details. That "auto-pilot" updater that runs from the recovery shell, before the usual runtime file systems are mounted would give us the most opportunity to fix-up the system. And there are what? Three K3s with active threads at the moment that could make use of this sort of "K3 Rescue" system? - - - - Another thing to check while researching the details - Can the "network console' be enabled? (No end user serial port connection required to interact with the "K3 Rescue" system). |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Script to update to latest version | squigish | Calibre | 11 | 09-29-2013 10:37 PM |
Can't get the firmware update to work | lynnh | Ectaco jetBook | 2 | 02-21-2010 07:05 AM |
2.3 Update for the DX, K2 and K2i - will the hacks still work? | edge777 | Kindle Developer's Corner | 1 | 11-24-2009 02:05 PM |
script, versions, bbconfig, update 2.0.2 | wz2b | Kindle Developer's Corner | 4 | 03-20-2009 12:13 PM |
How to make Igor's script work | sunshine6855 | Kindle Developer's Corner | 160 | 03-12-2009 09:54 AM |