Showing posts with label Gentoo System. Show all posts
Showing posts with label Gentoo System. Show all posts

2007-01-22

Buffalo Linkstation Pro LS-320GL (LS-GL)

Product Info

@HK$1,880 with 2 years product warranty.
arm9@400MHz, 128MB RAM, 320GB Serial-ATA
USB 2.0 x2, 10/100/1000M Ethernet
Power: 21W @max, built-in power transformer.
Fan@1900rpm (silent@auto)

Flashed with Freelink@linkstationwiki.net

root@LS-GL7D6:~# dmesg
Linux version 2.6.12.6-arm1 (root@Desktop) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #77 Tue Dec 5 22:23:46 CST 2006
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 = 200000000, Tclk = 166664740


- Warning - This LSP release was tested only with U-Boot release 1.7.3

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 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.01
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: 110208KB available (3370K code, 570K data, 112K init)
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 15360K
NET: Registered protocol family 16
FLASH boardId = 12
Flash bankwidth 1, base ff800000, size 400000
BUFFALO LS_GL FLASH size 4096[KB]

Marvell Development Board (LSP Version 1.7.8_NAS)-- BUFFALO_BOARD_LS_GL

Detected Tclk 166664740 and SysClk 200000000
Marvell USB EHCI Host controller #0: c1702bc0
Marvell USB EHCI Host controller #1: c1702980
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 IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
cesadev_init(c0011304)
mvCesaInit: sessions=640, queue=32, pSram=f0000000
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SGI XFS with no debug enabled
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
ttyS1 at MMIO 0x0 (irq = 4) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Checksum offload enabled
o Loading network interface ** egiga_init_module (0)
'eth0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Vendor: Seagate   Model: ST3320620AS   Rev: 3.AA
Type:   Direct-Access  ANSI SCSI revision: 03
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda4 <>
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0,  type 0
physmap flash device: 400000 at ff800000
CFI: Found no phys_mapped_flash device at location zero
>jedec_probe
Found: SST 39LF020
phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank
phys_mapped_flash: Found an alias at 0x40000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x80000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0xc0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x100000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x140000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x180000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x1c0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x200000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x240000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x280000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x2c0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x300000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x340000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x380000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x3c0000 for the chip at 0x0
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
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
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice  <--- funny ?
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
MICON V2 (C) BUFFALO INC. V.1.00 installed.
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
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda2
Ending clean XFS mount for filesystem: sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 112K
Adding 136512k swap on /dev/sda5.  Priority:-1 extents:1
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
Ending clean XFS mount for filesystem: sda6
eth0: link down
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
$ ssh 192.168.11.16
         _sudZUZ#Z#XZo=_         DDDD   EEEEEE BBBB   IIIIII  AAAA   NN   NN
    _jmZZ2!!~---~!!X##wa       DD DD  EE     BB BB    II   AA  AA  NNN  NN
 .      -]Xb/    ~    __#2(    One ARM ARM926EJ-Sid(wb) rev 0 (v5l) Processor, 128M RAM
-Zo;       +!4ZwaaaauZZXY'      266.24 Bogomips Total
*#[,        ~-?!!!!!!-~        LS-GL7D6
 XUb;.
  )YXL,,
    +3#bc,
      -)SSL,,
         ~~~~~


BUFFALO INC. LinkStation series LS-GL(IESADA)
root@LS-GL7D6:~# uname -a
Linux LS-GL7D6 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux
root@LS-GL7D6:~# free
             total       used       free     shared    buffers     cached
Mem:        125844      41476      84368          0      14360      17328
-/+ buffers/cache:       9788     116056
Swap:       136512          0     136512
root@LS-GL7D6:~# mount
rootfs on / type rootfs (rw)
/dev/root.old on /initrd type ext2 (rw)
/dev/root on / type xfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
proc on /proc type proc (rw,nodiratime,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,nodev,noexec)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
tmpfs on /tmp type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw,noatime)
/dev/sda6 on /mnt/disk1 type xfs (rw,noatime,nodiratime)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root@LS-GL7D6:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  465244    233628    231616  51% /
/dev/root.old            13303     10980      2323  83% /initrd
/dev/root               465244    233628    231616  51% /
tmpfs                      100         0       100   0% /lib/init/rw
tmpfs                    62920         0     62920   0% /dev/shm
tmpfs                    10240         8     10232   1% /tmp
/dev/sda1               194443     10560    173844   6% /boot
/dev/sda6            311602188      1216 311600972   1% /mnt/disk1
root@LS-GL7D6:~# fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          25      200781   83  Linux
/dev/sda2              26          87      498015   83  Linux
/dev/sda4              88       38913   311869845    5  Extended
/dev/sda5              88         104      136521   82  Linux swap / Solaris
/dev/sda6             105       38913   311733261   83  Linux
root@LS-GL7D6:~# ls -la /boot/
total 6450
drwxr-xr-x  3 root root    1024 Jan 24 00:32 .
drwxr-xr-x 18 root root    4096 Jan 23 14:06 ..
-rw-r--r--  1 root root     722 Jan 23 15:31 boot_options
-rw-r--r--  1 root root   18592 Jan 23 15:04 conf_save.tgz
-rw-r--r--  1 root root       0 Dec 18 18:45 hddrootmode
-rw-r--r--  1 root root 4563579 Dec 27 22:29 initrd.buffalo
-rw-r--r--  1 root root      84 Dec 15 22:27 linkstation_release
-rw-r--r--  1 root root   27147 Jan 23 15:04 log.tgz
drwx------  2 root root   12288 Dec 15 04:58 lost+found
-rw-r--r--  1 root root      29 Jan 24 00:32 rootfs_ok
-rw-r--r--  1 root root 1942020 Jan 23 15:02 uImage.buffalo
root@LS-GL7D6:~# hdparm -Tt /dev/sd{a,a,a}
/dev/sda:
Timing cached reads:   270 MB in  2.00 seconds = 135.00 MB/sec
Timing buffered disk reads:  100 MB in  3.03 seconds =  33.00 MB/sec

