Gentoo Development

Gentoo/MIPS for Cobalt: mips-sources

Hi All…

Whilst building a new netboot image for Cobalt systems, I discovered there’s a bug relating to the PCI handling in the latest kernel ebuild. In short, the pata_via driver is broken out-of-the-box, it’ll complain about being unable to register I/O resources, and the disks will be inaccessible.

To fix — download this patch, and apply it to your source tree using patch -p1 < patchfile, then rebuild your kernel (it’ll take a few seconds). You’ll notice the new kernel should boot successfully.

When Kumba returns, I’ll get him to add it to the mips-sources patchset so this is done automatically. 🙂

Gentoo/MIPS Netboot Images to be updated

Hi All…

Those who have been trying out the 2008.0 beta stages I put out recently, probably will have ran into problems with tools like rm and touch not working properly.  It turns out, a series of kernel updates between 2.6.16 (what most of the netboot images are based on, except Cobalt which uses 2.6.13), and 2.6.19-rc5 (what my O2 runs), there have been changes to some of the system calls.  So the newer coreutils breaks on the older kernels.

I’m now in the process of updating the kernels used.  As I type this, I’m recompiling the Cobalt netboot image (same userland tools, just a newer kernel … at some point I’ll recompile the userland too), downloading the 2.6.20 kernel for IP28 users, and I’ll look into IP22 (r4k), IP30 and IP32 as well.

Sadly, R5k IP22 and IP27 will get ignored here — because I don’t have any suitable hardware to test them on.  Otherwise I’d update those too.

I’ll let you all know when the newer netboot images are available.

Getting the Broadcom BCM2035B to play ball

Well, I’ve tinkered today with the headset and this Bluetooth dongle, and got a little further. Still can’t actually connect to anything, but I am seeing devices pop up in Konqueror under the bluetooth:/ kioslave and hcitool scan actually reports some devices.wander ~ # hcitool scan --flush
Scanning ...
20:07:35:xx:xx:xx KF-700
00:1E:E1:xx:xx:xx SGH-A412

I have no idea what the SGH device is … someone’s mobile phone apparently (this dongle has a 100m range). The other device, is my headset. However, hitting the MFB (Mobile Find) button on the headset, does not yield a pin entry request in KDEBluetooth. I’m no closer to actually being able to use this as a means of wireless VoIP.

To reiterate what I have tried:

  • Upgraded to latest vanilla kernel: 2.6.25-rc6
  • Running latest BlueZ tools in portage: bluez-firmware-1.2 bluez-bluefw-1.0 bluez-libs-3.28 bluez-utils-3.28 bluez-hciemu-1.2
  • Using hciconfig to bring the device down, back up, and reset it, enabling various modes (e.g. page scan, inquiry scan, page+inquiry scan)

The following is seen in dmesg when the dongle is plugged in (proceeding text snipped):
[ 2560.963622] usb 5-1: new full speed USB device using ohci_hcd and address 3
[ 2561.133938] usb 5-1: configuration #1 chosen from 1 choice
[ 2561.151391] usb 5-1: New USB device found, idVendor=0a5c, idProduct=2035
[ 2561.151403] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2561.151409] usb 5-1: Product: BCM2035B
[ 2561.151414] usb 5-1: Manufacturer: Broadcom Corp

And hciconfig shows:
wander ~ # hciconfig
hci0: Type: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 377:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:982 acl:0 sco:0 events:28 errors:0
TX bytes:610 acl:0 sco:0 commands:28 errors:0

I’m guessing the address is the problem. And this issue seems to rest with the kernel driver itself, hci-usb. I’ve tried forcing bcm203x to take custody of the device, this doesn’t work at all — the device doesn’t even initialise. So clearly hci-usb is responsible for setting things up — but it isn’t. In sysfs:

wander ~ # cat /sys/bus/bluetooth/devices/hci0/address
00:00:00:00:00:00

Allegedly, the BCM2033 works rather well with Linux, and I see no reason why the BCM2035 shouldn’t, when the code is clearly present. I’d say there’s some edge case that isn’t handled. I’ll ask a little later on the BlueZ mailing lists and see what I can come up with … but I’m posting this here for others’ reference. Later down the track I plan to repeat this exercise on the Lemote boxes (and maybe my O2 as well, if I get a USB card for it) — presently though, I’m doing this on my laptop (which is x86-based).

