Category Archives: /me

Google Maps su iPhone/iPod firmware 1.1.3

Da un paio di giorni ho aggiornato l’ipod touch al firmware 1.1.3 ma solo ora ho notato che google maps non funziona più… da una veloce analisi si vede che l’applicativo non trova una libreria: colpa di un nome scritto in maiuscolo. Ho risolto con un link simbolico.

# /Applications/Maps.app/Maps
dyld: Library not loaded: /System/Library/Frameworks/GMM.framework/GMM
Referenced from: /Applications/Maps.app/Maps
Reason: image not found
zsh: trace trap /Applications/Maps.app/Maps
# ls -la /System/Library/Frameworks/GMM.framework/
total 280
drwxr-xr-x 3 root wheel 170 Feb 1 08:44 .
drwxr-xr-x 53 root wheel 1802 Feb 1 08:44 ..
drwxr-xr-x 2 root wheel 102 Feb 1 08:44 English.lproj
-rwxr-xr-x 1 root wheel 703 Feb 1 08:44 Info.plist
-rwxr-xr-x 1 root wheel 138872 Feb 1 08:44 gmm
# cd /System/Library/Frameworks/GMM.framework/
# ln -s gmm GMM

# ls -la
total 288
drwxr-xr-x 3 root wheel 204 Feb 1 15:51 .
drwxr-xr-x 53 root wheel 1802 Feb 1 08:44 ..
drwxr-xr-x 2 root wheel 102 Feb 1 08:44 English.lproj
lrwxr-xr-x 1 root wheel 3 Feb 1 15:51 GMM -> gmm
-rwxr-xr-x 1 root wheel 703 Feb 1 08:44 Info.plist
-rwxr-xr-x 1 root wheel 138872 Feb 1 08:44 gmm
# /Applications/Maps.app/Maps

Salerno

Ho passato qualche giorno a Salerno a trovare i parenti di Vivi… probabilmente sarebbe più preciso dire che abbiamo accompagnato Cecco visto che ovviamente tutte le attenzioni erano per lui.

Vacanza riposante e un tempo fantastico, da stare in maglietta… ci voleva proprio.

Un paio di foto…

salerno 2008 vietri

salerno 2008 porto di notte

Clamav troppo lento a partire

Thu Jan 10 10:52:50 2008 -> --- Stopped at Thu Jan 10 10:52:50 2008
Thu Jan 10 10:53:11 2008 -> +++ Started at Thu Jan 10 10:53:11 2008
Thu Jan 10 10:53:11 2008 -> clamd daemon 0.90.1 (OS: linux-gnu, ARCH: i386, CPU: i486)
Thu Jan 10 10:53:11 2008 -> Log file size limit disabled.
Thu Jan 10 10:53:11 2008 -> Reading databases from /var/lib/clamav
Thu Jan 10 11:10:54 2008 -> Loaded 191004 signatures.
Thu Jan 10 11:10:54 2008 -> Unix socket file /var/run/clamav/clamd.ctl

Ma possibile che clamav da qualche tempo ci metta più di un quardo d’ora a caricare le signatures? Le prime volte che mi è capitato pensavo che addirittura si fosse *rotto* qualcosa visto che non arrivava aprire il socket unix…

iMac 17 -> 24

Finalmente mi sono deciso e ho sostituito il mac di casa… ho optato per un iMac 24. E’ arrivato venerdì e dalle prime impressioni direi che non tradisce le apettative, solo le casse interne sono un po’ sacrificate (fortuna che ho sempre a disposizione le mie 20/20

Non pensavo che il mio vecchio iMac 17 che ormai ha quasi 5 anni valesse ancora qualcosa… a parte che me lo hanno già chiesto in 3, mac2sell me lo valuta addirittura 400€!

mac2sell imac 17

Il sw dentro l’iPhone

Ecco un’ottima descrizione delle varie componenti sw di un iphone:

Hello,

I see a lot of confusion recently about various software components inside the iPhone. Here is a small glossary that could help out some people actually understand what we are talking about here:

The iPhone is a small computer with two processors, some RAM and some eraseable FLASH for long-term storage (the 8GB of storage).

ARM Core: This is the processor used to run the Operating System (the OS), which is a scaled down version of MAC OS X. The job of the OS is as a general manager of the phone’s resources (RAM, FLASH, Baseband, etc…) , as well as overview the concurrent running of the phone’s applications.

Baseband: This is the processor that manages all the functions which need an antenna. The GSM phone, as well as the WiFi and bluetooth are all under the control of the baseband processor. The baseband processor has its own RAM and FLASH resources, separate from the ARM core resources. The baseband processor is a resource to the OS.

Boot Loader: This is a (normally) very small program in non-volatile memory (can be FLASH, often is un-eraseable) that ‘bootstraps’ a processor startup and calls the main (usually much larger) program. The boot loaderhas also the responsibility to provide a protocol for obtaining and storing an updated version of the main program. Normally, the boot loader changes very rarely, as there is no need to. It is the main program that gets upgraded, not the boot loader. Also, if something happens during the update of the main program, the boot loader will always be there to save you and restore the main program with a good one. However, when you update the boot loader, if anything bad happens, then you have no more boot loader, which means that the processor will not restart at all. A Brick.

Question: how are bootloaders first programmed into the system? The answer is left as an exercise to the student… :)

