納品された。ものはコレ
OpenBlockS266 - ぷらっとホーム
OpenBlockS266 メモリ128Mモデル(ROM:16MB RoHS対応)


早速色々調べた結果、このバージョン(RoHS対応版)であれば、DMAモードでもPIOモードでも余り気にしなくていいらしい。何の話かというとコンパクトフラッシュの話。

ちなみに今回買ったのはこれ。
SanDisk | 一般製品 | メモリーカード | コンパクトフラッシュ | Ultra IIコンパクトフラッシュ
SDCFH-1024-903


SanDiskはいいとか良くないとか色々情報があったけど、結果的にはこの手順に従って初期化。何の問題も無し。
ぷらっとホーム - サポート - 技術情報 - OpenBlockS266 - コンパクトフラッシュの初期化


fdiskとか久々に使った。懐かしい。


起動時ログを張っておく。PPC266MHzといえば一昔前までのiBookとかだな。
まあ組み込み用だから多少違うと思うけど。
よくみたらTulipドライバだよ。懐かしすぎる。

# shutdown -r now
INIT: Sending processes the TERM signal
Unmounting remote filesystems...[psw_ioctl] unblocked

Sending all pr[psw_ioctl] sig
ocesses the TERM signal...
[psw_release] by pid 726
Sending all processes the KILL signal...
Deactivating swap partitions...
Saving random seed to a temporary file...
Saving the system time to hardware clock...
Remounting root filesystem read-only...
Unmounting local filesystems...
Flushing filesystem buffers...
Please stand by while rebooting...
Restarting system.
.



405GPr 1.2 ROM Monitor (5/25/02) OBS266/128-16 1.4.3 (Apr 16 2007:14:54:03)

--------------------- System Info ----------------------
Processor = 405GPr (New mode), PVR: 50910951
CPU speed = 266 MHz
PLB speed = 133 MHz
OPB speed = 66 MHz
EBC speed = 66 MHz
PCI Bus speed = 33 MHz (Async)
VCO speed = 800 MHz
Feedback Clock = CPU
Amount of SDRAM = 128 MBytes
Internal PCI arbiter enabled
--------------------------------------------------------

--- Device Configuration ---
Power-On Test Devices:
000 Enabled System Memory [RAM]
002 Enabled Ethernet [ENET]
003 Enabled PCI Ethernet [PCIENET]
----------------------------
Boot Sources:
001 Enabled System FLASH [FLASH]
002 Enabled Ethernet [ENET]
LOCAL: 0.0.0.0
REMOTE: 255.255.255.255
MAC: 000A85038FAF
004 Enabled Serial Port 1 [S1]
Baud = 9600
----------------------------
Debugger: Disabled
----------------------------
-- Automatic Boot --
Booting from [FLASH] System FLASH ...
loaded at: 00500000 00C5D234
relocated to: 00400000 00B5D234
board data at: 00405074 004050BC
zimage at: 00405958 0054EED8
initrd at: 0054F000 00B5A6C4
avail ram: 00B5E000 08000000

