Help - Search - Members - Calendar
Full Version: [new] Kernel 2.6.24.4 With Cpufreq
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Debian
Pages: 1, 2, 3
ZDevil
Now running this new kernel (hda1) with overclocking (416 mhz -> 624 mhz). Works great. Thank you!
ecc_hy
QUOTE(ZDevil @ Mar 27 2008, 04:06 PM) *
Now running this new kernel (hda1) with overclocking (416 mhz -> 624 mhz). Works great. Thank you!


Is it possible to down clocking? And how to change CPU clock?
ZDevil
Yes, you can. I am using the "CPU config" tool from pdaXrom repackaged by 2or0 for debian.
ecc_hy
After change cpu clock, dmesg shows:
Set frequeny to 62400 with L:16, 2N:6, B:1, Turbo Mode, A:1
Calibrating delay loop.. 622.59 BogoMIPS(lpj=3112960)
sharpsl-pm sharps-pm: Waring: Can not read main battery!

Problems:
1. Calibrate is not work since change cpu freq. I have to reboot to get it working again.
2. Battery status is wrong.

Sometimes I get message:
Unkwnon HZ value! (87) Assume 100.

Why?
ZDevil
Yes... I noticed this also. Is it because the CPU Config tool does not change the voltage accordingly?
ecc_hy
I am not sure the LCD Clock is related to Calibrating or not.

Since PXA270, we should change LCD Clock when cpu clock changed.
The following config is used in mb-applet-powerctrl. They are very stable stable in C1000, C3XXX.

[PXA270]
# do not change below
PathCCCR=/proc/zaurus/CCCR
PathVCORE=/proc/zaurus/VCORE
MaxFreq=5
DefaultFreq=3

#cpu clock, CCCR, VCORE
freq0=104,2000204,4,1
freq1=208,2000206,6,1
freq2=312,2000208,8,1
freq3=416,2000210,a,1
#2000210: CPU clock 416MHz system bus 208MHz LCD104MHz(default)

freq4=520,2000214,c,1
#freq4=520,2000290,c,1
#a000214: CPU clock 520MHz system bus 260MHz LCD130MHz
#2000290: CPU clock 520MHz system bus 208MHz LCD104MHz
#2000214: CPU clock 520MHz system bus 260MHz LCD 64MHz

freq5=624,2000218,e,1
#freq5=624,2000310,e,1
#a000218: CPU clock 624MHz system bus 312MHz LCD156MHz
#2000310: CPU clock 624MHz system bus 208MHz LCD104MHz
#2000218: CPU clock 624MHz system bus 312MHz LCD 78MHz
2or0
As you know, the cpufreq patch has the bug that the kernel shows the error-"Can not read main battery!"- when you change the voltage using dvfm. So I modified the patch by fixing the 412MHz voltage as 1500 mV instead of 1400 mV. At least I don't have the complaint. But I don't know what I have to do to correct the other errors.
ecc_hy
I have never seen a kernel 2.6 change cpu freq of zaurus very well. So we can not get any solution worked.

It is may the best way to reading the kernel 2.4's source related with VCORE and CCCR.
matthis
Dear 2or0, I would like to ask you for a vmlinux version of your kernel.

I am testing a kexec backport for linux arm 2.4, hoping to make it work on the sharp rom.
Unfortunately, it doesn't work with bz kernel images, only with uncompressed images.

So could I ask for a vmlinux version of your latest kernel? (sharp bootloader, hda1 version)

Thank you in advance!
2or0
QUOTE(matthis @ Apr 6 2008, 04:33 AM) *
Dear 2or0, I would like to ask you for a vmlinux version of your kernel.

I am testing a kexec backport for linux arm 2.4, hoping to make it work on the sharp rom.
Unfortunately, it doesn't work with bz kernel images, only with uncompressed images.

So could I ask for a vmlinux version of your latest kernel? (sharp bootloader, hda1 version)

Thank you in advance!


Here is vmlinux for kernel 2.6.24.3. Good luck!
Click to view attachment
gsgmx
QUOTE(2or0 @ Apr 7 2008, 09:41 PM) *
QUOTE(matthis @ Apr 6 2008, 04:33 AM) *
Dear 2or0, I would like to ask you for a vmlinux version of your kernel.

