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 08-06-2014, 01:51 PM   #91
MarekGibek
Zealot
MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.
 
MarekGibek's Avatar
 
Posts: 126
Karma: 34471
Join Date: Aug 2013
Location: Cracow, Poland
Device: Kobo Touch N905C
HI mmax,

I'm not sure if you can use my image on Kobo Mini, but if that's what Mr_Ploppy did probably you can...

I had similar problems with booting from my SD-cards. Try formatting it with SD-Formatter first (it fixed my SD card):
https://www.sdcard.org/downloads/formatter_4/
Enable "Format Size Adjustment" option!

Then write an image to it.

If this won't work - there is another workaround you can override kernel only on working card and copy needed files manually.
MarekGibek is offline   Reply With Quote
Old 08-06-2014, 01:57 PM   #92
MarekGibek
Zealot
MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.MarekGibek is out to avenge the death of his or her father, Domingo Montoya.
 
MarekGibek's Avatar
 
Posts: 126
Karma: 34471
Join Date: Aug 2013
Location: Cracow, Poland
Device: Kobo Touch N905C
Quote:
Originally Posted by mmax View Post
Hi,

BTW: The Idea is to connect a GPS module to the serial port of the kobo (Which I allready did successfully with using the xcsoar software for paragliding) and run navit [1] on the device to use as a bicycle computer for my trip next week. I basically only need a moving map application which showes the planned track I want to ride.

[1] http://wiki.navit-project.org
Really cool!!! Good luck! I see no reason why it wouldn't work.
MarekGibek is offline   Reply With Quote
Advert
Old 08-08-2014, 11:25 AM   #93
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
No, same problem.

Are there any arguments I should use like block-size when dumping the image on the sd card?
mmax is offline   Reply With Quote
Old 08-12-2014, 08:59 AM   #94
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
That's how my SD card looks like with gparted after applying markes image ... Maybe it's the 9MB empty space at the beginning?

mmax is offline   Reply With Quote
Old 08-12-2014, 09:14 AM   #95
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 650
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
The 9MB at the begining is an indicator for primary partition or not. I ran into that problem too with the original Kobo firmware. Not sure which is needed, change it, either to primary (if it is not set) or remove the primary (if it is set) and try again.

btw, I ran Debian on my Mini, it worked. But I just checked it out when this thread was new and did not use it after a few days.
WS64 is offline   Reply With Quote
Advert
Old 08-12-2014, 09:29 AM   #96
embryo
Addict
embryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five wordsembryo can name that ebook in five words
 
embryo's Avatar
 
Posts: 385
Karma: 37840
Join Date: Aug 2013
Device: Kobo Glo
Quote:
Originally Posted by mmax View Post
That's how my SD card looks like with gparted after applying markes image ... Maybe it's the 9MB empty space at the beginning?
No. This 'empty' space has code necessary to boot. (At least, thats the case for the Android and, I think, the Kobo images)
You should be very careful not to touch it.
embryo is offline   Reply With Quote
Old 08-12-2014, 03:43 PM   #97
Aydan
Connoisseur
Aydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with others
 
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
This unallocated space holds the partition table, the u-boot loader, the u-boot environment variables, the kernel and the e-ink waveform data.
Most ARM devices do it like that.

Regards
Aydan

EDIT: forgot the HW-config block, it sits in there as well.

Last edited by Aydan; 08-12-2014 at 04:37 PM.
Aydan is offline   Reply With Quote
Old 08-12-2014, 04:34 PM   #98
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
Ok, makes sense ... but why doesn't my Kobo mini boot into debian?
Can anyone else who has a working Kobo mini with debian, supply me with his sd-card image.

I really want to use it as a bike-computer, as described above, but my trip will start on friday (in three days) and time is running out.

Thanks,
Max
mmax is offline   Reply With Quote
Old 08-12-2014, 04:38 PM   #99
Aydan
Connoisseur
Aydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with others
 
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
What you should probably do is copy the first couple of megabytes of unpartitioned space from an original kobo mini card/image and then put mareks kernel back in. This way you get all the e-ink data and the hardware config block as well.

Regards
Aydan
Aydan is offline   Reply With Quote
Old 08-12-2014, 05:00 PM   #100
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
Allright, here is the partition from a working kobo image:
Code:
fdisk /dev/sdd

Command (m for help): p

