Super-achieve! Week 43 ’09

image

Staying up all night is definitely the way forward for me. Stayed up last night and achieved…

  • First Japanese word learned in months.
  • Sent some emails I should have sent three months ago.
  • First go on Wii fit in months.
  • First cycle ride in weeks.
  • Found CDs with 400 photos I thought I’d lost forever.
  • Tucked all my loose CDs and DVDs away into folders.
  • Sorted out all my old AV and computer cables.
  • Cleared a lot of space in my room.

plus a few other bits and bobs. Woot!

And now I’m trying out posting this from my HTC Hero android phone too.

On the downside, one of the reasons for the flurry of activity is that I feel like I’ve wasted the last week or so trying to get the android SDK working on any of my Linux machines and attempting to connect the phone to Windows running in a KVM in order to update it. I’ve had to admit defeat on both of those which is why this has taken 10 minutes rather than 2 to write. Grrrr.

Advertisements

t-mobile 3g stickage

old skool phone modem

old skool phone modem

i’m not t-mobile’s biggest fan by any means but i do like the idea of having a selection of 3G providers to choose from.

so i’ve ended up with this 3g usb stick from t-mobile which “works on windows and osx” – *sigh*

still, i’ve seen a few of these on vodafone and you just plug them in and NetworkManager does the rest, right?

well, almost.  if you’re still back on fedora 10 (what’ve you been doing all week?!) then you’ll need to do something (called ‘usbmodeswitch’) to switch the stick from ‘zerocd’ mode into 3g modem mode – in fedora 11 that’s done for you (by hal i think).  but then when you try to connect it fails.

googling around i found lots of people saying it doesn’t work if the settings have a blank username and password – doesn’t matter what they are as long as they’re not blank.  well i tried that but it made no difference.

tried calling t-mobile support who were moderately helpful and did say that i should try “user” and “pass” but that didn’t  help either.

they also said that there’s some other software you can download that sorts it all out for you.  more googling found ‘hsoconnect’ hosted on pharscape.org which was, at that time, blacklisted by google for apparently hosting viruses!  eek.

went to the t-mobile shop today and got the same story from them.  also they can’t swap the stick for a different model and they can’t accept it back from me either – i have to call support again.

so, thought i’d have another try at hsoconnect. pharscape.org is no longer blacklisted!  bit of a problem with the latest release because it’s python2.5-based but fedora 11 has 2.6.  then i found a beta version which runs on 2.6.  hoorah!

once i’d found that you have to create folders for it before you run the installer it finally ran … and failed.  reading some more comments it turns out that hsoconnect only ever works if you configure it yourself with username, password and APN.  APN?  ah ha!

tracked down the APN here … success!  then i thought, maybe that’s what the problem was all along …. and now i’m typing this using the 3g stick connected by NetworkManager! (well, i was, right up until t-mobile blocked me from finding a picture on flickr – even though the chap who sold it to me assured me he’d removed the block.  grrr.)

so, if you’ve got fedora 11 and a new uk t-mobile 3g stick you need to know:

go to the ‘connection settings’ in NetworkManager.

go to the mobile broadband connection and edit it.

set the username and password to anything non-blank.

set the APN to general.t-mobile.uk

success!  😀

Fedora 10 Preview – Part 2

success!

i really don’t understand what’s going on with that bug but i now have a running F10 preview.

that means i also have a working procedure for installing the full DVD version as well – which is what i actually wanted to do in the first place.

having done it once i’ve decided to go back to the livecd installer (when it works) as it’s about ten times quicker.  looks like writing to disk is the biggest place where fedora loses out to the xandros linux that’s pre-installed on the eee.

eee pc 901 disk write performance - chart comparing linux distributions

eee pc 901 disk write performance - chart comparing linux distributions

to get the DVD install working i did the following:

  1. find an external USB disk with enough space for the DVD contents plus a bit.  you can use an SD card for this but the only machine i have which is capable of writing to an SD card is …. my eee.
  2. using fdisk create a single partition on it and set that partition bootable.
  3. mkdosfs on that partition.
  4. livecd-iso-to-disk on that partition using the /images/boot.iso file from the DVD.
  5. copy the contents of the DVD to that partition. (you can copy to a sub-directory if you want – just add that path before ‘/images’ in step 8 below)
  6. boot the eee from that disk (repeatedly pressing ESC while it boots and then selecting the USB drive as the boot device)
  7. select ‘local disk’ as the installation source.
  8. select /dev/sdc1 (assuming you don’t have more SD cards or USB devices plugged in) as the source drive and give the path /images because that’s where the install.img file is.