I am testing a kexec backport for linux arm 2.4, hoping to make it work on the sharp rom.
Unfortunately, it doesn't work with bz kernel images, only with uncompressed images.

So could I ask for a vmlinux version of your latest kernel? (sharp bootloader, hda1 version)

Thank you in advance!


Here is vmlinux for kernel 2.6.24.3. Good luck!
Click to view attachment


would a SD version of this kernel work on my cacko 1.23 C1000?
Or would i need an other2.4.20 kernel for cacko in NAND too?

As far as i understand the discussion here, the 2.4.x sharp/cacko Cxxxx could kexec a vmlinux kernel on an SD which also has a root fs.

So a debian EABI started from SD by a running cacko might become an option soon?

George
matthis
To 2or0: Thank you very much for you quick reply and help!! I will report back on any progress.
(Sorry I replied so late I was busy looking for a job.)

Edit1: for the moment things are not looking good huh.gif
After loading the kexec module, "cat ./vmlinux > /proc/kexec" segfaults... will have to look into it.
malik
@2or0> may i ask for a vmlinux sd version of your kernel to test things parallel to matthis? thanx...

speculatrix
QUOTE(nokamoto @ Jan 20 2008, 11:04 AM) *
Hi! Thanks to new version!!

I have 802.11g CF WLAN card(PLanex GW-CF54G) and now it worked!!

http://nokamoto.blogspot.com/2008/01/zauru...x-gw-cf54g.html


that sounds very promising! I'm off to ebay to see if I can get hold of one. Is that driver going to be back-ported to kernel 2.4, so that it'd be possible to use it with Cacko do you think?

--edit--
looks like it's still in beta
http://projects.linuxtogo.org/projects/marvell8385/
ZDevil
QUOTE(speculatrix @ Apr 12 2008, 09:51 PM) *
that sounds very promising! I'm off to ebay to see if I can get hold of one. Is that driver going to be back-ported to kernel 2.4, so that it'd be possible to use it

lol ... I'm ahead of you already ... now awaiting to receive my new cheap toy
QUOTE
--edit--
looks like it's still in beta
http://projects.linuxtogo.org/projects/marvell8385/

Or this?
http://www.handhelds.org/moin/moin.cgi/How...d7836d0329f8ef6
2or0
The kernel 2.6.24.4was built with cpufreq patch. I added the autofs4 module to auto-mount SD and CF card.
http://yonggun.tistory.com/72
ZDevil
Thanks! I really like the new look of your laZy blog... tongue.gif
2or0
QUOTE(ZDevil @ Apr 17 2008, 05:46 AM) *
Thanks! I really like the new look of your laZy blog... tongue.gif


Thank you, It is spring. tongue.gif

I posted simple howto about mounting the SD and the CF card using autofs4 module. Check my blog, please.

Enjoy~
ArchiMark
2or0,

Is it possible to get a hda2 version of your new kernel?

Thanks,

Mark
malik
@2or0 and matthis> is it necessary to have a special vmlinux kernel version to kexec debian from sd
within a nand cacko installation or can i try/use the above vmlinux version?

is there a way to extract vmlinux from a bzimage?
ZDevil
QUOTE(2or0 @ Apr 17 2008, 05:09 PM) *
I posted simple howto about mounting the SD and the CF card using autofs4 module. Check my blog, please.
Enjoy~

Just flashed the hda1 kernel. Very smoothie. Cool.

The autofs module comes so timely! With this I won't miss the matchbox panel applets anymore. This also removes one of the last barriers in my little desktop project. I've created applets for them but it's one for each (CF/SD/USB), which is far from optimal. tongue.gif
speculatrix
so, we've all got use to 2.6.24 and now 2.6.25 has been released!
http://kernelnewbies.org/Linux_2_6_25
2or0
QUOTE(ArchiMark @ Apr 17 2008, 08:09 AM) *
2or0,

Is it possible to get a hda2 version of your new kernel?

Thanks,

Mark


