sorry guys
i tested this script in this particular setting only:
pdax beta3 and lower
kernel 2.4.x of course
on my C860
my newly r197 doesn't work for these values and /dev/ .
But you can still underclock like I showed above.
I had a talk with kernel developer about this and it turns out that overclock on pxa255 is possible but not implemented.
Some things that everyone should ponder about about overclocking:
Z case is plastic (not good heat conductor)
overclocking inevitably produces more heat
depending on a bunch of factors like ambient temp and how close to abslolute maximum temp rating Sharp implemented the Z it could turn out that overclocking for long periods with heavy cpu load may permanently damage the Z.
This may be one of the reasons why overclock has not been implemented for pxa255.