The ARM core processor has its own bootloader for restoring the OS, which implements the so-called .

The Baseband processor also has its own boot loader too. That boot loader is a lot more hardened with crypto protection, and will not normally let you update the baseband program with one that is not digitally signed with the special Infineon crypto key. Infineon are the makers of the baseband processor. However, there is a bug in version 3.9 of the baseband bootloader that enables re-programming the baseband even with a version that has the wrong crypto signature. Thus, with a 3.9 boot loader, anything is possible.

However, with the new 4.x bootloader, the backdoor has been closed and we are back to square one: any update to the baseband must be cryptographically signed with the correct signature. That is why no unlock is possible at the moment.

Now, finding the key is next to impossible. For the unlock to work, some people must find a new crack in the bootloader, a new backdoor. Considering that Apple must have put quite a bit of pressure on Infineon in order to have a well protected bootloader this time, I would tend to think that it might take some time before a crack is actually found.

Time will tell.

WHAT HAPPENS WHEN I UPGRADE:

When you upgrade (or restore), the OS will be changed to whatever version you want (1.0.2, 1.1.1, 1.1.2) , however the baseband bootloader will only allow baseband firmware updates UP in the version chain. Never down. Moreover, the bootloader itself is not upgraded or changed in any way (that would be quite daring to do for Apple). Which is why when you restore a UK phone from 1.1.2 to 1.1.1 you still have the new 4.02.13 baseband firmware and bootloader 4.x. It is UNLOCKABLE at the moment. And which is also why you can restore from an original 1.1.1 US phone (with bootloader 3.x) to 1.1.2 (it then has baseband 4.02.13, but still bootloader 3.x), then restore down to 1.0.2 and unlock the baseband 4.02.13 (because bootloader 3.x has backdoor and allows unlock) and then can re-upgrade all the way up to 1.1.2 (only the OS changes, the 4.02 baseband firmware is already there and does not get updated, it is already at highest version, thus it stays unlocked).

Since it is very unlikely that the old 3.9 boot loaders will ever be upgraded via software, and also it is unlikely that a backdoor will be found in the 4.x bootloader, I would tend to think that the market value of iPhones with the 3.9 bootloaders should become much higher very soon…

I hope this helps understand a bit more…

Trovata qui: http://hackint0sh.org/forum/showthread.php?t=16051

Molto utile anche l’iPhone Status Ticker.

Mysql (in) Italia

Oggi sono stato con il Corra al convegno di presentazione di MySQL in italia… principalmente per curiosità.

Bello incontrare di nuovo e scambiare due chiacchiere con gmax ospite dell’iniziativa, per il resto… il risotto ai funghi alla fine non era niente male :-)

A parte gli scherzi ho trovato l’incontro poco utile per i contenuti proposti che erano mirati ad avvicinare le imprese a mysql; molto più interessante conoscere le persone e respirare l’aria di questa prima iniziativa ufficiale.

Prima slide: free != gratis. Wow iniziamo bene… peccato che poi per tutta la presentazione si usi il termine software libero come sinonimo di open source. Peccato anche che parlando poi con il tizio si evidenzi una profonda incomprensione di ciò che sia la GPL (“ti do il sorgente, quindi è sw libero”). Ovviamente il discorso si è fatto caldo quando si è affrontato il discorso delle licenze, anche perché l’argomento è sicuramente complesso e i dubbi palesati dalle stesse persone di mysql non hanno fatto altro che infervorare la discussione. In particolare si è discusso se ad esempio su piattaforma LAMP, realizzando un applicativo NON GPL fosse necessario pagare la licenza OEM per mysql. Per me la rispota è no e trovo una conferma qui e qui.

Interessante invece la questione della distribuzione Mysql Enterprise che viene data con tanto di supporto a chi paga. E’ una distro fatta e testata da Mysql AB facendo una fotografia ai sorgenti in un dato momento e anche questa versione è distribuita in GPL. I sorgenti sono quindi disponibili per chi ha ottenuto legalmente i binari, cioè chi ha pagato. Gli altri possono sempre utilizzare la versione community che è qualche release indietro o scaricare i sorgenti direttamente dal bitkeeper. Anche utilizzando questa seconda strada però è difficile ottenere l’esatta versione dei sorgenti compilati per l’enterprise perché non vengono taggati.

D’altra parte… se io compro la versione enterprise la ottengo in GPL, percui ho il diritto di ridistribuirla in GPL con i sorgenti. In effetti basterebbe ad esempio che debian comprasse una versione enterprise basic (che credo costi sui 400 euro/anno) per poterla recompilare/redistribuire a tutti! (ovviamente senza il supporto!). E’ anche vero che mi sembra proprio una spinta commerciale per vendere il supporto… non credo che essere indietro di 2 o 3 release usando la versione community implichi qualche problema :-)))

Altro pensiero interessante riguardava la divisione di chi utilizza il OSS in due categorie:
+ chi investe tempo per risparmiare denaro (community)
+ chi investe denaro per risparmiare tempo (imprese)
Carino, per semplicità e simmetria.

Cmq, buono il risotto.