Disk /dev/sdd: 1977 MB, 1977614336 bytes
61 heads, 62 sectors/track, 1021 cylinders, total 3862528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1           19456      543744      262144+  83  Linux
/dev/sdd2          543745     1068033      262144+  83  Linux
/dev/sdd3         1068034     3829762     1380864+   b  W95 FAT32
So I have to get the first 19455 sectors (I guess these are the sectors) with a sector-size of 512 bytes, as printed from fdisk. So I'll try:
Code:
dd if=/dev/sdd of=boot_sector_kobo.img seek=0 bs=512 count=19455
19455+0 records in
19455+0 records out
9960960 bytes (10 MB) copied, 0,664918 s, 15,0 MB/s
Allright 'ls -h' gives me a size of 9.5MB of the image ... so I'll give it a try
mmax is offline   Reply With Quote
Old 08-12-2014, 05:01 PM   #101
Aydan
Connoisseur
Aydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with others
 
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
you'll have to skip the first sector or you'll overwrite the partition table.
so use skip=1 seek=1 when writing the image to the other card.
also check if the other card has enough space before the first partiton or you'll kill the filesystem there.
Aydan is offline   Reply With Quote
Old 08-12-2014, 05:04 PM   #102
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
Yep ... that's exactly what happened ;-)
mmax is offline   Reply With Quote
Old 08-12-2014, 05:32 PM   #103
Aydan
Connoisseur
Aydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with others
 
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
Here's some more info on what is where:
serial number/revision is at block 1
Uboot starts at block 2 (length ??)
HW CONFIG is at block 1024 (length 1)
Kernel is at block 2048 (length ??)
Waveform is at block 14335 (length 2)
Aydan is offline   Reply With Quote
Old 08-13-2014, 04:37 AM   #104
mmax
Member
mmax began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2014
Location: Austria
Device: Kobo Mini
I still couldn't fix it ... it would be more easy if someone would supply me with a working kobo mini image, but no one is responding to private messages :-(

Allrigt, so keep on trying. What I tried now was:
Code:
dd if=boot_sector_kobo.img of=/dev/sdd seek=2 bs=512 count=19453
19453+0 records in
19453+0 records out
9959936 bytes (10 MB) copied, 0,144711 s, 68,8 MB/s
where boot_sector_kobo.img is the dump of the first 9.5MB, which is the 'free' space at the beginning. But still it doesn't work. I'm not sure if the arguments "seek=2 bs=512" really skip the first 1024 bytes at the destination ... according to the man-page of dd there is also the 'skip' option, but I'm not really sure what to use

According to this post, you have to replace the following parts of markes image to run it on the kobo mini:

Code:
u-boot:    bytes 1025 - 71168 ( from sector 2, length 137 sectors )
hw-config: bytes 524288 - 525312 (from sector 1024, length 1 sector )
Thanks,
Max

Last edited by mmax; 08-13-2014 at 05:56 AM.
mmax is offline   Reply With Quote
Old 08-13-2014, 10:20 AM   #105
Aydan
Connoisseur
Aydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with othersAydan plays well with others
 
Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
Code:
dd if=boot_sector_kobo.img of=/dev/sdd seek=2 bs=512 count=19453
this should be
Code:
dd if=boot_sector_kobo.img of=/dev/sdd seek=2 skip=2 bs=512 count=19453
What you did is to start writing your whole image from sector 2, so everything is off by 2 sectors.
What i would suggest you do is dd mareks image onto your SD-card, extract the serial, hwinfo and waveform data from the original sd-card with
Code:
dd if=/dev/sdd of=serial bs=512 skip=1 count 1
dd if=/dev/sdd of=hwinfo bs=512 skip=1024 count 1
dd if=/dev/sdd of=waveform bs=512 skip=14335 count 2
and copy those files onto the new sdcard with
Code:
dd if=serial of=/dev/sdd bs=512 seek=1
dd if=hwinfo of=/dev/sdd bs=512 seek=1024
dd if=waveform of=/dev/sdd bs=512 seek=14335
Regards
Aydan

PS: seek means go to position in output, skip means goto position in input

Last edited by Aydan; 08-13-2014 at 10:52 AM.
Aydan is offline   Reply With Quote
Reply

Tags
eink autoupdate, kobo, linux, source code, x11

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo as a Linux tablet - sample image MarekGibek Kobo Developer's Corner 109 11-23-2018 08:43 AM
Debian chroot for Kobo ah- Kobo Developer's Corner 17 04-29-2018 06:41 PM
Installing a "normal" Debian ARMEL Linux on the Kindle choff Kindle Developer's Corner 18 09-09-2014 03:42 AM
Install in Bubba server (Debian Linux bubba 2.6.32.6) cc_humbry Calibre 5 07-24-2010 12:22 PM
Poll Says a Low-Priced Tablet Will Turn the Masses on to E-Reading Jaime_Astorga News 22 05-18-2010 10:00 AM


All times are GMT -4. The time now is 06:18 AM.


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