Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all 4457 articles
Browse latest View live

PW4 How to enter recovery mode

$
0
0
U-Boot 2016.03 (Oct 16 2018 - 22:28:07 -0700)

CPU: Freescale i.MX6SLL rev1.1 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 48C
Reset cause: POR
Board: MX6SLL Rex
I2C: ready
DRAM: 512 MiB
entering PMIC test mode
in PMIC test mode -- apply bootup workaround
switching back to PMIC user mode
setup_pmic_mode -- make sure pmic is in user mode
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
idme_initialize
Idme version is 2.x and set related function to V2.x
IDME table version 2.1
hibernation: Not from hibernation
Core : f770ee83 2018/03/16 19:49:02 (Licensed to Amazon Fulfillment Services,Inc..)
SBIOS: v2.0 2019/02/06 22:50:31
TTBR:9fffc059
Platform: v2.0 2019/02/06 22:50:32
fl
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Hardware Board: Unknown(12)
Board ID is P001F20991530L**
WFO module
secure_cpu: 1, production: 1, unlocked: 0
Boot mode is 0
Hit any key to stop autoboot: 0
Enter fastboot mode, use Ctrl+C to exit.
----------------------------------------------------------
I don't know how to get into fastboot mode.
What tools should I use?

I have a KPW3.
serial port——uboot——press [enter] for recover menu

