Partiton | mount |
sda1 | /boot |
sda2 | / |
sda3 | (swap) |
sda4 | /home(data) |
~ # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/mtd2 65536 15904 49632 24% / /dev/ram1 8192 152 8040 2% /mnt/ram /dev/sda4 309304924 1200 309303724 0% /mnt/disk1 /dev/mtd3 192512 72556 119956 38% /mnt/mtd ~ #
~ # umount /mnt/disk1 ~ #
~ # ls /boot ~ # mount /dev/sda1 /boot kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. ~ # ls /boot lost+found uImage.buffalo ~ # umount /boot ~ #
~ # mkfs.xfs -f /dev/sda2 meta-data=/dev/sda2 isize=256 agcount=8, agsize=91872 blks = sectsz=512 data = bsize=4096 blocks=734973, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 ~ # mkfs.xfs -f /dev/sda4 meta-data=/dev/sda4 isize=256 agcount=74, agsize=1048576 blks = sectsz=512 data = bsize=4096 blocks=77358999, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=32768, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 ~ #
~ # mkdir /tmp/root ~ # mount /dev/sda2 /tmp/root XFS mounting filesystem sda2 ~ #
~ # ftp 192.168.1.32 -sh: ftp: not found ~ #Boom!
~ # ls /mnt/mtd LS-GL_hackkit_1.00.tar.gz ~ # cd /tmp/root /mnt/ram/tmp/root # tar zxvf /mnt/mtd/LS-GL_hackkit_1.00.tar.gz : ./var/tmp/vi.recover/ ./var/opt/ ./var/mail/ /mnt/ram/tmp/root # cd etc/ /mnt/ram/tmp/root/etc # mv fstab fstab.ext3 /mnt/ram/tmp/root/etc # cp fstab.ext3 fstab /mnt/ram/tmp/root/etc # ls -l fstab -rw-r--r-- 1 root root 371 Mar 4 16:09 fstab /mnt/ram/tmp/root/etc # ls -l fstab* -rw-r--r-- 1 root root 371 Mar 4 16:09 fstab -rw-r--r-- 1 root root 371 Jan 8 13:41 fstab.ext3 /mnt/ram/tmp/root/etc # vi fstab : : /mnt/ram/tmp/root/etc # diff fstab.ext3 fstab --- fstab.ext3 Mon Jan 8 13:41:37 2007 +++ fstab Sun Mar 4 16:10:28 2007 @@ -1,9 +1,9 @@ # /etc/fstab: static file system information. # #-/dev/sda2 / ext3 defaults,noatime,errors=remount-ro 0 0 +/dev/sda2 / xfs defaults,noatime,errors=remount-ro 0 0 proc /proc proc defaults 0 0 none /dev/pts devpts gid=103,mode=0622 0 0 /dev/sda3 swap swap defaults 0 0 /dev/sda1 /boot ext3 defaults,noatime 0 1 -/dev/sda4 /mnt ext3 defaults,noatime 0 2 +/dev/sda4 /mnt xfs defaults,noatime 0 2 /mnt/ram/tmp/root/etc #
Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD: KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Feb 13 2007 - 15:59:43) Marvell version: 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash: 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M): Done NAND: 256 MB Soc: 88F5182 A2 CPU: ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0: host mode USB 1: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot: 0 <<system_bootend>> Hit any key to stop autoboot: 0 Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found Device 0: OK Model: WDC WD3200SD-01KNB0 Firm: 08.05J08 Ser#: WD-WCAMR1683855 Type: Hard Disk Supports 48-bit addressing Capacity: 305245.3 MB = 298.0 GB (625142448 x 512) Using device ide0, partition 1 Loading from block device ide device 0, partition 1: Name: hda1 Type: U-Boot File:/uImage.buffalo 1736436 bytes read <<stop_sound>> ## Booting image at 00100000 ... Image Name: Linux-2.6.12.6-arm1 Created: 2007-02-08 6:00:09 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1736372 Bytes = 1.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... arg:console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09 CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_KUROBOX --- Uncompressing Linux........................................................................................................ ......... done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #2 Thu Feb 8 15:00:20 JST 2007 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 = 250000000, Tclk = 166664740 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw panic=5 BOOTVER=1.09 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: 126208KB available (3037K code, 425K data, 112K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 serial_initialize_ttyS1 (Debug): ttyS1 is initialized. config_device_cs Error : Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 BUFFALO KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- BUFFALO_BOARD_KUROBOX Soc: 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0: c04e4b00 Marvell USB EHCI Host controller #1: c04e4a40 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 the XOR engines (offloading) for enhancing the following functions: o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use: 2 cesadev_init(c00122e0) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled 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 32768K 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 (10) 'eth0' Intergrated Sata device found scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter Vendor: WDC Model: WD3200SD-01KNB0 Rev: 08.0 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 sda3 sda4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device: 400000 at ff800000 Found: SST 39LF020 phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Using static partition definition Creating 3 MTD partitions on "nand_mtd": 0x00000000-0x00400000 : "uImage" 0x00400000-0x04400000 : "rootfs" 0x04400000-0x10000000 : "extra" usbmon: debugs is 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 USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver mice: PS/2 mouse device common for all mice md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: raid5 personality registered as nr 4 raid5: measuring checksumming speed arm4regs : 304.000 MB/sec 8regs : 215.200 MB/sec 32regs : 249.200 MB/sec raid5: using function: arm4regs (304.000 MB/sec) md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. 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 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. XFS mounting filesystem sda2 Starting XFS recovery on filesystem: sda2 (dev: sda2) Ending XFS recovery on filesystem: sda2 (dev: sda2) VFS: Mounted root (xfs filesystem). Freeing init memory: 112K INIT: version 2.86 booting Activating swap. Adding 136544k swap on /dev/sda3. Priority:-1 extents:1 XFS: unknown mount option [errors]. XFS: unknown mount option [errors]. mount: / not mounted already, or bad option System time was Sun Mar 4 15:14:02 UTC 2007. Setting the System Clock using the Hardware Clock as reference... System Clock set. System local time is now Mon Mar 5 00:14:03 JST 2007. Cleaning up ifupdown...done. Checking all file systems... fsck 1.37 (21-Mar-2005) fsck: cannot check /dev/sda4: fsck.xfs not found /dev/sda1: Backing up journal inode block information. /dev/sda1: clean, 12/14056 files, 7611/56196 blocks Setting kernel variables ... ... done. Mounting local filesystems... kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. XFS mounting filesystem sda4 /dev/sda1 on /boot type ext3 (rw,noatime) /dev/sda4 on /mnt type xfs (rw,noatime) Cleaning /tmp /var/run /var/lock. Setting up networking...done. Setting up IP spoofing protection: rp_filter. Configuring network interfaces...eth0: link down done. Setting the System Clock using the Hardware Clock as reference... System Clock set. Local time: Mon Mar 5 00:14:07 JST 2007 Initializing random number generator...done. Recovering nvi editor sessions... done. INIT: Entering runlevel: 2 Starting system log daemon: syslogd. Starting kernel log daemon: klogd. Starting MTA: eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> exim4. Starting internet superserver: inetd. Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. Debian GNU/Linux 3.1 hackkit ttyS0 hackkit login:done!
|
玄人志向
楽天市場 TSUKUMO ネットショップ Yahoo!ショッピング Sofmap クレバリー TwoTop |
|
玄人志向
TSUKUMO ネットショップ Yahoo! ショッピング パソQ ValuMore uWorks |
玄箱PROをハックしよう |
ASCII
楽天ブックス Amazon cbook24 e-hon JBook BK1 livedoorブックス 紀伊國屋書店BookWeb |
← Flash boot モードに戻す/return U-Boot environments to the Flash boot mode. |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ debian 起動時のエラーをつぶすCorrect errors when starting. |