Luckily there are a few hardware manufacturers that understand the value of GPL. Or it may be that they don't understand the chinese license agreement from Rockchip. Or it may just be that they understand the underlying GPL agreement, unlike Rockchip. It may be a coincident also, but all the manufacturers providing some of the Rockchip adaptations of the Linux kernel seem to be based outside the people's republic of China. Anyway, it doesn't matter how, what matters is that we finally have a few snapshots of the Rockchip linux kernel adaptations after all.
Unfortunately, from all current available snapshots a lot of the essential code is missing. This makes it a difficult process to get all the hardware components working. Some code parts are delivered in binary object files only, which prevents you from making changes without going through the time consuming process of disassembling and reverse engineering.
I tried to upgrade the MK808 kernel to a higher version of the linux kernel a while ago. Reason for this is to apply common (mainline) patches and enhancements and to add some new features as well. I failed miserably. The device didn't boot, and I came to the point that I had no ways to find out what error(s) I had made. The kernel died early in the boot process. This is a common problem in kernel development. One way to find out what goes on during the boot process is the use of a serial console. I saw this great blogpost a while back about the UG802. It's a similar device using the same Rockchip RK3066 CPU. Although the PCB layout is completely different of course, I imagined that PCB designers would always create ways to debug low-level problems like I had. This is easy to say with the little knowledge of hardware that I have ;-) I looked at detailed images of the MK808 PCB and saw some connector pins that could indicate the possible use of a serial console.
This is where my brother comes in. He has a strong hardware background, always messing around with Arduino's and the like. I asked him if it was as easy as I thought it would be. The short answer was... No, it's not "just" soldering three wires onto the MK808 mainboard and connect them to the serial port of a PC. You have to know, I'm a software guy, so in terms of background my brother and I come from two completely different worlds. He tried to explain the importance of voltage conversion for instance. The PC using 12V whereas the MK808 only uses 3.3V. Talking about the risk of blowing up the device if not being careful. Or why it doesn't make sense to "just" replace the Wifi antenna with a bigger model. I have to say, most of this is all way beyond the scope of my understanding!
Anyway, to cut an already long story a little shorter, my brother came visiting me saturday afternoon and we took the plunge and started to mod the MK808. What I suspected was that the three pins just outside the CPU area were meant for debug purposes. Like on the UG802. This was a long shot of course, but that was just my simplistic way of thinking :-)
With my newly bought soldering iron, multimeter, connectors and a FTDI serial to USB breakout board we started checking out these three pins. We were in luck. The first pin we checked was the receive (RX) pin for a serial console. Tadaaaa! The MK808 booted, and we saw console output on the PC. Wow! After that it was easy to guess the transmit (TX) pin, having only two more pins left, leading to a complete working serial console in no time. How cool is that!
Most time went into putting everything back together. The heatsink had to be put back in place and we needed to get the wires connected to the FTDI board outside the case. We made a connector on top of the device so the FTDI board can now be easily connected and removed if needed. Look for yourself, I think it looks slick, and more importantly, it works perfectly well!
I couldn't have done this without the help of my brother, so all credits go to him. Thanks bro, a job very well done!
Now back to kernel hacking, so hopefully more on that later :-)
For a detailed series of hi-res photo see here
[ 10 comments ] ( 282 views ) | permalink | ( 3 / 1952 )
I'm still testing it, but it seems to have a positive effect in terms of performance.
You have to enable it manually for now. Use a terminal emulator or use "adb shell" to do this more comfortably from your desktop.
To setup a 100Kb (100*1024*1024) zRam:
echo 104857600 > /sys/block/zram0/disksize
To disable the zRam:
Remember this won't survive a reboot, so you have to re-enable it again after reboot.
Download the kernel here (MD5: a89bd97f940cc33c11ca7cc73d521abb)
[ 9 comments ] ( 371 views ) | permalink | ( 3 / 2253 )
I got in touch with "genokolar" today, since he managed to get the camera flash fixed on the U8818. He was kind enough to send me his patches, so all credits go to him for this release. I also added some more overclock frequencies, up to 1.5GHz, but they result in reboots only. At least for now...
I've created a repository on github, so please feel free to fiddle around with the sources yourself.
Download the kernel here (MD5: da9199471e4ce538d2a16bfc1d3dc1c3)
[ 2 comments ] ( 120 views ) | permalink | ( 3 / 2139 )
Download the kernel here (MD5: ccd3c44e20ce1b79b0030341f4c6f68e)
[ 2 comments ] ( 87 views ) | permalink | ( 3 / 2115 )
the top 10 excuses for not blogging for so long my excuse would be... well, I don't have an excuse, I'm still here and that's what counts :-)
I've build a kernel for my Huawei G300/U8815 smartphone yesterday. Based on the Huawei v3.0.8 kernel code, I've added overclocking, governers and I/O schedulers and added some minor tweaks here and there. Not a lot of other features yet, but I'm quite surprised with the results so far in battery life and performance. So see for yourself. Tested with stock Huawei B927 ROM, up to 1.3GHz.
Tested for performance with max 1.306GHz and min 480MHz frequency, governor "Performance" and I/O Scheduler "VR" I get a AnTuTu score of 3542. This is with lots of applications installed and active. Not bad at all I think :-)
Tested for battery life with max 1GHz and min 122MHz frequency, governor "SmartassV2" and I/O Scheduler "VR" for 11 hours. Battery dropped 0%(?!) during that time. While not sure if that's really correct and representative I started using the browser intensively, made a 5min telephone call and used whatsapp. Battery dropped from 75% to 68% during that time. Needs more testing I guess, but please post your results here!
Use something like "No-frills CPU control" from the Market to quickly set the CPU frequencies, Governor and I/O Scheduler to use. Try different options to find out which combination works out best for your specific situation(s).
I packaged the kernel as an "update.zip" so it can be easily flashed from CWM. It only updates the kernel, no need to clear caches or wipe data or anything. Just make sure to have a backup in case you want to go back to the stock kernel.
Needless to say maybe, but I'll do it anyway... Be careful with overclocking your device. Overclocking will cause a CPU to have a shorter life expectancy. Apart from that, I take no responsibility whatsoever if you fry your CPU
Last but not least a shameless plug... there is this nice "Donate" button on the left side of this page. Feel free to use it if you like what you see.
More to come...
Download the kernel here (md5: 1a00982486bbff62907624c2507ebbd9)
[ 7 comments ] ( 394 views ) | permalink | ( 3 / 1997 )
Ubuntu Jaunty (v9.04) was the last version that supports armv5te CPUs. The current versions only runs on the newer ARM processors (armv7+). So that meant I had to re-target all armv7 specific packages to make them work on the (older) armv5te CPUs again. Since this is the only way to get the newer Ubuntu versions going on our beloved Zaurus, it had to be done!
What a work! It probably can be done much quicker, but here's what I did. I took a debootstrap of the ARM (armv7+) version of the official Ubuntu Lucid version to begin with, and started rebuilding all packages one by one, re-targetting them for the armv5te CPUs. Some of the packages need special attention, and others can "just" be recompiled. I have to say, the GuruPlug is really a marvellous piece of hardware, and just perfect for doing this kind of stuff. It's just great not having to concentrate on all these cross-compilation problems you have to deal with when building ARM packages on the i586 platform. I can assure you, the GuruPlug saved me quite some headache!
Before you're going to ask me where all the fun stuff can be downloaded, this post is first of all meant as a status update of the project. Currently I only have the minimal Ubuntu distribution working. All compiled from the original Ubuntu sources, with just minimal changes to some of the packages.
So, no, the complete repository isn't available yet. But I just wanted you all to know that the good news is that it is still possible to get the latest and greatest version of Ubuntu working on our Zaurus. Woohoo!
[ 15 comments ] ( 1662 views ) | permalink | ( 2.9 / 15488 )
PlugComputer arrived last friday. The GuruPlug Server Plus to be exact. What a great little gadget that is. I'm still experimenting, but I'm amazed by the speed. Bottleneck now seems to be the harddrive I'm using, which is a cheap USB drive. So I'll have to pick up a eSATA drive I guess.
Oh, and regarding all reported problems on overheating... no problems here!
This means new possibilities for Zubuntu... More on this later!
[ 4 comments ] ( 457 views ) | permalink | ( 3 / 16147 )
So, there are lots of things to do, meaning I have to spend more hours experimenting, debugging, configuring. -sigh-
First try on getting the htc-hero theme running didn't work. Would by nice to have that working as well...
[ 10 comments ] ( 1902 views ) | permalink | ( 3 / 18769 )
Oh, and yes, I will provide patches and source... When I'm ready. Power management is still not 100% working, so I need more time to fix it. The kernel config can be extracted using the config-module.
[ 7 comments ] ( 742 views ) | permalink | ( 3.1 / 18617 )
Just after releasing version 2.0 I found that there are some things that need to be fixed. I think it's handy when I start a list here with known problems and their solution (whenever I found one). Decide for yourself if it's worth fixing, or if you rather wait for me to upload a new release, which could take a while.
As always, I welcome any feedback, and please report problems, share fixes, enhancements etc.
libqt3-mtisn't installed. Install it with
apt-get install libqt3-mt. If you don't have an internet connection setup download it here and copy the file into
/var/cache/apt/archives, then install it with the command above.
Apart from the missing package you need to move some libraries. Do this with
mv /opt/kdepimpi/lib* /usr/lib. This should make the kdepimpi applications working.
alsamixer, and change the following settings:
Left mixer (is [off], press "M" to enable) Right mixer (is [off], press "M" to enable) Speaker (use "up-key" to turn volume up) Right mixer left (is [off], press "M" to enable) Left mixer right (is [off], press "M" to enable)
You'll find them all the way to the right. Exit
alsamixerby pressing the "cancel" key twice. This should enable sound.
apt-get updatefollowed by
apt-get upgradeto get the latest package updates from the repositories you'll find that some packages bail out with an 'illegal instruction' error. This is due to a bug in libstdc++6. For now, hold your horses and wait before upgrading.
Other things that need to be fixed:
Mapping volume up and down on the back Screen swivel auto rotation
[ updated 01-09-2009 ]
[ 22 comments ] ( 1270 views ) | permalink | ( 2.9 / 17760 )