/dev/sda:
Timing cached reads:   304 MB in  1.99 seconds = 152.76 MB/sec
Timing buffered disk reads:  146 MB in  3.03 seconds =  48.18 MB/sec

/dev/sda:
Timing cached reads:   302 MB in  2.01 seconds = 150.25 MB/sec
Timing buffered disk reads:  126 MB in  3.01 seconds =  41.86 MB/sec
root@LS-GL7D6:~# cat /proc/cpuinfo
Processor       : ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS        : 266.24
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 0
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 1
I line length   : 32
I sets          : 1024
D size          : 32768
D assoc         : 1
D line length   : 32
D sets          : 1024

Hardware        : MV-88fxx81
Revision        : 0000
Serial          : 0000000000000000
root@LS-GL7D6:~# cat /etc/fstab
# /etc/fstab: static file system information.
#                        
proc            /proc      proc    defaults                            0 0
none            /dev/pts   devpts  gid=5,mode=20                       0 0
tmpfs           /tmp       tmpfs   size=10M,mode=1777                  0 0
/dev/sda5       swap       swap    defaults                            0 0
/dev/sda1       /boot      ext3    defaults,noatime,errors=remount-ro  0 1
/dev/sda6       /mnt/disk1 xfs,acl defaults,noatime,nodiratime         0 0
root@LS-GL7D6:~# apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://security.debian.org etch/updates Release [24.3kB]
Get:3 ftp://ftp.uk.debian.org etch Release.gpg [378B]        
Get:4 http://security.debian.org etch/updates/main Packages [4707B]          
Get:5 http://security.debian.org etch/updates/contrib Packages [14B]                           
Get:6 http://security.debian.org etch/updates/non-free Packages [14B]
Get:7 http://security.debian.org etch/updates/main Sources [1982B]
Get:8 ftp://ftp.uk.debian.org etch Release [74.4kB] 
Get:9 ftp://ftp.uk.debian.org etch/contrib Packages [45.9kB]
Get:10 http://mirrors.kernel.org etch Release.gpg [378B]
Get:11 ftp://ftp.uk.debian.org etch/main Packages [4171kB]
Get:12 http://mirrors.kernel.org etch Release [74.4kB]
Get:13 http://mirrors.kernel.org etch/main Packages [4171kB]
Get:14 http://mirrors.kernel.org etch/contrib Packages [45.9kB]
Get:15 http://mirrors.kernel.org etch/non-free Packages [57.5kB]
Get:16 ftp://ftp.uk.debian.org etch/non-free Packages [57.5kB]
Fetched 8730kB in 3m1s (48.0kB/s)
Reading package lists... Done
root@LS-GL7D6:~# cat /proc/cmdline
console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.01

2006-10-24

emerge with EXTRA_ECONF

Gentoo Linux:

Very handy to specify ./configure argument without modifying .ebuild:
$ EXTRA_ECONF="--enable-foo ......" emerge package

2006-10-20

glibc 2.5 upgrade

這次等了一星期才安裝,該不會出事了吧。