Again, if anyone has an idea what’s going wrong… I’m all ears. 🙂

Camping this long-weekend

Hi all,
Just to let you all know, I’ll be camping over the Easter long-weekend (Good Friday through to Easter Monday), on a private property outside Tenterfield, NSW.

There’s no internet link or mobile phone coverage here, so I won’t be online. If you happen to be around the Tenterfield area, you might get me on the 2m standard simplex frequency, 146.500MHz. (There aren’t any repeaters in the area at all, let alone IRLP/EchoLink connected ones.)

If you strike problems, best to contact me by email, and I’ll get back to you when I return on Monday. If release engineering put out another snapshot before Thursday evening (UTC+10) then I’ll try to get the boxes here building it whilst I’m away.

Both Loongson boxes will remain online, vapier has root access to both, so after getting approval from the senior MIPS devs, see him for actual access to the boxes in my absence.

Anyway… there will of course, be the obligatory posts with pics of the trip when I return. 😉

Happy Easter all.

Gentoo/MIPS: 2008.0 Beta1 Stages available for testing

Hi All,

I have made available, stages based on the Gentoo 2008.0 Beta1 snapshot, for you to test on your hardware.  New in this release, is the introduction of big-endian stages compiled for MIPS1, as well as little-endian stages for MIPS3.  This should suit generic big-endian users, and Loongson users respectively.  (Of course, if you’re using hardware other than SGI, Cobalt or Lemote hardware, you’ll have to figure out most things yourself — we can’t offer support for other hardware.)

For now, you’ll find them on my devspace.  If you strike problems, please let me know and I’ll try to get the problems fixed for the final 2008.0 snapshot. 🙂

I’ll be taking them for a spin to make sure everything is fine, but I’d appreciate any feedback from users.  These stages are experimental, as they’re based on a beta snapshot — if you’re setting something up for a production environment (if you are, you’re braver than I am), I’d recommend using the older 2007.1 stages instead.

Gentoo/MIPS: 2008.0 Builds begin

I’ve now began building stages for the upcoming 2008.0 release.  This release will see the introduction of MIPS3 stages for little endian targets (ideal for Loongson 2E users).

In addition, I have my O2 compiling the big endian stages, for MIPS4, MIPS3 and MIPS1 (in that order), so this will also see the introduction of generic MIPS1 stages for big endian systems.

I’ll try to provide these where I can, however there’s no guarantee that these generic stages will continue, nor is there any support provided for non-SGI/Cobalt hardware at this time.

Apparently there’s going to be a shake-up regarding the profiles too.  The profiles used in the snapshots are completely different in structure — whether this will reflect what users see in the Portage tree or not, I’m unsure.  I’ll let you know what the deal is there in due course when I find out myself.

Gentoo/MIPS for Loongson — LiveUSB image is here

Hi all…

With the help of robbat2, I’ve released the full LiveUSB Image of Gentoo Linux for the Lemote Fulong, and similar systems. It consists of two parts…

  • The kernel image, which can be used alone to boot the system and perform an installation, or rescue an installation.
  • The live system image, in the form of a 870MB SquashFS image.

If you just want to install Gentoo, you can download the kernel image on its own, and either load it from a USB disk or TFTP server.

However, if you want a full blown desktop, you need this kernel image, plus the LiveUSB system image, which you’ll find on the mirrors under the experimental/mips/livecd/loongson-2007.1 directory. I’ve pushed this straight out, due to its considerable size. (For me anyway… remember that my ADSL link pushes data up at a whopping 128Kbps… yes… “broadband” in Australia officially sucks!)

To boot the live environment, download both to a EXT2 or EXT3 formatted partition on a USB disk (FAT32 may work, but you’ll need to tweak the URL passed to PMON2000 when loading the kernel). For simplicity, place them in the root of the directory, with the kernel named “gentoo“, and the live system named “gentoo-liveusb.sqfs“.

Boot the Lemote box up and hit DELETE when prompted. You’ll be greeted by a PMON> prompt… Enter the commands as you see below…

PMON> load /dev/fs/ext2@usb0/gentoo
PMON> g console=tty0 liveusb

The highlights…