KPW4:Enter fastboot mode, use Ctrl+C to exit.
I pressed Enter....Pause here:(

K5 Can a Kindle Touch battery die without triggering the "Critical Battery" error?

$
0
0
My Kindle Touch has died all of the sudden, even though its battery was at 100%. (I was doing some "dev" experimenting, but I took a break and used it as a normal Kindle in the few days prior to this because life took over)
- Hard reboots cause it to either restart and freeze at the Kindle Tree/Boy logo, or not restart at all, or at the progress bar (once or twice).
- It actually managed to fully boot once or twice (and the status bar battery meter reads 100%), but it freezes after a few moments.
- Booting to USB HID results in the correct USB HID device showing up, and imx_usb could flash it, but it won't reboot to the selected mode (diags/fastboot) (save for one time when it actually did boot to diags).
- Note that the Kindle Touch has been in my possession for only two weeks. Prior to that, it was shipped by air mail, and it arrived with a "plug battery in" image (no text). (Not sure how they do it, but mail carriers do something to discharge batteries to zero % prior to shipping).
- I have charged it for four hours back then. I planned on a 24-hour charge, but since it showed 100%, I thought that four hours was enough.
Note that when I cracked it open, I noticed that it was on its original battery with a date of 2011.
- It's now on a wall charger.
Do you think it's simply an aging battery or a dead one?

PW3 Kindle doesn't start - stuck after autoboot counted to zero

$
0
0
Hi

I got an freezed Kindle from ebay.
the screen was frozen as the desciption told me, and the backlight was working.

I managed to connect the serial and the output was the following.


It was stucked after the autoboot counted down to zero
Spoiler:
U-Boot 2009.08-lab126 (Apr 15 2015 - 07:37:55)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature: 38 C, calibration data 0x5975155f
mx6sl pll1: 996MHz
mx6sl pll2: 528MHz
mx6sl pll3: 480MHz
mx6sl pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 198000000Hz
emi_slow clock: 22000000Hz
ddr clock : 396000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
MMC: FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2
Board: Muscat WFO
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: 06702011530500AC
S/N: G090G10553130BSC
I2C: ready
DRAM: 512 MB
Using default environment

In: serial
Out: serial
Err: serial
Quick Memory Test 0x80000000, 0x1fff0000
POST done in 111 ms
Battery voltage: 3993 mV

Hit any key to stop autoboot: 0



output of uboot-printenv

Spoiler:
uboot > printenv
bootdelay=1
baudrate=115200
loadaddr=0x80800000
rd_loadaddr=(0x80800000 + 0x300000)
bootcmd=bootm 0x41000
failbootcmd=panic
loglevel=5
bootcmd_diags=bootm 0xE41000
bootcmd_factory=bist halt
bootcmd_fastboot=bist fastboot
stdin=serial
stdout=serial
stderr=serial
post_hotkeys=0
bootargs=

Environment size: 287/1020 bytes
uboot >


Output of uboot-idme
Spoiler:
uboot > idme
serial: G090G105XXXXXXXX
mac: 74C2XXXXXXXX
sec: OR5DKI73UMR0XXXXXXXX
pcbsn: 0670201XXXXXXXX
bootmode: main
postmode: normal


The diag mode was working I tryed to get the system working with fastboot - with no results.
as a Second method I used k1nc instruction

and copied "update_kindle_all_new_paperwhite_5.12.1.bin" via the export USB function on the kindle and updated it.
The update worked without any errors and I got the screen working - The Tree image while updating and also the Screen while the diag mode.

But it also doesn't start after the countdown.

So far these are these my recovery attempts to get the Kindle working.:blink:

Thanks for your help.

Greetings from Austria
christian

PW3 Help - it's now 5.12.1

$
0
0
My bloody kids must have switched on the wifi and my PW3 has been updated to 5.12.1
It was previously jailbroken with no problems.
Am I screwed or is there anyway I can get back to previous?
BTW, I thought I'd set it up not to OTA update too :(

:help:
Cheers,
Nic

KV Anywy to check if my KV is still jail broken?

$
0
0
Some context first:

I'm on 5.12.1 fw so no jail breaking possible. But it occurs to me that my KV might already be jaibroken. I'm at a loss as to how to check this.

Here's why I think all might not be lost:

So I used to have my KV jail broken long ago with kual and & co installed. I'm a bit nebulous on details but at the time I think I left some startup option enabled. Maybe it was usb networking.

Anyway, an OTA update came, disabled that, and my KV was bricked with a "Your device needs repair" message. No amount of resetting helped.

In the end I put a file named DO_FACTORY_RESTORE in the root as instructed here (originaly I found the russian site). After a reboot/reset everything was fine and dandy.

Do you think jailbreak might have survived that process? How could I check?

Thanks in advance!

Kindle Composite Poster

$
0
0
This is my proof of concept:


I want to create a status display for my classroom. The admin likes to know what the students are doing and where they are. They like that info to be posted outside each home room.

After mounting each eink display without the Kindle "wrapper", the final "poster" will be roughly 7x15 inches. There will be a 0.25 inch seam between each pair of Kindles. I have a lot of work to do to get there. This thread is where I will log my progress.

KV down grade to 5.11.x?

$
0
0
So, I have a Voyage which is jb and was working fine, but I wanted to update the SW. However when I went to 5.8.1 it did not have the features I wanted so I downloaded the latest, which happens to be 5.12.1, which I now know was not the right choice. The device is able to install packages via ;log mrpi however I can't open KUAL and also my screen savers are not working. More interestingly, however, is that the side loaded books are not appearing, although they are still on the device as seen on my PC.

So, might I be able to install a previous version, such as 5.11.x? If so, where might I find the down load? I have searched with no luck. So, assuming it is safe to down grade to 5.11.x, if someone could point me to where I might download it, I would appreciate it.

Can /etc/hosts be used to block OTA updates?

$
0
0
https://www.mobileread.com/forums/sh...d.php?t=322093

Quote:

Originally Posted by PoP (Post 3879464)
#metoo :angry: I conclude that 5.11.2 is update.bin.tmp.partial evil. Good that I had the hotfix.

My KPW4 is 5.11.2 and staying in airplane mode to prevent OTA updates.

is there anyway to block OTA updates in 5.11.2 or downgrade?

K3 Attempting to root a K3 with 3G in 2019

$
0
0
Hey, so I have a Kindle 3 with 3G, and I am wanting to root it, pretty much just so I can get a terminal with a SSH client on it. I do a lot of Linux work, so, having something I can toss in my pocket with a big size screen to connect to my servers would be pretty cool.

Now, here's my problem. So many of the links I see appear to be specific to the wifi only version, are now dead, or go for older versions of the firmware (it has 3.4.2 on it). I just don't want to brick it.

PW2 Help debricking PW2

$
0
0
Hi,

I have a Paperwhite 2 that shows the kindle logo on the screen and doesn't respond to turning on/off or hard reset.

I opened up the kindle and connected to the serial port and this is the output I get:
Code:

HW


U-Boot 2009.08-lab126 (Mar 22 2019 - 17:58:34)

CPU: Freescale i.MX6 family TO0.0 at 996 MHz
Temperature:  27 C, calibration data 0x59250f5f
mx6sl pll1: 996MHz
mx6sl pll2: 528MHz
mx6sl pll3: 480MHz
mx6sl pll8: 50MHz
ipg clock    : 66000000Hz
ipg per clock : 66000000Hz
uart clock    : 80000000Hz
cspi clock    : 60000000Hz
ahb clock    : 132000000Hz
axi clock  : 198000000Hz
emi_slow clock: 22000000Hz
ddr clock    : 396000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
MMC:  FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2
Board: Pinot WFO
Boot Reason: [ POR ]
Boot Device: NAND
Board Id: 027220C143040BAQ
S/N: 9017220143120BHL
I2C:  ready
DRAM:  256 MB
Using default environment

In:    serial
Out:  serial
Err:  serial
Quick Memory Test 0x80000000, 0xfff0000
POST done in 57 ms
Battery voltage: 3994 mV

Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 80800000 ...
  Image Name:  Linux-3.0.35-lab126
  Image Type:  ARM Linux Kernel Image (uncompressed)
  Data Size:    2957608 Bytes =  2.8 MB
  Load Address: 80008000
  Entry Point:  80008000
  Verifying Checksum ... OK
  Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.097342] No Legacy reboot reason code to print
