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 07-02-2021, 03:44 PM   #1
NoPro
Junior Member
NoPro began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kobo Touch N905 (a)
Kobo Touch N905 - need external sd boot

Hi,

I bricked my Kobo Touch n905 (not the one with internal sd-card)

bricking was succesfuy done by installing xcsoar and changing usb-otg settings in the xcsoar menue (xcsoar is a great , in my opinion the best soaring navigation software and the kobo touch n905 (a) works with it as long as usb-otg setting is not changed).

before bricking i made a backup.img
now the blue light is blinking, by pressing the home button when sliding the powerbutton the led lights constant blue. when i press the reset button home button and powerbutton in all possibe combinations, blue light changes to red light.

i want to made the kobo boot from an external sdcard by holding the home button when sliding the power button.
when some system is working i can write the backup.img on the internal memory via usb cable.
i dont knwo how to make the sd card with some linux distribution.
according to a thread in this forum (link below) i have to make a partition on the sd card with ext2 filesystem and then copy (?) debian there..
can someone give me a hint how to start?
https://www.mobileread.com/forums/sh...d.php?t=289206

Last edited by NoPro; 07-02-2021 at 03:47 PM.
NoPro is offline   Reply With Quote
Old 07-02-2021, 08:55 PM   #2
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: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
If you have an image, you might be able to put that on a card and boot from that. This works with the Aura using an image from the Aura H2O. If that works, you can try to restore the image from the card.

But, how did you create the image in the first place? I haven't seen one for the N905 Touch. I would think the only way to produce one is to boot from the SD card. I suppose producing one when booted normally might work. I don't know if that would produce a a usable image or not.
davidfor is offline   Reply With Quote
Advert
Old 07-03-2021, 07:57 AM   #3
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
The external sd boot mentioned in the link still relies on a working bootloader on the internal storage. That bootloader (u-boot) will load the kernel in memory (again from the internal storage) and jump at it. What changes is the root cmdline argument passed to the kernel.

That means that you'll need a working bootloader/kernel on the internal partiton. If that's your case you can follow @davidfor suggestion: flash your backup to an external sdcard and try to boot from it.

Some things won't work at all in this config (ie: the "user" partition is hardcoded at mmcblk0p3 in the firmware) but you'll see -at least- the bootlogo and you can tweak the 1st partition of your external sdcard to get a working FW.
pazos is offline   Reply With Quote
Old 07-03-2021, 08:41 PM   #4
NiMa
Evangelist
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 469
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Quote:
Originally Posted by pazos View Post
The external sd boot mentioned in the link still relies on a working bootloader on the internal storage. That bootloader (u-boot) will load the kernel in memory (again from the internal storage) and jump at it. What changes is the root cmdline argument passed to the kernel.

That means that you'll need a working bootloader/kernel on the internal partiton. If that's your case you can follow @davidfor suggestion: flash your backup to an external sdcard and try to boot from it.

Some things won't work at all in this config (ie: the "user" partition is hardcoded at mmcblk0p3 in the firmware) but you'll see -at least- the bootlogo and you can tweak the 1st partition of your external sdcard to get a working FW.
The fact that the light turned red when key combinations were pressed is a good sign that U-Boot works.
NiMa is offline   Reply With Quote
Old 07-04-2021, 05:34 AM   #5
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by NiMa View Post
The fact that the light turned red when key combinations were pressed is a good sign that U-Boot works.
Indeed. I didn't think about it
pazos is offline   Reply With Quote
Advert
Old 07-06-2021, 12:35 PM   #6
NoPro
Junior Member
NoPro began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kobo Touch N905 (a)
thanks for your answers. im still in hope that there is someone alive in the kobo giving me rescue signs by the red light sigals

i created the image of the briked kobo with win32diskimager.
i tried to boot this image from the external sd by powerup+home btn - blue led blinking slow.
i tried the "external sd boot method" with an other good kobo touch. copied the 1,4gb partition with HDDRawCopyTool and tried powerup+home btn - blue led blinking slow... doesnt work

can you give me some advice how to boot?
is there a way to the serial output from the kobo with a serial-usb adapter.. soldering the cable to the kobo is no problem.
NoPro is offline   Reply With Quote
Old 07-06-2021, 09:49 PM   #7
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: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by NoPro View Post
thanks for your answers. im still in hope that there is someone alive in the kobo giving me rescue signs by the red light sigals

i created the image of the briked kobo with win32diskimager.
In that case, I don't think it is a valid image. When you connect a working Kobo ereader by USB, it only presents one partition. That is the partition with the books. It doesn't have the root or kernel or anything. Trying to boot from that would not work. And the size mentioned below agrees with this.
Quote:
i tried to boot this image from the external sd by powerup+home btn - blue led blinking slow.
i tried the "external sd boot method" with an other good kobo touch. copied the 1,4gb partition with HDDRawCopyTool and tried powerup+home btn - blue led blinking slow... doesnt work

can you give me some advice how to boot?
is there a way to the serial output from the kobo with a serial-usb adapter.. soldering the cable to the kobo is no problem.
There is some discussion in the forums about using the headers on the PCB to connect to it. I don't remember if they got it to work or not.

If you have a working N905 Touch, you might be able to create an image using that. You should be able to telnet into the working device and us the dd command to create an image of the device on the SD card. Then use that to create the bootable SD car for the non-working device. I think this would work, but, I am not sure. And I don't know the dd command well enough to suggest what the parameters should be. Telnet is turned on when you turn on the developer mode. And that has an option to force WiFi on so it won't go to sleep when executing the commands needed.

