Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2012, 01:59 PM   #1
Ginnder
Junior Member
Ginnder began at the beginning.
 
Posts: 4
Karma: 44
Join Date: Oct 2012
Device: Kobo Glo
Getting into trouble: Providing the Glo OS partitions for USB mounting

Edit: Bah! ignore my ramblings... George T set me straight quickly.
If you do this, there is no sync between the flash and the file-system. (writing from you computer probably won't line up with what the Kobo writes.)

*************************************

So, you want to mount the Glo's OS partition as well as the FAT drive?
(mostly for linux users because the OS is an ext4 partition)

*** BE VERY CAREFUL ***
If you mount the root or backup partitions and delete or edit the wrong files, you may brick your device.
This will also expose the production data at the start of the flash memory...



After you add telnet, ftp or dropbear (https://www.mobileread.com/forums/sho...d.php?t=141388), you'll have scripts that run at startup, something like /etc/init.d/rcS2, or /mnt/onboard/run.sh depending on the guide you used.

Add these lines to the startup script:

insmod /drivers/ntx508/usb/gadget/arcotg_udc.ko
insmod /drivers/ntx508/usb/gadget/g_file_storage.ko file=/dev/mmcblk0 stall=0

When you plug your device into your computer select "Cancel" on the "Computer Detected" popup because the devices are already set up for mounting.

The FAT partition still mounts in Windows.

I'm not sure if this drains the battery any faster. Kobo didn't use the drivers like this for *some* reason

The rootfs (generally the partition currently running) is the first partition, the second is the recoveryfs, and the third is the FAT drive.

Last edited by Ginnder; 10-18-2012 at 03:52 PM.
Ginnder is offline   Reply With Quote
Old 10-18-2012, 03:32 PM   #2
george.talusan
Kobo Developer Intern
george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.george.talusan ought to be getting tired of karma fortunes by now.
 
george.talusan's Avatar
 
Posts: 84
Karma: 253043
Join Date: Apr 2010
Location: Toronto, ON
Device: Kobo Touch, Kobo Mini, Kobo Glo
You really don't want to do this.

If the Kobo application writes to the partition while it's mounted over USB gadget then you'll run into big problems.
george.talusan is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip Read-Only partitions rstolli Devices 0 02-21-2012 02:56 PM
After burning image, should there be 2 partitions? SCION Nook Developer's Corner 2 01-09-2011 04:24 PM
PRS-505 Trouble transferring ebooks via USB Annetteg Sony Reader 9 06-02-2010 05:57 AM
Edge not mounting via mini USB on a Linux system. kenjennings enTourage Archive 5 04-09-2010 12:07 PM
USB Mounting on OS X ig88 iRex 4 07-21-2007 12:13 AM


All times are GMT -4. The time now is 04:28 AM.


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