Friday, May 29, 2009

1st annual VMS Reunion






VMS Quilt, originally uploaded by marcn.




Last night's VMS Reunion in Nashua was great fun. My very first VMS manager that I had right out of college was there and first person I ever saw carry a cell phone (circa 1988).

Thanks to Susan Skonetski for setting it all up!

More photos here:

http://www.flickr.com/photos/marcn/sets/72157618959630572/

Sunday, May 17, 2009

SheevaPlug customizing pre-installed Ubuntu/Jaunty

Show-n-Tell day -- brining LordShiva to the MA offices.

mediawiki / mysql / apache2


root@LordShiva:~# sudo apt-get install mediawiki
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw php-pear dbishell libipc-sharedcache-perl libcompress-zlib-perl php5-gd imagemagick
mediawiki-math memcached clamav mysql-doc-5.0 tinyca mailx
The following NEW packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mediawiki mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.6MB/53.6MB of archives.
After this operation, 166MB of additional disk space will be used.
Do you want to continue [Y/n]?


text mode web browsers (elinks / links2)


root@LordShiva:~# apt-get install elinks links2
The following extra packages will be installed:
elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10 libpng12-0
libruby1.8 libsysfs2 libtiff4 libts-0.0-0
Suggested packages:
elinks-doc
The following NEW packages will be installed:
elinks elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10
libpng12-0 libruby1.8 libsysfs2 libtiff4 libts-0.0-0 links2
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 5104kB of archives.
After this operation, 15.4MB of additional disk space will be used.
Do you want to continue [Y/n]?


lanmap

root@LordShiva:~# apt-get install lanmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
defoma fontconfig fontconfig-config graphviz libcairo2 libdatrie0
libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6
libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6
libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6
libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common
xfonts-encodings xfonts-utils
Suggested packages:
defoma-doc psfontmgr dfontmgr libft-perl gsfonts graphviz-doc libgd-tools
ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
ttf-arphic-bkai00mp
The following NEW packages will be installed:
defoma fontconfig fontconfig-config graphviz lanmap libcairo2 libdatrie0
libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6
libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6
libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6
libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common
xfonts-encodings xfonts-utils
0 upgraded, 39 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.4MB of archives.
After this operation, 24.6MB of additional disk space will be used.


screen

marc@LordShiva:~$ sudo apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done

The following extra packages will be installed:
gettext-base iso-codes python-apt python-central python-newt screen-profiles update-motd update-notifier-common
Suggested packages:
isoquery python-apt-dbg python-gtk2 python-vte python-newt-dbg screen-profiles-extras
The following NEW packages will be installed:
gettext-base iso-codes python-apt python-central python-newt screen screen-profiles update-motd update-notifier-common
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2947kB of archives.
After this operation, 14.6MB of additional disk space will be used.


Seems like a bunch of extra stuff... update-motd?

nfs

Installing NFS to hack around. Eventually storage on lordshiva will be via usb disks.


sudo root@LordShiva:~# sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
The following NEW packages will be installed:
libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common
nfs-kernel-server portmap
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 503kB of archives.
After this operation, 1548kB of additional disk space will be used.
Do you want to continue [Y/n]?


I made sure the nfs-kernel-server was also installed on where the disks were and added to /etc/exports something like:


/home/Music lordshiva(ro,sync,no_subtree_check)

and ran sudo exportfs -av

The on the SheevaPlug:

sudo mkdir -p /nfs/Music
sudo mount homeserver:/home/Music /nfs/Music



And updated /etc/gnump3/gnump3.conf to point to /nfs/Music

updating what munin monitors

Running the following commands will make some recommendations on additional things munin can monitor.


# munin-node-configure --shell --families auto
# munin-node-configure --shell --families contrib
# munin-node-configure --shell --families manual



Just cut-n-paste the ones you want to enable into a root shell. Remember to restart the daemon too.

root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_offset /etc/munin/plugins/ntp_offset
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_ /etc/munin/plugins/ntp_europium_canonical_com
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_states /etc/munin/plugins/ntp_states
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_ssh
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_www
root@LordShiva:~# /etc/init.d/munin-node restart


SheevaPlug as a mini-printserver

The pre-installed Ubuntu doesn't include any kernel modules, but thought I'd try using the SheevaPlug as a mini-print/scan server for my hp PSC 1510 All-in-One printer/scanner.

Install cups which pulls in a ton of other packages as well as the open source print management tools from Hewlett-Packard, hplip

root@LordShiva:~# apt-get install cups hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl avahi-utils bc cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm hpijs
hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1 libieee1284-3
libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base libsnmp15
pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils smartdimmer
smbclient ttf-freefont wget
Suggested packages:
cups-bsd cups-driver-gutenprint xpdf-korean xpdf-japanese xpdf-chinese-traditional xpdf-chinese-simplified cups-pdf kdeprint gtklp cups-pt xpp foomatic-db-hpijs
foomatic-db-gutenprint foo2zjs openprinting-ppds foomatic-gui ghostscript-x gnome-device-manager apmd hpijs-ppds hplip-doc hplip-gui gphoto2 gtkam hpoj
libsane-extras lm-sensors slpd openslp-doc cpufrequtils policykit-gnome python-dbus-doc python-dbus-dbg python-gobject-dbg python-imaging-doc python-imaging-dbg
unpaper smbfs
Recommended packages:
vbetool
The following NEW packages will be installed:
acl avahi-utils bc cups cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm
hpijs hplip hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1
libieee1284-3 libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base
libsnmp15 pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils
smartdimmer smbclient ttf-freefont wget
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.4MB of archives.
After this operation, 127MB of additional disk space will be used.
Do you want to continue [Y/n]?


