2008年7月 1日 (火)

LinuxVer2.6.25はSolutionEngineSH7780 に対応!! おみごと!

いやいや、すばらしいですね。前回のバージョンでUSBが動かない!で止まっていたのですが、このバージョン、あっさりと動きました! 移植した方に感謝!!
LEDも銀座のネオン?のように輝くし、このへんの遊び心も好いですね。

興味ない人にはほとんど意味不明ばスナップショット!
Copyright (C) 2001-2008 XXXX XXX
Command? r
zImage Load ............END
Linux version 2.6.25.7 (root@localhost.localdomain) (gcc version 3.4.4) #71 Tue
Jul 1 11:05:49 JST 2008
Booting machvec: Solution Engine 7780
Hitachi UL Solutions Engine 7780SE03 support.
Node 0: start_pfn = 0x8000, low = 0x10000
Zone PFN ranges:
Normal 32768 -> 65536
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 32768 -> 65536
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttySC0,9600 rootfstype=jffs2
PID hash table entries: 512 (order: 9, 2048 bytes)
Using tmu for system timer
Using 8.333 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 127232k/131072k available (1874k kernel code, 486k data, 108k init)
PVR=10200a00 CVR=73440010 PRR=00000920
I-cache : n_ways=4 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=4 n_sets=256 way_incr=8192
D-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
Mount-cache hash table entries: 512
CPU: SH7780
net_namespace: 236 bytes
PCI: Using configuration type 1
SH7780 PCI: Finished initialization of the PCI controller
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Autoconfig PCI channel 0x88249cd4
Scanning bus 00, I/O 0xfe200000:0xfe600000, Mem 0xfd000000:0xfe000000
00:02.0 Class 0180: 1095:3512 (rev 01)
I/O at 0xfe200000 [size=0x8]
I/O at 0xfe200008 [size=0x4]
I/O at 0xfe200010 [size=0x8]
I/O at 0xfe200018 [size=0x4]
I/O at 0xfe200020 [size=0x10]
Mem at 0xfd000000 [size=0x200]
00:03.0 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd001000 [size=0x1000]
00:03.1 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd002000 [size=0x1000]
00:04.0 Class 0600: 1912:0002
I/O at 0xfe200100 [size=0x100]
Mem unavailable -- skipping, value 0 size 8000000
Mem at 0xfd100000 [size=0x100000]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
JFFS2 version 2.2. (NAND) yF 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
SuperH SCI(F) driver initialized
sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 43) is a scif
console [ttySC0] enabled
sh-sci: ttySC1 at MMIO 0xffe10000 (irq = 79) is a scif
loop: module loaded
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre
eth0: SMC91C11xFD (rev 1) at b8000300 IRQ 8 [nowait]
eth0: Ethernet addr: 00:00:87:d6:0e:6b
Driver 'sd' needs updating - please use bus_type methods
sata_sil 0000:00:02.0: cache line size not set. Driver may not function
sata_sil 0000:00:02.0: Applying R_ERR on DMA activate FIS errata fix
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xfd000000 tf 0xfd000080 irq 67
ata2: SATA max UDMA/100 mmio m512@0xfd000000 tf 0xfd0000c0 irq 67
ata1: SATA link down (SStatus 0 SControl 310)
ata2: SATA link down (SStatus 0 SControl 310)
Probing for flash chips at 0x00000000:
Solutionengine_S3 FLASH: Found 2 x16 devices at 0x0 in 32-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Solutionengine_S3 FLASH: 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.
Solutionengine_S3: Flash at 0x00000000
Searching for RedBoot partition table in Solutionengine_S3 FLASH at offset 0xfe0
000
No RedBoot partition table detected in Solutionengine_S3 FLASH
cmdlinepart partition parsing not available
Using configured partition at 0x00000000.
Creating 2 MTD partitions on "Solutionengine_S3 FLASH":
0x00000000-0x00200000 : "flash_boot"
0x00200000-0x01000000 : "Flash FS"
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:03.0: irq 68, io mem 0xfd001000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.1: irq 65, io mem 0xfd002000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
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
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
heartbeat: version 0.1.1 loaded
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 108k freed
eth0: link down
ADDRCONF(NETDEV_UP): eth0: link is not ready
/bin/rm: cannot remove `/var/run/*': No such file or directory


Welcome to Litron(Linux + iTRON)

http://www.goodsoft.jp/litron

shlinux login: eth0: link up, 10Mbps, half-duplex, lpa 0x0021
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


Welcome to Litron(Linux + iTRON)

http://www.goodsoft.jp/litron

shlinux login: root
Password:
login[61]: root login on `ttySC0'

