Build CM10 for Nexus 7

How To intro
The actual How To
Guide for nook that is referred to

My notes:

  1. It does not work on 32 bit Ubuntu 12.04 since you can only compile jellybean on 64 bit O/S.  I learned this the hard way.  Thank goodness I have unlimited broadband.
  2. You can do apt-get install eclipse on Ubuntu 12.04 and you get eclipse and java, contrary to the out of date google instructions.
  3. To install libncurses5-dev you can do
    sudo apt-get install libncurses5-dev:i386
  4. Did repo sync -j16.  It started at three pm and ended the following day after two restarts, and the one that worked was using -j10.
  5. Did . build/envsetup.sh so that the lunch command would work
  6. Did
    croot
    brunch grouper
    to build the rom and waited a long time.  I got a warning about java that made no sense – telling me I neded java_6.0.x but I only had java_6.0.34 or something.  There was also a warning at the start, but it ran OK.  For hours and hours on my Inspiron 1525 (Celeron 900 at 2.2 GHz Processor).  I went to bed.
  7. It failed.  It turned out I should have done
    cd ./android/system/vendor/cm/
    ./get-prebuilt
  8. Left it building with the step 6 again and went to work.  I came back to it nearly being complete but no .zip file 🙁
  9. I worked out that the ./get-prebuilts had not worked.  I looked at the script and worked out that the Term.apk was “file not found”. I installed the Android Terminal Editor on my nexus, found the file in /data/app using root explorer, sent it to dropbox, downloaded it, renamed it to Term.apk, commented out the two curl lines in get-prebuilts and ran it again. It worked. I love the internet. No idea if it solves my build problems, but I am closer. 
  10. Build problems not solved!!  Had to install several more packages and was put on to this thread that helped:
    http://forum.xda-developers.com/showthread.php?t=1505006
  11. Found I also needed to install xsltproc
  12. Tried compiling again and went to bed waited eagerly to see what would happen since it seemed to be working.
  13. SUCCESS!

Using Ubuntu 12.04 to view files on Google nexus 7 using USB and MTP

Like many others I had problems making my files visible on Ubuntu 12.04. In the end I got all I needed from nexus7tablethelp.com but had to use the tip in the comments from Daniel to make it work better.  This does not give me access to “sdcard” on the nexus 7 so I am still stuck downloading anything like backups.

I’m assuming that by Ubuntu 12.10 this functionality will be native, but at least I have some access now.

1998 Lotus Elise S1: Driving Light replacement

The problem

I can’t remember how long my driving light has been broken.  I suspect it is nearly the whole life of the car.  It does not affect the MOT and garages say that the front clamshell needs removing to replace it, so my thinking never got further than a heavy sigh.

A little while ago I got so cross with my losse engine cover that I started searching the web for a solution.  I soon found one and surprised myself by fixing it pretty quickly.  Thanks to the lovely people at SELOC who had compiled instructions from their experiences I had very clear outline of what to do.

First steps

My only issue was at the start.  On the Elise S1 there are plastic screws holding on the grill.  I have spares that I have gathered over the years so cut the heads off mine using a Stanley knife.  Both (and I was forewarned after the first one) shot in to the undertray.  At least I assume that they did because I could not find them anywhere.  I guess they will kick around for ever like the Maglite torch that some engineer dropped when it was being manufactured and was pulled out years later.  The clunk-clunk-clunk as I went round corners had mystified me for some time.

Double check you remove the right lug.

After getting the grill off, it was plain sailing.  I snipped off the upper outer lug with pincers, and used the same tool to break off the screws in the other lugs.  I assume that they are for a later model Elise, which is no doubt easier to work with.  I checked and checked again that it was the correct lug.  I imagine it comes off to make it easier to put the new one through the hole. The only step I took issue with on the guide was to put Vaseline on right at the start.  It got in the way  and I kept smearing it around (which annoyed me) so I wiped it off and added it at the last minute.

This *just* fit the bolt, which came in useful later.

I cut the slot for the nylon screw using a junior hacksaw.  It was a perfect fit after a little filing.  This helped when fitting it over the screw later since it was fiddly and it helped me that the light could hold itself in place whilst I changed grip.  I was replacing the springs with stainless steel ones.  The springs are stiff enough that compressing them with a screwdriver is not that easy.

I found it easy to replace at its full length

The guide says that you need to cut down the lower outer screw to fit it.  I had no problem getting it in at its full length and also found that once it was in place I could turn it with a long thin screwdriver even when the light was fitted.  The red tape was to protect the paint from the screwdriver when the screw was far out.  Not that the paint is in its first flush of youth after 14 years.  The bulb in the old light appeared to be dead so I replaced it with the new one, but that didn’t work either.  Luckily a magic wiggle of the lead seemed to sort it out.  I hope it lasts.

In this photo it looks a bit wonky, but it is fine.  Happy days.

I fitted plastic covers to the lights which will hopefully prevent another broken light.  I rather regret buying the full fitting kit because I could not face taking out the other light just to replace some springs.  I had no idea what the washers were for either.  I am very happy to finally have the car looking its proper self again. A big thank you to the people at SELOC for their time to make the guide.  They said it would take an hour if you took it slowly and this is exactly how long it took me.

Phone micro USB dead

 The usb socket on my phone is dead.  One day it worked, one day it didn’t.  I have tried multiple leads and PCs but all combinations work with Tamsin’s phone and none with mine.

Hmmm.

I said to Tamsin that this would not affect me much but she said

“what about photos?”

Argh.

But I then realised that the solution was right in front of me.  I’d downgraded from ICS betas to CyanogenMod 7.1 and in the process reinstalled dropbox.  Dropbox had said I could upload photos automatically if I wanted.  I ticked that option and these are now synched to my PC as soon as I log in.  Ages ago I wrote a vb script that sorts my pictures in to folders by date.  I quickly copied it to the dropbox folder, made a few changes and set it to run on login.  I changed the script to wait a couple of minutes to give dropbox time to sync and robertsyourfathersbrother.

Seems to work.  Now I don’t have to ever copy them manually.  I will have to set up Tamsin’s to do the same.

Other things I lose are plugging the phone in as a hard drive (not so bad as I can always take out the SD card or FTP to it) and ADB (though ADB over WiFi appears to work).  Not sure what else.

Follow up: It started working again a few tries later.  Then I destroyed the phone falling off a ladder.  The new phone works fine too.

Posted by Picasa

Pimp my utility room

After much planning, a change to the utility room.  The coats are now to the right of the door, and this little IKEA unit is floating on the wall (in direct contradiction of the manual, but I have mounted it on a large piece of wood at the back and two sturdy steel legs).

This was all made possible by the new boiler which has finally given us the cupboard we should have had in 1999!

Posted by Picasa