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 10-10-2012, 03:40 AM   #1
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
Information

I've just seen the "Mini Teardown" where it said about the snap on back.

So I thought, as I can't see any screw holes, I'll see if the Glo has a snap on back.

and it has, so I took it apart and found the internal 2Gb MicroSD card, which is partitioned as below:

Code:
partition 1 : ext4 - 268MB - named "rootfs"
partition 2 : ext4 - 268MB - named "recoveryfs"
partition 3 : FAT - 1.4GB - named "KOBOeReader"
partition table is actually as follows:

Code:
Number  Start   End     Size    Type     File system  Flags
 1      9961kB  278MB   268MB   primary  ext4
 2      278MB   547MB   268MB   primary  ext4
 3      548MB   1965MB  1417MB  primary  fat32        lba
it looks like the first 9961Kb of the disk contains the u-boot image. Not sure how I'll handle this.

rootfs has a ".macaddress" file which looks like it contains the MAC address (surprise, surprise!)

I've made copies so that I can study them a bit.

any more info and I'll post it here

Last edited by mrspaceman; 10-10-2012 at 09:01 AM. Reason: added more info
mrspaceman is offline   Reply With Quote
Old 10-10-2012, 06:55 AM   #2
staylo
Member
staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 11
Karma: 34114
Join Date: Mar 2011
Device: PRS-350
I'd recommend making an image of the micro SD (On Windows I use win32diskimager.exe) as a backup for peace of mind
staylo is offline   Reply With Quote
Old 10-10-2012, 07:11 AM   #3
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
What I intend to do is:

1. grab image of factory microSD card (done)
2. put image onto 8Gb microSD card
3. see if kobo boots ?

that way I don't touch the factory microSD card and I can always revert back to it.

I'll let you know what the outcome is.
mrspaceman is offline   Reply With Quote
Old 10-10-2012, 07:35 AM   #4
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
okay, tried, but it didn't boot.
put the factory microSD back in and it's back (phew!)

I just created two ext4 partitions and a FAT partition.
I didn't make the two ext4 partitions the same size as on the original.

so next is to make the two ext4 partitions the exact same size as the factory card.
mrspaceman is offline   Reply With Quote
Old 10-10-2012, 08:07 AM   #5
staylo
Member
staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.staylo is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 11
Karma: 34114
Join Date: Mar 2011
Device: PRS-350
Using win32diskimager you can make an image of the entire card, including the partition table. You can also write an image to a card. So if you've got a 2GB or greater microSD you can make an exact duplicate of the factory microSD. (Already done this, no problems with the kobo mini)
staylo is offline   Reply With Quote
Old 10-10-2012, 08:12 AM   #6
mrspaceman
Lurker in the Dark
mrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to beholdmrspaceman is a marvel to behold
 
mrspaceman's Avatar
 
Posts: 114
Karma: 11760
Join Date: Apr 2011
Location: Bristol, UK
Device: Asus Transformer Prime, Sony PRS-T1, HTC Sensation
My idea was to have larger partitions so that I could add my own programs with now fear of running out of space, but I'll just have to experiment now.

At least I now know that I am safe to 'play' as long as I don't touch the factory card.

(oh, and I don't have access to a windows box at work, only linux, so I'll try win32diskimager at the weekend)

andy.
mrspaceman is offline   Reply With Quote
Old 10-12-2012, 02:26 PM   #7
Darth_Bane
Dark Lord of the Sith
Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.
 
Darth_Bane's Avatar
 
Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
Quote:
Originally Posted by mrspaceman View Post
My idea was to have larger partitions so that I could add my own programs with now fear of running out of space, but I'll just have to experiment now.

At least I now know that I am safe to 'play' as long as I don't touch the factory card.

(oh, and I don't have access to a windows box at work, only linux, so I'll try win32diskimager at the weekend)
Just use dd on linux - it'll do just as well. First step is to clone the 2GB image onto the 8GB. When reading the 2GB, make note of what the number of records (i.e. count) is when the reading is done. Let's say its "698596+1 records" then pop in the 8GB and apply the new image using dd with count=698596. It should boot fine and the 8GB will look like a 2GB (with 6GB wasted). Then you can try resizing the 3rd partition using "parted" to make the usable space larger (untested but should work). Resizing the 1st or 2nd partition will probably not work.
Darth_Bane is offline   Reply With Quote
Old 10-12-2012, 06:00 PM   #8
Ginnder
Junior Member
Ginnder began at the beginning.
 
Posts: 4
Karma: 44
Join Date: Oct 2012
Device: Kobo Glo
On my machine, the mounted sd card was sdb

