Author Topic: Optimized Kernel (with SWAP)  (Read 16085 times)

EvilHimself

  • Guest
Optimized Kernel (with SWAP)
« on: June 12, 2010, 06:15:33 pm »
Menelkir, a Brazilian dev, is testing a optimized kernel for dingux.

I dont tried it yet, but seems to be good.

Besides the speed, the most important thing is the SWAP function, who enables bigger games to work on mame4all.

Dont know why nobody posted it here yet, because i think it's too much important to stay only in Brasil.

Here is the link of the news:
http://www.dingoobr.com/?p=2747

Here is the forum post:
http://www.dingoobrasil.com/desenvolvimento-f20/menelkir-kernel-for-dingux-t211.htm


Here the Google translated page of the forum:
http://translate.google.com/translate?u=http%3A%2F%2Fwww.dingoobrasil.com%2Fdesenvolvimento-f20%2Fmenelkir-kernel-for-dingux-t211.htm&sl=pt&tl=en&hl=&ie=UTF-8


And here the file:
http://www.4shared.com/file/V4iBWrMx/Menelkir_Kernel__Alpha__04.html


« Last Edit: June 14, 2010, 07:33:36 pm by EvilHimself »

SiENcE

  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Optimized Kernel
« Reply #1 on: June 12, 2010, 06:54:05 pm »
Mh.

Do you can confirm all this?

I don't think it's usefull, that everybody compiles his own kernels. He should help the OpenDingux team!

EvilHimself

  • Guest
Re: Optimized Kernel
« Reply #2 on: June 12, 2010, 07:56:12 pm »
Yeah, I dont think its useful ether.

But from what is said in the forums, he is testing everything first to launch the "final" edited kernel.

And I dont know if he can speak english too, that is a problem.

eule

  • * Former Staff
  • Posts: 889
Re: Optimized Kernel
« Reply #3 on: June 12, 2010, 08:23:19 pm »
Well, sounds very promising, especially the swap function! I can almost smell DoDonPachi and EspRaDe running on my Dingoo... ;D

Is it really a bad thing if there are many custom kernels? I mean, if people/I can change the zimage they/I should be able to revert it again if they/I f**k things up.  :D

I understand that a concentrated effort is important too, but maybe the dev decided for freedom?  ;D
« Last Edit: June 12, 2010, 08:25:00 pm by eule »

mth

  • Posts: 317
Re: Optimized Kernel
« Reply #4 on: June 13, 2010, 01:17:17 am »
I think it's good if a lot of people experiment with different types of kernels. This can give insight into which configurations work well on Dingoo and which do not.

For the users however, I think it is important to gather all kernel improvements in one central place. Otherwise, they will have to choose for example whether to use a kernel with TV-out or one with more memory. OpenDingux was started to gather the improvements and create a kernel and rootfs that can easily be maintained. We want to stay up-to-date with new development in Linux itself, so we based OpenDingux on the kernel from Qi Hardware (the people who made the Ben NanoNote, specifically Lars-Peter Clausen who wrote most of the drivers) and are porting booboo's customizations to that. The Qi Hardware drivers are currently undergoing review and will most likely be integrated into Linus' tree (Linux mainline), maybe as soon as version 2.6.36.

There are different opinions about whether it is better to stay up-to-date or to pick one version and stick to that. booboo was in the latter camp, intending to stay on version 2.6.24 forever. OpenDingux wants to keep up with new Linux releases; currently we are at 2.6.34 which is the latest stable release. So far this worked out well, since it was relatively easy to integrate zram to compress data that is swapped out in RAM. This is faster than swapping to SD card and there are no (real or imagined) risks of exhausting the writes of the card, but it gives less extra memory since the compressed data still takes up some space. Also, the OpenDingux kernel does not seem to suffer from the SD corruption issues that booboo's kernel has, although we still need someone to thoroughly test it to make sure.

If we can get more volunteers we can progress faster. So Menelkir or anyone else is welcome to join us. We usually hang out on #dingoonity on freenode IRC.

