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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2023, 02:37 PM   #16
pastapojken
Member
pastapojken began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2014
Device: Kobo Clara 2e
Quote:
Originally Posted by pastapojken View Post
I tried a bunch of different ones. I first tried in Linux using ddrescue, using gparted to resize the FAT32 partition. When that didn't work then I rebooted to windows and tried following your instructions to the letter, with your software, same result. I tried with a 32GB samsung and an old 4GB i had lying around (unfortunately the only 2 sd cards I have on hand).
Resizing the storage partition didn't seem to affect anything.

I noticed the image has empty space at the beginning, is that normal?
I just now tried moving all partitions to before the empty padding at the beginning and it has changed from flashing white light to static white light.
Could the slimming process have fucked around with maybe some kind of hard-coded size (idk, something along the lines of "boot partition should be X big so at value Y you will always find the recovery" or something?)
pastapojken is offline   Reply With Quote
Old 01-22-2023, 02:37 PM   #17
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by pastapojken View Post
I noticed the image has empty space at the beginning, is that normal?
there is some space before the 1st partition for bootloader/kernel, if you move the partition there naturally everything stops working

you should only grow partition 3

although it's also possible to grow partition 1 (to the right only)

moving partition 2 but if you touch partition 2, factory reset will stop working

Last edited by frostschutz; 01-22-2023 at 02:39 PM.
frostschutz is offline   Reply With Quote
Advert
Old 01-22-2023, 03:05 PM   #18
fritolays
Member
fritolays began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Sep 2022
Device: Kindle Graphite DX, Kobo Clara 2E
Quote:
Originally Posted by pastapojken View Post
I tried a bunch of different ones. I first tried in Linux using ddrescue, using gparted to resize the FAT32 partition. When that didn't work then I rebooted to windows and tried following your instructions to the letter, with your software, same result. I tried with a 32GB samsung and an old 4GB i had lying around (unfortunately the only 2 sd cards I have on hand).
Resizing the storage partition didn't seem to affect anything.

I noticed the image has empty space at the beginning, is that normal?
Quote:
Originally Posted by pastapojken View Post
I just now tried moving all partitions to before the empty padding at the beginning and it has changed from flashing white light to static white light.
Could the slimming process have fucked around with maybe some kind of hard-coded size (idk, something along the lines of "boot partition should be X big so at value Y you will always find the recovery" or something?)
Yeah the leading empty space is fine.
Expanding and shrinking do the same things to the partition.
So no it did not affect the image.
To note, I am also using a 32gb samsung micro sd card.

For kicks here is the MD5 hash for kobo_clara_2e_sdcard_original_slim.img
CF631914DBCF02EE5A3DDC963282E7DC

Now I did these exact steps in my clara 2e using the provided image.
I just took these pictures...

First make sure the 2E is off by holding the power button for ~10s.
Until the light stops flashing.

Next lets make sure the target sd card is clean before trying new stuff.

Open IM-Magic Partition Resizer.
Connect the SD Card to the computer.

Then Right Click where it says Disk 3 in my reset_sdcard.jpg example.
Pick Delete all partitions.
Make sure you select the correct Disk!
Click Yes to confirm.
Click Apply and ok to commit.
Wait and ok.

Now the Disk should be unallocated, empty.

Let try using rufus to write the image to your card.
https://rufus.ie/en/

Open rufus
Select the Disk
Select kobo_clara_2e_sdcard_original_slim.img
Click Start
Click OK
Wait
When done eject the drive and plug it into you 2E

Now turn on your 2E
Mine looked like clara2e_firstboot.jpg and took about 3mins to start.

If it worked then turn it off again and try expanding the storage partition.
Attached Thumbnails
Click image for larger version

Name:	reset_sdcard.jpg
Views:	94
Size:	491.8 KB
ID:	199193   Click image for larger version

Name:	clara2e_firstboot.jpg
Views:	93
Size:	717.5 KB
ID:	199194  

Last edited by fritolays; 01-22-2023 at 03:20 PM. Reason: spelling...
fritolays is offline   Reply With Quote
Old 01-22-2023, 03:40 PM   #19
pastapojken
Member
pastapojken began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2014
Device: Kobo Clara 2e
Quote:
Originally Posted by fritolays View Post
Yeah the leading empty space is fine.
Expanding and shrinking do the same things to the partition.
So no it did not affect the image.
To note, I am also using a 32gb samsung micro sd card.

For kicks here is the MD5 hash for kobo_clara_2e_sdcard_original_slim.img
CF631914DBCF02EE5A3DDC963282E7DC

