01-31-2013, 07:34 AM | #46 | |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Quote:
Great progress in no time! I'd like to help you out but I really have little free time in this period about this: ipcrm -M 0x00008fb5 how did you find out the correct address? Probably the offset on the Glo could be different. Also, since you're on a touch, maybe it would make more sense to base yourself on the 5.3.2 update for the kindle touch rather than the one for the paperwhite, but maybe you're using it already |
|
01-31-2013, 11:32 AM | #47 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
It makes sense, but (unfortunately for the sake of porting) Kindle Touch updates are differential or incremental updates, not the full rootfs image updates.
|
01-31-2013, 11:46 AM | #48 | |
Connoisseur
Posts: 64
Karma: 7786
Join Date: Jan 2012
Device: Kobo Touch
|
Quote:
I got the the shared memory key through strace, but "ipcs" should work as well. Also, I guess it's time to find a clean way to boot the kindle chroot. At the moment I'm just executing the init files manually, but that's not exactly robust. And unfortunately you can't just start upstart and let it do its thing, it seems to work only as PID 1. So I'm a bit stuck on that issue. |
|
02-02-2013, 04:07 AM | #50 | |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Quote:
Right now if I try to start another telnet session while in chroot, connection is refused; probably fixing this would permit to automatically chroot and running upstart at boot, and in case of problems removing that script through ftp/telnet/ssh. |
|
02-02-2013, 12:35 PM | #51 |
Connoisseur
Posts: 64
Karma: 7786
Join Date: Jan 2012
Device: Kobo Touch
|
I found a way to hand over to upstart thanks to a nice person in the upstart irc channel, we can just use the Kobo distribution as a kind of initrd, and use pivot_root plus chroot to make the Kindle fs / and start upstart.
Unfortunately I don't have much if any free time after tomorrow, so I'll just post everything I have working up to now. I got both the 5.1.2 image for the Touch and the 5.3.3 for the Glo somewhat working. The Glo image needed some more tweaks (like manually searching and adding 800x600 images for blanket, plus for the keyboard, and extracting several cramfs images) and doesn't automatically boot into the GUI yet. Fakeproc.tar.bz2 is a LD_PRELOAD library that can redirect some accesses to /proc/board_id etc. to /fake/proc/board_id if copied to the Kindle fs and put into /etc/ld.so.preload, but it doesn't work with busybox and therefore cat since busybox is statically linked. The fb_config stuff is used for configuring the framebuffer, run framebuffer_configure once before chrooting to the Kindle fs and fast_update or fast_update_rot to update the screen. I think update_fb is broken, so just ignore that. It depends on the Xorg configuration wether you need the _rot version or not, if you use the wrong one you'll see errors in dmesg. I modified /etc/init.d/rcS to boot into the Kindle fs when the SD card is inserted during boot or to boot nickel as usual if not. This plus pivot.sh plus the modified Kindle /sbin/init script implements the handover from busybox init to upstart. The handover kills all running processes, including ssh/telnet. So if you want to connect again, look at the kindle /sbin/init. It might be useful to remove a & at the end of one of the netcat lines to stop the Kobo from rebooting because init died. There's also a readme.txt i started writing, it's totally incomplete but I don't want this to just sit around and I won't have the time to finish this in the next few weeks. Be careful about changing mmcblk0 to mmcblk1 everywhere, that's really important. The kindle init scripts like to create new filesystems. I hope I included everything else I did in the attachment, diff it with against the 5.3.3 initscripts to see what changed. Random things that might be useful: Use devcap-encrypt to edit /etc/deviceConfig.conf, there's several reboots that have to be uncommented to get it to not reboot after a few seconds, use initctl list/start/stop to talk with upstart, upstart scripts die if there is even one line that doesn't execute successfully (like echo something > /proc/does/not/exist), use tail -f /var/log/messages to get debug output, if the framework doesn't start try executing everything from prereg.conf/firstboot manually in a terminal, use strace on everything that doesn't work as expected, often files/folders are missing and just have to be created with mkdir/touch etc. What's left to do: Getting it to boot automatically all the way through. Right now it starts only the most basic things, and then requires manual tweaking until it maybe starts X and framework. Getting things like Wifi to work, maybe writing a wrapper for the eink refresh calls to replace the fb_update scripts, getting the buttons to work and a ton more. Maybe someone is interested in continuing this, I hope it's at least a bit interesting to look through. With some more work I'm certain that it's possible to get basic reading functionality in a dualboot setup without having to change the Kobo kernel. Also, I would recommend to start out with an almost empty /etc/upstart and readd things one by one. Really just syslogd, system and dropbear in the beginning and then readd single things while making sure every step works. Else you just get tons of error messages in the logs and have no idea what's going wrong. Last edited by ah-; 02-02-2013 at 12:47 PM. |
04-12-2013, 07:12 PM | #52 |
Enthusiast
Posts: 35
Karma: 946
Join Date: Mar 2013
Device: Kobo Mini
|
Kobo Mini
Hello, is working kindle os in Kobo Mini? And how can i use this in dualboot?
|
05-09-2013, 07:08 PM | #53 |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
I've been having a go at getting this working on my Glo. To get Xorg to start I had to copy the /usr/share/X11/xkb/rules directory from ah-'s debian chroot image to the kindle filesystem. Then X starts just fine after running "initctl start dbus".
When starting /etc/upstart/framework, it first choked on not finding the file /var/local/java/cvm.aot. After I created that file with "touch", the framework gets farther before it spits out this error: "[fake_21d13522] fake_21d13522_ioctl() : unsupported cmd (0x4048462e)" I also get this error when using to initctl to start pillow, splash, and lab126_gui. I can see a mouse cursor that moves when I touch the screen, and I'm able to get the "kindle tree" splash screen to show. There's a loading bar on the bottom that got a little past halfway loading before it stopped. Have you made any more progress, Giorgio? |
05-27-2013, 09:07 PM | #54 | |
Member
Posts: 11
Karma: 204
Join Date: May 2013
Device: Kobo Glo
|
Filling the whole screen on Glo?
Quote:
(For context: I'm running the Debian image from http://andreas.heider.io, I'm not trying to run any Kindle software, just trying to get the X server to display properly.) Thanks in advance! Last edited by a3nm; 05-27-2013 at 09:09 PM. Reason: context |
|
05-28-2013, 11:04 AM | #55 |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
You're correct, the binaries just need to be updated for the larger screen size. I've attached the source code and binaries below.
|
05-28-2013, 06:06 PM | #56 |
Member
Posts: 11
Karma: 204
Join Date: May 2013
Device: Kobo Glo
|
This worked, thanks a lot!
|
03-28-2016, 01:42 PM | #57 |
Connoisseur
Posts: 97
Karma: 28464
Join Date: Dec 2006
|
Has anyone try on glo hd?. Thx
|
04-04-2016, 03:28 AM | #58 |
Enthusiast
Posts: 29
Karma: 13132
Join Date: Jul 2015
Location: Spain
Device: Glo; Glo HD; PW2; Voyage
|
I'm also interested in this working for GloHD. It would be fine if it could use the Regal waveform, I find ghosting from menus and book cover quite annoying. This was solved in Kobo's 1.18, but got back in next version.
It looks like Kobo is unable to release a version without bugs . Most of my books have been bought on Amazon, so this project looks nice. Thank you for sharing! |
04-04-2016, 08:12 AM | #59 | |
Addict
Posts: 256
Karma: 432
Join Date: May 2014
Location: New York, NY
Device: NG,NSTG,NST,AuraHD,OnyxT68,Lynx, BoyueT62,NGP,Aura1,Oasis,Mars
|
Quote:
But I don't see where the fb->vinfo is filled in with the screen resolution. What am I missing ? Thanks, Daniel |
|
04-26-2016, 08:25 AM | #60 |
Junior Member
Posts: 3
Karma: 10
Join Date: Sep 2015
Device: Kobo touch
|
Strongly support!!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
F-Zero 4K, code ported, now it needs dumbing down. WIP... | twobob | Kindle Developer's Corner | 2 | 09-06-2012 10:12 AM |
Android [WIP] Overclocking the PE | plasticarmyman | enTourage eDGe | 16 | 06-11-2012 07:08 PM |
Seriously thoughtful I always knew Windows was a WIP | GeoffC | Lounge | 4 | 02-06-2010 02:20 AM |
Thirty - WIP - comments wanted | ravenlife | Writers' Corner | 20 | 08-16-2009 12:10 PM |
Opinions needed on a WIP ebook | Nate the great | Workshop | 5 | 07-15-2009 11:38 AM |