qbertaddict

  • * Former Staff
  • The Doctor
  • Posts: 1184
    • about.me
Re: Optimized Kernel
« Reply #5 on: June 13, 2010, 03:18:01 am »
I didn't post anything about it because I tried it and it didn't make much if any difference at all and the games that he said were now supported still crashed. Others on the board at dingoobr were having issues as well but I havent checked the thread in a while so maybe the bugs have been worked out. I will test it out and see if it has changed any tonight at work.

10basetom

  • Posts: 288
    • tohodo.com
Re: Optimized Kernel
« Reply #6 on: June 13, 2010, 04:35:03 am »
Has anyone contacted Menelkir to invite him to join the OpenDingoo effort? Maybe s/he doesn't even know it exists. We need everyone to get on one boat to sail to the moon.

EvilHimself

  • Guest
Re: Optimized Kernel
« Reply #7 on: June 13, 2010, 03:12:27 pm »
I didn't post anything about it because I tried it and it didn't make much if any difference at all and the games that he said were now supported still crashed. Others on the board at dingoobr were having issues as well but I havent checked the thread in a while so maybe the bugs have been worked out. I will test it out and see if it has changed any tonight at work.

That is because you need to create a swap file.
I dont know how to create that.
If someone know how, please, post that.
And the issues is because the copy order: format => zImage => rootfs => local
« Last Edit: June 13, 2010, 03:15:01 pm by EvilHimself »

mth

  • Posts: 317
Re: Optimized Kernel
« Reply #8 on: June 14, 2010, 03:03:52 am »
Linux does not swap to file, it swaps to a block device, such as a hard disk partition. With Menelkir's kernel, you'd have to create a partition on the SD card, set the partition type to "Linux swap" and run "mkswap" to initialize it. Then every time Linux boots, the swap partition should be mounted as swap; this is typically done via /etc/fstab.

pasteur

  • Posts: 40
Re: Optimized Kernel
« Reply #9 on: June 14, 2010, 05:00:06 am »
It is possible to use a file as a swap file on linux. I used the method on Zaurus SL-C1000.

pasteur

  • Posts: 40
Re: Optimized Kernel
« Reply #10 on: June 14, 2010, 05:07:32 am »
Making & activating a swap file(64MB)

dd if=/dev/zero of=/boot/.swap bs=1024 count=65536 →Creating an empty file (64MB)
mkswap /boot/.swap
swapon /boot/.swap →Swap on
free → Confirm whether the swap is on or not.
swapoff /boot/.swap → Swap off

I didn't try it on my dingoo, but it should work on dingux.
« Last Edit: June 15, 2010, 12:32:39 am by pasteur »

EvilHimself

  • Guest
Re: Optimized Kernel
« Reply #11 on: June 14, 2010, 07:17:22 pm »
Making & activating a swap file(64MB)

dd if=/dev/zero of=/boot/.swap bs=1024 count=65536 →Creating an empty file (64MB)
mkswap /boot/.swap
swapon /boot/.swap →Swap on
free → Confirm whether the swap is on or not.
swapoff /mnt/card/.swap → Swap off

I didn't try it on my dingoo, but it should work on dingux.

It works? how i do that commands on dingux?

santino

  • Guest
Re: Optimized Kernel (with SWAP)
« Reply #12 on: June 14, 2010, 09:07:34 pm »
Make a script or connect it via usb and start a telnet session.

EvilHimself

  • Guest
Re: Optimized Kernel
« Reply #13 on: June 16, 2010, 02:45:47 am »
Making & activating a swap file(64MB)

dd if=/dev/zero of=/boot/.swap bs=1024 count=65536 →Creating an empty file (64MB)
mkswap /boot/.swap
swapon /boot/.swap →Swap on
free → Confirm whether the swap is on or not.
swapoff /boot/.swap → Swap off

I didn't try it on my dingoo, but it should work on dingux.

Worked flawless!

A LOT of games is working now on mame4all
DoDonpachi worked on mame4all
ESP ra de worked, but with bad GFX
« Last Edit: June 16, 2010, 02:51:44 am by EvilHimself »