that gets the installer running – after that it’s a regular install.  don’t forget to un-tick the external USB drive in the list of drives to install onto!

you can skip steps 2 and 3 if the drive already has a bootable, fat-formatted partition with enough space on it.  that way you don’t have to delete anything.

i’ve re-done the install from livecd since then and tried enabling the encryption option.  it’s much nicer than in F9 – during the ‘blue bars’ boot stage (called ‘plymouth’ i think) you get a nice, clean text prompt for the password – which you can see as a row of dots as you type! 😀

enabling RPM Fusion repos was easy – just google for ‘rpm fusion’ and copy+paste the commands on the ‘configuration’ page.  when we get to the final release it’ll be even easier – just click on the link to the release rpm.

wireless worked after an rpm fusion install and a modprobe just as it did in the beta.

i’ve applied the 64 initial updates.  now i’m installing a bunch of stuff – themes, openoffice, optional gnome stuff, google-gadgets and cairo-dock.  about 100 packages – could be here for a while!

Fedora 10 Preview on eee pc 901 – part 1

failure!  so far i’ve been unable to install F10 preview.  i’m stuck against this bug i think.

mind you, it’s worth mentioning that the live cd boots up just fine (from the SD slot having used the livecd-tools commands on it from a working fedora) and they’ve fixed the ‘Install to hard drive’ tool so that it runs full-screen – so it fits!

RPM fusion seems to have moved out of the testing phase so it should be a bit easier to find now.

the RT2860 wireless drivers still aren’t in the main kernel so you don’t get wireless out-of-the-box just yet.

Fedora 10 beta on eee pc 901 – take 2

* before i forget – there’s an odd bug where if you press ctrl– to shrink the text in gnome-terminal it crashes.  i should track that down at some point but it’s certainly there in the f10beta livecd. … seems to be fixed after an update. – ah! actually i think it’s just that with compiz enabled the window resizes itself off the screen.

this time i set up /boot on RAID1, the rest of the 4G disk and a matching chunk of the 16G as a RAID0 physical volume  with /home on it and the rest as another physical volume with / followed by a 1G swap partition.

the 480 updates took 11.5 hours to complete.  no errors so far as i can see.  no new updates to apply.

so, let’s try rebooting from kernel-2.6.27-0.352.rc7.git1.fc10.i686 to kernel-2.6.27.4-47.rc3.fc10.i686

i’ll edit the grub boot line so it’s not quiet or graphical and i’ll press escape if the blue bars appear at the bottom of the boot screen so i can see what happens.  also, i’ll do a shutdown and power on rather than just a restart.

——-

it’s absolutely fine.  no problems at all.  *sigh*

new things:

  • the add/remove software window doesn’t have a maximise button and appears maximised by default.  if you unmaximise it (by dragging) you can’t re-maximise or resize it.  with desktop effects enabled it appears small by default – so you can’t use it.
  • the first attempt to add more software produced an odd error.  just clicking apply again has worked with a message that “An untrusted package was installed”.
  • i installed google gadgets.  clicking Run when it finished either didn’t work or it crashed.  running it again from the menus worked.
    • another software install – another ‘run not working’ – so i don’t think it crashed.
  • i’ve discovered the neon theme for cairo-dock – it’s pretty!

    eee desktop screenshot

    eee desktop screenshot

  • installed the wireless drivers from the development part of the fusion repo.  success!  (you don’t need to reboot – just modprobe rt2860sta and wait a few seconds for NetworkManager to pick up some networks.)  of course, the moment it starts working a new kernel becomes available in rawhide.
  • also discovered that the black variant of the most excellent comix cursors have a super-nice little featurette – the ‘bar’ cursor that appears over text has a red bar.  super-nice.
  • i had intended to do lots of carefully controlled restarts to pin down the problem if it reoccurred .. but i wasn’t concentrating and accidentally did a default reboot.  i’ve done a couple more since then – no problems.

happy now.  🙂

fedora death on eee

i installed those 460 updates and (about 8 hours later) rebooted.  this time we got another filesystem error but fsck reported a lot more problems and now when i boot i just get:

VFS: Can't find ext3 filesystem on dev dm-0.

now i think i got that before when i tried to install F9 and i just re-installed and it was okay the second time round.  so i’m going to try re-installing F10 and we’ll see what we get.

———-

