SheevaPlug
ページを編集するにはログインが必要です。
SheevaPlugがやってきた
4週間待ちのSheevaPlugが届いた。digital西行庵blog"SheevaPlug"
Marvell>> version U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16 Marvell>> printenv baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/mtdblock2 ro ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 serverip=10.10.0.2 ipaddr=10.10.0.1 cesvcid=ULULULULULULPPULULULULULDA bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 yuk_ethaddr=00:00:00:EE:51:81 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethaddr=00:50:43:01:CA:BB run_diag=no 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 bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no enaAutoRecovery=yes Environment size: 1304/131068 bytes Marvell>>
WindowsXP上のTeraTermで動かしてみる
SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zipをダウンロード、解凍。
電源を投入したSheevaPlugをUSB接続する
ウイザードに従ってドライバをインストール。
TeraTermでCOM接続
COM10に割り当てられたようだ。
シリアルポート設定
ポート: COM10 ボー・レート: 115200 データ: 8bit パリティ: none ストップ: 1 bit フロー制御: none初回ログイン
Ubuntu jaunty (development branch) debian ttyS0 debian login: root Password: nosoup4u
Last login: Sat Jun 20 07:01:18 UTC 2009 on ttyS0 Linux debian 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ root@debian:~#
おお、ログインできたね。パスワードを変えておこう。
root@debian:~# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
ユーザを作っておこう。
root@debian:~# adduser hiroaki Adding user `hiroaki' ... Adding new group `hiroaki' (1000) ... Adding new user `hiroaki' (1000) with group `hiroaki' ... Creating home directory `/home/hiroaki' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for hiroaki Enter the new value, or press ENTER for the default Full Name []: Hiroaki Nitobe Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y root@debian:~#
/etc/hosts
127.0.0.1 localhost 192.168.1.222 SheevaPlug #91.189.88.36 ports.ubuntu.com
/etc/hostname
SheevaPlug
/etc/resolv.conf
#domain marvell.com #search marvell.com #nameserver 127.0.0.1 nameserver 192.168.1.1
/etc/network/interfaces
auto lo iface lo inet loopback address 127.0.0.1 netmask 255.0.0.0 auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.1.222 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 # /usr/share/doc/ifupdown/examples for more information.
/etc/rc/local
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #insmod /boot/fat.ko #insmod /boot/vfat.ko mkdir -p /var/cache/apt/archives/partial #/root/discoverd #cd / #./demo.sh #date 012618002009 #hwclock -w exit 0
root@SheevaPlug:~# /bin/sh -c 'echo 'LANG="ja_JP.UTF-8"' > /etc/default/locale' root@SheevaPlug:~# locale-gen "ja_JP.UTF-8" Generating locales... ja_JP.UTF-8... done Generation complete.
root@SheevaPlug:~# apt-get install aptitude : root@SheevaPlug:~# aptitude install gcc : root@SheevaPlug:~# aptitude install make : root@SheevaPlug:~# aptitude install m4 : root@SheevaPlug:~# aptitude install wget : root@SheevaPlug:~# wget ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.gz : root@SheevaPlug:~# tar zxvf gmp-4.2.2.tar.gz : root@SheevaPlug:~# cd gmp-4.2.2 root@gmp-4.2.2# ./configure : root@gmp-4.2.2# make : root@gmp-4.2.2# make install :
いつもの<16>
nitobe@SheevaPlug:~$ cc -static -O2 -I/usr/local/include pi.c -o pi /usr/local/lib/libgmp.a nitobe@SheevaPlug:~$ time ./pi > ./pi.txt real 1m12.405s user 1m11.310s sys 0m1.090s
おお、家庭用としては、そこそこのスピードだ。んが、遅い。
Keyword(s):
References:[Revenge of FreeBSD8 on SheevaPlug] [Update of U-Boot on Sheevaplug] [FreeBSD8 on SheevaPlug (Progress on the way)] [SheevaPlug] [Update U-Boot by SheevaPlug oneself]