I uploaded it. Try it please.
ArchiMark
QUOTE(2or0 @ Apr 17 2008, 01:54 PM) *
QUOTE(ArchiMark @ Apr 17 2008, 08:09 AM) *
2or0,

Is it possible to get a hda2 version of your new kernel?

Thanks,

Mark


I uploaded it. Try it please.



That was quick, 2or0 !

Just installed it, works well so far...

THANKS!

Mark
matthis
Thank for the new kernel 2or0!
Works very well.
Vitel
Has anybody tried the zImage.bin.sd1 kernel on C1000? It fails to find root partition even with CF flash inserted. I have no such troubles with the 2.6.24.3 version.


2or0
QUOTE(Vitel @ Apr 19 2008, 02:35 AM) *
Has anybody tried the zImage.bin.sd1 kernel on C1000? It fails to find root partition even with CF flash inserted. I have no such troubles with the 2.6.24.3 version.



Someone pointed out both kernels (sd1 and sd2) are for sd1. It is my mistake. I will rebuild the kernel for sd1 and upload soon. Sorry about it.
Vitel
QUOTE(2or0 @ Apr 19 2008, 01:55 PM) *
I will rebuild the kernel for sd1 and upload soon. Sorry about it.

Thanks 2or0!
2or0
QUOTE(Vitel @ Apr 19 2008, 03:43 AM) *
QUOTE(2or0 @ Apr 19 2008, 01:55 PM) *
I will rebuild the kernel for sd1 and upload soon. Sorry about it.

Thanks 2or0!


I uploaded it. Enjoy~
Vitel
QUOTE(2or0 @ Apr 19 2008, 06:12 PM) *
I uploaded it. Enjoy~

It works great, thanks.
canguy247
Hey all,

I was wondering where I can get the headers for these kernels. I need to compile a module for the dm9601 usb ethernet.

Thanks,
Canguy
2or0
QUOTE(canguy247 @ Apr 23 2008, 12:39 PM) *
Hey all,

I was wondering where I can get the headers for these kernels. I need to compile a module for the dm9601 usb ethernet.

Thanks,
Canguy


Here is dm9601 module.
Click to view attachment
canguy247
QUOTE(2or0 @ Apr 23 2008, 05:09 PM) *
QUOTE(canguy247 @ Apr 23 2008, 12:39 PM) *
Hey all,

I was wondering where I can get the headers for these kernels. I need to compile a module for the dm9601 usb ethernet.

Thanks,
Canguy


Here is dm9601 module.
Click to view attachment


Wow!! That was very fast. The only problem is I am getting an illegal module format error. Which kernel was this compiled against? If it was 2.6.24-4 then maybe I need to upgrade...

Also, could you please point me to the headers...do i just grab the regular ones for my kernel version? I just hate having to bother people every time I need something.

Thanks again,
Canguy
2or0
QUOTE
Wow!! That was very fast. The only problem is I am getting an illegal module format error. Which kernel was this compiled against? If it was 2.6.24-4 then maybe I need to upgrade...


This is the module for 2.6.24.4.

QUOTE
Also, could you please point me to the headers...do i just grab the regular ones for my kernel version? I just hate having to bother people every time I need something.


Yes, you can use the regular kernel headers for your kernel version.
luxohr
Hi Yonggun / 2or0,

I'm using your 2.6.22.9 kernel quite a while now,
works great, thank you! smile.gif
I tried the kernel from CF (hda1-kernel) and from SD (sd1-kernel),
both works very well.

Yesterday I got my new Transcend CF card, and I wanted to upgrade
to your 2.6.24.4 kernel for the Sharp boot loader, but the Z didn't
find the root partiton (kernel panic...).
Seems that I am the first one with an Akita who tried your new kernel from CF...

Would you please put new kernels on your page for booting from CF?

Thanx a lot!!


PS: A big THANK YOU also goes to ZDevil !!!
2or0
QUOTE(luxohr @ Apr 25 2008, 07:47 PM) *
Hi Yonggun / 2or0,

I'm using your 2.6.22.9 kernel quite a while now,
works great, thank you! smile.gif
I tried the kernel from CF (hda1-kernel) and from SD (sd1-kernel),
both works very well.

