Posts

rootfs trial

I've spent much time playing with different build systems such as buildroot, openwrt and openembedded. And here's some conclusions: X-based environment (even with kdrive) such as gpe are almost unsuitable on machines with 32mb ram. Xfbdev is too fat, it eats all memory, and leaves nothing for applications. opie is usable, but too old. And unsupported. the only way is directfb+gtk. gtk for directfb is well supported, because debian installer is gtk-directfb based. Also there's libsdl port to directfb. Neat :) So, we need some gtk-based DE for PDA, but unfortunately almost all of them depends on X. I'm goint to try port gpe, or something like this on gtk-directfb after I'll finish kernel-side support for rx1950. Stay tuned ;)

Some stuff for rx1950

New kernel (still without sound support), bootloader (haret) and rootfs are available. Also here you'll find repo with packages for rx1950 :)

LCD backlight

It seems that we have no more issues with LCD and backlight management. LCD switches on/off flawlessly, so does LCD backlight :) I've just fixed a problem with backlight not enabling after it was disabled. I've discussed PWM-problems with my friend Ordog (it's his nickname), and he suggested to play with PWM frequency; he described how it can work, and proposed some reasons why it doesn't enable in my case. I decided that backlight needs wormup to switch on properly, I've checked this hypothesis - and it works! Backlight switches on properly after short "warmup". So, thanks to Ordog! Yesterday I've submited my patchset to the linux-arm-kernel maillist. I still have no response about rx1950-related patches, but s3c2440-udc related patch brought up small discussion. You can read it on linux-arm-kernel maillist archive if you're interested in it :)

LCD: no more garbage

Finaly! I find out how to disable LCD without leaving garbage on it! It's time to polish my patches and send them upstream :) I've used haret to capture gpio values. Here's code to disable LCD sanely: /* GPC11-GPC15->OUTPUT */ s3c2410_gpio_cfgpin(S3C2410_GPC11, S3C2410_GPIO_OUTPUT); s3c2410_gpio_cfgpin(S3C2410_GPC12, S3C2410_GPIO_OUTPUT); s3c2410_gpio_cfgpin(S3C2410_GPC13, S3C2410_GPIO_OUTPUT); s3c2410_gpio_cfgpin(S3C2410_GPC14, S3C2410_GPIO_OUTPUT); s3c2410_gpio_cfgpin(S3C2410_GPC15, S3C2410_GPIO_OUTPUT); /* GPC11-GPC15->1 */ s3c2410_gpio_setpin(S3C2410_GPC8, 1); s3c2410_gpio_setpin(S3C2410_GPC9, 1); s3c2410_gpio_setpin(S3C2410_GPC10, 1); s3c2410_gpio_setpin(S3C2410_GPC11, 1); s3c2410_gpio_setpin(S3C2410_GPC12, 1); s3c2410_gpio_setpin(S3C2410_GPC13, 1); s3c2410_gpio_setpin(S3C2410_GPC14, 1); s3c2410_gpio_setpin(S3C2410_GPC15, 1); /* Wait a bit here... */ mdelay(100); /* GPD2-GPD7->OUTPUT */ s3c2410_gpio_cfgpin(S3C2410_GPD2, S3C2410_GPIO_OUTPUT); s3c2410_gpio_cfgpi...

Some words about what's going on...

I've got 5 minutes of spare time, so I decided to drop couple of lines into my blog. I've started to bring up kernel from linus' tree on rx1950. Basic functional (no battery, no touchscreen, no sound, no wifi) works. I'm going to submit patches to linux-arm-kernel soon. (About touchscreen: I hope guys from openmoko kernel-team will submit their s3c-ts driver. If they don't I'll submit my own version.) If anyone is interested, I can share patches. BTW, I doubt that they will be usefull for someone in current state :)

rx1950 and upstream haret

Finally got issue with mainline haret not booting linux on rx1950 fixed. It was so trivial... Haret modified by Denis Grigoriev initializes uart, mainline haret does not. Linux can't boot on s3c24xx with uart unitialized when it uses uart for low-level messages due to bug. Fix for kernel was submited by Juergen Beisert in August, 2009 and can be found here . Patches for haret (with workaround and proper rx1950 detection) can be found here . Update: I've submited patch that adds configurable kernel offset to haret maillist. It seems that mainline haret will be able to boot linux on rx1950 soon :) 2nd update: My patches were included into mainline haret. Neat :)

LVEE'09

Last week I took part in LVEE'09. LVEE stands for Linux Vacarion/Eastern Europe and it is an international conference of developers and users of free / open source software. Conference format includes reports, workshops, and round tables. Unfortunately I had no time to prepare my own report, so I was just a listener. Report's thematic was very wide and included: embedded and mobile linux (openmoko, maemo, and some proprietary solutions, for example one from zyxel) IP-telephony solutions (asterisk) using opensource software in different fields, such as: medicine, business, journalism virtualization technologies After reports in evening there were so-called non-formal discussions, where participants discuss about reports, share their experience, etc. Of course, important part of conference is cooking shish kebab :) In general, lvee'09 was great! Here's photo report: http://picasaweb.google.com/anarsoul/LVEE09#