James' Tech Blog

Dockstar OpenWRT

by on Aug.07, 2010, under dockstar

You might have seen my Seagate Dockstar post that explained getting Gentoo and Debian running on my Seagate Dockstar. Sorry, I just finished it now cause I have some follow-up stuff going right now. Well, Gentoo and Debian is not enough! I wanted OpenWRT as well. They have been working on sheeva support for awhile now. I was a little weary because their sheeva install seemed like it would write to the flash. This made me nervous because I’m using the secondary u-boot from plugapps which lives in mtd3 right where OpenWRT would like to install! So I hadn’t done it yet, just poke around a bit.

Like every good idea (or bad idea), you can find someone who’s tried it on the internet.Installing OpenWrt on Seagate DockStar HOWTO Now we’re getting somewhere. Kinda like Jeff’s Debian install, it’s mostly about stuff that I either already did or don’t want to do. Specifically skip everything until Building cause that’s where the magic is. Yeah, prebuilt images are nice, but I didn’t want to boot from flash. I wanted to boot from USB. I have been working on getting my WRT54g-L to boot off GPIO-SD so I had configured and built OpenWRT before. Follow the steps, but make sure to make root tar and build in ext2 and USB. I tried to use the patches, but it wouldn’t compile with them so I took them out.

With the OpenWRT built. I untarred it onto a USB thumbdrive that was ext2 (and only 128MB). Plugged it in and rebooted. Oh yeah, I got a FTDI usb-serial cable. I made a little header board to adapt a cable coming off the serial port to the 6-pin FTDI. I watched the boot through the serial port. It went perfect, except there were these weird messages about cowardly not committing jffs. Whatever! My flash is intact and OpenWRT is happy from the USB. I built some “usefull” stuff into my image like openssh instead of dropbear. Changed the default IP address, cause otherwise it would clash with my router.

Then pretty much do normal OpenWRT stuff. It would be cool to get a USB-wireless and USB-wired to run a dockstar as a router. Then you could have and 802.11n wireless and gigabit on the LAN! Awesome.

1 Comment :, , more...

Seagate Dockstar

by on Aug.07, 2010, under dockstar

So I actually bought the WD Element drive to go with my new Seagate Dockstar! I bought 2 from woot.com for $20 a piece. I will be documenting what I did for posterity and hopefully usefullness for someone else.
There are 2 good websites for this:
[1] http://www.plugapps.com
[2] http://ahsoftware.de/dockstar/

I started with the latter. I will be using Gentoo on it (sorry plugboxlinux guys). I have a spare WRT that I hooked the dockstar and my desktop up to so that we were linked, but not on the internet. First follow the instructions on [2] to backup the MTD. I gzipped the images after I dd. There was probably an elegant way to do it all in one command using PIPE, but I didn’t bother doing it. MTD3 compressed really well presumable because it’s full of 0’s. Also, disable hbmgr from starting up on boot.

Next I hooked everything up to the “real” network so I could move on to [1] where we download blparam. I just ran blparam > out to a text file to save the original boot env. Then onward to update the bootloader. Then back to [2]! The only difference is that I will use the u-boot from [1] so root has to be /dev/sda1.

For u-boot I used the u-boot install script from [3]. It’s pretty safe, i.e. it won’t write to your USB. It just flashes the Plugapps u-boot.

[3] PlugApps:Pogoplug Setboot – PlugApps

After that it’s pretty much plug and chug. I set up my desktop as a distcc node using crossdev. It has an Athlon 64 X2 5000+ so it compiles almost anything pretty quick. Setting that up is pretty trivial, but just for reference:
[4] Gentoo DistCC guide
[5] Gentoo Crossdev guide

I had some problems with a couple packages compiling. Specifically xmlrpc-c. I found a sheeva binhost [6]. Yeah it’s “sheeva” but it’s the same processor so it should work just fine. That got me past that, but QT just wouldn’t build. I was trying to get Mythtv installed.

[6]Mark’s blog

After a couple days beating my head against the wall I found that there is a Debian group that compiled Mythtv for ARMv5e [7]. Not only that, but some very nice guy Jeff figured out how to install Debian on the dockstar [8].

[7]Debian Multimedia Packages
[8]Install Debian on your Dockstar or Pogoplug