[    0.278325] LPDDR2 MfgId: 0x1 [Samsung]
[    0.282188]
[    0.282191] just text: vaddr c0133fdc, va 0xc0133200 pa 0x801000c3 attr 0x6
[    0.294668]
[    0.294671] nmx6sl_wfi_iram: vaddr d084e000, va 0xd084e200 pa 0x904043 attr 0x2
[    0.303563]
[    0.303566] mx6sl_ddr: vaddr d0856000, va 0xd0856200 pa 0x905043 attr 0x2
[    0.311898]
[    0.311900] mx6sl_iomux: vaddr f40e0000, va 0xf40e0200 pa 0x20110c3 attr 0x149
[    0.322673]
[    0.322675] ANATOP: vaddr f40c8000, va 0xf40c8200 pa 0x20110c3 attr 0x149
[    0.336078]
[    0.336081] CCM: vaddr f40c4000, va 0xf40c4200 pa 0x20110c3 attr 0x149
[    0.345918]
[    0.345920] MMDC_P0: vaddr f41b0000, va 0xf41b0200 pa 0x21110c3 attr 0x149
[    0.359405]
[    0.359408] L2: vaddr f2a02000, va 0xf2a02200 pa 0xa02043 attr 0x149
[    0.369294]
[    0.369296] arm perif: vaddr f2a00000, va 0xf2a00200 pa 0xa00043 attr 0x149
DEBUG:recovery-util.c:1703:setup_die_signals():Installed signal handlers.
3.0.35-lab126 #2 PREEMPT Fri Mar 22 18:08:46 UTC 2019 armv7l
Press [ENTER] for recovery menu...      1 \BOOTING DEFAULT.
IP-Config: no devices to configure
kinit: Mounted root (ext3 filesystem) readonly.
info sytem:mounted_proc::
info system:mounted_sys::
info system:sy00::
info system:mounted_dev::
info milestone:9.00:49.1:49.1
info milestone:9.04:49.2:49.2
info milestone:9.07:49.3:49.3
info milestone:9.13:49.4:49.4
info milestone:9.16:49.5:49.5
info sytem:mounted_tmpfs::
info milestone:9.25:sy50:sy50
info system:start:time=9270:time=9270
info hardware:no_wan:: WiFi only device. No WAN found
info system:config:platform=wario,board=pinot,rev=22,proto=Y,wifi=Y,wan=N:platform=wario,board=pinot,rev=22,proto=Y,wifi=Y,wan=N
info milestone:9.43:sy51:sy51
lipc-send-event[848]: W def:lipc:method=LipcOpenEx service=com.lab126.hal:Method has been deprecated.
lipc-send-event[846]: W def:lipc:method=LipcOpenEx service=com.lab126.hal:Method has been deprecated.
lipc-send-event[846]: E lipc:con::Connection error(Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
lipc-send-event[846]: C def:dbusi::Failed to init dbus
lipc-send-event[846]: E def:open::Failed to open LIPC
lipc-send-event[846]: E def:fail:source=com.lab126.hal, event=usbPlugIn:Sending event failed
lipc-send-event[848]: E lipc:con::Connection error(Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)
lipc-send-event[848]: C def:dbusi::Failed to init dbus
lipc-send-event[848]: E def:open::Failed to open LIPC
lipc-send-event[848]: E def:fail:source=com.lab126.hal, event=usbPlugIn:Sending event failed
info milestone:10.30:sy99:sy99
info system:done:time=10330:time=10330
crond[864]: crond (busybox 1.28.3) started, log level 8

init.exe: sshd main process (863) terminated with status 127
init.exe: sshd main process ended, respawning
init.exe: recevent pre-start process (867) terminated with status 1



Welcome to Kindle!

kindle login: info milestone:10.64:sc01:sc01
info system_fs_loopbacks:mountingfs:Mounting compressed directories filesystem images:Mounting compressed directories filesystem images
info milestone:10.67:sc02:sc02
info milestone:10.71:/usr/share/X11/xkb:/usr/share/X11/xkb
info system_fs_loopbacks:mounted:Image /usr/share/X11/xkb.sqsh mounted:Image /usr/share/X11/xkb.sqsh mounted
info milestone:10.76:3:3
info milestone:10.76:sc05:sc05
info milestone:10.78:/usr/java/lib/fonts:/usr/java/lib/fonts
info system_fs_loopbacks:mounted:Image /usr/java/lib/fonts.sqsh mounted:Image /usr/java/lib/fonts.sqsh mounted
info milestone:10.82:4:4
info milestone:10.83:sc05:sc05
info milestone:10.85:/etc/kdb.src:/etc/kdb.src
info system_fs_loopbacks:mounted:Image /etc/kdb.src.sqsh mounted:Image /etc/kdb.src.sqsh mounted
info milestone:10.88:5:5
info milestone:10.89:sc05:sc05
info milestone:10.91:/usr/lib/locale:/usr/lib/locale
info system_fs_loopbacks:mounted:Image /usr/lib/locale.sqsh mounted:Image /usr/lib/locale.sqsh mounted
info milestone:10.94:6:6
info milestone:10.95:sc05:sc05
info milestone:10.97:/usr/share/keyboard:/usr/share/keyboard
info system_fs_loopbacks:mounted:Image /usr/share/keyboard.sqsh mounted:Image /usr/share/keyboard.sqsh mounted
info milestone:11.09:7:7
info milestone:11.10:sc05:sc05
info milestone:11.12:/opt/var/local:/opt/var/local
info system_fs_loopbacks:mounted:Image /opt/var/local.sqsh mounted:Image /opt/var/local.sqsh mounted
info milestone:11.16:8:8
info milestone:11.17:sc05:sc05
info milestone:11.18:sc07:sc07
info system:emiting_event:mounted_fs_loopbacks:mounted_fs_loopbacks
debug sytem:event_emitted:mounted_fs_loopbacks:mounted_fs_loopbacks
info milestone:11.23:fs75:fs75
info system:emiting_event:loaded_modules_dependencies:loaded_modules_dependencies
debug sytem:event_emitted:loaded_modules_dependencies:loaded_modules_dependencies
info modules:modprobe:loading module fsl_otg_arc:loading module fsl_otg_arc
info system:emiting_event:loaded_fsl_otg_arc:loaded_fsl_otg_arc
debug sytem:event_emitted:loaded_fsl_otg_arc:loaded_fsl_otg_arc
info modules:modprobe:loading module ehci_hcd:loading module ehci_hcd
info system:emiting_event:loaded_ehci_hcd:loaded_ehci_hcd
debug sytem:event_emitted:loaded_ehci_hcd:loaded_ehci_hcd
info modules:modprobe:loading module fuse:loading module fuse
info system:emiting_event:loaded_fuse:loaded_fuse
debug sytem:event_emitted:loaded_fuse:loaded_fuse
info hardware:no_wan:: WiFi only device. No WAN found
info system:emiting_event:loaded_ppp_async:loaded_ppp_async
info milestone:11.52:fs00:fs00
debug sytem:event_emitted:loaded_ppp_async:loaded_ppp_async
info system:emiting_event:loaded_fakekey:loaded_fakekey
debug sytem:event_emitted:loaded_fakekey:loaded_fakekey
info filesystems_keys:not applicable for this device type::
info filesystems_var_local:createvarlocal:Creating /var/local filesystem:Creating /var/local filesystem
[  17.147522] mmc0: Timeout, intmask=0x00100000
[  17.154942] mmcblk0: error -110 transferring data, sector 527644, nr 8, cmd response 0x900, card status 0xb00
[  22.588875] mmc0: Timeout, intmask=0x00100000
[  22.594275] mmcblk0: error -110 transferring data, sector 527644, nr 8, cmd response 0x900, card status 0x0
[  22.604626] end_request: I/O error, dev mmcblk0, sector 527644
[  22.610798] mmc0: Timeout, intmask=0x00010000
[  22.615157] mmc0: Trigger MMC Recovery
[  22.618985] mmcreinit_work_func: Resetting MMC, try=1, total_time=0
[  22.694722] mmc_reinit: Reinit card
[  32.714980] mmc_reinit: Error (-110) send op cond
[  32.719716] mmcreinit_work_func: Resetting MMC, try=2, total_time=10100
[  32.964979] mmc_reinit: Reinit card
[  42.974981] mmc_reinit: Error (-110) send op cond
[  42.979718] mmcreinit_work_func: Resetting MMC, try=3, total_time=20360
[  44.684983] sdhci sdhci-esdhc-imx.1: esdhc_send_74_clocks: Out of loop, INTA 0x08, Timeout 0
[  44.693427] mmc_reinit: Reinit card

I've managed to get recovery menu, but I don't know which option to choose, or even if one of the option would fix the kindle (or at least safe to try without destroying the system even more). These are the menu options:
Code:

Menu
====
3. Load MMC over USB storage
4. Erase MMC
I. Initialize Partition Table (fdisk) and format FAT
O. Format and overwrite FAT partition
E. Export FAT partition
U. Update using update*.bin file on FAT partition
C. Configure USB networking
N. Boot NFS over USB
Z. Boot NFS over ETH
L. List files in many directories
S. Access the shell
8. Test low level screens
D. dmesg / kernel printk ring buffer.
Q. quit

Can somebody make sense of the output and have an idea what could be the problem and how to fix it?

Changing my current reading book without using touchscreen?

$
0
0
Hi.:help:

My voyage was in my back pocket, I sat on it, The screen is broken.

It works fine, I can read, PagePress buttons works fine.

But I'm stuck in the current book, I can't change it to another book because touch screen doesn't work.

I wanted to ask there is a way to change to current reading book by editing voyage configuration file, or maybe by jailbreaking it. I don't know. Just a way to change the book without using touch screen.

:thanks:

Native kindle-abfahrt – Public transportation depature times

$
0
0
Recently I finally got into hacking my Kindle PW3 and after a few experiments I thought it was time for a more useful project, that’s why I wrote a tool which displays departure information for public transport.

I figured the Kindle is more than capable to gather and render all necessary data on its own. And Go(lang) seemed like the perfect match for this job, language wise, as it is fast, comes with many useful libraries, and most importantly cross-compilation for ARM is really really easy.

kindle-abfahrt in action:
Spoiler:


Right now it is pretty much tailored to my own needs, meaning it only supports the API of my local transportation authority and the screen layout is hard-coded to the PW3’s screen resolution, but as I got most, if not all, information necessary to build this thing from MR I wanted to provide the source for reference or as a starting point for others who want to achieve a similar goal. Maybe even add support for other data providers and allow for easy customization of the screen layout so that non-programmers can benefit as well.

Source code and build instructions are over on GitHub:
https://github.com/buckket/kindle-abfahrt

And finally thanks to everyone for documenting your findings!

Firmware Upgrade Error

$
0
0
Hi,

Got my hands on an older kindle so I can jailbreak and use Collections Manager. IT came with 5.6.1.1 software, and I'm trying to update the firmware to use the above JB in https://www.mobileread.com/forums/sh...d.php?t=265675.

According to the serial number (B024), I downloaded the first file from (https://www.mobileread.com/forums/sh...&postcount=995)

When I add the 5.6.5 bin file to the root, and eject device, I get the following message:

UPDATE ERROR - An invalid update file has been loaded on your device. Please go to www.kindle.com/support to access the Kindle Software Update page or to contact Kindle Customer Service for assistance.


Any insight would be most appreciated!!!

Help: VNC touchscreen input

$
0
0
:help:

I have a jailbroken Kindle Touch onto which I've downloaded hawhill's Kindle VNC viewer (native app, GPLv2). I've managed to get most things working but I'm unable to get touchscreen input to be detected when the app is running.

My lua config script does detect when I push the home button and exit the app as intended, but nothing is happening if I tap the touchscreen.

However if I run evtest on the kindle, I can see that there are touch events being generated. I imagine there must be a typo in my config file but I'm not familiar with Lua. I've tried everything I can think of and would really appreciate help fixing this bug.

On Linux (raspberry pi 3) I run the following in the terminal:
Code:

sudo ifconfig usb0 192.168.15.2
x11vnc -clip 800x600+0+0 -usepw &
ssh root@kindletouch-usb0

On kindle I run:
Code:

stop lab126_gui
cd /mnt/us/extensions/kvncviewer/
lipc-get-prop com.lab126.powerd preventScreenSaver
lipc-set-prop com.lab126.powerd preventScreenSaver 1
./luajit vncviewer.lua -password <PASSWORD> -config config_touch_v2.lua -rotateFB270 -waitRefresh 40 -refreshFullAfterPixels 5 -dither_bw -medium 192.168.15.2:1
start lab126_gui
lipc-set-prop com.lab126.powerd preventScreenSaver 0

Content of my config.lua file (config_touch_v2.lua):
Code:

require "keys"
require "rfbkeys"

-- comment out the following line on a KDX
set_k3_keycodes()


-- variables client_width and client_height will be available when handleInput() is called
client_width = 0
client_height = 0

--[[
  you have also the following API functions:

  Quit( [status] )
      will quit the application. optional: return code (must be positive)

  SendKeyEvent( keyCode, pressed )
      sends a key event to the rfb server. "pressed" is a bool value
      telling whether the key was pressed (true) or released (false)

  SendPointerEvent( x, y, buttonMask )
      sends a pointer event to the rfb server
]]--


-- globals for remembering key state
shift = false
sym = false

--touchscreen
clickevent = 0
x, y = 0, 0

-- this handler will be called upon key presses (input events, actually)
function handleInput(channel, itype, code, value)
  print("input:", "ch=", channel, "itype=", itype, "code=", code, "value=", value)
  --touch
  if itype == 1 then
      if code == 102 then
        print("pushed menu button")
        Quit()
      end
  elseif itype == 3 then
      if code == 57 then
        print("MT Tracking ID", value)
        clickevent = value + 1
        if x and y then
            SendPointerEvent(x, y, 0)
        end
      elseif code == 53 then
        print("MT X", value)
        x = value
      elseif code == 54 then
        print("MT Y", value)
        y = value
        if clickevent == 1 then
            SendPointerEvent(x, y, 1)
        end
      end
  end
end

evtest results on kindle:
Code:

[root@kindle kvncviewer]# stop lab126_gui
[root@kindle kvncviewer]# evtest /dev/input/event3
Input driver version is 1.0.0
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "zforce"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 0 (Reserved)
    Event code 1 (Esc)
    Event code 325 (ToolFinger)
    Event code 330 (Touch)
    Event code 333 (Tool Doubletap)
    Event code 334 (Tool Tripletap)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value      0
      Min        0
      Max    4095
    Event code 1 (Y)
      Value      0
      Min        0
      Max    4095
    Event code 47 (MT Slot)
      Value      0
      Min        0
      Max        1
    Event code 53 (MT X)
      Value      0
      Min        0
      Max    4095
    Event code 54 (MT Y)
      Value      0
      Min        0
      Max    4095
    Event code 57 (MT Tracking ID)
      Value      0
      Min        0
      Max      255
Event: time 1428263857.131751, type 3 (Absolute), code 57 (MT Tracking ID), value 0
Event: time 1428263857.131814, type 3 (Absolute), code 53 (MT X), value 1805
Event: time 1428263857.131828, type 3 (Absolute), code 54 (MT Y), value 2089
Event: time 1428263857.132372, type 1 (Key), code 330 (Touch), value 1
Event: time 1428263857.132384, type 1 (Key), code 325 (ToolFinger), value 1
Event: time 1428263857.132401, -------------- Report Sync ------------
Event: time 1428263857.147612, type 3 (Absolute), code 57 (MT Tracking ID), value -1
Event: time 1428263857.148175, type 1 (Key), code 330 (Touch), value 0
Event: time 1428263857.148187, type 1 (Key), code 325 (ToolFinger), value 0
Event: time 1428263857.148199, -------------- Report Sync ------------

PW2 Help Unbrick

$
0
0
My friend have a PW2 stop on tree, so i used serial to figure out if can be unbricked, when i try to follow the guide for this guide
https://gist.github.com/ramast/58633...on-update-file
to enter fastboot i got follow output:
Code:

In:    serial
Out:  serial
Err:  serial
POST done in 0 ms
Battery voltage: 3993 mV

running cmd: fastboot
Entering fastboot mode...
USB speed: HIGH
Connected to USB host!
USB speed: HIGH
Connected to USB host!
mmc write failed
Error! Couldn't write NV variables. (-18)

Warning: fail to get ext csd for MMC!
idme_update_var ERROR: couldn't switch back to user partition

and when i try to go in diag mode
Code:

setting 'bootmode' to 'diags'...
setvar:bootmode diags FAILED (remote: update error)
finished. total time: 0.009s

is it mean the mmc is failed? is it going to be a screen to sell ?

thanks for any reply or :help:

getopt problems when compiling with TCC on kindle 3

$
0
0
Hey everyone - new forum member,

I'm using the tinycc (tcc) package created by geekmaster to compile a small C program which plays the game oware in the console (MyTs) on a kindle 3. Everything seems to work fine except that when I execute the binary none of the arguments seem to be passed to the compiled program. I'm not a programmer but assume this has something to do with getopt.

On my laptop running Arch Linux I've compiled the same program with an x86-64 version of tcc using the include files that come in the kindle-tcc package and the arguments work.

So I'm wondering if either anyone might have a clue what the issue is, or might have the necessary tool-chain built to cross-compile the attached file (awale.txt - I had to use txt for it to upload but it is a C program).

Thanks in advance for any help.

Attached Files
File Type: txt awale.txt (23.2 KB)

K5 Is my Kindle Touch completely toast?

$
0
0
A few weeks ago, I started a thread here about a Kindle Touch that freezes intermittently, then flatly refused to start at all.
Initially, I thought it was a battery issue, but after buying another Kindle Touch (with a known-good battery), and trying the "new" battery in the old Kindle, the old Kindle still refused to boot with the new battery. It would freeze at the Kindle screen, sometimes with the word "Kindle" in a lighter font than is usual (thought it was an illusion, but I confirmed it with a side-by-side comparison with the other Kindle).
Diags mode does nothing (the Kindle would refuse to leave diags).
However, it managed to boot once. Only once. Then it died again.

What can I make out of that mess? What could I possibly do?

K5 Help: Battery replacement Kindle Touch

$
0
0
:help:
After several years of use, the battery in my beloved kindle touch is dying and it can no longer hold a charge.

According to ifixit, it should be a fairly easy procedure to replace the battery. Unfortunately Amazon does not appear to sell kindle batteries. However a google search turns up a website called newpower99.com which offers replacement batteries for $24 plus shipping. Has anyone here had experience with them in the past?

Battery status after 24 Hours of charging:
Code:

[root@kindle kvncviewer]# /usr/bin/powerd_test -s
Powerd state: Screen Saver
Remaining time in this state: Unknown
defer_suspend:0
suspend_grace:0
prevent_screen_saver:0
drive_mode:off
Battery Level: 6%
Last batt event at: 6%
Charging: Yes
batt_full=0
Battery logging: On

K4 How to find root password on firmware 4.1.3?

$
0
0
Hello! i am using a kindle NT4 and decided to jailbreak it. Now i want to SSH into it to make everything easier for me, however all of those "Root Password Tools" were made for versions 4.0 and 4.0.1, and don't work anymore. :(

I cant use KindleTool as it requires me to update my Mac and my internet is very slow at the moment.

Could someone give me (or link me to) a quick tutorial on how to find the kindle root password on version 4.1.3?

U-Boot compilation issues

$
0
0
I'm trying to compile U-Boot and the i.MX6SL Kindle Linux kernel as to run them in qemu-system-arm. The Linux kernel compiles successfully, but the resulting Image and zImage won't boot in QEMU. I then told myself that it was a good "excuse" to get U-Boot compiled too.
However, the U-Boot compile is failing. I have no idea why it's doing that.

Code:

$ :/path/to/uboot_2009.08$ TYPE=prod CROSS_COMPILE=~/arm-2014.05/bin/arm-none-linux-gnueabi- ARCH=arm make
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory '/path/to/uboot_2009.08/tools'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/path/to/uboot_2009.08/tools'
make[1]: Entering directory '/path/to/uboot_2009.08/examples/standalone'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/path/to/uboot_2009.08/examples/standalone'
make[1]: Entering directory '/path/to/uboot_2009.08/examples/api'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/path/to/uboot_2009.08/examples/api'
make -C tools all
make[1]: Entering directory '/path/to/uboot_2009.08/tools'
gcc -g -Wall -idirafter /path/to/uboot_2009.08/include -idirafter /path/to/uboot_2009.08/include2 -idirafter /path/to/uboot_2009.08/include -I /path/to/uboot_2009.08/libfdt -I /path/to/uboot_2009.08/tools -DTEXT_BASE=0xF8007000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /path/to/uboot_2009.08/tools/mkimage.c
In file included from /path/to/uboot_2009.08/tools/../include/libfdt.h:55,
                from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/usr/include/fdt.h:57:8: error: redefinition of ‘struct fdt_header’
 struct fdt_header {
        ^~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:24,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/fdt.h:6:8: note: originally defined here
 struct fdt_header {
        ^~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/../include/libfdt.h:55,
                from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/usr/include/fdt.h:76:8: error: redefinition of ‘struct fdt_reserve_entry’
 struct fdt_reserve_entry {
        ^~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:24,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/fdt.h:25:8: note: originally defined here
 struct fdt_reserve_entry {
        ^~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/../include/libfdt.h:55,
                from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/usr/include/fdt.h:81:8: error: redefinition of ‘struct fdt_node_header’
 struct fdt_node_header {
        ^~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:24,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/fdt.h:30:8: note: originally defined here
 struct fdt_node_header {
        ^~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/../include/libfdt.h:55,
                from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/usr/include/fdt.h:86:8: error: redefinition of ‘struct fdt_property’
 struct fdt_property {
        ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:24,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/fdt.h:35:8: note: originally defined here
 struct fdt_property {
        ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:150:21: error: redefinition of ‘fdt_offset_ptr_w’
 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen)
                    ^~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:126:21: note: previous definition of ‘fdt_offset_ptr_w’ was here
 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen)
                    ^~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:258:1: error: redefinition of ‘fdt_set_magic’
 fdt_set_hdr_(magic);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_magic’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:162:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(magic);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:259:1: error: redefinition of ‘fdt_set_totalsize’
 fdt_set_hdr_(totalsize);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_totalsize’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:163:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(totalsize);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:260:1: error: redefinition of ‘fdt_set_off_dt_struct’
 fdt_set_hdr_(off_dt_struct);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_off_dt_struct’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:164:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(off_dt_struct);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:261:1: error: redefinition of ‘fdt_set_off_dt_strings’
 fdt_set_hdr_(off_dt_strings);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_off_dt_strings’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:165:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(off_dt_strings);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:262:1: error: redefinition of ‘fdt_set_off_mem_rsvmap’
 fdt_set_hdr_(off_mem_rsvmap);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_off_mem_rsvmap’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:166:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(off_mem_rsvmap);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:263:1: error: redefinition of ‘fdt_set_version’
 fdt_set_hdr_(version);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_version’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:167:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(version);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:264:1: error: redefinition of ‘fdt_set_last_comp_version’
 fdt_set_hdr_(last_comp_version);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_last_comp_version’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:168:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(last_comp_version);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:265:1: error: redefinition of ‘fdt_set_boot_cpuid_phys’
 fdt_set_hdr_(boot_cpuid_phys);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_boot_cpuid_phys’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:169:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(boot_cpuid_phys);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:266:1: error: redefinition of ‘fdt_set_size_dt_strings’
 fdt_set_hdr_(size_dt_strings);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_size_dt_strings’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:170:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(size_dt_strings);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:267:1: error: redefinition of ‘fdt_set_size_dt_struct’
 fdt_set_hdr_(size_dt_struct);
 ^~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:157:21: note: previous definition of ‘fdt_set_size_dt_struct’ was here
  static inline void fdt_set_##name(void *fdt, uint32_t val) \
                    ^~~~~~~~
/path/to/uboot_2009.08/tools/../include/libfdt.h:171:1: note: in expansion of macro ‘__fdt_set_hdr’
 __fdt_set_hdr(size_dt_struct);
 ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:653:36: error: redefinition of ‘fdt_get_property_w’
 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
                                    ^~~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:390:36: note: previous definition of ‘fdt_get_property_w’ was here
 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
                                    ^~~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:750:21: error: redefinition of ‘fdt_getprop_w’
 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
                    ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:441:21: note: previous definition of ‘fdt_getprop_w’ was here
 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
                    ^~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:1295:19: error: redefinition of ‘fdt_setprop_inplace_cell’
 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
                  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:779:19: note: previous definition of ‘fdt_setprop_inplace_cell’ was here
 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
                  ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:1373:19: error: redefinition of ‘fdt_property_cell’
 static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val)
                  ^~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:845:19: note: previous definition of ‘fdt_property_cell’ was here
 static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val)
                  ^~~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/include/image.h:56,
                from /path/to/uboot_2009.08/tools/mkimage.c:26:
/usr/include/libfdt.h:1618:19: error: redefinition of ‘fdt_setprop_cell’
 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
                  ^~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/fdt_host.h:25,
                from /path/to/uboot_2009.08/tools/mkimage.h:33,
                from /path/to/uboot_2009.08/tools/mkimage.c:25:
/path/to/uboot_2009.08/tools/../include/libfdt.h:995:19: note: previous definition of ‘fdt_setprop_cell’ was here
 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
                  ^~~~~~~~~~~~~~~~
In file included from /path/to/uboot_2009.08/tools/mkimage.c:26:
/path/to/uboot_2009.08/include/image.h:524:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
 inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^~~~~~~~~~~~~~~~~~
/path/to/uboot_2009.08/include/image.h:522:12: warning: inline function ‘fit_parse_conf’ declared but never defined
 inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^~~~~~~~~~~~~~
make[1]: *** [Makefile:211: mkimage.o] Error 1
make[1]: Leaving directory '/path/to/uboot_2009.08/tools'
make: *** [Makefile:357: tools] Error 2

For the record, I'm using a Linaro toolchain (from this direct link), recommended in a kernel compilation guide on this forum, instead of Amazon's own, because that fails to compile too. But let's leave that aside.
Viewing all 4457 articles
Browse latest View live