The following are some screenshots of the desktop in action. The desktop is based on the latest 2007.1 stages, and KDE 3.5.8. When it first boots, you’re greeted by the following screen:

LiveUSB login prompt

The desktop is provided in two languages, English (UK) and Simplified Chinese — decided according to the account you login as. Both accounts are set up in KDE as passwordless, so just click on the desired account and press ENTER. If you do happen to be asked for a password, the password on all accounts (including root) is gentoo. Once logged in, you’re greeted with a largely default KDE desktop (click to enlarge). The background image is a departure from traditional Gentoo desktops — based on a photo taken by my father whilst camping up at Biggenden.

LiveUSB Desktop

The latest stable Mozilla browser, Bon Echo (Firefox) is included. Note that due to licensing, I’m not able to use the Firefox branding that people would be more familiar with (click to enlarge). The default homepage and bookmarks have been tweaked to have some useful relevant links for Gentoo/MIPS. The Chinese version links to versions of the documentation in Chinese where available.

LiveUSB Bon Echo 2.0.0.11 included

Should you have a query, or wish to chat to people whilst waiting for things to install, a full IRC client and instant messenger package are provided.

LiveUSB Messaging

A full copy of the KOffice productivity suite is included…

LiveUSB KOffice

Multimedia playback applications such as KMPlayer, Kaffeine Player and Amarok are provided…

LiveUSB Multimedia

And last but not least… if you get bored… Quake II with qmax goodness, is available… (but bring your own game files) Sadly, hardware OpenGL isn’t working yet, but despite this, Quake II is still quite playable.

LiveUSB Quake II

 

Gentoo/MIPS: Notes for upcomming release 2008.0

Well… since 2007.1 got cancelled, officially, it was decided that 2008.0 would be much earlier than usual to compensate.

A few days ago I had my O2 busy compiling big endian stages — these were based on the cancelled 2007.1 snapshot,  and I compiled them to ensure that we, as an architecture team, didn’t slip too far behind. Those who are doing fresh installs onto MIPS4-based SGI hardware, may wish to look here.  Note that while they are labelled as “2007.1”, they are not official release media for that release.

At present, I’m building seed stages for the 2008.0 release for both big and little endian, and should start on proper stages shortly after a 2008.0 profile is added to the tree.

Due to a lack of manpower, the MIPS port of Gentoo is moving back to being an experimental architecture.  This means, starting with 2008.0, profiles will accept ~mips keywords.  There won’t be any keywords dropped on mass, the plan is we’ll just gradually let the stable keywords disappear over time (the ones that are there, stay, we won’t add any new ones).   Present users may wish to consider setting ACCEPT_KEYWORDS=”~mips” in their make.conf files if they have not done so already.  As always, any breakage, please report it.

The Loongson LiveUSB image that I mentioned earlier — is still in the pipeline.  It too, is marked 2007.1 as it was built with those stages.  It consists of a 870MB SquashFS image, which gets loaded from a netboot kernel.  The first netboot image for Loongson is now available, you’ll find it, and a rough guide on how to boot it on my devspace.  I haven’t put the LiveUSB image itself on my site yet, as it’s a whopper, and I suspect the Infrastructure team will rightfully frown on me distributing it from there.  It’s presently sitting in the staging area waiting to be pushed out to mirrors.  I’ll let you all know when this happens.

Gentoo/MIPS for Loongson — LiveUSB image comming soon

Well… there have been rumours about Gentoo dying… it certainly is alive and well from where I sit.

The last few days have been spent polishing off what will become the first LiveUSB image for the Lemote Fulong computer based on the Loongson2E processor.  The image consists of a netboot image (which can be used on its own to perform a rescue or installation), and a 870MB SquashFS image, which contains the full live OS.  I’ve set it up to be a demonstration of Gentoo on the Fulong, as well as being a useful installation environment.

Software Included:

  • Complete KDE 3.5.8 desktop environment
  • Mozilla Firefox 2.0.0.11 (Bon Echo)
  • KOffice productivity suite
  • Konversation IRC client
  • Amarok music player
  • Video playback software (mplayer with Mozilla plugin, Kaffeine Player, kmplayer)
  • Quake II qmax (bring your own game files, yes … it’s quite playable on these systems, even without 3D accel.)