Hmm, during the install I plugged in the printer and checked dmesg to see if it was recognized. The lanmap process appears to have had a problem allocating memory:


lanmap: page allocation failure. order:5, mode:0xc0d0
[] (dump_stack+0x0/0x14) from [] (__alloc_pages+0x28c/0x2a0)
[] (__alloc_pages+0x0/0x2a0) from [] (__get_free_pages+0x28/0x5c)
[] (__get_free_pages+0x0/0x5c) from [] (packet_set_ring+0xc4/0x30c)
[] (packet_set_ring+0x0/0x30c) from [] (packet_setsockopt+0x34c/0x4b4)
[] (packet_setsockopt+0x0/0x4b4) from [] (sys_setsockopt+0x84/0xa8)
[] (sys_setsockopt+0x0/0xa8) from [] (ret_fast_syscall+0x0/0x2c)
r8:c0027628 r7:00000126 r6:0004f978 r5:0000005c r4:00000010
Mem-info:
DMA per-cpu:
CPU 0: Hot: hi: 186, btch: 31 usd: 180 Cold: hi: 62, btch: 15 usd: 58
Active:54514 inactive:39796 dirty:0 writeback:0 unstable:0
free:26150 slab:6191 mapped:4044 pagetables:328 bounce:0
DMA free:104600kB min:2884kB low:3604kB high:4324kB active:218056kB inactive:159184kB present:520192kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
DMA: 8554*4kB 4492*8kB 1155*16kB 399*32kB 48*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 104600kB
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
131072 pages of RAM
26907 free pages
2296 reserved pages
6165 slab pages
20272 pages shared
0 pages swap cached
device eth0 left promiscuous mode


When I tried to killall lanmap, ssh sessions hung. I could get in via console still. The network seemed to be a bit wonky, so rebooted.

Hmm, scary kernel messsages

This is after the reboot and seems to be when hal is starting up on install. Install is slowing continuing.