TheCaffeinator

  • Posts: 128
Re: Optimized Kernel (with SWAP)
« Reply #14 on: June 16, 2010, 04:56:09 am »
How did you run the code?

wy_scorpio

  • Posts: 368
Re: Optimized Kernel
« Reply #15 on: June 16, 2010, 05:19:43 am »
Making & activating a swap file(64MB)

dd if=/dev/zero of=/boot/.swap bs=1024 count=65536 →Creating an empty file (64MB)
mkswap /boot/.swap
swapon /boot/.swap →Swap on
free → Confirm whether the swap is on or not.
swapoff /boot/.swap → Swap off

I didn't try it on my dingoo, but it should work on dingux.




Worked flawless!

A LOT of games is working now on mame4all
DoDonpachi worked on mame4all
ESP ra de worked, but with bad GFX

i make a script file like...


dd if=/dev/zero of=/boot/.swap bs=1024 count=65536 →Creating an empty file (64MB)
mkswap /boot/.swap
swapon /boot/.swap →Swap on
free → Confirm whether the swap is on or not.
swapoff /boot/.swap → Swap off


but with the code ,it doesnt work
what are correct code about?

pasteur

  • Posts: 40
Re: Optimized Kernel (with SWAP)
« Reply #16 on: June 16, 2010, 06:21:34 am »
You entered the comments after '→', didn't you?  :)

I made a set of very simple scripts. Copy these files in any directory on your sd card, and execute them using your favorite menu app.

Before using script you should make a empty file.

In windows xp command prompt :

Code: [Select]
[s]fsutil file createnew .swap 67108864[/s]
and copy the created .swap to the directory where the scripts are.

mkswap.sh : Run this only once. Once you run this, never execute this again unless you deleted /boot/.swap.
swapon.sh : Run this in situation like playing heavy game in mame, etc.
swapoff.sh : Run this if you want to deactivate swap manually.

link fixed :
dinguxswap.zip

Can anyone test?


See http://boards.dingoonity.org/dingux-development/optimized-kernel/msg17413/#msg17413
« Last Edit: June 16, 2010, 08:34:30 am by pasteur »

wy_scorpio

  • Posts: 368
Re: Optimized Kernel (with SWAP)
« Reply #17 on: June 16, 2010, 06:29:12 am »
if i make a .sh file like these?

makeswap.sh

dd if=/dev/zero of=/boot/.swap bs=1024 count=65536
mkswap /boot/.swap

swapon.sh

swapon /boot/.swap


swapoff.sh

swapoff /boot/.swap



are these .sh file correct?

wy_scorpio

  • Posts: 368
Re: Optimized Kernel (with SWAP)
« Reply #18 on: June 16, 2010, 06:35:06 am »
You entered the comments after '→', didn't you?  :)

I made a set of very simple scripts. Copy these files in any directory on your sd card, and execute them using your favorite menu app.

mkswap.sh : Run this only once. Once you run this, never execute this again unless you deleted /boot/.swap.
swapon.sh : Run this in situation like playing heavy game in mame, etc.
swapoff.sh : Run this if you want to deactivate swap manually.

dinguxswap.zip


i cant open the download link...
if you can sent the script to my email?thanks

[email protected]
« Last Edit: June 16, 2010, 06:52:11 am by wy_scorpio »

pasteur

  • Posts: 40
Re: Optimized Kernel (with SWAP)
« Reply #19 on: June 16, 2010, 07:08:17 am »
You entered the comments after '→', didn't you?  :)

I made a set of very simple scripts. Copy these files in any directory on your sd card, and execute them using your favorite menu app.

mkswap.sh : Run this only once. Once you run this, never execute this again unless you deleted /boot/.swap.
swapon.sh : Run this in situation like playing heavy game in mame, etc.
swapoff.sh : Run this if you want to deactivate swap manually.

dinguxswap.zip


i cant open the download link...
if you can sent the script to my email?thanks

[email protected]

I reuploaded. Sorry for incorrect script files...

 

Post a new topic
Post a new topic