Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2020, 01:30 PM   #1
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
kindle (dxg) kernel/rootfs postmarketos port possibilities?

I have found this howto https://yifan.lu/2010/07/26/compilin...amazon-kindle/

and am wondering if anyone else has played with such things?

I started fixing up the kernel I could find for porting postmarketos to kindle dxg but wasn't 100% on what works and is fairly "safe" for developing.

https://gitlab.com/unrznbl/pmaports/...azon-kindledx/

Such as what is the equivalent on kindle dxg for fastboot/recovery and such.

I'll research more as I go of course but figured I'd start a thread to get quicker details from folks who know better than I.

Thanks in advance.
unrznbl is offline   Reply With Quote
Old 11-11-2020, 01:50 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,491
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
The device is likely too underpowered to make anything modern remotely usable, unless you keep it CLI only, in which case, you don't really have to bother as it's already running Linux and getting a root shell is trivial?

----

Otherwise, look at the Alpine images for K5 & up. Which are already dog slow, despite running on much more powerful hardware.

----

Sidebar: You're absolute *NOT* going to be able to use anything other than Amazon's own kernel sources. Even on more modern devices, which are at least based on NXP's own kernel trees, rebasing against newer versions of said tree is a *massive* endeavor, and rebasing against anything more different than that is basically pure masochism.

You don't see a lot of custom kernels for consumer eInk devices, there's a reason for that .

Last edited by NiLuJe; 11-11-2020 at 01:54 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 11-11-2020, 02:33 PM   #3
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
Sure. My main goal is really to have stable usbnetwork and kvncserver. So I might poke at that.

Then again porting openfirmware would be fun right?

Is there some support in there somewhere like diagnostic tools are available right? Which would make flashing as it were fairly safe to iterate on?

Thanks again. Really. You are super helpful, no joke!
unrznbl is offline   Reply With Quote
Old 11-11-2020, 04:30 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,491
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Look at Kubrick, those are mostly unkillable, as long as you can get the tools to behave, which may prove to be the main issue here, because those things are old .
NiLuJe is offline   Reply With Quote
Old 11-11-2020, 05:43 PM   #5
unrznbl
Member
unrznbl began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2020
Device: kindle dxg and touch
Got it. https://bitbucket.org/ixtab/kubrick Looks like a good place to start. Thank you.
unrznbl is offline   Reply With Quote
Advert
Old 11-11-2020, 06:56 PM   #6
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
I've never worked with the older Kindles but there's a few tips I can pass on from working with the KT2 - there's a good chance that not all of these will be applicable to your device:
  • Compile one of NiLuJe's toolchains (the version compatible with your device) and try to build and load some kernel modules before flashing a full kernel - doing this will give you some confidence and allow you to verify that your toolchain works correctly before you do anything that will be tricky to recover from
  • Backup everything before you even think about flashing a self built kernel; you will thank yourself later if things go badly wrong
  • It's a very, very good idea to have a serial cable permanently attached to your Kindle when messing around with the kernel + rootfs - it's likely that you'll brick your device at some point and being able to access it over serial will make life a lot easier
  • If you're starting out, you will probably find it easiest to flash a new kernel using fastboot -
    you can enter fastboot mode from bist or by using the magic key+MfgTool+custom uboot combo (IIRC this is pretty much how Kubrick works)
  • If the ancient kernel version on the DX supports the g_file_storage or g_multi kernel modules, you can directly flash your Kindle with dd without needing to enter fastboot in the first place

Once you've got your toolchain set up and have flashed a few custom kernels successfully, the process is a lot less scary. That said, the real struggle that you're going to face will not be running your own kernel - it'll be tweaking your chosen userspace to allow you to load the firmware blobs and waveforms required by the wifi/wan hardware + screen. Like NiLuJe said above, it's possible to run an Alpine Linux userspace within a chroot (or as a rootfs if you mess around the init scripts first), but you might be disappointed with how slowly it runs and the amount of additional work that'll be required to get all of the hardware vaguely working.
katadelos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blown DXG USB Port? artsybrute Kindle Developer's Corner 2 05-25-2020 07:09 PM
How to get the rootfs of a good Kindle Paperwhite 2 ? Mr.Samuel Kindle Developer's Corner 7 05-16-2016 08:01 AM
Kernel / Rootfs JoeD Kindle Developer's Corner 11 01-12-2015 07:53 AM
where could I find the img file for rootfs of kindle superium Kindle Developer's Corner 8 02-07-2012 09:15 PM
iLiad Linux 2.6 Kernel Port for the Iliad CommanderROR iRex Developer's Corner 6 08-21-2007 08:33 AM


All times are GMT -4. The time now is 07:34 PM.


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