Unable to handle kernel paging request at virtual address 1a364e25
pgd = c9e2c000
[1a364e25] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0 Not tainted (2.6.22.18 #1)
PC is at strnlen+0x20/0x34
LR is at vsnprintf+0x314/0x5b4
pc : [] lr : [] psr: a0000013
sp : ca99bdc0 ip : ca99bdd0 fp : ca99bdcc
r10: ffffffff r9 : ffffffff r8 : 00000000
r7 : ffffffff r6 : caa68041 r5 : 1a364e25 r4 : ca99be40
r3 : c00c8994 r2 : 1a364e25 r1 : fffffffe r0 : 1a364e25
Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: 0005317f Table: 09e2c000 DAC: 00000015
Process udevadm (pid: 4301, stack limit = 0xca99a268)
Stack: (0xca99bdc0 to 0xca99c000)
bdc0: ca99be1c ca99bdd0 c02414f8 c0240218 c023db48 ca99bdec ca99bdfc ca99bdf0
bde0: c027369c 35597fbe caa68041 c00d321a ca99be44 00000014 00000041 d4502000
be00: caa68000 c03ed298 00000000 c03fc7a4 ca99be38 ca99be20 c0241864 c02411f4
be20: c03ed240 ca99be40 caa68000 ca99beec ca99be48 c026ef10 c024184c c00d3219
be40: 1a364e25 1a364e25 d4502000 00001000 d4502000 d450200c d4502020 d4502033
be60: 1a364e25 00000044 000280d0 c03f1574 00000000 00000000 ffffff9c c03f1574
be80: c08927e8 000080d0 c03f1570 ce818ac0 00000000 00000000 ca99beec ca99bea8
bea0: c01472ec c0146724 000280d0 00000010 c0581d00 ca99a000 40020000 4001f000
bec0: 00100073 ca9e82a0 c08927e8 c03ed240 ca9e82a0 c08927e8 c03ed240 ca9e82c0
bee0: ca99befc ca99bef0 c026e810 c026ee28 ca99bf44 ca99bf00 c019ca14 c026e7fc
bf00: ca99bf74 ca99bf10 c0153c60 ca99bf70 00001000 4001f000 00000000 d48a7700
bf20: 4001f000 ca99bf70 00001000 4001f000 ca99a000 00000000 ca99bf6c ca99bf48
bf40: c01625e8 c019c964 00000000 00000000 00000000 00000000 d48a7700 00001000
bf60: ca99bfa4 ca99bf70 c01629fc c0162540 00000000 00000000 00000022 00000000
bf80: ffffffff 2a024d18 2a024d18 000007ff 00000003 c0027628 00000000 ca99bfa8
bfa0: c0027480 c01629c8 2a024d18 2a024d18 00000007 4001f000 00001000 00000000
bfc0: 2a024d18 2a024d18 000007ff 00000003 bece6f0c 0000000a 4017f000 bece6f0c
bfe0: 40170000 bece6e68 400aab04 400fe3fc 60000010 00000007 00002031 00002431
Backtrace:
[] (strnlen+0x0/0x34) from [] (vsnprintf+0x314/0x5b4)
[] (vsnprintf+0x0/0x5b4) from [] (sprintf+0x2c/0x34)
[] (sprintf+0x0/0x34) from [] (show_uevent+0xf8/0x140)
r3:1a364e25 r2:1a364e25 r1:c00d3219
[] (show_uevent+0x0/0x140) from [] (dev_attr_show+0x24/0x28)
r7:ca9e82c0 r6:c03ed240 r5:c08927e8 r4:ca9e82a0
[] (dev_attr_show+0x0/0x28) from [] (sysfs_read_file+0xc0/0x130)
[] (sysfs_read_file+0x0/0x130) from [] (vfs_read+0xb8/0x148)
[] (vfs_read+0x0/0x148) from [] (sys_read+0x44/0x70)
r7:00001000 r6:d48a7700 r5:00000000 r4:00000000
[] (sys_read+0x0/0x70) from [] (ret_fast_syscall+0x0/0x2c)
r8:c0027628 r7:00000003 r6:000007ff r5:2a024d18 r4:2a024d18
Code: ea000000 e2800001 e2511001 3a000002 (e5d03000)


I've removed just hal, apt-get --purge remove hal

Hmm, now it appears that the pre-install Ubuntu/Jaunty doesn't include any kernel loadablel modules for things like USB printers. Time to install stock Debian on this beastie.

Wednesday, May 13, 2009

SheevaPlug initial bootlog


__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: SHEEVA PLUG LE
U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE80
Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
CPU : Marvell Feroceon (Rev 1)
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 3
NAND read: device 0 offset 0x100000, size 0x400000
Reading data from 0x100000 -- 0% complete.
Reading data from 0x10a000 -- 1% complete.
Reading data from 0x114000 -- 2% complete.
Reading data from 0x11e800 -- 3% complete.
Reading data from 0x128800 -- 4% complete.
Reading data from 0x133000 -- 5% complete.
Reading data from 0x13d000 -- 6% complete.
Reading data from 0x147800 -- 7% complete.
Reading data from 0x151800 -- 8% complete.
Reading data from 0x15c000 -- 9% complete.
Reading data from 0x166000 -- 10% complete.
Reading data from 0x170800 -- 11% complete.
Reading data from 0x17a800 -- 12% complete.
Reading data from 0x185000 -- 13% complete.
Reading data from 0x18f000 -- 14% complete.
Reading data from 0x199800 -- 15% complete.
Reading data from 0x1a3800 -- 16% complete.
Reading data from 0x1ae000 -- 17% complete.
Reading data from 0x1b8000 -- 18% complete.
Reading data from 0x1c2800 -- 19% complete.
Reading data from 0x1cc800 -- 20% complete.
Reading data from 0x1d7000 -- 21% complete.
Reading data from 0x1e1000 -- 22% complete.
Reading data from 0x1eb800 -- 23% complete.
Reading data from 0x1f5800 -- 24% complete.
Reading data from 0x1ff800 -- 25% complete.
Reading data from 0x20a000 -- 26% complete.
Reading data from 0x214000 -- 27% complete.
Reading data from 0x21e800 -- 28% complete.
Reading data from 0x228800 -- 29% complete.
Reading data from 0x233000 -- 30% complete.
Reading data from 0x23d000 -- 31% complete.
Reading data from 0x247800 -- 32% complete.
Reading data from 0x251800 -- 33% complete.
Reading data from 0x25c000 -- 34% complete.
Reading data from 0x266000 -- 35% complete.
Reading data from 0x270800 -- 36% complete.
Reading data from 0x27a800 -- 37% complete.
Reading data from 0x285000 -- 38% complete.
Reading data from 0x28f000 -- 39% complete.
Reading data from 0x299800 -- 40% complete.
Reading data from 0x2a3800 -- 41% complete.
Reading data from 0x2ae000 -- 42% complete.
Reading data from 0x2b8000 -- 43% complete.
Reading data from 0x2c2800 -- 44% complete.
Reading data from 0x2cc800 -- 45% complete.
Reading data from 0x2d7000 -- 46% complete.
Reading data from 0x2e1000 -- 47% complete.
Reading data from 0x2eb800 -- 48% complete.
Reading data from 0x2f5800 -- 49% complete.
Reading data from 0x2ff800 -- 50% complete.
Reading data from 0x30a000 -- 51% complete.
Reading data from 0x314000 -- 52% complete.
Reading data from 0x31e800 -- 53% complete.
Reading data from 0x328800 -- 54% complete.
Reading data from 0x333000 -- 55% complete.
Reading data from 0x33d000 -- 56% complete.
Reading data from 0x347800 -- 57% complete.
Reading data from 0x351800 -- 58% complete.
Reading data from 0x35c000 -- 59% complete.
Reading data from 0x366000 -- 60% complete.
Reading data from 0x370800 -- 61% complete.
Reading data from 0x37a800 -- 62% complete.
Reading data from 0x385000 -- 63% complete.
Reading data from 0x38f000 -- 64% complete.
Reading data from 0x399800 -- 65% complete.
Reading data from 0x3a3800 -- 66% complete.
Reading data from 0x3ae000 -- 67% complete.
Reading data from 0x3b8000 -- 68% complete.
Reading data from 0x3c2800 -- 69% complete.
Reading data from 0x3cc800 -- 70% complete.
Reading data from 0x3d7000 -- 71% complete.
Reading data from 0x3e1000 -- 72% complete.
Reading data from 0x3eb800 -- 73% complete.
Reading data from 0x3f5800 -- 74% complete.
Reading data from 0x3ff800 -- 75% complete.
Reading data from 0x40a000 -- 76% complete.
Reading data from 0x414000 -- 77% complete.
Reading data from 0x41e800 -- 78% complete.
Reading data from 0x428800 -- 79% complete.
Reading data from 0x433000 -- 80% complete.
Reading data from 0x43d000 -- 81% complete.
Reading data from 0x447800 -- 82% complete.
Reading data from 0x451800 -- 83% complete.
Reading data from 0x45c000 -- 84% complete.
Reading data from 0x466000 -- 85% complete.
Reading data from 0x470800 -- 86% complete.
Reading data from 0x47a800 -- 87% complete.
Reading data from 0x485000 -- 88% complete.
Reading data from 0x48f000 -- 89% complete.
Reading data from 0x499800 -- 90% complete.
Reading data from 0x4a3800 -- 91% complete.
Reading data from 0x4ae000 -- 92% complete.
Reading data from 0x4b8000 -- 93% complete.
Reading data from 0x4c2800 -- 94% complete.
Reading data from 0x4cc800 -- 95% complete.
Reading data from 0x4d7000 -- 96% complete.
Reading data from 0x4e1000 -- 97% complete.
Reading data from 0x4eb800 -- 98% complete.
Reading data from 0x4f5800 -- 99% complete.
Reading data from 0x4ff800 -- 100% complete.
4194304 bytes read: OK
## Booting image at 00800000 ...
Image Name: Linux-2.6.22.18
Created: 2009-03-19 9:18:16 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2106696 Bytes = 2 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Starting kernel ...
Uncompressing Linux.................................................................................................................................... done, booting the kernel.
Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists. Total pages: 130048
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB 0MB 0MB = 512MB total
Memory: 515456KB available (3864K code, 257K data, 104K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....base 10000000, size 256MB
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB
Marvell Development Board (LSP Version KW_LSP_4.2.7_patch2)-- SHEEVA PLUG Soc: 88F6281 A0 LE
Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c08b8600
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: kw_clocksource clocksource has been installed.
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
RTC registered
Use the XOR engines (acceleration) for enhancing the following functions:
o RAID 5 Xor calculation
o kernel memcpy
o kenrel memzero
Number of XOR engines to use: 4
cesadev_init(c000c894)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
NTFS driver 2.1.28 [Flags: R/O].
JFFS2 version 2.2. (NAND)
2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o TCP segmentation offload enabled
o Receive checksum offload enabled
o Transmit checksum offload enabled
o Network Fast Processing (Routing) supported
o Driver ERROR statistics enabled
o Driver INFO statistics enabled
o Proc tool API enabled
o Rx descripors: q0=128
o Tx descripors: q0=532
o Loading network interface(s):
o eth0, ifindex = 1, GbE port = 0
o eth1, ifindex = 2, GbE port = 1
mvFpRuleDb (dfd00000): 16384 entries, 65536 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Warning Sata is Powered Off
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 372 at 0x02e80000
Bad eraseblock 2158 at 0x10dc0000
Bad eraseblock 2419 at 0x12e60000
Bad eraseblock 2420 at 0x12e80000
Bad eraseblock 2439 at 0x130e0000
2 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 2 MTD partitions on "nand_mtd":
0x00100000-0x00500000 : "uImage"
0x00500000-0x20000000 : "rootfs"
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux telephony interface: v1.00
Marvell Telephony Driver:
mvBoardVoiceAssembleModeGet: TDM not supported(boardId=0x9)
assembly=-1,irq=-1
mp_check_config: Error, invalid voice assembley mode
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1 97 MB/s
raid6: int32x2 114 MB/s
raid6: int32x4 122 MB/s
raid6: int32x8 110 MB/s
raid6: using algorithm int32x4 (122 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
arm4regs : 1071.600 MB/sec
8regs : 754.800 MB/sec
32regs : 900.000 MB/sec
raid5: using function: arm4regs (1071.600 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mvsdmmc: irq =28 start f1090000
mvsdmmc: no IRQ detect
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
mvCLAudioCodecRegGet: Error while reading register!
mvCLAudioCodecInit: Error - Invalid Cirrus Logic chip/rev ID!
Error - Cannot initialize audio decoder.at address =0xff<6>ALSA device list:
#0: Marvell mv88fx_snd ALSA driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new SD card at address d3cb
mmcblk0: mmc0:d3cb SD02G 1985024KiB
mmcblk0: p1
eth0: link down
eth0: started
IP-Config: Complete:
device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
host=DB88FXX81, domain=, nis-domain=(none),
bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
eth0: link up, half duplex, speed 10 Mbps
Empty flash at 0x087fd338 ends at 0x087fd800
Empty flash at 0x0f3869a0 ends at 0x0f387000
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 104K
* Setting preliminary keymap...
[80G
[74G[ OK ]
* Setting the system clock
The Hardware Clock does not contain a valid time, so we cannot set the System Time from it.
Unable to set system clock.
[33m*
[39;49m Unable to set System Clock to: Sun Jun 23 11:17:01 UTC 1963
* Starting basic networking...
[80G
[74G[ OK ]
* Starting kernel event manager...
[80G
[74G[ OK ]
* Loading hardware drivers...
[80G
[74G[ OK ]
* Setting the system clock
The Hardware Clock does not contain a valid time, so we cannot set the System Time from it.
Unable to set system clock.
[33m*
[39;49m Unable to set System Clock to: Sun Jun 23 11:17:04 UTC 1963
* Loading kernel modules...
[80G * Loading manual drivers...
[80G
[74G[ OK ]
* Setting kernel variables (/etc/sysctl.conf)...
[80G
[74G[ OK ]
* Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)...
[80G
[74G[ OK ]
* Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...
[80G
[74G[ OK ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)...
[80G error: "vm.mmap_min_addr" is an unknown key
[74G[
[31mfail
[39;49m]
* Setting kernel variables (/etc/sysctl.d/10-tcp-timestamps-workaround.conf)...
[80G
[74G[ OK ]
* Activating swap...
[80G
[74G[ OK ]
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
* Starting early crypto disks...
[80G
[74G[ OK ]
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
* Starting remaining crypto disks...
[80G
[74G[ OK ]
* Checking file systems...
[80G fsck 1.41.3 (12-Oct-2008)
[74G[ OK ]
* Mounting local filesystems...
[80G
[74G[ OK ]
* Activating swapfile swap...
[80G
[74G[ OK ]
* Configuring network interfaces...
[80G
[74G[ OK ]
* Setting up console font and keymap...
[80G
[74G[ OK ]
* Starting system log daemon...
[80G
Ubuntu jaunty (development branch) debian ttyS0
debian login:
[74G[ OK ]
* Starting kernel log daemon...
[80G
[74G[ OK ]
* Starting OpenBSD Secure Shell server sshd
[80G
[74G[ OK ]
* Starting periodic command scheduler crond
[80G
[74G[ OK ]
fat: exports duplicate symbol fat_add_entries (owned by kernel)
insmod: error inserting '/boot/fat.ko': -1 Invalid module format

SheevaPlug initial boot command

From dmesg:
console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none

SheevaPlug initial Ubunut/Jaunty pre-loaded kernel

Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009

SheevaPlug /proc/cpuinfo


$ cat /proc/cpuinfo
Processor : ARM926EJ-S rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128

Hardware : Feroceon-KW
Revision : 0000
Serial : 0000000000000000

SheevaPlug lsusb

Running Ubuntu/Jaunty

root@LordShiva:~# lsusb -v

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.22.18 ehci_hcd
iProduct 2 Marvell Orion EHCI
iSerial 1 ehci_marvell.70059
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 1
wHubCharacteristic 0x0009
Per-port power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Device Status: 0x0001
Self Powered
root@LordShiva:~#

SheevaPlug initial mount points

Before updating Ubuntu


root@LordShiva:~# more df.orig
Filesystem Size Used Avail Use% Mounted on
rootfs 507M 148M 360M 30% /
tmpfs 252M 0 252M 0% /lib/init/rw
varrun 252M 40K 252M 1% /var/run
varlock 252M 0 252M 0% /var/lock
udev 252M 16K 252M 1% /dev
tmpfs 252M 0 252M 0% /dev/shm
tmpfs 252M 22M 231M 9% /var/cache/apt

SheevaPlug's Initial dpkg list

My SheevaPlug arrived with Ubuntu/Jaunty pre-installed on it.

Here is the initial dpkg list of packages:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================================-========================-============================================
ii adduser 3.110ubuntu2 add and remove users and groups
ii apt 0.7.19ubuntu1 Advanced front-end for dpkg
ii apt-utils 0.7.19ubuntu1 APT utility programs
ii base-files 5ubuntu1 Debian base system miscellaneous files
ii base-passwd 3.5.19 Debian base system master password and group
ii bash 3.2-4ubuntu1 The GNU Bourne Again SHell
ii belocs-locales-bin 2.4-4ubuntu2 tools for compiling locale data files
ii bsdutils 1:2.14-1ubuntu4 Basic utilities from 4.4BSD-Lite
ii busybox-initramfs 1:1.10.2-2ubuntu1 Standalone shell setup for initramfs
ii bzip2 1.0.5-1ubuntu1 high-quality block-sorting file compressor -
ii ca-certificates 20080809 Common CA certificates
ii console-setup 1.28ubuntu4 Set up the font and the keyboard on the cons
ii console-terminus 4.26-2.1 Fixed-width fonts for fast reading on the Li
ii coreutils 6.10-6ubuntu1 The GNU core utilities
ii cpio 2.9-14ubuntu1 GNU cpio -- a program to manage archives of
ii cron 3.0pl1-105ubuntu1 management of regular background processing
ii cryptsetup 2:1.0.6-7ubuntu1 configures encrypted block devices
ii dash 0.5.4-12ubuntu2 POSIX-compliant shell
ii debconf 1.5.24ubuntu2 Debian configuration management system
ii debconf-i18n 1.5.24ubuntu2 full internationalization support for debcon
ii debianutils 2.30ubuntu2 Miscellaneous utilities specific to Debian
ii dhcp3-client 3.1.1-5ubuntu1 DHCP client
ii dhcp3-common 3.1.1-5ubuntu1 common files used by all the dhcp3* packages
ii diff 2.8.1-12ubuntu1 File comparison utilities
ii dmsetup 2:1.02.27-4ubuntu3 The Linux Kernel Device Mapper userspace lib
ii dosfstools 3.0.1-1 utilities for making and checking MS-DOS FAT
ii dpkg 1.14.24ubuntu1 Debian package management system
ii e2fslibs 1.41.3-1ubuntu2 ext2 filesystem libraries
ii e2fsprogs 1.41.3-1ubuntu2 ext2/ext3/ext4 file system utilities
ii eject 2.1.5+deb1+cvs20081104-2 ejects CDs and operates CD-Changers under Li
ii file 4.26-2 Determines file type using "magic" numbers
ii findutils 4.4.0-2ubuntu3 utilities for finding files--find, xargs
ii gcc-4.3-base 4.3.2-2ubuntu12 The GNU Compiler Collection (base package)
ii gnupg 1.4.9-3ubuntu1 GNU privacy guard - a free PGP replacement
ii gpgv 1.4.9-3ubuntu1 GNU privacy guard - signature verification t
ii grep 2.5.3~dfsg-6ubuntu1 GNU grep, egrep and fgrep
ii gzip 1.3.12-6ubuntu2 The GNU compression utility
ii hashalot 0.3-5 Read and hash a passphrase
ii hostname 2.95 utility to set/show the host name or domain
ii ifupdown 0.6.8ubuntu15 high level tools to configure network interf
ii initramfs-tools 0.92bubuntu18 tools for generating an initramfs
ii initscripts 2.86.ds1-61ubuntu1 Scripts for initializing and shutting down t
ii iproute 20080725-2 networking and traffic control tools
ii iputils-ping 3:20071127-1 Tools to test the reachability of network ho
ii kbd 1.14.1-4ubuntu2 Linux console font and keytable utilities
ii klibc-utils 1.5.14-1~exp1ubuntu2 small utilities built with klibc for early b
ii klogd 1.5-5ubuntu2 Kernel Logging Daemon
ii language-pack-en 1:8.10+20081025 translation updates for language English
ii language-pack-en-base 1:8.10+20081025 translations for language English
ii laptop-detect 0.13.7ubuntu1 attempt to detect a laptop
ii less 418-1 Pager program similar to more
ii libacl1 2.2.47-2 Access control list shared library
ii libatm1 2.4.1-17.2 shared library for ATM (Asynchronous Transfe
ii libattr1 1:2.4.43-1 Extended attribute shared library
ii libblkid1 1.41.3-1ubuntu2 block device id library
ii libbz2-1.0 1.0.5-1ubuntu1 high-quality block-sorting file compressor l
ii libc6 2.9-0ubuntu7 GNU C Library: Shared libraries
ii libcap1 1:1.10-14build1 support for getting/setting POSIX.1e capabil
ii libcomerr2 1.41.3-1ubuntu2 common error description library
ii libcups2 1.3.9-11ubuntu1 Common UNIX Printing System(tm) - libs
ii libcurl3-gnutls 7.18.2-8ubuntu1 Multi-protocol file transfer library (GnuTLS
ii libdb4.2 4.2.52+dfsg-5 Berkeley v4.2 Database Libraries [runtime]
ii libdb4.6 4.6.21-12 Berkeley v4.6 Database Libraries [runtime]
ii libdb4.7 4.7.25-6ubuntu1 Berkeley v4.7 Database Libraries [runtime]
ii libdevmapper1.02.1 2:1.02.27-4ubuntu3 The Linux Kernel Device Mapper userspace lib
ii libedit2 2.11~20080614-1ubuntu1 BSD editline and history libraries
ii libfribidi0 0.10.9-1 Free Implementation of the Unicode BiDi algo
ii libgcc1 1:4.3.2-2ubuntu12 GCC support library
ii libgcrypt11 1.4.1-2ubuntu1 LGPL Crypto library - runtime library
ii libgnutls26 2.4.2-4 the GNU TLS library - runtime library
ii libgpg-error0 1.4-2ubuntu7 library for common error values and messages
ii libgpm2 1.20.4-3ubuntu1 General Purpose Mouse - shared library
ii libidn11 1.10-3 GNU libidn library, implementation of IETF I
ii libkeyutils1 1.2-9 Linux Key Management Utilities (library)
ii libklibc 1.5.14-1~exp1ubuntu2 minimal libc subset for use with initramfs
ii libkrb53 1.6.dfsg.4~beta1-4 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-0ubuntu7 OpenLDAP libraries
ii liblocale-gettext-perl 1.05-4build1 Using libc functions for internationalizatio
ii liblockfile1 1.08-3 NFS-safe locking library, includes dotlockfi
ii liblzo2-2 2.03-1 data compression library
ii libmagic1 4.26-2 File type determination library using "magic
ii libncurses5 5.7+20081220-1ubuntu1 shared libraries for terminal handling
ii libncursesw5 5.7+20081220-1ubuntu1 shared libraries for terminal handling (wide
ii libnewt0.52 0.52.2-11.3ubuntu1 Not Erik's Windowing Toolkit - text mode win
ii libpam-modules 1.0.1-5ubuntu1 Pluggable Authentication Modules for PAM
ii libpam-runtime 1.0.1-5ubuntu1 Runtime support for the PAM library
ii libpam0g 1.0.1-5ubuntu1 Pluggable Authentication Modules library
ii libpcre3 7.8-2ubuntu1 Perl 5 Compatible Regular Expression Library
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libreadline5 5.2-3build1 GNU readline and history libraries, run-time
ii libsasl2-2 2.1.22.dfsg1-23ubuntu2 Cyrus SASL - authentication abstraction libr
ii libsasl2-modules 2.1.22.dfsg1-23ubuntu2 Cyrus SASL - pluggable authentication module
ii libselinux1 2.0.65-5 SELinux shared libraries
ii libsepol1 2.0.30-2 Security Enhanced Linux policy library for c
ii libslang2 2.1.3-3ubuntu3 The S-Lang programming library - runtime ver
ii libsqlite3-0 3.5.9-6 SQLite 3 shared library
ii libss2 1.41.3-1ubuntu2 command-line interface parsing library
ii libssl0.9.8 0.9.8g-15ubuntu1 SSL shared libraries
ii libstdc++6 4.3.2-2ubuntu12 The GNU Standard C++ Library v3
ii libtalloc1 1.2.0~git20080616-1 hierarchical pool based memory allocator
ii libtasn1-3 1.5-1 Manage ASN.1 structures (runtime)
ii libtext-charwidth-perl 0.04-5build1 get display widths of characters on the term
ii libtext-iconv-perl 1.7-1build1 converts between character sets in Perl
ii libtext-wrapi18n-perl 0.06-6 internationalized substitute of Text::Wrap
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii libuuid1 1.41.3-1ubuntu2 universally unique id library
ii libvolume-id1 136-4 volume identification library
ii libwbclient0 2:3.2.5-3ubuntu1 client library for interfacing with winbind
ii libwrap0 7.6.q-16 Wietse Venema's TCP wrappers library
ii libx11-6 2:1.1.5-2ubuntu2 X11 client-side library
ii libx11-data 2:1.1.5-2ubuntu2 X11 client-side library
ii libxau6 1:1.0.4-1 X11 authorisation library
ii libxcb-xlib0 1.1-1.1 X C Binding, Xlib/XCB interface library
ii libxcb1 1.1-1.1 X C Binding
ii libxdmcp6 1:1.0.2-3 X11 Display Manager Control Protocol library
rc libxext6 2:1.0.4-1 X11 miscellaneous extension library
rc libxmuu1 2:1.0.4-1 X11 miscellaneous micro-utility library
ii locales 2.7.9-5 common files for locale support
ii lockfile-progs 0.1.11ubuntu2 Programs for locking and unlocking files and
ii login 1:4.1.1-6ubuntu2 system login tools
ii logrotate 3.7.7-2ubuntu1 Log rotation utility
ii lsb-base 3.2-20ubuntu2 Linux Standard Base 3.2 init script function
ii lsb-release 3.2-20ubuntu2 Linux Standard Base version reporting utilit
ii lzma 4.43-14ubuntu1 Compression method of 7z format in 7-Zip pro
ii makedev 2.3.1-88 creates device files in /dev
ii mawk 1.3.3-13ubuntu1 a pattern scanning and text processing langu
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap', and sup
ii mktemp 1.5-9 tool for creating temporary files
ii module-init-tools 3.3-pre11-4ubuntu18 tools for managing Linux kernel modules
ii mount 2.14-1ubuntu4 Tools for mounting and manipulating filesyst
ii mtd-tools 20080508-1ubuntu1 dummy package for transition purposes
ii mtd-utils 20080508-1ubuntu1 Memory Technology Device Utilities
ii nano 2.0.7-4 free Pico clone with some new features
ii ncurses-base 5.7+20081220-1ubuntu1 basic terminal type definitions
ii ncurses-bin 5.7+20081220-1ubuntu1 terminal-related programs and man pages
ii net-tools 1.60-21ubuntu1 The NET-3 networking toolkit
ii netbase 4.34ubuntu1 Basic TCP/IP networking system
ii netcat 1.10-38 TCP/IP swiss army knife -- transitional pack
ii netcat-traditional 1.10-38 TCP/IP swiss army knife
ii ntpdate 1:4.2.4p4+dfsg-7ubuntu3 client for setting system time from NTP serv
ii openssh-client 1:5.1p1-4ubuntu1 secure shell client, an rlogin/rsh/rcp repla
ii openssh-server 1:5.1p1-4ubuntu1 secure shell server, an rshd replacement
ii openssl 0.9.8g-15ubuntu1 Secure Socket Layer (SSL) binary and related
ii passwd 1:4.1.1-6ubuntu2 change and administer password and group dat
ii perl-base 5.10.0-19ubuntu1 minimal Perl system
ii procps 1:3.2.7-9ubuntu3 /proc file system utilities
ii python 2.5.2-3ubuntu1 An interactive high-level object-oriented la
ii python-minimal 2.5.2-3ubuntu1 A minimal subset of the Python language (def
ii python2.5 2.5.4-0ubuntu1 An interactive high-level object-oriented la
ii python2.5-minimal 2.5.4-0ubuntu1 A minimal subset of the Python language (ver
ii readline-common 5.2-3build1 GNU readline and history libraries, common f
ii samba 2:3.2.5-3ubuntu1 a LanManager-like file and printer server fo
ii samba-common 2:3.2.5-3ubuntu1 Samba common files used by both the server a
ii sed 4.1.5-8 The GNU sed stream editor
ii startup-tasks 0.3.9-8 definitions of essential tasks to run on sta
ii sudo 1.6.9p17-1ubuntu2 Provide limited super user privileges to spe
ii sysklogd 1.5-5ubuntu2 System Logging Daemon
ii system-services 0.3.9-8 definitions of essential system services
ii sysv-rc 2.86.ds1-61ubuntu1 System-V-like runlevel change mechanism
ii sysvinit-utils 2.86.ds1-61ubuntu1 System-V-like utilities
ii tar 1.20-1 GNU version of the tar archiving utility
ii tasksel 2.73ubuntu13 Tool for selecting tasks for installation on
ii tasksel-data 2.73ubuntu13 Official tasks used for installation of Debi
ii tcpd 7.6.q-16 Wietse Venema's TCP wrapper utilities
ii tzdata 2008i-3 time zone and daylight-saving time data
ii ubuntu-keyring 2008.03.04 GnuPG keys of the Ubuntu archive
ii ubuntu-minimal 1.131 Minimal core of Ubuntu
ii ucf 3.0011 Update Configuration File: preserve user cha
ii udev 136-4 rule-based device node and kernel event mana
ii unzip 5.52-12ubuntu1 De-archiver for .zip files
ii update-inetd 4.31 inetd configuration file updater
ii upstart 0.3.9-8 event-based init daemon
ii upstart-compat-sysv 0.3.9-8 compatibility for System-V-like init
ii upstart-logd 0.3.9-8 boot logging daemon
ii util-linux 2.14-1ubuntu4 Miscellaneous system utilities
ii uuid-runtime 1.41.3-1ubuntu2 universally unique id library
ii vim-common 2:7.2.079-1ubuntu1 Vi IMproved - Common files
ii vim-tiny 2:7.2.079-1ubuntu1 Vi IMproved - enhanced vi editor - compact v
ii whiptail 0.52.2-11.3ubuntu1 Displays user-friendly dialog boxes from she
rc x11-common 1:7.4~5ubuntu10 X Window System (X.Org) infrastructure
ii xkb-data 1.3-2ubuntu5 X Keyboard Extension (XKB) configuration dat
ii zlib1g 1:1.2.3.3.dfsg-12ubuntu1 compression library - runtime

Tuesday, May 12, 2009

SheevaPlug finally arrives







After placing my order on April 1st, my SheevaPlug arrived today.

Isn't it cute?



Toward the end of April and it still hadn't gotten a FedEx tracking number, I sent email to Global Scale Technologies. Within a few hours had a reply from The VP of Sales and Marketing. When I provided my order number, he verified it was received and made sure it was shipped out early May. Kudos on the service!

Getting started with the SheevaPlug

My SheevaPlug finally arrived. Ordered the morning (EDT) of April 1st and arrived May 12th.

Photos of the unboxing: http://www.flickr.com/photos/marcn/sets/72157618065995784/

Getting Started


  • Connect the provided mini-USB & network cable to SheevaPlug


  • On desktop do this to load the right driver. sudo modprobe ftdi_sio vendor=0x9e88 product=0x9e8f


  • Install and run gtkerm Set the default port to /dev/ttyUSB1 and 11850 8N1 for the connection. I saved it as the default configuration to make like easier later.


  • Apply power and watch the boot via the console



Initial Configuration

Default root password is nosoup4u, changed to something else...

NB: ssh-server already installed

Set the hostname to LordShiva

Better apt caching

Add to local apt caching by adding /etc/apt/apt.conf. I already have apt-cacher setup on the 192.168.1.234 host.

Acquire::http { Proxy "http://[192.168.1.234]:3142"; };

Let apt work better

Because the /var/cache/apt/archives/partial is on a tmpfs, it gets removed on reboot. Create it manually (should add this to the rc.local)

mkdir -p /var/cache/apt/archives/partial

Update the pre-installed Ubuntu

apt-get update

Fix clock

The time was initially set to Sun Jun 23 10:26:13 UTC 1963

Install ntp...

root@LordShiva:~# apt-get install ntpdate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libx11-data libxcb1 libxau6 libxdmcp6 libxcb-xlib0 libx11-6
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libcap2
The following NEW packages will be installed:
libcap2
The following packages will be upgraded:
ntpdate
1 upgraded, 1 newly installed, 0 to remove and 102 not upgraded.
Need to get 75.4kB of archives.
After this operation, 69.6kB of additional disk space will be used.
Do you want to continue [Y/n]?



I've not fixed the nameserver yet, so point ntpdate to the ip address of ntp.ubuntu.com (91.189.94.4)


root@LordShiva:~# ntpdate 91.189.94.4
13 May 02:30:20 ntpdate[1362]: step time server 91.189.94.4 offset 1448118269.109798 sec



Something strange with /etc/resolv.conf

This is what it has, but there is no DNS server running on the SheevaPlug.

domain mv.com
search mv.com
nameserver 127.0.0.1


Fix it manually to point to my local ISP.

domain mv.com
search mv.com mv.com
nameserver 199.125.85.1
nameserver 199.125.85.2


Upgrade:

root@LordShiva:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
libx11-6 libxcb1 python python-minimal tasksel ubuntu-minimal
The following packages will be upgraded:
adduser apt apt-utils base-files base-passwd bash bsdutils busybox-initramfs
console-setup cpio cryptsetup debconf debconf-i18n debianutils dhcp3-client
dhcp3-common dmsetup e2fslibs e2fsprogs eject file gcc-4.3-base ifupdown
initramfs-tools initscripts kbd klogd language-pack-en language-pack-en-base
libblkid1 libc6 libcomerr2 libcups2 libcurl3-gnutls libdevmapper1.02.1
libgcc1 libgnutls26 libgpm2 libkrb53 libldap-2.4-2 libmagic1 libncurses5
libncursesw5 libnewt0.52 libpam-modules libpam-runtime libpam0g libreadline5
libsasl2-2 libsasl2-modules libselinux1 libsepol1 libsqlite3-0 libss2
libssl0.9.8 libstdc++6 libuuid1 libvolume-id1 libwbclient0 libx11-data
locales login logrotate lsb-base lsb-release module-init-tools mount nano
ncurses-base ncurses-bin netbase openssh-client openssh-server openssl
passwd procps python2.5 python2.5-minimal readline-common samba samba-common
sudo sysklogd sysv-rc sysvinit-utils tasksel-data tzdata ucf udev util-linux
uuid-runtime vim-common vim-tiny whiptail xkb-data zlib1g
96 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 40.3MB of archives.
After this operation, 3351kB of additional disk space will be used.
Do you want to continue [Y/n]?



NB: /etc/dhcp/dhcp.conf was changed, installed package version
NB: /etc/samba/smb.conf was changed, installed package version

ARG! I CAN"T LOG IN

The new root password doesn't work!

''Fortunately'' it is a known problem. See
http://openplug.org/plugforum/index.php?topic=110.0


To fix:

Use serial line and catch (press any key) on boot.

Marvell> printenv bootargs
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
Marvell> setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none init=/bin/bash
Marvell> boot


Then fix by doing:

passwd -d root
passwd root


until you see 'passwd: password updated successfully'