06-28-2024, 04:11 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra H20
|
How to boot uboot via mfgtools/uuu?
Hello, I attempted to install postmarketos on my Libra 2 H2O, and some mount issues during flashing ended up wiping the emmc, or at any rate corrupting the partition table. As described on the pmos wiki, it now shows up as
Code:
hiddev96,hidraw2: USB HID v1.10 Device [ NXP SemiConductor Inc SE Blank 6SLL] on usb-0000:00:14.0-3/input0 According to the wiki, it should be possible to get back into uboot from this mode. Before attempting the pmos install, I mounted the emmc over usb as described in the wiki and did a dd image dump, though I haven't found any way to make use of it yet. My first instinct was to try to flash the full emmc image using uuu, but that doesn't seem possible. I'm now rather of ideas and any pointers in the right direction would be much appreciated. Should I be trying to build uboot, package it into a uuu compatible image, and flash that? There's 25MB of free space before the first partition in the dd image, which I'm guessing is where uboot lives, is that correct? Should I be trying to convert that to something usable by uuu? Or something else? Thanks! |
Today, 08:24 PM | #2 |
cosiñeiro
Posts: 1,296
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Hi. Not familiar with uuu but quite familiar with low level things on kobos a few years ago. Hope these things are still relevant.
Based on the pmos wiki you linked it seems that uboot environment is at offset 768, so it is safe to assume that uboot goes first, from 0 up to 768. I would try to boot that uboot from the backup you already have, just make a copy with the first chunks: Code:
dd if=backup.img of=uboot.img bs=128k count=6 Code:
uuu -b spl uboot.img You don't need to care about u-boot enviroment at this point, it will use the one that's compiled in case it fails to load it from disk. |
Advert | |
|
Today, 08:52 PM | #3 |
cosiñeiro
Posts: 1,296
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Or
Code:
dd if=backup.img of=uboot.img bs=128k count=4 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
KT3 wiped mmc, only uboot | csakakirc | Kindle Developer's Corner | 15 | 08-21-2023 02:06 PM |
uboot ignores input | cwalls | Kindle Developer's Corner | 5 | 01-15-2022 11:36 PM |
PW Source for PaperWhite uboot? | hjalfi | Kindle Developer's Corner | 11 | 03-17-2021 07:36 PM |
Uboot needed for pw2 | Merlin09 | Kindle Developer's Corner | 67 | 03-13-2020 08:31 PM |