![]() |
#16 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
@Lucas: JFYK - Embedded Linux is different from Desktop Linux by the fact that the kernel and initial ramdisk does not reside within a file system (aka boot partition), but within a raw partition, that is a portion of un-partitioned space which cannot be mounted as usual, but only dumped with dd. Additionally, there is a boot loader - uboot - which knows at which raw offset the kernel can be found.
Many Android devices work like this as well, e.g. the Sony PRS T1 reader. |
![]() |
![]() |
![]() |
#17 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
@uboot: Interesting. Anyway, can't you use a boot partition at all? I know nothing about it and I'm reading an online tutorial. This tutorial creates kernel partitions.
I suppose the unpartitioned space is used when you want to mildly hide it. This make sense if you want more security, or you want to secret the kernel binaries from competitors. What do you think about? I've found an uImage extract script, I'll try to use it on Kobo uImage. @davidfor: I confirm that the "recovery" upgrade-wifi.sh does install the uImage kernel: PHP Code:
I think that renaming uImage and sideloading the firmware should be the suggested way to update the device, instead of using Kobo Desktop. My tutorial about installing Virtualbox for using Kobo Desktop on Linux will be completely useless ![]() Last edited by Lucas Malor; 04-23-2014 at 08:59 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#19 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
@Lucas: I think not putting kernel into a regular partition has several benefits:
1.) the boot loader is easier to configure - it just needs to know a fixed offset / flash memory address 2.) the kernel cannot be easily corrupted as would be the case with file system 3.) embedded devices cannot boot easily from - say - a USB stick or Linux Live CD. There must be an easy way to install kernel, filesystem etc. Often - as with Android - uboot bootloader provides a way to put the device into some boot loader mode such that the kernel can be flashed via USB. More info at http://www.denx.de/wiki/U-Boot Anyways - if you want to boot the kernel from a boot partition, you may need a different boot loader. You may have a look at the Kobo Debian Linux image - maybe it does have something like Grub or Syslinux: https://www.mobileread.com/forums/sho...d.php?t=222123 Last edited by uboot; 04-25-2014 at 02:34 AM. |
![]() |
![]() |
![]() |
#20 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
This is very interesting, thank you
![]() Out of curiosity: it is probably useless, since embedded devices are not intended to be easily configured by end users, but does it exists a bootloader that do both? I mean, allow you to access the bootloader and kernel by OS using partition abstraction, but they are managed at boot directly? |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 425
Karma: 75216
Join Date: Nov 2011
Location: old europe
Device: Kobo Mini, Tolino Epos 2
|
I don't get your question, I'm afraid
![]() |
![]() |
![]() |
![]() |
#22 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Yes, but only for file management from OS. Let me explain.
As you said, it's better to directly access the kernel file for many reasons (and I suppose the most important is that if partition table gets corrupted you can continue to use it). On the other hand, bootloaders like GRUB are more easy to manage, since you can access files using an ext4 partition, when the OS is loaded. The question is: do you know if it exists a bootloader that allow you to manage the bootloader itself and the kernel image from the OS using partition abstraction, BUT it loads the kernel image directly from the device, provided offset, block size and block number? |
![]() |
![]() |
![]() |
#23 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
@davidfor: I know you have a Touch. If you can telnet it and it's the new Touch, can read what
ntx_hwconfig -s -p /dev/mmcblk0 CPU gives you? |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Sorry, my Touch is the N905 version. But, the command gives:
Code:
NtxHwCfg_GetCfgFldStrVal:[WARNING]Config header error !! NtxHwCfg_GetCfgFldStrVal : error (-2) |
![]() |
![]() |
![]() |
#25 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
all recent imx soc implement a way to bootstrap the kernel into memory without uboot or any other bootloader, it is implemented by bootlets ( just two programs that start dram and power up the device, then just load the kernel into memory and jump there) This way is good for very simple systems, but command line parameters needs to be stored in the kernel itseft, not passed trhough the bootloader, which make the system less flexible (you need to recompile your kernel to change the parameters) and it is incompatible with kobo's way of restore. |
|
![]() |
![]() |
![]() |
#26 | ||
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Thank you, that's a bunch of informations
![]() Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The serial cable would refer to a JTAG cable that can be attached to many embedded devices to allow for debugging.
|
![]() |
![]() |
![]() |
#28 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
Quote:
I made a little hack (3-pin female header soldered to the board and hole in hte back cover) so I don't have to open the kobo to connect to the serial port. The thing is that Kobo's uboot has a boot delay of zero so you can't get into the shell. I hope the boot delay is configured in uboot's attributes and I can modify it with a hex editor. Regards Aydan |
|
![]() |
![]() |
![]() |
#29 |
Pain in the arse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Can't you overwrite uboot completely?
|
![]() |
![]() |
![]() |
#30 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 2975
Join Date: Jan 2012
Location: Germany
Device: Kobo Touch
|
Yes, with another uboot or some such, that can load the kernel into memory and start it. uboot also does the basic hardware initialization like setting up clocks for the CPU and RAM. Just copying the kernel doesn't cut it.
Basically uboot is like the BIOS for the PC. Regards Aydan |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why can’t I complete the Kobo Touch firmware upgrade or Desktop upgrade? | DarrellAtKobo | Kobo Reader | 31 | 08-31-2012 10:45 PM |
Opus I can't upgrade firmware | charex | Bookeen | 17 | 09-21-2011 09:14 AM |
PRS-500 Can I still firmware upgrade this? | Rangoon | Sony Reader | 9 | 08-11-2011 03:11 PM |
iLiad How can I upgrade my firmware to 2.12? | npceodp | iRex | 1 | 08-30-2010 04:03 PM |
Firmware Upgrade Available! | scottcstoness | Sony Reader | 65 | 08-06-2007 11:13 PM |