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 12-27-2012, 06:19 AM   #1
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
Kobo u-boot hacking

Hi! I was wondering if anyone has tried to play with the u-boot sources so far.
I know they're a bit difficult to download since you'll have to copy the whole kobo github account locally. To avoid this I'm hosting a personal copy here:
https://dl.dropbox.com/u/29286792/u-boot-2009.08.tar.gz
Personally I'm interested in modifying it in order to boot from the external sd card slot as if it were the internal one, in order to make hacking the firmware easier. I'll start working on it as soon as I receive my new Glo, it should be in the mail in the next days.
giorgio130 is offline   Reply With Quote
Old 12-27-2012, 09:54 AM   #2
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Someone did a bit of u-boot hacking on the Touch in this thread. He ended up bricking his Kobo, though.
KevinShort is offline   Reply With Quote
Old 12-27-2012, 10:00 AM   #3
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
Has anyone tried to power up any recent kobo model with the internal sd card removed and placed in the external slot? It's easy to try... I could do it myself when I get my unit but I'm just too curious to wait :P
@KevinShort, thanks for the reference!
giorgio130 is offline   Reply With Quote
Old 12-27-2012, 10:31 AM   #4
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
I just tried to boot the internal SD card from the external slot on my Glo. The blue LED turned on for a few seconds, but nothing happened.
KevinShort is offline   Reply With Quote
Old 12-27-2012, 10:31 AM   #5
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
Just in case someone else is interested in this, there's a neat script in the provided source that should make compiling it very easy. It is called build_mddr_256.sh.
giorgio130 is offline   Reply With Quote
Old 01-01-2013, 11:54 AM   #6
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
Some other informations on the topic. I got the source to compile with some tweaking. This is the procedure I followed:
Code:
# Download and install the required toolchain:
sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo apt-get update
sudo apt-get install gcc-4.6-arm-linux-gnueabi
# create a required symlink
sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-4.6 /usr/local/bin/arm-linux-gnueabi-gcc
Replace in build_mddr_256.sh CROSS_COMPILE=arm-fsl-linux-gnueabi- to CROSS_COMPILE=arm-linux-gnueabi- and then run it. Choose the appropriate platform.
giorgio130 is offline   Reply With Quote
Old 01-08-2013, 01:47 PM   #7
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 414
Karma: 288418
Join Date: May 2011
Device: Kobo Glo and Aura HD
I was worried that the u-boot was not stored on the sd-card, so flashing a non-working bootloader could brick the device. It doesn't seem to be the case:
Code:
UBOOT=$1
WAVEFORM=$2
KERNEL=$3
DEVICE=$4

if [ -e $UBOOT ]; then
	echo Upgrading U-Boot $UBOOT
	dd if=$UBOOT of=/dev/$DEVICE bs=1K seek=1 skip=1
	if [ $? != 0 ] ; then
		exit 1
	fi
	sync
	sync
	echo Done upgrading U-Boot
fi

if [ -e $WAVEFORM ]; then
	echo Upgrading Waveform $WAVEFORM
	dd if=$WAVEFORM.header of=/dev/$DEVICE bs=512 seek=14335
	dd if=$WAVEFORM of=/dev/$DEVICE bs=512 seek=14336
	if [ $? != 0 ] ; then
		exit 1
	fi
	sync
	sync
	echo Done upgrading Waveform
fi

if [ -e $KERNEL ]; then
	echo Upgrading kernel... $KERNEL
	dd if=$KERNEL of=/dev/$DEVICE bs=512 seek=2048
	if [ $? != 0 ]; then
		exit 1
	fi
	sync
	sync
	echo Done upgrading kernel...
fi
this is the code that flashes it. As you can see the location to where it is flashed is the 4th argument. And this is the only place where the function is called:
/etc/init.d/upgrade-generic.sh $UBOOT $WAVEFORM $KERNEL mmcblk0
in upgrade-wifi.sh.
So everything seems safe... I just have to gather enough courage now
giorgio130 is offline   Reply With Quote
Old 03-09-2013, 10:21 AM   #8
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 338
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by giorgio130 View Post
I was worried that the u-boot was not stored on the sd-card, so flashing a non-working bootloader could brick the device. It doesn't seem to be the case
Just to confirm this, on my Glo u-boot is stored in the unpartitioned first 10MB of the micro SD card. I tried flashing freescale's prebuilt android u-boot onto my Glo's SD card, and it caused my Glo to refuse to boot. It was easily remedied, however, by putting the micro SD card in my computer and using dd to flash a working u-boot back onto the card.
Code:
dd if=u-boot.bin of=/dev/sdX bs=1K seek=1 skip=1
I tried to get the u-boot prompt to come up on my Glo, by placing an SD card with nothing on it except for u-boot into my Glo and connecting with serial cables. The prompt comes up, but I only have about 10 seconds to run commands before the board automatically shuts off. Anyone have any ideas on how to keep the board from turning off by itself?
KevinShort is offline   Reply With Quote
Old 08-31-2013, 08:31 PM   #9
rekrek
Junior Member
rekrek began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2013
Device: Kobo touch
A u-boot supporting external uSD boot

I came across this page :
https://code.google.com/p/kobohack-j/wiki/README_261
By looking at the gtranslation, I think it provides the information on how to run the OS on the external uSD.

It states that DMA must be used to access the card instead of interrupts.

He has a GDB for remote debugging
rekrek 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
Kobo Vox Hacking Progress jefftheworld Kobo Tablets 209 06-15-2014 08:29 PM
Touch Hacking Kobo Touch suspend usb network eink driver tonyv Kobo Developer's Corner 25 01-22-2014 09:04 AM
Touch Hacking into the Kobo Touch stef70 Kobo Developer's Corner 58 01-04-2014 04:12 AM
Kobo Hacking Resources Zoxc Kobo Reader 0 01-14-2012 07:59 AM
Any tips on hacking Kobo formatting???? kae Kobo Reader 5 03-29-2011 10:26 AM


All times are GMT -4. The time now is 11:45 AM.


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