Jun 11 2010, 11:35 AM
Post
#1
|
|
|
Group: Members Posts: 16 Joined: 14-April 10 From: Czech Republic Member No.: 67,997 |
Hi,
as I had Hackweek 5 at work, I had a look into Netwalker's kernel a bit. My aim was to port latest Netwalker's coe which can be found in Ubuntu 2.6.28 araneo kernel sources to latest 2.6.31 Freescale kernel. I'm not telling I'm kernel expert but I gave a try. At the end of this week I abandoned this idea I have never seen such mess. As some of you alrerady know, there is no machine ID dedicated to Netwalker. There is used one for Babbage board which is quite (but not completely) similar. Unfortunately this machine ID is used in RedBoot - the Netwalker's bootloader, so to do things correctly NOR flash where RedBoot is located need to be altered and you can brick your device when this is not done correctly. Great! When this is done, change in current kernel is quite cosmetic. Unfortuinately - this is the lesser problem. Bigger problem is that board configuration is written in headers statically and #ifdefs are ensuring that right HW is used. This would mean maintaining separate kernel tree for Netwalker and porting to newer versions will be always pain. As the biggest pain I find fact that there are widespread #ifdefs in 46 files in different areas of kernel altering code slightly for Netwalker. That means a LOT of time to do things correctly and maintainable. It seems that these changes were done by Nissin Systems Co.,Ltd. - thanks for hardly maintainable code! I abandoned porting code to Freescale's kernel but I hope there is way to do it correctly in upstream. That will be my long term focus. Best regards, Sleep_Walker UPDATE: it seems that some files contain some partial backport of newer kernel features and statistic measurement so the count of files which needs to be reworked is a bit smaller. It also seems that hidden cursor in framebuffer console is ugly handled feature, not bug. Authors didn't want to have SHARP logo (which seems to be easily altered) disturbed by blinking cursor. UPDATE2: Yes! Got blinking cursor - what a relief... |
|
|
|
![]() |
Jun 14 2010, 02:20 PM
Post
#2
|
|
|
Group: Members Posts: 16 Joined: 14-April 10 From: Czech Republic Member No.: 67,997 |
I posted "patches" here.
|
|
|
|
Jun 14 2010, 09:04 PM
Post
#3
|
|
|
Group: Members Posts: 33 Joined: 5-December 05 From: Seattle, WA Member No.: 8,669 |
Hi Netwalker,
Thanks for the info on getting the cursor back. I also found this very annoying. It seems somewhat painful compiling the kernel from scratch on the Netwalker. Do you use a cross compile environment or virtual machine or did you just do it on the Netwalker? Regards, Stefan I posted "patches" here. |
|
|
|
Jun 14 2010, 11:32 PM
Post
#4
|
|
|
Group: Members Posts: 16 Joined: 14-April 10 From: Czech Republic Member No.: 67,997 |
Hi Netwalker, hehe, Sleep_Walker is nick, Netwalker is device Thanks for the info on getting the cursor back. I also found this very annoying. It seems somewhat painful compiling the kernel from scratch on the Netwalker. Do you use a cross compile environment or virtual machine or did you just do it on the Netwalker? Well, I'm mostly compiling on Netwalker since it is comfortable and I can do it everywhere (doctor, shopping, etc |
|
|
|
Sleep_Walker Netwalker's Kernel Jun 11 2010, 11:35 AM
Sleep_Walker Ok, there are also some positives of this digging.... Jun 11 2010, 11:55 AM
ptoki QUOTE(Sleep_Walker @ Jun 11 2010, 09:55 P... Jun 11 2010, 01:13 PM
Sleep_Walker QUOTE(ptoki @ Jun 11 2010, 11:13 PM) QUOT... Jun 13 2010, 01:33 AM
propofol QUOTE(Sleep_Walker @ Jun 15 2010, 12:32 A... Jun 15 2010, 09:07 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 06:04 AM |