Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-05-2021, 09:34 AM   #1
qualipso
Junior Member
qualipso began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2021
Device: KT3
Find OTA code on reboot

Hello !

I try to trace the code for OTA on my kindl KT3 (heisenberg, 5.8.1).

I have followed the https://wiki.mobileread.com/wiki/Kin...ting_internals and confirm i see the same on my device.

But ota-update sometimes reboots the device to do update and then additional log appears kmsg buffer:

Code:
...

[    1.376137] bd7181x-rtc bd7181x-rtc: hctosys: invalid date/time
[    1.385376] ALSA device list:
[    1.388359]   No soundcards found.
[    1.392722] Freeing unused kernel memory: 1100K (806b8000 - 807cb000)
DEBUG:recovery-util.c:1570:setup_die_signals():Installed signal handlers.
3.10.53-lab126 #2 PREEMPT Mon Jan 16 03:51:14 PST 2017 armv7l
[    1.619133] mmc0: BKOPS_EN bit is not set
[    1.641322] mmc0: new high speed DDR MMC card at address 0001
[    1.647346] mmcblk0: mmc0:0001 NJ2ZMB 3.64 GiB 
[    1.651969] mmcblk0boot0: mmc0:0001 NJ2ZMB partition 1 4.00 MiB
[    1.658001] mmcblk0boot1: mmc0:0001 NJ2ZMB partition 2 4.00 MiB
[    1.664001] mmcblk0rpmb: mmc0:0001 NJ2ZMB partition 3 512 KiB
[    1.670462]  mmcblk0: p1 p2 p3 p4
[    1.676173]  mmcblk0boot1: unknown partition table
[    1.682744]  mmcblk0boot0: unknown partition table
[    1.706202] DEBUG:mount.c:281:mount_waveform_area():Mounted /mnt/wfm (/dev/loop1)
[    1.720226] INFO:recovery-util.c:136:spawn():child exited with status 00000000
[    1.728054] INFO:update.c:118:find_file():find_file:118 Found V220_C254_BD9401_ED060SCSC1_TC.wrf.gz
ERROR:recovery-util.c:1711:main():wfm_count=1DEBUG:eink.c:243:eink_init():Loading: /lib/modules/mxc_epdc_eink.ko 
[    1.747728] DEBUG:module.c:139:insmod():/lib/modules/mxc_epdc_eink.ko:loaded 11968 bytes. (11968)
[    1.756697] mxc_epdc_eink: module license 'proprietary' taints kernel.
[    1.763229] Disabling lock debugging due to kernel taint
[    1.768860] INFO:module.c:163:insmod():Loaded module /lib/modules/mxc_epdc_eink.ko  (11968 bytes)
[    1.777824] DEBUG:eink.c:243:eink_init():Loading: /lib/modules/mxc_epdc_fb.ko 
[    1.785587] DEBUG:module.c:139:insmod():/lib/modules/mxc_epdc_fb.ko:loaded 88404 bytes. (88404)
Panel VCOM string: 2810
[    1.797970] imx_epdc_fb 20f4000.epdc: vcom_steps 131
[    1.803121] imx_epdc_fb 20f4000.epdc: Memory override detected TotalMem:512M X:800 Y:600 FBMem:6M
[    1.818987] imx_epdc_fb 20f4000.epdc: EPDC version = 2.1.0
[    1.895975] wv_file->wdh.luts & 0xC =4
[    3.847352] INFO:module.c:163:insmod():Loaded module /lib/modules/mxc_epdc_fb.ko  (88404 bytes)
[    4.132602] INFO:eink.c:334:eink_init():eink initialized... (486400 bytes)
Press [ENTER] for recovery menu..[    4.139670] DEBUG:recovery-util.c:678:choose_boot_mode():curr_time=4 end_time=4
.       0 [    4.152713] DEBUG:keypad.c:105:keypad_set():keypad_set():keypad_fd=-1 biggest_fd=0x7ec0293c biggest_fd=0 s=0x7ec02990
/[    5.164767] DEBUG:readkey.c:121:read_key():Timeout
[    5.169648] DEBUG:recovery-util.c:695:choose_boot_mode():curr_time=5 end_time=4 **
[    5.195520] DEBUG:diskutil.c:400:device_size():device size: 921600 sectors
[    5.202442] DEBUG:diskutil.c:400:device_size():device size: 131072 sectors
[    5.209409] DEBUG:diskutil.c:400:device_size():device size: 6385664 sectors
[    5.216455] DEBUG:diskutil.c:400:device_size():device size: 7634944 sectors
[    5.223433] INFO:recovery-util.c:1038:check_mbr():!!! Checking MBR /dev/mmcblk0 !!!!  
[    5.239619] DEBUG:diskutil.c:440:get_disk_info():real C:53760 H:4 S:16
[    5.246203] DEBUG:diskutil.c:452:get_disk_info():calc C:119296 H:4 S:16
[    5.252833] DEBUG:diskutil.c:583:append_partition():partition 1: requested length=921600
[    5.260955] DEBUG:diskutil.c:210:roundup_lba():lba=987136 cylsize=64 ret=987136
[    5.268293] DEBUG:diskutil.c:210:roundup_lba():lba=987136 cylsize=64 ret=987136
[    5.275625] INFO:diskutil.c:569:append_partition():partition 2, start sector is 987136
[    5.283552] DEBUG:diskutil.c:583:append_partition():partition 2: requested length=131072
[    5.291703] DEBUG:diskutil.c:210:roundup_lba():lba=1118208 cylsize=64 ret=1118208
[    5.299221] DEBUG:diskutil.c:210:roundup_lba():lba=1118208 cylsize=64 ret=1118208
[    5.306728] INFO:diskutil.c:569:append_partition():partition 3, start sector is 1118208
[    5.314743] DEBUG:diskutil.c:583:append_partition():partition 3: requested length=131072
[    5.322862] DEBUG:diskutil.c:210:roundup_lba():lba=1249280 cylsize=64 ret=1249280
[    5.330372] DEBUG:diskutil.c:210:roundup_lba():lba=1249280 cylsize=64 ret=1249280
[    5.337876] INFO:diskutil.c:569:append_partition():partition 4, start sector is 1249280
[    5.345900] DEBUG:diskutil.c:583:append_partition():partition 4: requested length=0
[    5.353569] INFO:diskutil.c:238:make_part_info():maximizing partition 6385664 sectors
[    5.361451] DEBUG:recovery-util.c:1100:check_mbr():Expected: 803D0FF 833D0FF 0100 10E00, 3D0FF83 3D0FF0 10F00 0200
[    5.371842] DEBUG:recovery-util.c:1110:check_mbr():MBR     : 803D0FF 833D0FF 0100 10E00, 3D0FF83 3D0FF0 10F00 0200
[    5.382265] DEBUG:recovery-util.c:1112:check_mbr():!!! MBR checked /dev/mmcblk0 rootfs 0 varfs 0 !!!!  
[    5.391719] INFO:recovery-util.c:1170:check_and_create_partitions():*** Partition table verified for /dev/mmcblk0 ***
[    5.402390] DEBUG:diskutil.c:440:get_disk_info():real C:53760 H:4 S:16
[    5.408950] DEBUG:diskutil.c:452:get_disk_info():calc C:99776 H:4 S:16
/dev/mmcblk0p4:[    5.424076] INFO:mount.c:112:losetup_fat():Setup loop device /dev/loop0 for /dev/mmcblk0p4 + 8192