As possible test of this is using the image from the N905B Touch. I think this might be close enough to the N905 to boot. I'm not sure of that, but, something in the back of my brain suggests it is. I don't think it will work completely, but, might get further than you currently have. I have sent you a PM with the link to the image if you want to try it.
davidfor is offline   Reply With Quote
Old 07-08-2021, 12:34 PM   #8
NiMa
Evangelist
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 469
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Quote:
Originally Posted by davidfor View Post
In that case, I don't think it is a valid image. When you connect a working Kobo ereader by USB, it only presents one partition. That is the partition with the books. It doesn't have the root or kernel or anything. Trying to boot from that would not work. And the size mentioned below agrees with this.


There is some discussion in the forums about using the headers on the PCB to connect to it. I don't remember if they got it to work or not.

If you have a working N905 Touch, you might be able to create an image using that. You should be able to telnet into the working device and us the dd command to create an image of the device on the SD card. Then use that to create the bootable SD car for the non-working device. I think this would work, but, I am not sure. And I don't know the dd command well enough to suggest what the parameters should be. Telnet is turned on when you turn on the developer mode. And that has an option to force WiFi on so it won't go to sleep when executing the commands needed.

As possible test of this is using the image from the N905B Touch. I think this might be close enough to the N905 to boot. I'm not sure of that, but, something in the back of my brain suggests it is. I don't think it will work completely, but, might get further than you currently have. I have sent you a PM with the link to the image if you want to try it.
IIRC, the N905B uses a different CPU/SoC (imx508) than the N905 and N905C (imx507). I think it has more chances to work with the N905C image.
Actually, if you can, you could debrick it with a serial connection. U-Boot is normally locked up on those devices (bootdelay=0), but if it can't find a kernel, it will let you type in a command prompt. From there, you can loady/loadx/loadb a kernel uImage from the serial port containing a minimal initrd and reflash the device manually, recovering old partitions as possible (especially recoveryfs).

Last edited by NiMa; 07-08-2021 at 12:38 PM.
NiMa is offline   Reply With Quote
Old 07-10-2021, 11:34 AM   #9
NoPro
Junior Member
NoPro began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2021
Device: Kobo Touch N905 (a)
its great to get your time and support.
step by step it makes some progress
soldered rx and tx to an arduino and tried the 905b image
seems that it dosnt work with the *b image. i tried the *c image as well with same results.
Attached Thumbnails
Click image for larger version

Name:	Bild_2021-07-10_173357.png
Views:	215
Size:	31.4 KB
ID:	188118  

Last edited by NoPro; 07-10-2021 at 11:38 AM.
NoPro is offline   Reply With Quote
Old 07-11-2021, 01:54 PM   #10
NiMa
Evangelist
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 469
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Quote:
Originally Posted by NoPro View Post
its great to get your time and support.
step by step it makes some progress
soldered rx and tx to an arduino and tried the 905b image
seems that it dosnt work with the *b image. i tried the *c image as well with same results.
So you can't "Hit any key to stop autoboot"?
Probably not, all those old Kobos have bootdelay set to 0. You might still try. If you get to the U-Boot command line, then debricking is possible.
NiMa is offline   Reply With Quote
Old 01-01-2022, 07:29 PM   #11
croofec
Junior Member
croofec began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2021
Device: KObo
Talking

I have just successfully unbricked kobo n905 with internal MMC.
For unbrick, you need a connection with uart and sdcard.

For uart:




For the preparation of the card you can use the latest firmware from https://pgaskin.net/KoboStuff/kobofirmware.html (Kobo Touch A/B and feescale upload folder) or you can use uImage.

for Linux (or for windows use to some image tool)

dd if=./uImage of=/dev/disk2 bs=512

after that put sdcard into the slot.

The first goal is to interrupt the kernel boot process. For this, you need to shorten the MMC line to the ground.

More or less place of this line



and the line under the microscope (it’s some data line for MMC - I don’t know which one)



you need to do it after start booting but before the kernel load (try a reset, short to ground for success). If you succeed you’ll see the prompt:



then just change boot delay:



after that let’s try recovery your kobo:




The first-line disabled quite mode for kernel, the second read kernel from your sdcard and run recovery mode.

now just run



after that, you will see a lot of debugging information from the kernel and blinking blue led on the kobo device.

Restart and enjoy!



After that of course you need to hack again kobo for custom installation.

Happy New Year!
croofec is offline   Reply With Quote
Old 01-09-2022, 03:31 PM   #12
NiMa
Evangelist
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 469
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Impressive walkthrough! Thanks for diving in and finding a way to un-brick a locked device at firmware level.
NiMa is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Touch N905 is not working aky1969 Kobo Tablets 6 09-12-2022 04:08 PM
Touch help.. SD image Kobo Touch N905 admsuper Kobo Developer's Corner 4 07-25-2020 10:41 PM
Kobo touch(n905)vs kindle latest touch Smartie Which one should I buy? 6 06-23-2015 09:22 PM
Touch Android on Kobo Touch N905 (without B or C)? zenfunk Kobo Developer's Corner 0 05-21-2014 11:45 PM
Kobo Touch N905 Problem Wi-Fi Square91 Kobo Reader 3 02-08-2014 04:14 AM


All times are GMT -4. The time now is 09:30 AM.


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