booting to f10 beta livecd was painless again but the system reported many disk errors on the system disks (presumably because of whatever stopped it booting before) and throttled them back to their slowest settings (PIO0) so when the ‘install to system’ got to the ‘copying image to disk’ stage it went very slowly and the system got very slow too.  so i gave up and rebooted.  i guess the re-format and reboot cheered it up because those errors went away and i’m now typing this from f10 beta proper again.

i’ve tried rebooting with this default kernel but haven’t been able to reproduce the disk corruption yet so i’ve kicked off the system update again.  480 updates this time.

oh, i’ve taken a copy of the dmesg errors i mentioned earlier:

=================================
[ INFO: inconsistent lock state ]
2.6.27-0.352.rc7.git1.fc10.i686 #1
———————————
inconsistent {hardirq-on-W} -> {in-hardirq-W} usage.
NetworkManager/2490 [HC1[1]:SC0[1]:HE0:SE0] takes:
(&adapter->mdio_lock){+-..}, at: [<f88ee54e>] atl1e_intr+0x22d/0x3f7 [atl1e]
{hardirq-on-W} state was registered at:
[<c044ca1a>] __lock_acquire+0x2ad/0xae6
[<c044d2ae>] lock_acquire+0x5b/0x81
[<c06e5150>] _spin_lock+0x23/0x50
[<f88f1fdc>] atl1e_probe+0x50b/0x6bc [atl1e]
[<c054164e>] pci_device_probe+0x3e/0x5e
[<c05aeb0e>] driver_probe_device+0xa5/0x141
[<c05aebec>] __driver_attach+0x42/0x64
[<c05ae4c1>] bus_for_each_dev+0x43/0x6d
[<c05ae996>] driver_attach+0x19/0x1b
[<c05aded6>] bus_add_driver+0xa8/0x1c8
[<c05aeda1>] driver_register+0x89/0xe9
[<c0541840>] __pci_register_driver+0x58/0x84
[<f881601c>] 0xf881601c
[<c0401139>] do_one_initcall+0x42/0x133
[<c045500e>] sys_init_module+0x8e/0x183
[<c0404d0a>] syscall_call+0x7/0xb
[<ffffffff>] 0xffffffff
irq event stamp: 8897
hardirqs last  enabled at (8895): [<c044c160>] trace_hardirqs_on+0xb/0xd
hardirqs last disabled at (8897): [<c0535c24>] trace_hardirqs_off_thunk+0xc/0x10
softirqs last  enabled at (8818): [<c0432781>] __do_softirq+0x104/0x10f
softirqs last disabled at (8896): [<c06e518e>] _spin_lock_bh+0x11/0x55

other info that might help us debug this:
2 locks held by NetworkManager/2490:
#0:  (rtnl_mutex){–..}, at: [<c065955d>] rtnetlink_rcv+0x17/0x2b
#1:  (_xmit_ETHER){-…}, at: [<c06504ea>] dev_set_rx_mode+0x19/0x2b

