tag:blogger.com,1999:blog-44260481005289821422024-02-08T03:50:26.246-08:00ChadMokoHacking the first Free (Software) Phone.happycubehttp://www.blogger.com/profile/08122880431073403405noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4426048100528982142.post-74717460860745616412007-08-14T18:40:00.000-07:002007-08-14T19:20:33.404-07:00yarr... me be having bluetooth on me moko!*Haven't done much with my moko lately... been pretty busy with other stuff, but I've got a new 2007.2 image just put on it and now I'm going to start tinkering again.<br /><br />Randomish aside: uBoot does <i>not</i> work with the ALI/ULI USB controller in my Opteron 165, with or without hub.<br /><br />I set up Bluetooth using a 2-part sequence... this script (run as root) starts bluetooth<br /><br />#!/bin/sh<br />echo "1" > /sys/bus/platform/devices/gta01-pm-bt.0/power_on<br />echo "1" > /sys/bus/platform/devices/gta01-pm-bt.0/reset<br />echo "0" > /sys/bus/platform/devices/gta01-pm-bt.0/reset<br />sleep 1<br />hciconfig hci0 up<br />hciconfig<br />passkey-agent --default 0000 &<br /><br />and then i use<br /><br />pand -c 00:16:CB:1A:A1:C0<br /><br />to connect it to my macbook with pand up and running. i use a static network instead of dhcp, so i changed the bnep0 section of /etc/network/interfaces in my moko to this:<br /><br /># Bluetooth networking<br />iface bnep0 inet static<br /> address 192.168.2.202<br /> netmask 255.255.255.0<br /> network 192.168.2.0<br /> gateway 192.168.2.200<br /><br />(* - pirate references courtesy of Bluetooth The Pirate from woot.com's podcasts)<br /><br />Unsolved things, many of which answered in the wiki, but I need to do 'em...<br /><br />- The best way to get this script in at boot (I'm going to have to init.d-ify the first)<br /><br />- And can it run pand to a macbook that isn't there? Then I can just turn it on and be able to connect and do shell stuff.<br /><br />- Quickest way to get it to connect to a keyboard.<br /><br />- Will the new Apple Bluetooth Keyboard talk HID? If so that'd be a nice laptop-size keyboard - but I already have a targus ;)<br /><br />- How do i get it to do DUN using my Nokia 6103i/t-mo EDGE?<br />(not terribly useful without a bt keyboard running for terminals and gtk-webkit... but then it'll be like a Nokia 770/n800!)happycubehttp://www.blogger.com/profile/08122880431073403405noreply@blogger.com0tag:blogger.com,1999:blog-4426048100528982142.post-4824981882048051582007-07-30T21:09:00.000-07:002007-07-31T06:49:16.503-07:00Interim update...... because I don't have anything really interesting yet.<br /><br />Looks and feels quite nice. The screen is indescribably sharp and it runs quite snappily.<br /><br />The power management's a bit annoying - I wanted to show off my Neo to a friend in LA and I wasn't able to power it back up even wired up to my laptop's 500ma USB port. It would be nice to be able to power it up even without a battery! I also had to play with removing the battery a bit this morning... argh. Now I see why the Advanced kit has a second battery. ;)<br /><br />I'm going to take a crack at getting cpufreq working - I had begun writing my own patch but then I found http://www.evolware.org/chri/paciugo/cpufreq.patch using a quick google search... so I'll add that to a local tree and try to get all the other periphs going along with it. Once voltage control is added it should save a measurable bit of battery life.<br /><br />After seeing Koen's blog yesterday and noticing he used Angstrom I decided to build it myself. So far I have Angstrom w/GPE on and I'm building packages from the tree. Once I get my Bluetooth keyboard working I can use Pidgin. (I wonder how hard it is to use Bluetooth GPRS...)<br /><br />A couple of build tips:<br /><br />- I needed to add 'ENABLE_BINARY_LOCALE_GENERATION = "0"' to the sample local conf because trying to build locales using qemu-arm failed.<br /><br />- Had one build failure in the x11 image phase - a glibc fault. This might've been my opty (although i hope not!) since I just ran it again and it worked...<br /><br />GPE looks pretty nice - it's geared to 240x320 devices though so things tend to get a bit small on the Neo. I was able to resize the fonts a bit and get it working though. Also the Neo needs a flashier 'main' screen. But the elements are all there - Angstrom has recent/latest gtk+ and cairo libraries.<br /><br />More later when I have something worked out - ala cpufreq or a local copy of the 2007.2 apps working ;)happycubehttp://www.blogger.com/profile/08122880431073403405noreply@blogger.com0tag:blogger.com,1999:blog-4426048100528982142.post-54180546310986583682007-07-27T15:59:00.001-07:002007-07-27T16:02:19.759-07:00Got my Neo!- Home-built OpenMoko image, check.<br /><br />- One Neo1973 phone, check.<br /><br />- One hacker lunchbox, check.<br /><br />- 2GB MicroSD card, check.<br /><br />- One happy Chad, check.<br /><br />- Getting image onto phone... not quite yet.<br /><br />First blog post... done.happycubehttp://www.blogger.com/profile/08122880431073403405noreply@blogger.com0