View Single Post
Old 03-19-2024, 08:10 PM   #5
bramepc
Member
bramepc began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2014
Device: kobo aura
Quote:
If you have root access and no sd card image, first take a sd card image (at least of the first few tens of megabytes, preferably also the recovery partition too, or even the whole thing) so you have one.
That will be a bit hard since there is no sd card in the aura, it boots from emmc.
From what i gather from the uboot log it first reads emmc sectors containing the linux image in dram memory, then jumps to that memory.
If there is a raw emmc driver in the linux partition available I might be able to read the 8192 emmc blocks starting from 2048 and dump that the external sd card. But i would need to investigate a bit more how this should work in practice.

Cfr:

MMC read: dev # 2, block # 2047, count 1 partition # 0 ...
1 blocks read: OK
no kernel image signature !

MMC read: dev # 2, block # 2048, count 8192 partition # 0 ...
8192 blocks read: OK
## Booting kernel from Legacy Image at 70800000 ...
Image Name: r6836_#2039 Jul 30 10:07:41
Created: 2013-07-30 2:07:45 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1949916 Bytes = 1.9 MB
Load Address: 70008000
Entry Point: 70008000
Loading Kernel Image ... OK
OK

I also see that the kernel image data is really old, but maybe that part is never updated and it is only files inside the file system that are replaced.

I tried already a few times to stop uboot from automatically executing its boot script by continuously pressing keys but it seems they do not allow this option (timer is set to 0, not being able to stop is probably a consequence of that but i need to look at uboot documentation to be sure).

What i would hope is an option is that i somehow trigger factory reset from the linux command prompt. I will try to look around in the init scripts if i can find something like that back.
bramepc is offline   Reply With Quote