Yesterday I got my new Transcend CF card, and I wanted to upgrade
to your 2.6.24.4 kernel for the Sharp boot loader, but the Z didn't
find the root partiton (kernel panic...).
Seems that I am the first one with an Akita who tried your new kernel from CF...

Would you please put new kernels on your page for booting from CF?

Thanx a lot!!


PS: A big THANK YOU also goes to ZDevil !!!


Do you know which device CF is recognized as in your system, hda or hdc?
luxohr
QUOTE(2or0 @ Apr 26 2008, 10:35 AM) *
QUOTE(luxohr @ Apr 25 2008, 07:47 PM) *
Hi Yonggun / 2or0,

I'm using your 2.6.22.9 kernel quite a while now,
works great, thank you! smile.gif
I tried the kernel from CF (hda1-kernel) and from SD (sd1-kernel),
both works very well.

Yesterday I got my new Transcend CF card, and I wanted to upgrade
to your 2.6.24.4 kernel for the Sharp boot loader, but the Z didn't
find the root partiton (kernel panic...).
Seems that I am the first one with an Akita who tried your new kernel from CF...

Would you please put new kernels on your page for booting from CF?

Thanx a lot!!


PS: A big THANK YOU also goes to ZDevil !!!


Do you know which device CF is recognized as in your system, hda or hdc?



Hi again!