Now I did these exact steps in my clara 2e using the provided image.
I just took these pictures...

First make sure the 2E is off by holding the power button for ~10s.
Until the light stops flashing.

Next lets make sure the target sd card is clean before trying new stuff.

Open IM-Magic Partition Resizer.
Connect the SD Card to the computer.

Then Right Click where it says Disk 3 in my reset_sdcard.jpg example.
Pick Delete all partitions.
Make sure you select the correct Disk!
Click Yes to confirm.
Click Apply and ok to commit.
Wait and ok.

Now the Disk should be unallocated, empty.

Let try using rufus to write the image to your card.
https://rufus.ie/en/

Open rufus
Select the Disk
Select kobo_clara_2e_sdcard_original_slim.img
Click Start
Click OK
Wait
When done eject the drive and plug it into you 2E

Now turn on your 2E
Mine looked like clara2e_firstboot.jpg and took about 3mins to start.

If it worked then turn it off again and try expanding the storage partition.
Unfortunately, no dice. I think I might have to take it with Kobo support, hopefully they won't notice my meddeling...
pastapojken is offline   Reply With Quote
Old 01-23-2023, 03:53 AM   #20
pastapojken
Member
pastapojken began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2014
Device: Kobo Clara 2e
As it was a present it looks like it's going to be way too much work to get it replaced, so I might end up biting the bullet and buying one myself...

What annoys me is that I don't see any damage to the PCB itself, so I suspect it's purely some firmware fuckery. I don't have any hope that this might be fixable at this point, but if anyone has any ideas I'm all ears!
pastapojken is offline   Reply With Quote
Advert
Old 01-23-2023, 09:01 AM   #21
fritolays
Member
fritolays began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Sep 2022
Device: Kindle Graphite DX, Kobo Clara 2E
Quote:
Originally Posted by pastapojken View Post
As it was a present it looks like it's going to be way too much work to get it replaced, so I might end up biting the bullet and buying one myself...

What annoys me is that I don't see any damage to the PCB itself, so I suspect it's purely some firmware fuckery. I don't have any hope that this might be fixable at this point, but if anyone has any ideas I'm all ears!
For me, it took a little work to get all the little bits of waterproof coating out of the sdcard slot on my 2E. Maybe some pads are being covered and not making a good connection?

I am not certain it is a firmware issue as that resides on the sd card.
I can swap between 2 sd card and the 2E doesnt know the difference.

The only other thing I could figure was it that it was interrupted during an update.
The firmware update has some bootloader among other things that get flashed to things outside of the sd card...

Maybe restore the slim image, or image your second 2E, and copy the latest firmware to the .kobo folder as well.
Then try it in the device - maybe it will update and recover.
fritolays is offline   Reply With Quote
Old 01-23-2023, 11:39 AM   #22
pastapojken
Member
pastapojken began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2014
Device: Kobo Clara 2e
Quote:
Originally Posted by fritolays View Post
For me, it took a little work to get all the little bits of waterproof coating out of the sdcard slot on my 2E. Maybe some pads are being covered and not making a good connection?
I thought so too at first but since moving partitions around gives a different outcome than just the normal image I think it's able to read the card.
Quote:
Originally Posted by fritolays View Post
Maybe restore the slim image, or image your second 2E, and copy the latest firmware to the .kobo folder as well.
Then try it in the device - maybe it will update and recover.
I've tried that, no difference. But that makes me think, what version did you image? Could it matter? (For reference, mine was running the latest)
pastapojken is offline   Reply With Quote
Old 01-23-2023, 02:14 PM   #23
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 34,537
Karma: 144552660
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it's worth, since the master copy of the device serial number and other bits and bobs live in that empty space, I would not recommend moving anything into that space.
DNSB is offline   Reply With Quote
Old 01-23-2023, 04:04 PM   #24
fritolays
Member
fritolays began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Sep 2022
Device: Kindle Graphite DX, Kobo Clara 2E
Quote:
Originally Posted by DNSB View Post
For what it's worth, since the master copy of the device serial number and other bits and bobs live in that empty space, I would not recommend moving anything into that space.
Quote:
Umm no....
There is nothing in the empty space before the first partition.
This is quite evident if you open any img file with 7zip or similar.
In 7zip look for the Offset column.
In the case of kobo_clara_2e_sdcard_original_slim.img in 7zip.jpg attached the offset is ~25mb.

Additionally, the reason why moving partitions around doesn't work is because it only changes the partition boundaries.
It does not move the data inside the partition to the new relative location.
So moving them causes data loss within each moved/overlapped partition.
I stand corrected, see posts below...