[root@shlinux /root]#
[root@shlinux /root]# usb 1-1: new full speed USB device using ohci_hcd and addr
ess 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access BUFFALO USB Flash Disk 4000 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: [sda] 7831552 512-byte hardware sectors (4010 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 7831552 512-byte hardware sectors (4010 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 2:0:0:0: [sda] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg0 type 0

[root@shlinux /root]#
[root@shlinux /root]#
[root@shlinux /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 14336 6952 7384 48% /
/dev/root 14336 6952 7384 48% /
[root@shlinux /root]# mount /dev/sda1 /mnt
[root@shlinux /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 14336 6952 7384 48% /
/dev/root 14336 6952 7384 48% /
/dev/sda1 3851656 3220824 435176 88% /mnt
[root@shlinux /root]# cat /proc/inter*
CPU0
8: 7 sh7780-irq-level eth0
28: 23499 sh7780-level periodic timer
40: 0 sh7780-level SCI Receive Error
41: 98 sh7780-level SCI Receive Data Full
42: 0 sh7780-level SCI Break
43: 851 sh7780-level SCI Transmit Data Empty
65: 0 sh7780-level ohci_hcd:usb2
67: 0 sh7780-level sata_sil
68: 118 sh7780-level ohci_hcd:usb1
76: 0 sh7780-level SCI Receive Error
77: 0 sh7780-level SCI Receive Data Full
78: 0 sh7780-level SCI Break
79: 89 sh7780-level SCI Transmit Data Empty
Err: 0
[root@shlinux /root]#

|

2008年6月30日 (月)

作り直し!

Sh778002
ここのブログほとんどお休み状態でしたが、そろそろ復活!って???

USBが動かないナーー!でお休みしてから8ヶ月、ブートローダーもカーネルのソースも紛失!
ということで再挑戦!カーネルは前回は2.6.20でしたけど、最新のカーネルをみていたら、、、このユニットに対応してる。。。ってことで、バージョン2.6.25に変更! なぜか、フラッシュ上のファイルシステムを認識しない、、、とりあえず、動かすことを優先に力技!
しかし、梅雨時には好い遊びです。

以下スナップショット
HITACHI SE03 SH4A Linux BIOS Ver2.12

Copyright (C) 2001-2008 xxxx xxxxx
Command? r
zImage Load ............END
Linux version 2.6.25.7 (root@localhost.localdomain) (gcc version 3.4.4) #63 Fri
Jun 29 18:24:36 JST 2008
Booting machvec: Solution Engine 7780
Hitachi UL Solutions Engine 7780SE03 support.
Node 0: start_pfn = 0x8000, low = 0x10000
Zone PFN ranges:
Normal 32768 -> 65536
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 32768 -> 65536
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttySC0,9600 rootfstype=jffs2
PID hash table entries: 512 (order: 9, 2048 bytes)
Using tmu for system timer
Using 8.250 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 127488k/131072k available (1519k kernel code, 584k data, 80k init)
PVR=10200a00 CVR=73440010 PRR=00000920
I-cache : n_ways=4 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=4 n_sets=256 way_incr=8192
D-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
SLUB: Genslabs=10, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
CPU: SH7780
net_namespace: 152 bytes
PCI: Using configuration type 1
SH7780 PCI: Finished initialization of the PCI controller
NET: Registered protocol family 16
Autoconfig PCI channel 0x8820b914
Scanning bus 00, I/O 0xfe200000:0xfe600000, Mem 0xfd000000:0xfe000000
00:02.0 Class 0180: 1095:3512 (rev 01)
I/O at 0xfe200000 [size=0x8]
I/O at 0xfe200008 [size=0x4]
I/O at 0xfe200010 [size=0x8]
I/O at 0xfe200018 [size=0x4]
I/O at 0xfe200020 [size=0x10]
Mem at 0xfd000000 [size=0x200]
00:03.0 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd001000 [size=0x1000]
00:03.1 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd002000 [size=0x1000]
00:04.0 Class 0600: 1912:0002
I/O at 0xfe200100 [size=0x100]
Mem unavailable -- skipping, value 0 size 8000000
Mem at 0xfd100000 [size=0x100000]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(946684800.390:1): initialized
audit: cannot initialize inotify handle
Total HugeTLB memory allocated, 0
JFFS2 version 2.2. (NAND) 息 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
SuperH SCI(F) driver initialized
sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 43) is a scif
console [ttySC0] enabled
sh-sci: ttySC1 at MMIO 0xffe10000 (irq = 79) is a scif
sh-sci sh-sci: CPU frequency notifier registered
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre
eth0: SMC91C11xFD (rev 1) at b8000300 IRQ 8 [nowait]
eth0: Ethernet addr: 00:00:87:d6:0e:6b
Probing for flash chips at 0x00000000:
Solutionengine_S3 FLASH: Found 2 x16 devices at 0x0 in 32-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Solutionengine_S3 FLASH: 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.
Solutionengine_S3: Flash at 0x00000000
Searching for RedBoot partition table in Solutionengine_S3 FLASH at offset 0xfe0
000
No RedBoot partition table detected in Solutionengine_S3 FLASH
cmdlinepart partition parsing not available
Using configured partition at 0x00000000.
Creating 2 MTD partitions on "Solutionengine_S3 FLASH":
0x00000000-0x00200000 : "flash_boot"
0x00200000-0x01000000 : "Flash FS"
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
SCTP: Hash tables configured (established 4096 bind 8192)
registered taskstats version 1
MTDSB: i_rdev mtd1=0x01f00001?... 100000
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 80k freed
eth0: link down


Welcome to Litron(Linux + iTRON)

http://www.goodsoft.jp

shlinux login:

|

2007年10月 3日 (水)

iVDRをつないでみようと思ったら!

P6280788s
CRTをつないでみたら、linuxのマスコットペンギンが表示されていたので、Xを動かしてみようと、でフラッシュ上のファイルシステムでは心細いのでHDをつなぐかと、、、iVDRと言う聞き慣れないデバイスのインタフェースが、ところがこのデバイス、売ってない!、たまたま中古のを見つけてGet!。これでディスク付になると思ったのですが、これ5V仕様となっていて、ソリューションエンジンの方は3Vしかサポートしていない、、トホホなのでした。利用できないのはもったいないので、USBのアダプターを購入! 性能的にはCFより速いし、容量もあって良いですね、でも流行らないデバイスのようです。個人的にデータのバックアップにでも使いましょ!
で、このままではディスクが繋がらないのでSATAのソケットが取り付けられるようになっているので、直接SATAをつなごうと秋葉をうろうろしたのですが、ソケットが手に入らない、ジャンク基盤から取って付けるしかなさそう、意外なとこでつまずいたのでした。。。

| | コメント (0) | トラックバック (0)

2007年9月12日 (水)

ケースに入れましょ!

P9120956
このソリューションエンジン、サイズはマイクロATX?というのでしょうか? 市販のパソコンケースに収まります。といっても、細かく見れば、部品が両面実装になっていて、裏側にも部品がある、オマケにデバック用のポートがなんともおかしな所にあって、ゴリゴリとケースに穴を開け、写真のようにおさまったのです。ちらっと、上の方に見える赤い物はデバック用のICE、このユニットはROMモニターが付いていて、フラッシュへの書き込みとか簡単なデバックはできるようになっています、、けど、ICEの方がやはり便利ですね。

| | コメント (0) | トラックバック (0)

2007年9月11日 (火)

とりあえずLinux

とりあえず!と言うほどあっさり動くものでもなくて、音源以外は動いているように見えるスナップショットなのです。
video、ether、フラッシュ上のjffs2は大丈夫そうですが、USBとSATAは怪しいですね。。
いちど、ここまで動いたとこで、すこし整理をしましょ!

以下 スナップショット

HITACHI SE03 SH4A Linux BIOS Ver2.04

Copyright (C) 2001-2006 XXXX XXXXX
Command? r
zImage Load ............END
Linux version 2.6.20.11 (root@localhost.localdomain) (gcc ·Å·vflrÅ u–.4.4) #315
PREEMPT Tue Sep 11 18:09:59 JST 2007
Built 1 zonelists. Total pages: 32512
Kernel command line: console=ttySC0,9600 rootfstype=jffs2
PID hash table entries: 512 (order: 9, 2048 bytes)
Interval = 83333
Using tmu for system timer
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 126848k/131072k available (2668k kernel code, 4104k reserved, 95k data,
112k init)
PVR=10200a00 CVR=73440010 PRR=00000920
I-cache : n_ways=4 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=4 n_sets=256 way_incr=8192
D-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
Mount-cache hash table entries: 512
CPU: SH7780
PCI: Using configuration type 1
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Autoconfig PCI channel 0x882ad21c
Scanning bus 00, I/O 0xfe400000:0xfe800000, Mem 0xfd000000:0xfe000000
00:02.0 Class 0180: 1095:3512 (rev 01)
I/O at 0xfe400000 [size=0x8]
I/O at 0xfe400008 [size=0x4]
I/O at 0xfe400010 [size=0x8]
I/O at 0xfe400018 [size=0x4]
I/O at 0xfe400020 [size=0x10]
Mem at 0xfd000000 [size=0x200]
00:03.0 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd001000 [size=0x1000]
00:03.1 Class 0c03: 1033:0035 (rev 43)
Mem at 0xfd002000 [size=0x1000]
00:04.0 Class 0600: 1912:0002
I/O at 0xfe400100 [size=0x100]
Mem at 0x00000000 [size=0x8000000]
Mem at 0x08000000 [size=0x100000]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x30
Silicon Motion, Inc. SM501 mode 640x480-16 Init Complete.
SuperH SCI(F) driver initialized
sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 43) is a scif
sh-sci: ttySC1 at MMIO 0xffe10000 (irq = 79) is a scif
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc91x: IOADDR b8000000 doesn't match configuration (300).
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre
eth0: SMC91C11xFD (rev 1) at b8000000 IRQ 14
eth0: Ethernet addr: 00:00:87:d6:0e:6b
SCSI Media Changer driver v0.25
sata_sil 0000:00:02.0: cache line size not set. Driver may not function
sata_sil 0000:00:02.0: Applying R_ERR on DMA activate FIS errata fix
ata1: SATA max UDMA/100 cmd 0xFD000080 ctl 0xFD00008A bmdma 0xFD000000 irq 67
ata2: SATA max UDMA/100 cmd 0xFD0000C0 ctl 0xFD0000CA bmdma 0xFD000008 irq 67
scsi0 : sata_sil
ata1: SATA link down (SStatus 0 SControl 310)
scsi1 : sata_sil
ata2: SATA link down (SStatus 0 SControl 310)
Probing for flash chips at 0x00000000:
Solutionengine_S3 FLASH: Found 2 x16 devices at 0x0 in 32-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Solutionengine_S3 FLASH: 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.
Solutionengine_S3: Flash at 0x00000000
Searching for RedBoot partition table in Solutionengine_S3 FLASH at offset 0xfe0
000
No RedBoot partition table detected in Solutionengine_S3 FLASH
Using configured partition at 0x00000000.
Creating 2 MTD partitions on "Solutionengine_S3 FLASH":
0x00000000-0x00200000 : "flash_boot"
0x00200000-0x01000000 : "Flash FS"
ohci_hcd 0000:00:03.0: OHCI Host Controller
ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:03.0: irq 68, io mem 0xfd001000
ohci_hcd 0000:00:03.0: OHCI Unrecoverable Error, disabled
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd 0000:00:03.1: OHCI Host Controller
ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:03.1: irq 68, io mem 0xfd002000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
push-switch: version 0.1.1 loaded
TCP cubic registered
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 112k freed
eth0: link down


Welcome to Litron(Linux + iTRON)

http://www.goodsoft.jp/litron

shlinux login: eth0: link up, 10Mbps, half-duplex, lpa 0x0021


Welcome to Litron(Linux + iTRON)

http://www.goodsoft.jp/litron

shlinux login: root
Password:
login[708]: root login on `ttySC0'

[root@shlinux /root]#

| | コメント (0) | トラックバック (0)

2007年7月31日 (火)

ソリューションエンジンがやって来た!

なぜか、sh7780というCPUのユニットが転がり込んできた。しばらくこれで遊んでみましょ!

| | コメント (0) | トラックバック (0)