Jornada report status.
2006-11-18 15:43:23 Edytuj
Kristoffer has put first patches into Russell's patch tracking system. I will wait with further development of that features until all of these patches get accepted or rejected.
Today I am working on CPUfreq support. Firstly, I had to enable sa1110 driver for Jornada 720 (in Kconfig). Of course it didn't work - the kernel froze on bootup. After some playing with the code I uncommented some dram timing recalculations in sa1110_target() in arch/arm/mach-sa1100/cpu-sa1110.c and it booted fine.
Then I learned that changing cpu frequency causes the system to freeze.
2.4.32 kernel with Michael Gernoth's jornada 720 patch did cpufreq fine, so I decided to make a comparison. I built 2.4.32 and tried to boot it. For some reason it didn't like the initrd. I tried to force it to use the initrd, but after some time I got bored of it and just did cpufreq calls in init/main.c ;).
I have narrowed down the freeze to some assembly code in arch/arm/mach-sa1100/cpu-sa1110.c. I've printk'ed all values used by this code in both kernels. They appeared different. I forced 2.6 values to 2.4 ones, and voila! 2.6 kernel has slown the cpu down to 59MHz.
Now I just need to determine what causes those changes in values (source data is identical for both kernels). Off to work ;).
Notka dodana do: jornada .
Komentowana 11 raz(y)
0. Nemesis2 | 2007-01-24 17:03:31
I have a question that I think you might be able to answer, or at least help me with. I'm running
Familiar linux on a Jornada 720, using the 2.4.34 kernel from: http://wwwcip.informatik.uni-erlangen.de/~simigern/jornada-7xx/linux-2.4.34-j720-1/.
Is is possible to disable the lcd back light manually? I spend a lot of time being SSHed into the Jornada editing files, etc.,. (Much easier than using console for this) and I hate leaving the back light on all the time. A command line binary or additional entry so I could echo "0" or "1" > /proc/jornada/lcdpower or something would be great. Your the only person I've seen thus far that might be able to (easily) answer this, and or possibly make it happen.
Thanks,
-N2
1.
filip | 2007-01-24 17:47:38
Odpowiedź kierowana do Nemesis2 - komentarz #0.
Use my kernel from http://filip.math.uni.lodz.pl/jornada/kernel/jornada720_kernel-2007-01-24.tar.bz2
You can then set backlight and lcd parameters from standard sysfs interface.
Adding setterm -powersave powerdown -blank 1 should cause it to auto blank after one minute.
2. Nemesis2 | 2007-01-24 19:52:37
Ok, I've installed your kernel and placed the modules in /lib/modules, updated linexec.exe to handle booting the 2.6 kernel (and updated params.txt with root=/dev/hda2 so it won't panic being unable to find the root filesystem). Using the old initrd I'm able to boot into console (MUCH faster screen writes now!) But no modules are getting loaded. If I try to run depmod -a I get: "depmod: QM_MODULES: Function not implemented". So I'm unable to get any modules loaded. Am I doing something wrong?
3.
grzywacz | 2007-01-24 19:53:40
Odpowiedź kierowana do Nemesis2 - komentarz #2.
You have to update your modutils, so that they can handle 2.6 kernels.
4. Nemesis2 | 2007-01-24 20:27:22
Ok, hmmm.. Familiar 8.4 dropped the Jornada line so I can't use ipkg to update modutils.. Do you have a tarball of the ones you've built perchance? Otherwise I'll have to figure out how to do cross compiling on a intel box to build it.
5. Nemesis2 | 2007-01-24 20:47:49
What version would I need?
On the Jornada:
root@jornada720:/etc# /sbin/depmod -V
depmod version 2.4.27
And that seems to be the latest version on ftp.kernel.org/pub/linux/utils/kernel/modutils/
Once again, many thanks.
-N2
6.
grzywacz | 2007-01-24 22:09:12
Oh, sorry. Try this:
ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools
7. Nemesis2 | 2007-01-24 22:31:58
Ok, what secrets do I need to know to do cross compiling? This isn't something I've done before and I'm pulling my hair out trying to get it to even configure, much less compile/link into an arm binary... Is there a howto on how to do this? (I know I need to get this running so I can compile other applications, such as screen...)
8.
filip | 2007-01-24 22:44:27
Odpowiedź kierowana do Nemesis2 - komentarz #2.
Try userland from jlime: http://filip.math.uni.lodz.pl/jornada/bootstrap-image-Donkey-jornada7xx.rootfs.tar.bz2 or just extract needed files.
9.
grzywacz | 2007-01-24 22:48:07
There are no secrets that I'm aware of, but I don't own a Jornada (only a GP2X). Basically you need a working toolchain and basic libs compiled with it. The only gotcha you're going to painfully find out about is that autotools scripts which try to compile&run something fail, as they end up building ARM binaries and executing them on intel, which obviously doesn't go well. :P The solution is either to hack these scripts, or get a full toolchain running in an emulator.
10. Nemesis2 | 2007-01-25 19:15:00
grzywacz: Ok, thanks. I'll try to get a toolchain working on an intel box.
filip: Does the kernel kernel-2007-01-24 have CPUFreq support in it? I'm going to try to implement esekeyd for suspending the system.
And once again guys, thanks for helping a random stranger. :)
Zostaw komentarz
Dozwolone tagi XHTML:
<a> <b> <i> <u> <tt> <code> <pre> <blockquote> <ul> <ol> <li> <acronym>
Link do trackbackowania | Śledź tę notkę (RSS)