stack backtrace:
Pid: 2490, comm: NetworkManager Not tainted 2.6.27-0.352.rc7.git1.fc10.i686 #1
[<c06e2d1a>] ? printk+0x14/0x1a
[<c044b8fa>] valid_state+0x12a/0x13d
[<c044bcf7>] mark_lock+0xde/0x331
[<c044c99d>] __lock_acquire+0x230/0xae6
[<c044b392>] ? trace_hardirqs_off_caller+0x15/0x91
[<c044b419>] ? trace_hardirqs_off+0xb/0xd
[<c04097a2>] ? native_sched_clock+0xb3/0xd3
[<c044bc37>] ? mark_lock+0x1e/0x331
[<c044d2ae>] lock_acquire+0x5b/0x81
[<f88ee54e>] ? atl1e_intr+0x22d/0x3f7 [atl1e]
[<c06e5150>] _spin_lock+0x23/0x50
[<f88ee54e>] ? atl1e_intr+0x22d/0x3f7 [atl1e]
[<f88ee54e>] atl1e_intr+0x22d/0x3f7 [atl1e]
[<c044a9b0>] ? lock_release_holdtime+0x30/0x125
[<c046d192>] handle_IRQ_event+0x1f/0x54
[<c046e290>] handle_fasteoi_irq+0x82/0xbb
[<c046e20e>] ? handle_fasteoi_irq+0x0/0xbb
[<c0406fad>] do_IRQ+0x9f/0xc9
[<c0405700>] common_interrupt+0x28/0x30
[<c06502a5>] ? __dev_set_rx_mode+0x2b/0x8c
[<c06504f1>] dev_set_rx_mode+0x20/0x2b
[<c06520c0>] dev_open+0x96/0xb9
[<c0651ae0>] dev_change_flags+0xa1/0x154
[<c0658883>] ? rtnl_setlink+0x0/0xdb
[<c06587d1>] do_setlink+0x26d/0x31f
[<c06e4f3c>] ? _read_unlock+0x22/0x25
[<c0658883>] ? rtnl_setlink+0x0/0xdb
[<c065895a>] rtnl_setlink+0xd7/0xdb
[<c065970e>] rtnetlink_rcv_msg+0x19d/0x1b7
[<c0659571>] ? rtnetlink_rcv_msg+0x0/0x1b7
[<c066730b>] netlink_rcv_skb+0x35/0x7a
[<c0659569>] rtnetlink_rcv+0x23/0x2b
[<c0666f05>] netlink_unicast+0xf6/0x14c
[<c0667192>] netlink_sendmsg+0x237/0x244
[<c0645b4f>] __sock_sendmsg+0x4a/0x53
[<c0646379>] sock_sendmsg+0xbd/0xd3
[<c043f922>] ? autoremove_wake_function+0x0/0x38
[<c043f922>] ? autoremove_wake_function+0x0/0x38
[<c041f2ae>] ? need_resched+0x18/0x22
[<c05360db>] ? copy_from_user+0x3e/0x125
[<c064cbae>] ? verify_iovec+0x45/0x73
[<c06464d3>] sys_sendmsg+0x144/0x197
[<c0646fb5>] ? sys_recvmsg+0x11b/0x180
[<c044b392>] ? trace_hardirqs_off_caller+0x15/0x91
[<c044b419>] ? trace_hardirqs_off+0xb/0xd
[<c04097a2>] ? native_sched_clock+0xb3/0xd3
[<c040961f>] ? sched_clock+0x8/0xb
[<c044a9b0>] ? lock_release_holdtime+0x30/0x125
[<c044c160>] ? trace_hardirqs_on+0xb/0xd
[<c044c134>] ? trace_hardirqs_on_caller+0xf9/0x11a
[<c044c160>] ? trace_hardirqs_on+0xb/0xd
[<c042abf1>] ? finish_task_switch+0x49/0xc5
[<c042aba8>] ? finish_task_switch+0x0/0xc5
[<c06e3549>] ? schedule+0x6d9/0x6f8
[<c0647530>] sys_socketcall+0x16d/0x1a3
[<c040b403>] ? syscall_trace_enter+0xba/0xce
[<c0404d0a>] syscall_call+0x7/0xb
=======================

eee 901 wireless on fedora 10

along with the 1.8.0 driver there’s an intriguing WebUI file.  not sure what it is but the install script builds some stuff (possibly including the driver) and then starts firefox pointing at a local server running on another port.

don’t forget to install make, gcc and kernel-devel before running the script!

Error unpacking rpm package glibc-common-2.8.90-14.i386
エラー: アーカイブの伸長に失敗: ファイル /usr/share/i18n/charmaps/ISO_6937-2-25.gz;490266ab: cpio: open

for the WebUI you also need openssl-devel

of course, the kernel-devel package it’s picked up isn’t the right one for the original kernel – that’s not available through yum.  so we’ll have to update the kernel and reboot…..

oooh, while i’m waiting for the kernel to install – watching videos with compiz enabled works fine now!  😀

although that reminds me – with a 5.1ch ogg movie playing in totem all i’m hearing is the rear channels no matter what sound options i select – at least that’s what happened  on F9.

had filesystem problems when i rebooted and it wouldn’t accept my root password.  booted with the old kernel and it still had the fs probs but accepted my password and fsck’d the problems.  now i’m back with the latest kernel.

looks like the driver compiled okay – and it’s done its mad “and copy the file to /tftpboot” thing as before.  let’s try that WebUI thing again…

the script uses zenity to pop up prompts – extremely slow if you’ve got input methods enabled.  lots and lots of compiling but it still doesn’t work.  whatever, back to the actual driver…

hmm.  it looks like it’s loaded okay.  there’s a ra0 device but networkmanager hasn’t spotted it and i can’t ifup it or rmmod the module.  time for another reboot i think….

didn’t help much.  i can rmmod and modprobe now but nothing happens.

tried adding “alias ra0 rt2860sta” to /etc/modprobe.conf …. no change.

running the webui thingy adds the ra0 interface and locks up the module.  doesn’t appear to have any other effect though. … oh, apart from allocating it an IP6 address.  hmm.

guess i’d better install these 460 updates!  good old rawhide.

on the plus side, fiddling around with this has revealed that there is a monitor mode.  iwconfig ra0 mode monitor works!