CHS=4/16/99776 size=3269459968 [    5.435826] FAT-fs (loop0): Volume was not safely ejected. Run fsck to correct.
bytes
flag type      first      [    5.444247] DEBUG:mount.c:134:mount_dosfs():Mounted /mnt-us (/dev/loop0)
 last  lba first   lba size
Part[    5.453828] INFO:recovery-util.c:1582:autopilot_update():Checking for updates... (auto-pilot mode)
ition p1:
0x00 0x0b         16 <[    5.465685] INFO:update.c:204:update_os():No update*.bin found; no update needed.
large>            16    6385648
[    5.476248] INFO:recovery-util.c:1621:autopilot_update():no updates found.
    CHS: 0/1/1 - <large>
Partition p2:
Partition p3:
Partition p4:
BOOTING DEFAULT.
IP-Config: no devices to configure
[    6.342582] kjournald starting.  Commit interval 5 seconds
[    6.348331] EXT3-fs (mmcblk0p1): using internal journal
[    6.353581] EXT3-fs (mmcblk0p1): mounted filesystem with ordered data mode
kinit: Mounted root (ext3 filesystem).
info sytem:mounted_proc::
info system:mounted_sys::
...
So maybe kernel is doing update stuff I think. I get source code from amazon page and i don't see anything. I also try find files with data that is printed above, but so far no luck. I try to show linux memory too but nothing i think

I was wondering if someone could help me find where th messy lines (autopilo_update, update_os) come from, if this was already investigated or not.

I would realy appreciate some help,

qualipso
qualipso is offline   Reply With Quote
Old 04-05-2021, 12:26 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
That's the updater in the initramfs' recovery-util shell, which handles non-OTA package types (which are all of 'em now, since OTA packages are forbidden since FW 5.12.x).

Nothing new here.
NiLuJe is offline   Reply With Quote
Advert
Old 04-11-2021, 05:44 AM   #3
qualipso
Junior Member
qualipso began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2021
Device: KT3
Quote:
Originally Posted by NiLuJe View Post
That's the updater in the initramfs' recovery-util shell, which handles non-OTA package types (which are all of 'em now, since OTA packages are forbidden since FW 5.12.x).

Nothing new here.
Thank, I found the file you are talking about
qualipso is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Block OTA by removing ota related binaries Hzj_jie Kindle Developer's Corner 107 07-21-2024 04:21 PM
Find and Replace Code feature in Calibre Reflect55 Editor 3 01-21-2016 01:49 PM
Find Dialog and XHTML Code View jondolar Sigil 0 10-18-2011 10:16 AM
PRS-600 Where can I find the Linux source code? Xaphiosis Sony Reader 8 04-17-2010 11:13 AM
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM


All times are GMT -4. The time now is 09:03 PM.


MobileRead.com is a privately owned, operated and funded community.