linux dd worked to copy the 2GB Sandisk SD to my 8GB kingston.
dd if=/dev/sdb of=/tmp/kobo.raw.img
sync
eject /dev/sdb
<Remove and mount new card>
dd if=/tmp/kobo.raw.img of=/dev/sdb
sync
eject /dev/sdb
<Remove drive and replace>
Only work on your second card!

Back up the contents of the 3rd partition (the fat partition)
mount -o shortname=mixed /dev/sdb3 /mnt/sdb3
cd /mnt/sdb1
tar -cvf /tmp/sandisk-8.tar .
cd -
umount /mnt/sdb3

Find the drive's name:
dosfslabel /dev/sdb3
"KOBOeReader"

Then I used fdisk to delete the 3rd partition, and recreate it, larger: (be careful, fdisk wanted to use the area at the front of the partitions)
fdisk /dev/sdb
p
...
/dev/sdb3 1068034 3862527 1397247 b W95 FAT32
d
3
n
3
1068034
<enter>
t
3
c
w
sync

mkfs.vfat -v -F 32 -f 2 -n "KOBOeReader" /dev/sdb3
sync
mount -o shortname=mixed /dev/sdb3 /mnt/sdb3
cd /mnt/sdb3
tar -xf /tmp/sandisk-8.tar
sync
cd -
umount /mnt/sdb3
eject /dev/sdb

Remove and install SD in Kobo
Boot Kobo
Go to settings/device information: "Onboard storage 397MB of 7056MB"
Ginnder is offline   Reply With Quote
Old 02-07-2013, 09:49 AM   #9
jlynton
Addict
jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.jlynton is my North, my South, my East and West.
 
Posts: 318
Karma: 142186
Join Date: Feb 2012
Device: aura h2o
Quote:
Originally Posted by Ginnder View Post
On my machine, the mounted sd card was sdb

linux dd worked to copy the 2GB Sandisk SD to my 8GB kingston.
dd if=/dev/sdb of=/tmp/kobo.raw.img
sync
eject /dev/sdb
<Remove and mount new card>
dd if=/tmp/kobo.raw.img of=/dev/sdb
sync
eject /dev/sdb
<Remove drive and replace>
Only work on your second card!

Back up the contents of the 3rd partition (the fat partition)
mount -o shortname=mixed /dev/sdb3 /mnt/sdb3
cd /mnt/sdb1
tar -cvf /tmp/sandisk-8.tar .
cd -
umount /mnt/sdb3

Find the drive's name:
dosfslabel /dev/sdb3
"KOBOeReader"

Then I used fdisk to delete the 3rd partition, and recreate it, larger: (be careful, fdisk wanted to use the area at the front of the partitions)
fdisk /dev/sdb
p
...
/dev/sdb3 1068034 3862527 1397247 b W95 FAT32
d
3
n
3
1068034
<enter>
t
3
c
w
sync

mkfs.vfat -v -F 32 -f 2 -n "KOBOeReader" /dev/sdb3
sync
mount -o shortname=mixed /dev/sdb3 /mnt/sdb3
cd /mnt/sdb3
tar -xf /tmp/sandisk-8.tar
sync
cd -
umount /mnt/sdb3
eject /dev/sdb

Remove and install SD in Kobo
Boot Kobo
Go to settings/device information: "Onboard storage 397MB of 7056MB"
Many thanks for your instructions, I more or less followed them, and all went perfectly.

I did this:

linux dd worked to copy the 2GB Sandisk SD to my 8GB kingston.
dd if=/dev/sdb of=/tmp/kobo.raw.img
sync
eject /dev/sdb
<Remove and mount new card>
dd if=/tmp/kobo.raw.img of=/dev/sdb
sync
eject /dev/sdb
<Remove drive and reinsert

At this point I took the lazy route:
I used gparted to 'grow' the 3rd partition, it took just a few seconds and worked perfectly.

I used a credit card to open the back of the kobo, starting at one corner I ran it all the way around under the edge, there were a series of clicks as the cover came free.

I used a sandisk 8GB, class 4 card, cost about £3 new.

Now I can carry all my documents on the kobo, without having to use an additional sdcard, and still have enough free space to give me a warm, satisfied feeling :-)
jlynton is offline   Reply With Quote
Old 03-21-2013, 01:04 AM   #10
Gergith
Enthusiast
Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.
 
Gergith's Avatar
 
Posts: 25
Karma: 220600
Join Date: Oct 2010
Location: Toronto, Canada
Device: Kobo Glo
I did this about a week ago going up to a 32 gig card. I plan to post a guide on here by Sunday at latest with pictures and links to free windows gui apps to do it all

