August 2008 Archives

Nnngh, tired. I spent last night porting the firefly itunes server (mt-daapd) over to the drobo. It was a bit harder than I expected, but then again, I didn't really expect it to work right, and it does. Most of the effort was just getting all the third party libs compiled/installed for linux-arm, but there were a few old calls made by mt-daapd that weren't portable, so I had to substitute newer functions and comment out part of the configure script. I've got it running on my Drobo at home, and it appears to be working without any problems at all. Yay! Data Robotics was also offering a bounty for getting this ported providing no functionality was lost, so I'm looking forward to talking to them about this. :)

Drobo!

| | Comments (5) | TrackBacks (0)

I received my 2 Drobo's + DroboShare in the mail on Friday, and I've been spending the weekend setting them up. So far, I am so in love. DroboApps sound pretty cool, and I'm about to start messing with them to see what I can do. Here's some randomness about the drobo.

% ssh root@drobo Warning: Permanently added 'drobo.local' (RSA) to the list of known hosts. root@drobo.local's password:


Welcome to Embedded Linux
_ _
| ||_|
| | _ ____ _ _ _ _
| || | _ \| | | |\ \/ /
| || | | | | |_| |/ \
|_||_|_| |_|\____|\_/\_/

A Data Robotics Product.

http://www.drobo.com/

