« July 2012»
M T W T F S S
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

[blog...]

26.02.2013
10:25

Sony Xperia Ray with CyanogenMod 10 (Jelly Bean)

Last weekend, I decided to get rid of Sony Ericsson default firmware on my Xperia Ray phone (from 2011). Biggest problem with the Sony firmware was the so called "bloatware" like WhatsApp, Facebook etc. you couldn't remove.

There are plenty of manuals on the web to do this, but it's rather confusion if you're not used to flash your android phone.

This is, what I used and how I got it working to swith to cyanogenMod 10 (nightly).

First the online resources:

  1.  http://wiki.cyanogenmod.org/w/Install_CM_for_urushi: The Manual on Cyanogenmod - specific for my phone
  2. http://www.themobimag.com/how-to-get-cm10-jellybean-on-sony-ericsson-xperia-rayst18i/: good HowTo
  3. http://www.themobimag.com/flash-85-baseband-on-sony-ericsson-xperia-rayst18i/: HowTo flash even the baseband firmware part

The steps:

  1. Unlock the bootloader:
    • You have to download the Android SDK to have the tiny tool "fastboot".
    • Test if fastboot is working with your computer->usb->phone. To enter the fastboot mode you have to switch off the phone. When the phone is off you press down the volume key AND you plug in the USB-cabel. The LED flashes blue now and you are in fastboot mode.
    • You have to apply for an unlock code from Sony with your phonen IMEI. This code is sent by email to you.
    • With the unlock code you can flash the bootloader. All user settings are gone afterwards!
  2. Get current CyanogenMod nightly and place the zip-archive to /sdcard. Boot your phone as usual to do this.
  3. Put the Google Apps too: Gapps flashable zip
  4. Get the file boot.img from the zip-archive and place it on your PC.
  5. Put the phone in fastboot mode and flash the boot.img onto the device and reboot it afterwards:
    • fastboot -i 0xfce flash boot boot.img
    • fastboot -i 0xfce reboot
  6. Wipe data/factory reset and install the zip-archive and afterwards the Google Apps.
  7. Reboot and wait... 10 minutes for the first time

 

This way, I couldn't make any backup before from the Sony Firmware. With CyanogenMod you can use the new installed ClockworkMod Recovery to make backups and restore them (or parts like /data).

 

My phone is now faster, there is more memory space and I'm really satisfied with this step.

07.05.2012
16:32

TYPO3 Extension Builder - former called Kickstarter

Sometimes it's hard to find up-to-date information about TYPO3 issues in the web. That's of course TYPO3 is so long time in the web and there are forums, mailinglists, 1000s of blogs (like this), wikis and whatever. Another reason is that typo3.org is a really bad indexed website by Google.

 

Today I was looking for the new TYPO3 Extbase Kickstarter. And I was looking and looking and tried the terrible bad search on forge.typo3.org and... got almost mad.

 

Finally I found it here:

And surprice, surprice: It's called Extension Builder now! A good idea to make some difference to the old extension kickstarter. But I missed that point unfortunately.

Now, I'm happy, because the Extension  Builder is part of TYPO3 TER. I don't have to download it by git as early, development version.

Here is some wiki documentation about the new style TYPO3 extension development:

03.05.2012
14:17

Backend Language Caching in TYPO3 4.6

If you get lots of messages of this kind

 

??[lang]: User xyz has cleared the language cache

 

in your new TYPO3 4.6.x then there is a simple solution. Add the following setting to your typo3conf/localconf.php:

 

$TYPO3_CONF_VARS['SYS']['lang']['cache']['clear_menu'] = 'TRUE';

 

 

This will add a menu "Clear Language Cache" to your "Clear Cache" menu. Now the user may manually clear the cache.

 

This also fix now the problem with cache-files and NFS. In our setup, the typo3temp is on a NFS-partition. And there seems to be some race conditions why you get errors like this:

 

Core: Error handler (FE): PHP Warning: 
file_get_contents(/var/www/typo3temp/Cache/Data/t3lib_l10n/a232e71bc72d2771b802cab5b3f429b4):
failed to open stream: No such file or directory in /var/www/typo3_src-4.6.8/t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php line 452

 

Usually the file exists - but maybe too late...

 

05.04.2012
09:49

extbase extensions need comments to work - PHP optimizer must not remove it!

If you develop extbase/fluid extension for TYPO3 you will get in contact with PHPdoc blocks before classes, functions, variables. This is no nice to have feature but required for extbase to e.g. recognize the right data type.

I really have to learn this because I am not used to write PHPdoc blocks. Usually, I only copy an existing block and adjust the description which I find very important.

 

PHP optimizer or accelerators cache the compiled PHP bytecode and/or do other optimizations. Unfortunately some remove the PHPdoc blocks from the source code first. This is the default behaviour of eAccelerator.

 

With eAccelerator and extbase you get this exception thrown:

 

 

#1242292003: could not determine type of argument "section" 
of the render-method in ViewHelper "Tx_Fluid_ViewHelpers_RenderViewHelper".
Either the methods docComment is invalid or some PHP optimizer strips off comments.

 

 

What to do?

  1. compile eAccelerator with option "--with-eaccelerator-doc-comment-inclusion": "If you want eAccelerator to retain doc-comments in internal php structures" (eAccelerator help)
  2. use another PHP optimizer. I use xCache on Debian Squeeze which seems to work fine.

Links:

28.01.2012
08:27

Poulsbo GMA500 driver is going mainline kernel

gma500 on my 1440x900 monitor only on top half

Some days ago, I was brave to do a "do-release-upgrade" call on my fit-pc2. Before it was 11.04 and now I am running Ubuntu 11.10.

 

But of course this only works with my own linux kernel. I had som 3.2.0-rc2 running from november. This kernel won't be replaced by Ubuntu. That's of course, what I wanted.

 

My first problem after upgrade was the music playback. It run too fast (!) and alsa threw error messages about buffer underrun.

 

So, I assumed some problems with my "old" kernel and the updated alsa userland libs/tools. And decided to upgrade the kernel by a fresh "git pull".

 

After this, the music is working again - but where is my gma500 driver gone? It moved from staging to mainline drivers/gpu/drm/gma500/ ?!

Alan Cox started last november the move. And now it will be finished with coming kernel release 3.3. The driver is called gma500_gfx now.

I'm really happy about this!

 

The only thing I had to change, is my kernel config.

 

There is still one issue open: On bootup, the X-server output is only shown in the top half of the monitor.

I found a simple workaround. I just stop and start the lightdm. This "fixes" the issue for me now. I hope this will be fixed in coming versions of the driver.

 

I place my fix in /etc/rc.local:

 

??stop lightdm
start lightdm
[ 26.02.2013 ]