The desktop is available in two languages, English and Chinese (Simplified) — you select the language at the login prompt by logging in as the appropriate user (gentoo-en or gentoo-zh) — both are password-less logins.

I’ll leave putting up screenshots until I actually release it… there’s still some kernel tweaking to do… and of course being a first ever release, the distribution should be considered alpha-grade.  I’d like to release it with at least a 2.6.23 kernel, probably 2.6.24-rcX, which should allow OpenGL capability (nice framerates in Quake II, the present kernel lasts about 5 seconds before crashing with hardware OpenGL) .  The entire build has been constructed by hand at this stage, since I’m yet to learn how to produce proper LiveCDs in catalyst

But in short, I hope to have this up before the month’s end.  It’s based on the 2007.1 stages I built at the end of last year.

2008: Hopefully better than 2007

Well, 2007 is slowly drawing to a close. As I write this, I’m lying on my bed, winding down for the evening, I can’t help but think back over this year.

For me, 2007 was great academically. I hit some quite high scores at uni, and even this semester, managed to score a 7 in an engineering subject. 7s for me are very rare, and usually only occur with IT subjects — the subject this time around was on communications between embedded systems — specifically, it centred around an Allen Bradley SLC5/03 PLC, and a Rabbit Semiconductor RCM4000-series 8-bit microcontroller.

Amongst other things at uni, this year really drained me. Gentoo took a major back seat, along with many projects I’ve been working on, and my entire focus was on getting through the semester. My stress levels this year got to dangerously high levels, to the point I was at the brink of suicide. The only thing that stopped me, is that for better or worse, I’m needed, and there are things I need to do before I disappear off the scene.

Now that the university year is over for now (except for the mugs doing a summer semester), I’m able to relax somewhat. I was away from home for the last 5 days, sporadically jumping online via a dialup link to check on things. I worked on stuff that pleased me for once.

I did some testing for Gentoo whilst I was at it. My laptop wouldn’t dial out to the internet for some reason, but I soon discovered, the Lemote Fulong I took with me, worked fine. By disabling the getty on ttyS0 (I normally have it for when I use the box headless) and plugging a 56Kbps PSTN modem in, and using KPPP via X-over-SSH (xorg-server 1.4 segfaults, there’s some patches I need to forward-port), I had an internet link up first go. Hence, net-dialup/ppp got a bump. Sadly I had to USE-mask atm, because that needed net-dialup/linux-atm, which isn’t yet stable. If I find a way to test this, I’ll do so, and mark it stable too.

Looking around though, I see I’m not the only one feeling the pressure. Gentoo 2007.1 has been delayed this year quite significantly, with most of the people involved having other issues to contend with. In the developer community as a whole, everyone seems to be on edge. In fact, everyone seems to be on edge. No idea what the cause is, it’s just something I’ve noticed.

Now… 2007 as I say is almost over. Presently, boxing day will be over for me in less than 2 hours. My hopes for 2008…

  • I hope linux.conf.au goes well for all involved. Mark Kowarsky has done a lot of work to organise Gentoo’s presence at this event. Sadly, I won’t be involved (lack of funds and time prevent me from attending) but I’ll try to help out from a distance.
  • I hope that over this new year period, people get a chance to unwind and relax a bit. Some de-stressing is badly needed IMHO, and should help ensure everyone is ready for the new year.
  • I hope that university for me, will now start to taper off a bit as I enter my final year. This year sees a reduction from 48 credit points a semester, to 36, which should leave me more time to dedicate to each subject, and therefore less stress & anxiety.

For the next few days, I’ll be uncontactable, as I’ll be out of mobile range camping at Gibraltar Ranges National Park (northern NSW, half way between Glen Innes and Grafton on the Gwydir Highway). It’s a nice spot, away from technology. See, as much as I like computers, I also like to run away from them for a little while. 😉

Those who are travelling long distances, I wish you all a safe journey. Take it easy on the roads, there’s no point in rushing to a funeral. Here in Queensland, our christmas/new year road toll is already one death higher than it ought to be, and while I really do hope it doesn’t increase, my gut feeling is that it probably will. Take it easy though, and the chances of you becomming another statistic are greatly reduced.

I may not get a chance before the new year to make another post. So whatever you’re doing…

I wish you all, a happy 2008.