$ qlop -gvH glibc
glibc-2.4: Thu Mar 16 22:02:20 2006: 34 minutes, 0 seconds
glibc-2.4: Fri Mar 17 00:51:27 2006: 41 minutes, 43 seconds
glibc-2.4-r1: Fri Mar 17 14:59:32 2006: 27 minutes, 31 seconds
glibc-2.4-r1: Sat Mar 18 02:12:59 2006: 37 minutes, 7 seconds
glibc-2.4-r1: Sat Mar 18 03:49:55 2006: 36 minutes, 43 seconds
glibc-2.4-r1: Sat Mar 18 06:47:58 2006: 36 minutes, 35 seconds
glibc-2.4-r1: Sat Mar 18 11:29:52 2006: 38 minutes, 37 seconds
glibc-2.4-r1: Sat Mar 18 13:08:25 2006: 36 minutes, 47 seconds
glibc-2.4-r1: Sat Mar 18 16:07:10 2006: 36 minutes, 43 seconds
glibc-2.4-r3: Sun May 14 14:06:23 2006: 53 minutes, 0 seconds
glibc-2.4-r3: Mon May 15 16:39:51 2006: 30 minutes, 33 seconds
glibc-2.4-r3: Fri May 26 16:06:44 2006: 46 minutes, 21 seconds
glibc-2.4-r3: Sat May 27 13:49:20 2006: 55 minutes, 29 seconds
glibc-2.4-r3: Mon May 29 19:17:37 2006: 35 minutes, 57 seconds
glibc-2.4-r3: Tue May 30 15:02:42 2006: 54 minutes, 32 seconds
glibc-2.4-r3: Wed May 31 18:36:14 2006: 38 minutes, 21 seconds
glibc-2.4-r3: Wed May 31 22:25:44 2006: 52 minutes, 30 seconds
glibc-2.4-r3: Fri Jun  2 07:49:44 2006: 43 minutes, 38 seconds
glibc-2.4-r3: Fri Jun  2 19:43:26 2006: 33 minutes, 20 seconds
glibc-2.4-r3: Mon Jun  5 20:45:09 2006: 41 minutes, 38 seconds
glibc-2.4-r3: Thu Jun  8 19:46:23 2006: 41 minutes, 0 seconds
glibc-2.4-r3: Tue Sep 19 20:16:07 2006: 3 minutes, 34 seconds
glibc-2.4-r3: Tue Sep 19 21:09:04 2006: 30 minutes, 41 seconds
glibc-2.4-r3: Wed Sep 20 01:30:25 2006: 36 minutes, 19 seconds
glibc-2.4-r3: Thu Sep 21 06:07:32 2006: 50 minutes, 24 seconds
glibc-2.4-r3: Thu Sep 21 21:09:31 2006: 48 minutes, 18 seconds
glibc-2.4-r4: Wed Oct  4 19:09:24 2006: 32 minutes, 8 seconds
glibc-2.4-r4: Thu Oct  5 02:20:15 2006: 31 minutes, 46 seconds
glibc: 28 times
$ time emerge -av glibc
real    64m28.896s
user    37m28.149s
sys     13m31.482s

2006-09-09

Gentoo Portage 2.1.1 from RC1-R6

 * In portage-2.1.1, emerge --newuse is now sensitive to changes in IUSE.
 * Immediately after upgrade from 2.1, users may notice a significantly larger
 * number of packages pulled in by --newuse, but that behavior is normal.

 * See NEWS and RELEASE-NOTES for further changes.

 *
 * For help with using portage please consult the Gentoo Handbook
 * at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
 *
>>> Regenerating /etc/ld.so.cache...
>>> sys-apps/portage-2.1.1 merged.

2006-08-07

Application Temporary Data into RAM

Reduce read/write stress on harddrive for temporary application data.
減少應用程式在硬存上的讀寫

Mount /tmp to RAM tmpfs (auto reszie below 1GB)
/tmp 掛載到 RAM 並設成 1GB 大小.
$ nano -w /etc/fstab
none  /tmp  tmpfs  defaults,nosuid,nodev,noatime,size=1024M,mode=1777  0 0
Edit /etc/bash/bashrc
修改 /etc/bash/bashrc
$ nano -w /etc/bash/bashrc
if [ ! -d /tmp/.$USER ]; then
  mkdir /tmp/.$USER
fi

for x in .adobe .dia .gimp-2.3 .gqview .java .macromedia .mplayer .thumbnails .urlgfe .vlc .xvpics
do
  if [ ! -d /tmp/.$USER/$x ]; then
    mkdir /tmp/.$USER/$x
    ln -sf /tmp/.$USER/$x $HOME
  fi
done

2006-01-30

Using Sparse File for Gentoo Portage

$ cd /usr/portage
$ mv distfiles /home/ftp/gentoo/distfiles
$ mv packages /home/ftp/gentoo/packages

$ dd if=/dev/null of=/.portage.sf bs=1048576 count=0 seek=600

$ mkfs.reiserfs -f /.portage.sf (or mkfs.reiser4)

$ mv /usr/portage /usr/portage.old

$ mount /.portage.sf /usr/portage -o loop,noatime,notail,nodev (reiser4 doesn't need notail)

$ cp -r --no-dereference --preserve=all -T \
    /usr/portage.old /usr/portage/
$ nano -w /etc/fstab
/.portage.sf  /usr/portage     reiserfs  loop,auto,noatime,notail,nodev  0 0
/.ccache.sf   /var/tmp/ccache  reiserfs  loop,auto,noatime,notail,nodev  0 0
$ df && du /.portage.sf
Filesystem           1K-blocks      Used Available Use% Mounted on
/.portage.sf            614376    178632    435744  30% /usr/portage
/.ccache.sf            2097084    498564   1598520  24% /var/tmp/ccache

179344  /.portage.sf
$ mount
/.portage.sf on /usr/portage type reiserfs (rw,nodev,noatime,loop=/dev/loop0,notail)
/.ccache.sf on /var/tmp/ccache type reiserfs (rw,nodev,noatime,loop=/dev/loop1,notail)
The sparse files:
-rw-r--r--  1 root    root    2147483648 2006-02-21 22:24 .ccache.sf
-rw-r--r--  1 root    root     629145600 2006-01-30 14:32 .portage.sf