Quote:
Originally Posted by pastapojken View Post
I thought so too at first but since moving partitions around gives a different outcome than just the normal image I think it's able to read the card.
Could you be more specific as to what you do see on the screen in each situation?

With the clean sd card route I detailed last...
Light comes on, starts to flash, screen remains black?

When you moved partitions around...
Light comes on, starts to flash, screen does what?

I tried deleting just the KOBOeReader partition and got a different screen...
Light comes on, starts to flash, black warning sign on screen.

Quote:
Originally Posted by pastapojken View Post
I've tried that, no difference. But that makes me think, what version did you image? Could it matter? (For reference, mine was running the latest)
The image I linked is the one that shipped with the 2E.
I made the image before ever turning it on.

The 2E from which I provided pictures of earlier had been updated to the latest version prior to my swapping cards.
From my trials, it doesnt seem to make a difference.
Attached Thumbnails
Click image for larger version

Name:	7zip.jpg
Views:	67
Size:	104.2 KB
ID:	199214  

Last edited by fritolays; 01-23-2023 at 07:48 PM. Reason: error in direction
fritolays is offline   Reply With Quote
Old 01-23-2023, 04:37 PM   #25
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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by fritolays View Post
Umm no....
Umm, yes .

https://github.com/lgeek/okreader#notes-for-developers

There's a more detailed and up to date mapping of how NTX boards populate this space somewhere, but I can't quite find the link right now.

EDIT: See Andi's notes: https://misc.andi.de1.cc/kobo/

Last edited by NiLuJe; 01-23-2023 at 04:42 PM.
NiLuJe is offline   Reply With Quote
Old 01-23-2023, 07:44 PM   #26
fritolays
Member
fritolays began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Sep 2022
Device: Kindle Graphite DX, Kobo Clara 2E
Quote:
Originally Posted by NiLuJe View Post
Umm, yes .

https://github.com/lgeek/okreader#notes-for-developers

There's a more detailed and up to date mapping of how NTX boards populate this space somewhere, but I can't quite find the link right now.

EDIT: See Andi's notes: https://misc.andi.de1.cc/kobo/
You are correct, apologies, my error on this one....

First:
https://github.com/lgeek/okreader#notes-for-developers

Their first partition starts at 15mb.


Second:
https://misc.andi.de1.cc/kobo/

This one took me a moment to understand just what he is saying....

Which lead me to find the list of sd card offset:
Code:
SD_OFFSET_SECS_KERNEL = 2048 * 512 = 1MB
SD_OFFSET_SECS_INITRD = 12288 * 512 = 6MB
SD_OFFSET_SECS_INITRD2 = 8192 * 512 = 4MB
SD_OFFSET_SECS_HWCFG = 1024 * 512 = 0.5MB
SD_OFFSET_SECS_WAVEFORM = 14336 * 512 = 7MB
SD_OFFSET_SECS_LOGO = 18432 * 512 = 9MB
SD_OFFSET_SECS_LOGO2 = 34816 * 512 = 17MB
SD_OFFSET_SECS_DTB = 1286 * 512 = 0.5MB
SD_OFFSET_SECS_BOOTWAVEFORM = 55296 * 512 = 28MB
SD_OFFSET_SECS_NTXFW = 1030 * 512 = 0.5MB
SD_OFFSET_SECS_SNMAC = 1 * 512 = 0.0005MB
So yes there is a bunch of stuff in the "empty space", and thusly yes leave it alone.


Third:
Thanks for providing some links.
I've removed my image for tonight.
I'll reupload it tomorrow once I've removed my serial number from it hehe.
I'll also include instructions on how to set your serial number.

Before anyone asks, I've tried changing the serial number and it still boots just fine, so its not being locked or anything. Just changes what shows up under Device Information.
fritolays is offline   Reply With Quote
Reply

Tags
clara2e, microsd, storage, upgrade, usbms

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Kobo Clara HD (extended to 256GB) stops working after reaching 14GB storage raafayawan Kobo Reader 23 08-02-2022 11:47 PM
Forma Kobo Forma - Upgrading storage? Squidy Kobo Reader 1 05-19-2020 05:58 PM
Is Libra/Forma worth upgrading if you already have a Clara and H20 Edition 2? HLS Kobo Reader 10 11-05-2019 03:18 PM
question about app storage and internal storage gilly78201 Kindle Fire 5 03-06-2012 02:08 AM
iPhone Two new iPhone Storage Solutions: Zoomit (SD Card Reader) & Boxnet (Cloud Storage) kjk Apple Devices 0 02-09-2010 06:20 PM


All times are GMT -4. The time now is 05:07 PM.


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