It's my new 16GB CF from Transcend the kernel doesn't want to boot from... sad.gif
Not only under 2.6.24.4... (so I'm off topic in this thread)

I'm a newby in compiling kernels, and I also don't have a cross-compile-environment,
but I bet there's only a special module to include. But which one, if it already exists...?
Maybe we should continue the discussion there:


http://www.oesf.org/forum/index.php?showtopic=20437
kralan
could you include the MPPE module in your next kernel build?
it would come in handy for connecting to M$ VPNs.
maemorandum
Great work! smile.gif 2or0,

One question:
Why are the ip_tables related modules gone in the newer kernel?

Canīt find them in the 2.6.24.3/4 kernel. sad.gif
xdivider
Is there a hda4 version? Im keeping my debian stuff on a 2 gig partition and maintaining the sharp stuff when i need the dictionaries. Found that my prism card wasn't recognized by the 2.6.23 kernel and is hoping it is fixed in the 2.6.24 kernel........
2or0
Updated: Jul. 16 2008
- RNDIS patch
- PRISM2_DOWNLOAD_SUPPORT and PRISM2_NON_VOLATILE_DOWNLOAD enabled
http://yonggun.tistory.com/72



QUOTE(maemorandum @ May 19 2008, 07:55 AM) *
Great work! smile.gif 2or0,

One question:
Why are the ip_tables related modules gone in the newer kernel?

Canīt find them in the 2.6.24.3/4 kernel. sad.gif


Did you check here?
\lib\modules\2.6.24.4-yonggun\kernel\net\ipv4
Capn_Fish
Great! I will be flashing this ASAP!

I think you mean July 16 and not August 16, right?

EDIT: I mean installing the modules ASAP.
2or0
QUOTE(Capn_Fish @ Jul 16 2008, 02:42 PM) *
I think you mean July 16 and not August 16, right?


I fixed it tongue.gif
matthis
Thank you very much!!!
scottlfa
Thanks for this kernel, and ease of flashing without the uboot process. Boots nicely and straight too the SD smile.gif
matthis
Hi 2or0, thanks for your help every time.
Could you provide a lirc module?
I would like to control my tv with my zaurus wink.gif

Thanks in advance
Capn_Fish
QUOTE(matthis @ Jul 22 2008, 11:37 PM) *
Hi 2or0, thanks for your help every time.
Could you provide a lirc module?
I would like to control my tv with my zaurus wink.gif

Thanks in advance

If you get it working, would you mind posing a how-to?
born2wonder
QUOTE(2or0 @ Jul 16 2008, 11:32 AM) *
Updated: Jul. 16 2008
- RNDIS patch
- PRISM2_DOWNLOAD_SUPPORT and PRISM2_NON_VOLATILE_DOWNLOAD enabled
http://yonggun.tistory.com/72



QUOTE(maemorandum @ May 19 2008, 07:55 AM) *
Great work! smile.gif 2or0,

One question:
Why are the ip_tables related modules gone in the newer kernel?

Canīt find them in the 2.6.24.3/4 kernel. sad.gif


Did you check here?
\lib\modules\2.6.24.4-yonggun\kernel\net\ipv4


Hi 20r0 ,

First of thanks for a great debian distro with your latest patches/optimizations that works (almost) flawlessly on my c1000 (though I had to extract rootf and flash the kernel manually).

I am trying to get some network penetration software working on my C1000 running andromeda with latest yonggun kernel , sharp bootloader on a 4G sd.
I tried running a MITM (man in the middle ) attack using ettercap (GTK) on my home network but had no success ,while i can do it with my linux laptop on the same network just fine.

I get the following error in the the console while starting sniffing in ettercap:
CODE
iptables v1.4.1.1: can't initialize iptables table 'nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I have also enabled forwarding in the configuration files in ettercap so as to use iptables and i enabled IP forwarding in /proc/sys/net/ipv4/ip_forward

Googling around led me to this needed modules

which says that i need these modules :

modprobe ip_tables
modprobe ip_conntrack
modprobe iptable_filter
modprobe ipt_state

Through lsmod i see i have iptable_filter and ip_tables loaded but not the other two. I have searched through the whole root filesystem (/) but they are not there, even in \lib\modules\2.6.24.4-yonggun\kernel\net\ipv4. Can you please add the remaining two to your next kernel or as separate modules?

If there are other solutions that to fix this problem , please let me know

You can get the same error if you type :
CODE
iptables -t nat -L -n

Any one managed to get ettercap to work properly ??

Thanks again 20r0 for your amazing contributions to the zaurus community!


born2wonder
UPDATE: (Partial success)

i tried the MITM attack (ettercap) using my laptop on my home network and noticed i get the same error (can't initialize 'nat' table) that i get on the zaurus but it works on my laptop running ubuntu so i figured that this error might not be the root of the problem. After trial and error i came to a solution of steps that will make my zaurus so as to be able sniff through ettercap but it still cannot handle sites that use ssl so as to create and fill fake ssl-certificates on the fly.

Now the other error on the z that does not appear on my laptop is : dissector 'dns' not supported (etter.conf line 70)

line 70 in etter.conf reads dns=53

The commands corresponding to the ssl dissection used by ettercap are :

redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

Also the extra modules which i think are needed to be able to do this ssl redirectio that appear on my laptop and not on the zaurus are :

ipt_REDIRECT
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_conntrack

On the zaurus i have iptable_mangle loaded instead of the ones above (among the common ones in both; ip_tables, iptable_filter and x_tables)

Any ideas any1 to get ssl sniffing working ? or how to get (some of) these modules ?

Thnx in advance

maemorandum
QUOTE(born2wonder @ Jul 31 2008, 08:57 PM) *
UPDATE: (Partial success)

i tried the MITM attack (ettercap) using my laptop on my home network and noticed i get the same error (can't initialize 'nat' table) that i get on the zaurus but it works on my laptop running ubuntu so i figured that this error might not be the root of the problem. After trial and error i came to a solution of steps that will make my zaurus so as to be able sniff through ettercap but it still cannot handle sites that use ssl so as to create and fill fake ssl-certificates on the fly.

Now the other error on the z that does not appear on my laptop is : dissector 'dns' not supported (etter.conf line 70)

line 70 in etter.conf reads dns=53

The commands corresponding to the ssl dissection used by ettercap are :

redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

Also the extra modules which i think are needed to be able to do this ssl redirectio that appear on my laptop and not on the zaurus are :

ipt_REDIRECT
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_conntrack

On the zaurus i have iptable_mangle loaded instead of the ones above (among the common ones in both; ip_tables, iptable_filter and x_tables)

Any ideas any1 to get ssl sniffing working ? or how to get (some of) these modules ?

Thnx in advance



Use the old kernel (23.9) with the integrated ip-tables modules. This will work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.