BusyBox v1.1.2 (2007.06.18-15:03+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ help

Built-in commands:
-------------------
. : alias bg break cd chdir continue echo eval exec exit export
false fg getopts hash help jobs kill local pwd read readonly
return set shift times trap true type ulimit umask unalias unset
wait [ [[ addgroup adduser arping ash basename busybox cal cat
chgrp chmod chown chroot clear cmp comm cp crond crontab date
dd delgroup deluser df dmesg dos2unix du dumpleases e2fsck echo
egrep env expr false fdisk fgrep find free fsck fsck.ext2 fsck.ext3
ftpget ftpput fuser getopt grep gzip halt head hexdump hostname
httpd ifconfig inetd init insmod ip kill killall klogd last less
ln logger login logread losetup ls lsmod md5sum mdev mkdir mke2fs
mkfs.ext2 mkfs.ext3 mknod mkswap more mount mv netstat nice nohup
od passwd patch pidof ping poweroff ps pwd rdate readprofile
realpath reboot renice reset rm rmdir rmmod route seq sh sleep
sort stat strings stty su swapoff swapon switch_root sync sysctl
syslogd tail tar tee telnet telnetd test tftp time top touch
traceroute true udhcpc udhcpd umount uname uniq unix2dos unzip
uptime usleep vi watch watchdog wc wget which who xargs yes
~ $ cd /
/ $ uname -a
Linux Drobo 2.6.12.6-arm1 #1 Tue May 20 14:32:03 PDT 2008 armv5tejl unknown
/ $ ps w
PID Uid VmSize Stat Command
1 root 328 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
5 root SW< [kthread]
11 root SW< [kblockd/0]
14 root SW [khubd]
49 root SW [pdflush]
50 root SW [pdflush]
52 root SW< [aio/0]
51 root SW [kswapd0]
165 root SW [scsi_eh_0]
166 root SW [scsi_eh_1]
172 root SW [mtdblockd]
189 root SW [scsi_eh_2]
190 root SW [usb-storage]
195 root SWN [jffs2_gcd_mtd1]
197 root 812 S /bin/sh
231 root 624 S dropbear
242 root 576 S < udevd --verbose
276 root 308 S udhcpc -b -i egiga0 -s /etc/udhcpc.sh
287 root 700 S /bin/ntpclient -l -h pool.ntp.org
288 root 308 S /bin/sh /usr/local/lock_rtc_to_wall_clock.sh
310 root 172 S sleep 3600
311 root 1964 S /usr/sbin/sledd
344 root 2060 S usr/sbin/smbd -s /etc/smb.conf
346 root 2064 S usr/sbin/smbd -s /etc/smb.conf
347 root 1548 S usr/sbin/nmbd -s /etc/smb.conf
382 root 2708 S < usr/sbin/smbd -s /etc/smb.conf
451 root 1216 S dropbear
452 root 844 S -sh
459 root 776 R ps w
/ $ df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 14336 8896 5440 62% /
/dev/shm 20480 0 20480 0% /dev/shm
/dev/sdb1 2147480808 70076 2147410732 0% /mnt/DroboShares/Drobo
/dev/sda1 2147480808 1909210880 238269928 89% /mnt/DroboShares/Drobo1
/ $ dmesg
ARM 2005q3-2)) #1 Tue May 20 14:32:03 PDT 2008
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 166666667, Tclk = 166666667
mvUbootVer: 0x10a080b
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
DMA zone: 32768 pages, LIFO batch:15
Normal zone: 0 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: console=ttyS0,115200 mtdparts=phys_mapped_flash:2m(kernel),14m@2m(root_fs) root=/dev/mtdblock1 rw ip=169.254.213.234:169.254.205.62:::DB88FXX81:egiga0:none
PID hash table entries: 1024 (order: 10, 16384 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 126208KB available (2975K code, 495K data, 100K init)
Calibrating delay loop... 332.59 BogoMIPS (lpj=1662976)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
mv_init: New Board ID GPIO value: 0x400

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PCI0_MEM ....base e8000000, size 128MB
PCI0_IO ....base f2100000, size 1MB
INTER_REGS ....base f1000000, size 1MB
DEVICE_CS0 ....no such
DEVICE_CS1 ....base f4000000, size 16MB
DEVICE_CS2 ....no such
DEV_BOOCS ....base f8000000, size 8MB
CRYPTO ENG ....base f0000000, size 64KB

Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- RD-88F5182-NAS-2 Soc: 88F5182 A2

Detected Tclk 166666667 and SysClk 166666667
Marvell USB EHCI Host controller #0: c04e3b00
Marvell USB EHCI Host controller #1: c04e3a40
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Use the XOR engines (offloading) for enhancing the following functions:
o RAID 5 Xor calculation
o kernel memcpy
o kenrel memzero
o copy user to/from kernel buffers
Number of XOR engines to use: 1
cesadev_init(c000f668)
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
inotify device minor=63
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler deadline registered
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Checksum offload enabled
o Loading network interface 'egiga0'
STRIP: Version 1.3A-STUART.CHESHIRE (unlimited channels)
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
physmap flash device: 1000000 at f4000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
0: offset=0x0,size=0x20000,blocks=128
2 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 2 MTD partitions on "phys_mapped_flash":
0x00000000-0x00200000 : "kernel"
0x00200000-0x01000000 : "root_fs"
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: park 0
ehci_platform ehci_platform.4523: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: park 0
ehci_platform ehci_platform.16781: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.2
usb 1-1: new high speed USB device using ehci_platform and address 2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
arm4regs : 378.000 MB/sec
8regs : 267.600 MB/sec
32regs : 310.400 MB/sec
raid5: using function: arm4regs (378.000 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
egiga0: link down
IP-Config: Guessing netmask 255.255.0.0
IP-Config: Complete:
device=egiga0, addr=169.254.213.234, mask=255.255.0.0, gw=255.255.255.255,
host=DB88FXX81, domain=, nis-domain=(none),
bootserver=169.254.205.62, rootserver=169.254.205.62, rootpath=
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
UNMOUNT HFS+ : s_id = [mtdblock1]
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 100K
egiga0: link up<5>, full duplex<5>, speed 1 Gbps<5>
ufsd: module license 'Commertial product' taints kernel.
ufsd: driver loaded
UFSD version 6.03 (Nov 22 2007, 14:00:04)
NTFS read/write support included
$Id: ufsdvfs.c,v 1.125 2007/11/16 14:19:33 shura Exp $
ufsd: address 0xbf031918
Vendor: TRUSTED Model: USB Mass Storage Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 4294967160 512-byte hdwr sectors (2199023 MB)
sda: assuming drive cache: write through
SCSI device sda: 4294967160 512-byte hdwr sectors (2199023 MB)
sda: assuming drive cache: write through
sda: sda1
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
Vendor: TRUSTED Model: USB Mass Storage Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdb: 4294967160 512-byte hdwr sectors (2199023 MB)
sdb: assuming drive cache: write through
SCSI device sdb: 4294967160 512-byte hdwr sectors (2199023 MB)
sdb: assuming drive cache: write through
sdb: sdb1
Attached scsi disk sdb at scsi2, channel 0, id 0, lun 1
Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 1, type 0
usb-storage: device scan complete
UNMOUNT HFS+ : s_id = [sdb1]
scsi: unknown opcode 0xea
UNMOUNT HFS+ : s_id = [sda1]
/ $ netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:5000 *:* LISTEN
tcp 0 0 *:5001 *:* LISTEN
tcp 0 0 *:139 *:* LISTEN
tcp 0 0 *:22 *:* LISTEN
tcp 0 0 *:445 *:* LISTEN
tcp 0 0 drobo.local:445 trollop.local:62710 ESTABLISHED
tcp 0 0 drobo.local:22 succubus.local:56748 ESTABLISHED
tcp 0 0 drobo.local:5000 trollop.local:62704 ESTABLISHED
tcp 0 0 drobo.local:2227 trollop.local:56666 TIME_WAIT
tcp 0 0 drobo.local:2228 trollop.local:56666 TIME_WAIT
tcp 0 0 drobo.local:5001 trollop.local:62705 ESTABLISHED
tcp 0 0 drobo.local:5001 trollop.local:62706 ESTABLISHED
udp 0 0 drobo.local:1025 ibendit.com:123 ESTABLISHED
udp 0 0 localhost:1026 *:*
udp 0 0 drobo.local:137 *:*
udp 0 0 *:137 *:*
udp 0 0 drobo.local:138 *:*
udp 0 0 *:138 *:*
udp 0 0 *:5002 *:*


blog.freebsd.org

| | Comments (7) | TrackBacks (0)
I may have mentioned before that I'm working on a website for blog.freebsd.org. I've got some ideas for what to put on it, but as most of my readers are FreeBSD users, I'd like to know what would y'all like to see? Some ideas I've had so far are:

  • Ongoing projects such as drivers that you normally have to dig down in Google to find some perforce repo with a status page that may or may not be up to date.
  • Security advisories.
  • New releases and details of all the changes being made - something a bit more in depth than the CHANGES file.
Have any other ideas? Comment and let me know!