少尉
- 注册时间
- 2008-12-14
- 金币
- 54 个
- 威望
- 22 个
- 荣誉
- 2 个
尚未签到
|
本帖最后由 bass 于 2008-12-26 22:45 编辑
5. 用tftp更新image
在网上下载到固件6000_6500.img,可通过tftp更新,我是在linux下操作的。同时按住无线硬盘盒侧面2个按钮,然后接通电源。等待靠板子里面一排灯快速闪烁时松开;Linux终端下输入tftp 192.168.123.254回车,再输入put 6000_6500.img上传文件,待成功后,重启机器看是否能进入web界面。我操作了两次才成功。更新的固件和原始的应该不同,因为web界面的风格不一样,不知道裸板带的image是什么版本的。有时间找找源码研究一下,呵呵。
6. 用telnet进入控制台
我猜测板子跑的应该是嵌入式linux系统,于是telnet板子,发现成功,呵呵;可玩的空间更大了。
先看看一些硬件信息:
# cat /proc/cpuinfo
processor : 0
vendor_id : CyrixInstead
cpu family : 4
model : 1
model name : Cx486SLC
stepping : unknown
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : no
fpu_exception : no
cpuid level : -1
wp : yes
flags :
bogomips : 44.33
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 30740480 21803008 8937472 0 335872 14368768
Swap: 0 0 0
MemTotal: 30020 kB
MemFree: 8728 kB
MemShared: 0 kB
Buffers: 328 kB
Cached: 14032 kB
SwapCached: 0 kB
Active: 2188 kB
Inactive: 12232 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 30020 kB
LowFree: 8728 kB
SwapTotal: 0 kB
SwapFree: 0 kB
# cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
10 misc
90 mtd
162 raw
180 usb
Block devices:
1 ramdisk
3 ide0
7 loop
再看看系统启动信息,可以发现很多东东,呵呵:
# dmesg
Linux version 2.4.36 (root@localhost) (gcc version 3.3.6) #1 Die J鋘 22 08:41:39 CET 2008
BIOS-provided physical RAM map:
BIOS-e801: 0000000000000000 - 000000000009f000 (usable)
BIOS-e801: 0000000000100000 - 0000000002000000 (usable)
32MB LOWMEM available.
On node 0 totalpages: 8192
zone(0): 4096 pages.
zone(1): 4096 pages.
zone(2): 0 pages.
DMI not present.
Kernel command line: rw console=ttyS0,38400 a婽?A堈婽堉佲
Initializing CPU#0
Calibrating delay loop... 44.33 BogoMIPS
Memory: 27276k/32768k available (1260k kernel code, 5104k reserved, 534k data, 56k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
CPU: After generic, caps: 00000000 00000000 00000000 00000000
CPU: Common caps: 00000000 00000000 00000000 00000000
CPU: Cyrix Cx486SLC
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver v1.1.22 [Flags: R/W]
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
MGB100 LED/Key Driver v0.0.2
Real Time Clock Driver v1.10f
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
r6040: RDC R6040 RX NAPI net driver, version 0.17_MGB100 (04Okt2007)
r6040: RDC R6040 RX NAPI net driver, version 0.17_MGB100 (04Okt2007)
PCI: Setting latency timer of device 00:08.0 to 64
r6040: RDC R6040 RX NAPI net driver, version 0.17_MGB100 (04Okt2007)
PCI: Setting latency timer of device 00:09.0 to 64
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IT821x: unknown IDE controller at PCI slot 00:04.0, VID=1283, DID=8211
IT821x: chipset revision 17
IT821x: not 100% native mode: will probe irqs later
it8212: forcing bypass mode.
it821x: controller in pass through mode.
ide0: BM-DMA at 0xa410-0xa417, BIOS settings: hda:pio, hdb:pio
hda: HTS424040M9AT00, ATA DISK drive
ide0 at 0x9410-0x9417,0x9812 on irq 9
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78140160 sectors (40008 MB) w/1739KiB Cache, CHS=4864/255/63, UDMA(100)
Partition check:
hda:hda1 hda2
SCSI subsystem driver Revision: 1.00
physmap flash device: 400000 at ffc00000
enter cfi_probe_chip
send query command 98 55
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
mgb100 flash device: 400000 at ffc00000
enter cfi_probe_chip
send query command 98 55
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
MGB100 flash memory: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Using mgb100 partition definition
Creating 4 MTD partitions on "MGB100 flash memory":
0x00000000-0x00130000 : "linux"
0x00130000-0x00380000 : "rootfs"
0x00380000-0x003e0000 : "configuration"
0x003e0000-0x00400000 : "bootloader"
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
ehci_hcd 00:0a.1: RDC Semiconductor, Inc. R6061 USB 2.0
ehci_hcd 00:0a.1: irq 14, pci mem c3002000
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:0a.1: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
kusbd: /sbin/hotplug add 1
host/usb-ohci.c: USB OHCI at membase 0xc3004000, IRQ 15
host/usb-ohci.c: usb-00:0a.0, RDC Semiconductor, Inc. R6060 USB 1.0
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
kusbd: /sbin/hotplug add 1
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2687k freed
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 56k freed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
hda3: bad access: block=2, count=2
end_request: I/O error, dev 03:03 (hda), sector 2
EXT3-fs: unable to read superblock
hda3: bad access: block=2, count=2
end_request: I/O error, dev 03:03 (hda), sector 2
EXT2-fs: unable to read superblock
hda3: bad access: block=0, count=1
end_request: I/O error, dev 03:03 (hda), sector 0
FAT: unable to read boot sector
hda3: bad access: block=64, count=2
end_request: I/O error, dev 03:03 (hda), sector 64
isofs_read_super: bread failed, dev=03:03, iso_blknum=16, block=32
hda3: bad access: block=0, count=1
end_request: I/O error, dev 03:03 (hda), sector 0
NTFS: Reading super block failed
hda3: bad access: block=0, count=2
end_request: I/O error, dev 03:03 (hda), sector 0
romfs: unable to read superblock
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
PCI: Setting latency timer of device 00:01.0 to 64
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
device eth1 entered promiscuous mode
device wl0 entered promiscuous mode
device wds0 entered promiscuous mode
wds0: attempt to add interface with same source address.
br0: port 3(wds0) entering learning state
br0: port 2(wl0) entering learning state
br0: port 3(wds0) entering forwarding state
br0: topology change detected, propagating
br0: port 2(wl0) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth1) entering learning state
br0: port 1(eth1) entering forwarding state
br0: topology change detected, propagating
下次再针对性能做些详细的测试,然后再对telnet控制台下发现的信息做些分析。
要去陪陪可爱的女儿了…… |
|