So, alas, I tarred all my gentoo files on the root. Rebooted into stock firmware and deleted the files from the gentoo root. Then follow Jeff’s guide [8]. Well, mostly, I downloaded his script and realized it was a full-blown install u-boot and everything! I did not need that. I just cut to the chase: download the base.tar.bz2 file, untar, download sheeva kernel/modules, untar those too, cp kernel to uImage, make a new fstab, REBOOT. Then do normal Debian stuff.

I suck at Debian, but I’ll mention what I remember doing. Change timezone to America/Los_Angeles, do apt-get stuff: add debian-multimedia to pull in Mythtv. Getting Mythtv was nearly trivial. Because dockstar is headless no Xorg. No problem I have more than 1 computer that does. The only thing I needed to do was turn on TCP for my Xorg then xhost + to allow everybody to connect to it. Then on dockstar run mythtv-setup. Done!

So future work:

OpenWRT

Fix Gentoo

Make a custom initramfs to boot whatever I want

5 Comments :, , , , more...

Western Digital Elements

by on Jul.11, 2010, under Uncategorized

So I bought a Western Digital Elements 1TB drive last week. For some reason it’s a mystery what’s inside these devices. I decided to disassemble, open up, take apart, dismantle, autopsy or whatever you call it so that I can document what’s inside. Mine which has the model number “wdbaau001hbk-01” on the bottom has a “wd10ears-00y5b1” drive in it, WD Caviar Green SATA/64MB cache 5400RPM. I think it’s a pretty enclosure, but not at all necessary. I apologize, I can’t find where I found instructions to open it. It’s pretty straight forward. Use a knife or something with a good edge to pry it open a little. Then I used a guitar pick to go around the edge and pry the clips along the inside. I’m going to do some crazy stuff to it, more to come. Maybe some pictures!

1 Comment : more...

Mythvideo now compiled

by on Mar.14, 2010, under Uncategorized

So, I switched to myth-0.22 awhile back because I finally got a sane database. No thanks to the mythtv guys, many thanks to the Gentoo guys for pointing out the bad behavior of mythtv not checking encoding formats and just assuming. I had been trying out the SVN version because 0.22 was broken in Portage. Long story short I haven’t been able to build mythvideo for months. Today I finally tried looking at the build log and internet searching. For reference here are the first few errors in the log file:
In file included from metadata.cpp:8:
/usr/local/include/mythtv/mythcontext.h:9:22: error: qptrlist.h: No such file or directory
In file included from main.cpp:18:
/usr/local/include/mythtv/mythcontext.h:9:22: error: qptrlist.h: No such file or directory
/usr/local/include/mythtv/mythcontext.h:13:23: error: qnetwork.h: No such file or directory
/usr/local/include/mythtv/mythcontext.h:13:23: error: qnetwork.h: No such file or directory
I stumbled upon someone else who couldn’t build that was getting similar errors to mine http://mythtv.org/pipermail/mythtv-users/2008-November/238546.html The problem was that the prefix for SVN is /usr/local/ whereas the ebuild prefix is /usr/ The quick and dirty solution:


mv /usr/local/include/mythtv /usr/local/include/mythtv-old
ln -snf /usr/include/mythtv /usr/local/include/mythtv

That solved the problem immediately, but I think the real problem is the ebuild. I checked the mythtv ebuild and the prefix is defined as /usr/, but the mythvideo ebuild does not have a prefix defined. I believe the solution is to define the prefix in the ebuild or make the symlink in the ebuild for mythtv.

Either way, I’m super-stoked! Now I can get back to encoding everything to something besides MPEG2 and watching it with mythtv instead of xine or mplayer.

Leave a Comment :, more...

iNoPhone Update

by on Feb.28, 2010, under iNoPhone

So I decided to get smaller buttons for my iNoPhone. I had to unsolder the old buttons which wasn’t hard. The new buttons are smaller in diameter so it was harder to get them secured to the plastic face. There’s a blurry Katrina in the background.

Small buttons

I tested all the buttons and they seem to work. It’s a lot lower profile. If you lay it like it originally would be it looks almost like a regular mouse. I almost got some really small tactile switches, but I thought they might be too short.

Fashion Show

The latest fashions!

Fashion Show

It’s almost the same size as my HTC Hero.

Katrina phone

A comparison with Katrina, she’s a pretty big cat though!

Other updates on first post:

Charging works, I’ve done it a couple times now. The speaker/mic aren’t the best, but I think I just need more holes in the face plate.

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...