All is well so far with my unit No factory reset was needed, didn't even do a factory reset!
Gergith is offline   Reply With Quote
Old 03-21-2013, 01:26 AM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 6,077
Karma: 6108201
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by Gergith View Post
All is well so far with my unit No factory reset was needed, didn't even do a factory reset!
But, what happens tomorrow or next week or next month when you do need to do a factory reset? Will this handle the bigger card? I think it will be OK, but I am curious if anyone has done it.
davidfor is offline   Reply With Quote
Old 03-21-2013, 08:39 AM   #12
jackastor
Wizard
jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.jackastor ought to be getting tired of karma fortunes by now.
 
jackastor's Avatar
 
Posts: 1,621
Karma: 2605023
Join Date: Jun 2011
Device: iphone stanza, kobo touch,ASUS TF300,KOBO GLO, Kobo Aura HD, Kobo Mini
Quote:
Originally Posted by Gergith View Post
I did this about a week ago going up to a 32 gig card. I plan to post a guide on here by Sunday at latest with pictures and links to free windows gui apps to do it all

All is well so far with my unit No factory reset was needed, didn't even do a factory reset!
Does that mean you could potentially put in an sd card in the external slot boosting memory to a total of 64 gigs? Also if you do post the guide thank you very much


Jack
jackastor is offline   Reply With Quote
Old 03-22-2013, 02:02 AM   #13
Gergith
Enthusiast
Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.Gergith ought to be getting tired of karma fortunes by now.
 
Gergith's Avatar
 
Posts: 25
Karma: 220600
Join Date: Oct 2010
Location: Toronto, Canada
Device: Kobo Glo
Quote:
Originally Posted by jackastor View Post
Does that mean you could potentially put in an sd card in the external slot boosting memory to a total of 64 gigs? Also if you do post the guide thank you very much


Jack
Potentially, but I REALLY wouldn't advise this. I'm just doing this specifically to avoid having any sdcard at all in my external slot.

As it is it adds a bit of noticeable lag, so I wouldn't recommend more. Specifically both boot time and going into sleep mode. Coming out of sleep mode is normal speed oddly. I noticed the boot time is different specifically because it used to take a certain amount of blocks scrolling before hanging at the exact same one and loading to the main screen. Now it scrolls for a few seconds more. But very tolerable.

As for the actual maximum, I'm not certain.


Quote:
Originally Posted by davidfor View Post
But, what happens tomorrow or next week or next month when you do need to do a factory reset? Will this handle the bigger card? I think it will be OK, but I am curious if anyone has done it.

I think it does work, because I've seen other people post that they do a factory reset to resize the partition to 32gigs, instead of doing it manually. So they skip that step and let the factory restore handle it. But resizing the partition manually allows for retaining your data/stats.

Either way, you'll have the 2gig card to pop back in.

Last edited by Gergith; 03-22-2013 at 02:11 AM.
Gergith is offline   Reply With Quote
Old 03-22-2013, 03:05 AM   #14
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 6,077
Karma: 6108201
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by Gergith View Post
I think it does work, because I've seen other people post that they do a factory reset to resize the partition to 32gigs, instead of doing it manually. So they skip that step and let the factory restore handle it. But resizing the partition manually allows for retaining your data/stats.

Either way, you'll have the 2gig card to pop back in.
That is the thing. I have seen no mention of doing a factory reset after upgrading the card size. The factory reset restores a firmware image from the recovery partition of the card to the main partition. Then it does something to clear the data partition. I think it simply formats the data partition, but it might delete and recreate the partition. If it does the latter, it means that any time a factory reset was done, you would need to open the device and resize the data partition.

Popping the 2GB card in doesn't solve this at all.
davidfor is offline   Reply With Quote
Old 03-22-2013, 11:45 AM   #15
auspex
Groupie
auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.auspex ought to be getting tired of karma fortunes by now.
 
auspex's Avatar
 
Posts: 162
Karma: 1066430
Join Date: Sep 2012
Location: Nova Scotia
Device: Sony PRS-T2, Samsung Galaxy Ace IIx
Quote:
Originally Posted by Gergith View Post
Potentially, but I REALLY wouldn't advise this...As it is it adds a bit of noticeable lag, so I wouldn't recommend more. Specifically both boot time and going into sleep mode. Coming out of sleep mode is normal speed oddly.
Not odd at all - typical linux behaviour. When you start from power-off, it's booting and needs to run fsck (file system check) on the partitions - the bigger they are, the longer it takes, though normally it doesn't have to do a full check.
auspex 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
To much information, yet not enough. Fisherman74 General Discussions 18 09-08-2012 04:11 PM
Thank you already for information Rosemary Introduce Yourself 10 01-15-2010 06:46 PM
Classic Need New Information geneaber Barnes & Noble NOOK 7 11-03-2009 05:11 PM
more information about the new iliad? joblack News 2 04-03-2007 01:31 PM


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


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