Linux/PPC load: root=/dev/ram
Uncompressing Linux...done.
Now booting the kernel
Linux version 2.6.16 (root@todo84) (gcc version 4.1.2) #1 Fri Jun 22 07:51:01 JST 2007
OpenBlockS port
Built 1 zonelists
Kernel command line: root=/dev/ram console=ttyS0,9600
PID hash table entries: 1024 (order: 10, 16384 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 120576k available (2188k kernel code, 604k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 6189k freed
NET: Registered protocol family 16
PCI: Probing PCI hardware
Generic PHY: Registered new driver
Initializing Cryptographic API
io scheduler noop registered (default)
Push switch driver v0.01
[psw_init] Push switch installed on interrupt 26
OBS_LED driver version 0.01
OBS_LED driver version 0.01
GPIO at 0xc9000700
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 90112K size 1024 blocksize
loop: loaded (max 8 devices)
PPC 4xx OCP EMAC driver, version 3.54
mal0: initialized, 1 TX channels, 1 RX channels
eth0: emac0, MAC 00:0a:85:03:8f:af
eth0: found Generic MII PHY (0x00)
LXT970: Registered new driver
LXT971: Registered new driver
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
Linux Tulip driver version 1.1.13 (May 11, 2002)
tulip0: MII transceiver #1 config 1000 status 7809 advertising 01e1.
eth1: Davicom DM9102/DM9102A rev 64 at e800fd00, 00:0A:85:03:0F:AF, IRQ 31.
Linux video capture interface: v1.00
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT371: IDE controller at PCI slot 0000:00:03.0
HPT371: chipset revision 2
HPT371: 100% native mode on irq 30
ide0: BM-DMA at 0xfe08-0xfe0f, BIOS settings: hda:pio, hdb:pio
hda: SanDisk SDCFH-1024, CFA DISK drive
ide0 at 0xffe8-0xffef,0xffe6 on irq 30
hda: max request size: 128KiB
hda: 2001888 sectors (1024 MB) w/1KiB Cache, CHS=1986/16/63
hda: hda1
init_obs266_flash: temp = ff09a000
OpenBlockS266: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
OpenBlockS266: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
obs266: flash mapping: 1000000 at ff000000
Creating 5 MTD partitions on "OpenBlockS266":
0x00fa0000-0x00fe0000 : "OpenBlockS Configuration Data"
0x00000000-0x00c00000 : "OpenBlockS Boot Image"
0x00fe0000-0x01000000 : "OpenBlockS OpenBIOS"
0x00000000-0x01000000 : "OpenBlockS All Flash"
0x00c00000-0x00fa0000 : "OpenBlockS User Flash"
i2c /dev entries driver
IBM IIC driver v2.1
ibm-iic0: using standard (100 kHz) mode
LARGEEEPROM: I2C based EEPROM driver.
Serial EEPROM FOUND at 57
Probe read -6
X1226: I2C based RTC driver.
X1226: found X1226 on IBM IIC
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_conntrack version 2.4 (1024 buckets, 8192 max) - 232 bytes per conntrack
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_recent v0.3.1: Stephen Frost . http://snowman.net/projects/ipt_recent/
ClusterIP Version 0.8 loaded successfully
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
[prepare_namespace] Executing flashcfg...
etc/adjtime
etc/fstab
etc/group
etc/hosts
etc/hosts.allow
etc/hosts.deny
etc/inetd.conf
etc/inittab
etc/nsswitch.conf
etc/passwd
etc/rc.conf
etc/rc.iptables
etc/rc.local
etc/resolv.conf
etc/services
etc/shadow
etc/syslog.conf
etc/netstart.local
etc/flashcfg
etc/dhcpd.conf
etc/namedb/named.conf
etc/namedb/127
etc/namedb/localhost
etc/namedb/loopback.v6
etc/namedb/db/
etc/ppp/
etc/ppp/options
etc/ppp/chap-secrets
etc/ppp/pap-secrets
etc/ppp/ppp-on
etc/ppp/ppp-off
etc/ppp/ppp-on-dialer
etc/ppp/pppoe.conf
etc/ppp/firewall-standalone
etc/ppp/firewall-masq
etc/mail/aliases
etc/mail/local-host-names
etc/mail/relay-domains
etc/usermgmt.conf
usr/contrib/etc/thttpd.conf
usr/contrib/etc/openblocks.conf
etc/vtund.conf
etc/ntp.conf
etc/lkm.conf
etc/pcmcia/config.opts

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child died with signal 13
tar: Error exit delayed from previous errors
[prepare_namespace] Finished executing flashcfg
Freeing unused kernel memory: 120k init
INIT: version 2.86 booting
/dev/ram1 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=4,mode=620)
mount: mount point /proc/bus/usb does not exist
none on /sys type sysfs (rw)
/dev/hda1 on /mnt type ext2 (rw)
WARNING: no swap space configured!
INIT: Entering runlevel: 2
starting network
processing openblocks settings:
openblocks settings done.
hostname: LinuxServer
configuring network interfaces: eth0: link is down
eth0 eth1.
adding interface aliases:
starting pshd[psw_ioctl] PSWIOC_WAITPUSH pid 731

starting system logger
portmap.
mount: mount point /proc/bus/usb does not exist
.
creating runtime link editor directory cache.
clearing /tmp
updating motd.
standard daemons: cron.
starting network daemons: inetd.
starting local daemons:.
starting OpenBlockS daemons: httpd:880.
starting runled
Tue Mar 11 21:48:36 JST[psw_ioctl] unblocked
[psw_ioctl] sig
[psw_ioctl] PSWIOC_WAITPUSH pid 731

LinuxServer login: root
Password:
SSD/Linux 0.4-20070621/2.6.16 #1 Fri Jun 22 07:51:01 JST 2007

No mail.
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ram1 25185 15275 8630 64% /
/dev/hda1 984871 13 934813 1% /mnt
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ram1 25M 15M 8.5M 64% /
/dev/hda1 962M 13K 913M 1% /mnt
#