Форум обсуждения оборудования  

Вернуться   Форум обсуждения оборудования "Умный дом" > Форум умного дома > Сделай сам > Linux для начинающих

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.12.2017, 21:15   #11
sakatgg
Senior Member
 
Регистрация: 15.07.2014
Сообщений: 879
Вес репутации: 923
sakatgg is just really nicesakatgg is just really nicesakatgg is just really nicesakatgg is just really nicesakatgg is just really nice
По умолчанию

Система спасения NAS - FANTEC CL-35B2 и Iconbit I-STOR IS608

(CPU PLX NAS7821), взято здесь, автор der_metzger

1. Винт sata подсоединяем к компу с Linux

2. Качаем fantec_CL-35B2_rescue.tar.gz и распаковываем. Заходим под root в папку NAS

3. Запускаем скрипт sh install.sh /dev/sdx , где sdx - винт для NAS. Внимание: sdx перезаписывается полностью!!!

Команда в терминале Linux

Код:
root@runtu:/home/runtu/1/NAS# sh install.sh /dev/sda
[3;J


32+0 записей получено
32+0 записей отправлено
33554432 байт (34 MB, 32 MiB) скопирован, 1,29859 s, 25,8 MB/s
Информация: Не забудьте обновить /etc/fstab.

Информация: Не забудьте обновить /etc/fstab.                              

Модель: ATA ST380815AS (scsi)                                             
Диск /dev/sda: 80,0GB
Размер сектора (логич./физич.): 512B/512B
Таблица разделов: gpt
Флаги диска: 

Номер  Начало  Конец   Размер  Файловая система  Имя      Флаги
 1     33,6MB  8422MB  8389MB                    primary

0+1 записей получено
0+1 записей отправлено
444 байта скопировано, 0,00775193 s, 57,3 kB/s
17+1 записей получено
17+1 записей отправлено
8808 байт (8,8 kB, 8,6 KiB) скопирован, 0,00891646 s, 988 kB/s
254+1 записей получено
254+1 записей отправлено
130372 байт (130 kB, 127 KiB) скопирован, 0,0369692 s, 3,5 MB/s
4218+1 записей получено
4218+1 записей отправлено
2159948 байт (2,2 MB, 2,1 MiB) скопирован, 0,0722225 s, 29,9 MB/s
17+1 записей получено
17+1 записей отправлено
8808 байт (8,8 kB, 8,6 KiB) скопирован, 0,0746092 s, 118 kB/s
254+1 записей получено
254+1 записей отправлено
130372 байт (130 kB, 127 KiB) скопирован, 0,0245399 s, 5,3 MB/s
4218+1 записей получено
4218+1 записей отправлено
2159948 байт (2,2 MB, 2,1 MiB) скопирован, 0,0230659 s, 93,6 MB/s
mke2fs 1.42.13 (17-May-2015)
Creating filesystem with 2048000 4k blocks and 512064 inodes
Filesystem UUID: ce8a992b-dc47-458a-9c8f-b94c7b1d6607
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                            
Сохранение таблицы inod'ов: done                            
Creating journal (32768 blocks): готово
Writing superblocks and filesystem accounting information: готово

fertig! Boote deine NAS!
root@runtu:/home/runtu/1/NAS#
[свернуть]

Получиться разметка как на скрине

Первый 32Mb на диске - есть 1st stage bootloader, u-boot, u-boot environment, kernel + initrd.

4. Подключаем винт к NAS, в моем случае Iconbit I-STOR IS608 (клон).
Если смотреть с лицевой панели, то в правый (Slot1) подключать. В другом не стартует.

5. Подключаем к serial port через usb адаптер 3.3В !!! (использую от телефона Siemens MA-8730P, скрин).

6. Запускаем PuTTY скорость 115200 и включаем NAS.

Система стартует с винта сразу, в том числе и uboot, записанный на раздел винта.

Сеть не работает, как я понял, ядро скомпилировано без поддержки RTL8211D

Serial port

Код:
Stage-1 Bootloader Fri Jun 10 14:12:46 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading disk 00
  Sector : 0x0000009A
  Hdr len: 0x0001FD3C
  Hdr CRC: 0xC2AB7EEB
 OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
  Device 0: Model: ST380815AS Firm: 3.AAC  Ser#: 6QZ0M5Y2
            Type: Hard Disk
            Capacity: 76318.0 MB = 74.5 GB (156299375 x 512)
  Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.4 (Jun 20 2013 - 18:14:59)

U-Boot code: 60E00000 -> 60E1FD3C  BSS: -> 60E54564
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0
Extinguish LED

IDE read: device 0 block # 1290, count 5700 ... 5700 blocks read: OK
## Booting image at 60500000 ...
   Image Name:   Linux-2.6.31.6_SMP_820
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2159884 Bytes =  2.1 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................................................... done, booting the kernel.
[    0.000000] Linux version 2.6.31.6_SMP_820 (root@ProDev) (gcc version 4.6.0 20110429 (prerelease) (GCC) ) #100 SMP Sun May 29 04:53:45 EDT 2011
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Oxsemi NAS
[    0.000000] 1 memory region
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda1 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x54,0xfa rootwait mem=128M poweroutage=yes
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 125496KB available (3692K code, 291K data, 124K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:96
[    0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[    0.010000] Console: colour dummy device 80x30
[    0.010000] console [ttyS0] enabled
[    0.020000] Calibrating delay loop... 299.00 BogoMIPS (lpj=1495040)
[    0.240000] Security Framework initialized
[    0.240000] Mount-cache hash table entries: 512
[    0.250000] CPU: Testing write buffer coherency: ok
[    0.250000] Calibrating local timer... 375.50MHz.
[    0.320000] CPU1: Booted secondary processor
[    0.420000] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.630000] Brought up 2 CPUs
[    0.640000] SMP: Total of 2 processors activated (598.83 BogoMIPS).
[    0.650000] NET: Registered protocol family 16
[    0.650000] Number of DMA channels = 4, version = 4
[    0.660000] Reserving a DMA channel for DirectRAID
[    0.660000] Allocating 389 SRAM generic DMA descriptors
[    0.680000] bio: create slab <bio-0> at 0
[    0.690000] SCSI subsystem initialized
[    0.690000] usbcore: registered new interface driver usbfs
[    0.700000] usbcore: registered new interface driver hub
[    0.700000] usbcore: registered new device driver usb
[    0.730000] NET: Registered protocol family 2
[    0.730000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.740000] Switched to NOHz mode on CPU #0
[    0.740000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.740000] Switched to NOHz mode on CPU #1
[    0.750000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.760000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.760000] TCP reno registered
[    0.770000] NET: Registered protocol family 1
[    0.770000] Create fragment cache
[    0.780000] fuse init (API version 7.12)
[    0.780000] msgmni has been set to 245
[    0.790000] alg: No test for stdrng (krng)
[    0.790000] io scheduler noop registered
[    0.800000] io scheduler anticipatory registered
[    0.800000] io scheduler deadline registered
[    0.810000] io scheduler cfq registered (default)
[    0.830000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.840000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[    0.850000] brd: module loaded
[    0.860000] loop: module loaded
[    0.860000] ox820sata: OX820 sata core.
[    0.870000] scsi0 : oxnassata
[    0.870000] scsi1 : oxnassata
[    0.880000] ata1: SATA max UDMA/133 irq 50
[    0.880000] ata2: SATA max UDMA/133 irq 50
[    0.880000] ox820sata: reseting SATA core
[    1.410000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.460000] ata1.00: HPA detected: current 156299375, native 156301488
[    1.460000] ata1.00: ATA-7: ST380815AS, 3.AAC, max UDMA/133
[    1.470000] ata1.00: 156299375 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.510000] ata1.00: configured for UDMA/133
[    1.520000] ox820sata: reseting SATA core
[    2.230000] ata2: SATA link down (SStatus 0 SControl 300)
[    2.230000] scsi 0:0:0:0: Direct-Access     ATA      ST380815AS       3.AA PQ: 0 ANSI: 5
[    2.240000] sd 0:0:0:0: [sda] 156299375 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    2.250000] sd 0:0:0:0: [sda] Write Protect is off
[    2.250000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.260000] tun: Universal TUN/TAP device driver, 1.6
[    2.260000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.260000] NAND: Page read time 40ms
[    2.260000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit)
[    2.260000] Scanning device for bad blocks
[    2.280000] Bad eraseblock 324 at 0x000002880000
[    2.280000] Bad eraseblock 325 at 0x0000028a0000
[    2.390000] Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
[    2.400000] 0x000000000000-0x000000e00000 : "boot"
[    2.410000]  sda:
[    2.410000] 0x000000e00000-0x000010000000 : "rootfs"
[    2.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.420000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[    2.430000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[    2.470000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[    2.470000]  sda1
[    2.480000] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.490000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[    2.490000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.500000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.500000] usb usb1: Product: OXNAS EHCI Host Controller
[    2.510000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd
[    2.520000] usb usb1: SerialNumber: usb
[    2.520000] usb usb1: configuration #1 chosen from 1 choice
[    2.530000] hub 1-0:1.0: USB hub found
[    2.530000] hub 1-0:1.0: 2 ports detected
[    2.540000] Initializing USB Mass Storage driver...
[    2.540000] usbcore: registered new interface driver usb-storage
[    2.550000] USB Mass Storage support registered.
[    2.550000] mice: PS/2 mouse device common for all mice
[    2.560000] TCP cubic registered
[    2.560000] NET: Registered protocol family 10
[    2.570000] NET: Registered protocol family 17
[    2.570000] RPC: Registered udp transport module.
[    2.580000] RPC: Registered tcp transport module.
[    2.660000] kjournald starting.  Commit interval 5 seconds
[    2.660000] EXT3 FS on sda1, internal journal
[    2.660000] EXT3-fs: recovery complete.
[    2.660000] EXT3-fs: mounted filesystem with writeback data mode.
[    2.660000] VFS: Mounted root (ext3 filesystem) on device 8:1.
[    2.660000] Freeing init memory: 124K
modprobe: FATAL: Could not load /lib/modules/2.6.31.6_SMP_820/modules.dep: No such file or directory

                Welcome to Fedora
                Press 'I' to enter interactive startup.
Starting udev: modprobe: FATAL: Could not load /lib/modules/2.6.31.6_SMP_820/modules.dep: No such file or directory

[  OK  ]
Setting hostname localhost:  [  OK  ]
Checking filesystems
WARNING: couldn't open /etc/fstab: No such file or directory
Checking all file systems.
[  OK  ]
warning: can't open /etc/fstab: No such file or directory
mount: can't find / in /etc/fstab or /etc/mtab
Mounting local filesystems:  warning: can't open /etc/fstab: No such file or directory
[  OK  ]
Enabling /etc/fstab swaps:  swapon: /etc/fstab: open failed: No such file or directory
      [FAILED]
modprobe: FATAL: Could not load /lib/modules/2.6.31.6_SMP_820/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.31.6_SMP_820/modules.dep: No such file or directory

Entering non-interactive startup
Starting system logger: [  OK  ]
Starting system message bus: [  OK  ]
/etc/rc3.d/S24avahi-daemon: line 25: /etc/sysconfig/network: No such file or directory
Retrigger failed udev events[  OK  ]
Starting sshd: [  OK  ]

Fedora release 12 (Constantine)
Kernel 2.6.31.6_SMP_820 on an armv6l (/dev/ttyS0)

localhost login: root
Password:
Last login: Wed Dec 31 19:00:27 on ttyS0
root@localhost:~#
[свернуть]
Миниатюры
Нажмите на изображение для увеличения
Название: 111.png
Просмотров: 9
Размер:	14.6 Кб
ID:	4667   Нажмите на изображение для увеличения
Название: 222.png
Просмотров: 7
Размер:	26.7 Кб
ID:	4668   Нажмите на изображение для увеличения
Название: Seial port.jpg
Просмотров: 5
Размер:	221.3 Кб
ID:	4669  

Последний раз редактировалось sakatgg; 29.12.2017 в 04:56.
sakatgg вне форума   Ответить с цитированием
Старый 04.01.2018, 19:17   #12
sakatgg
Senior Member
 
Регистрация: 15.07.2014
Сообщений: 879
Вес репутации: 923
sakatgg is just really nicesakatgg is just really nicesakatgg is just really nicesakatgg is just really nicesakatgg is just really nice
По умолчанию

Запуск Debian с SATA винта на NAS Iconbit I-STOR IS608

Клоны - близнецы

FANTEC CL-35B2,
Iconbit I-STOR IS608,
Eminent EM4172,
AKiTiO MyCloud Duo.

Абсолютно внешне и внутренне одинаковые, различия только в прошивках и то на уровне встройки своих логотипов и дизайна веб интерфейса.

Альтернативу нашел ток на немецком сайте loteks.de, ссылки на полезные советы выкладовал выше.

По моей просьбе der_metzger выложил еще Резервное копирование и восстановление NAND с помощью mtd-utils

В поисках NAS платформы OX82x / NAS782x architecture нашел

PogoPlug v3,
Shuttle KD20,
iomega Home Media,
ZyXEL NSA-212,
Medion MD 8****.

Модели различаются дизайном, PCB, обьемом RAM и Nand, количеством и наличием usb, sata, wifi, pci.

Хорошо их модифицирует bodhi на сайте forum.doozan.com - запуски с usb, с sata, uboot, разгон CPU, сборки rootfs Arch, Debian, Openwrt, мультизагрузка и т.д.

Почитал, много сразу не осилил, хоть с чего-то начать - создал загрузочный sata с Debian готовым скриптом schnee отсюда.

Потребуется 5 мин, установить на компе с Debian предварительно пакеты, и прочитать из архива readme

uboot-mkimage,
util-linux - fdisk должен быть из его состава, (gnu-fdisk удалить из системы),
dosfstools_3.0.27-1_i386 или выше (в нем есть необходимый для скрипта mkfs.fat)

После запуска и отработки скрипта получиться разметка как на скрине

Лог выполнения скрипта

Код:
root@user-2:/home/user/PogoSata# sudo ./pogoSATA.sh /dev/sda
./pogoSATA.sh: line 52: [: =: ожидается использование унарного оператора
WARNING!!!!
ALL DATA ON /dev/sda WILL BE DESTROYED!
PROCEED? (y/N)
y
Deleting partitions...

Command (m for help): Building a new DOS disklabel with disk identifier 0x07c2a223.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
Creating partions....
Command (m for help): Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): Partition number (1-4, default 1): First sector (2048-156299374, default 2048): Last sector, +sectors or +size{K,M,G} (2048-156299374, default 156299374): 
Command (m for help): Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): Partition number (1-4, default 2): First sector (34816-156299374, default 34816): Using default value 34816
Last sector, +sectors or +size{K,M,G} (34816-156299374, default 156299374): 
Command (m for help): Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): Partition number (1-4, default 3): First sector (8423424-156299374, default 8423424): Using default value 8423424
Last sector, +sectors or +size{K,M,G} (8423424-156299374, default 156299374): Using default value 156299374

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
  Done!
Formating /dev/sda1...mkfs.fat 3.0.27 (2014-11-12)
 Done!
Formating /dev/sda2...mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
262144 inodes, 1048576 blocks
52428 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done 

 Done!
Formating /dev/sda3...mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=home
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
4628480 inodes, 18484493 blocks
924224 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
565 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424

Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done   

 Done!
Copying uBoot files...rmdir: не удалось удалить «./boot»: Каталог не пуст
 Done!
Create magic...0+1 записей считано
0+1 записей написано
 скопировано 444 байта (444 B), 0,0448587 c, 9,9 kB/c
 Done!
Writing stage 156+1 записей считано
56+1 записей написано
 скопировано 29172 байта (29 kB), 0,0627369 c, 465 kB/c
Mount rootfs... Done!
Copy root filesystem... Done!
Extract rootfs... Done!
Copying new kernel... Done!
Finalizing...umount: /dev/sda1: not mounted
umount: /dev/sda2: not mounted
umount: /dev/sda3: not mounted
 Done!
Finished!
Connect the drive to the Pogo and boot! Connect a serial console and an enthernet cable to the Pogo and boot it. Let .1stboot.sh to finish after you loged on!
Username: root, Password:root
ENJOY!
root@user-2:/home/user/PogoSata#
[свернуть]

Вставляем в правый слот sata с лица и включаем, первая загрузка - ничего не трогаем, ждем чтобы сам перезагрузился (sshd генерирует ключ, обновляется на 4.1 kernel, создается 512MB swap file)

в serial port после перезагрузки:

Serial port

Код:
U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12)
  Boot device: SATA
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set
Bus 0: OK
  Device 0:
reading bootargs.bin
reading u-boot.img
reading u-boot.img


U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK
  Device 0: Model: ST380815AS Firm: 3.AAC  Ser#: 6QZ0M5Y2
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76318.0 MB = 74.5 GB (156299375 x 512)
NAND:  256 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4488520 bytes read in 709 ms (6 MiB/s)
7033 bytes read in 26 ms (263.7 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x1b79 (7033)
off_dt_struct:          0x38
off_dt_strings:         0x18d4
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x2a5
size_dt_struct:         0x189c
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.1.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4488456 Bytes = 4.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ab78 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.0-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 SMP PREEMPT Wed Jul 1 05:11:47 PDT 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] Start Ox820 platform
[    0.000000] PERCPU: Embedded 11 pages/cpu @c7edc000 s15456 r8192 d21408 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/sda2 rootfstype=ext4 ubi.mtd=data,512
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 120984K/131072K available (6235K kernel code, 275K rwdata, 1852K rodata, 200K init, 237K bss, 10088K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07edec8   (8088 kB)
[    0.000000]       .init : 0xc07ee000 - 0xc0820000   ( 200 kB)
[    0.000000]       .data : 0xc0820000 - 0xc0864fa0   ( 276 kB)
[    0.000000]        .bss : 0xc0864fa0 - 0xc08a06a0   ( 238 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000010] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000176] Console: colour dummy device 80x30
[    0.000209] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050032] pid_max: default: 32768 minimum: 301
[    0.050191] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050209] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051082] Initializing cgroup subsys net_cls
[    0.051148] CPU: Testing write buffer coherency: ok
[    0.051548] Setting up static identity map for 0x60008220 - 0x60008258
[    0.170145] Brought up 2 CPUs
[    0.170168] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.171151] devtmpfs: initialized
[    0.176826] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.177062] prandom: seed boundary self test passed
[    0.181744] prandom: 100 self tests passed
[    0.181775] pinctrl core: initialized pinctrl subsystem
[    0.182668] NET: Registered protocol family 16
[    0.183242] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.210009] cpuidle: using governor ladder
[    0.240005] cpuidle: using governor menu
[    0.245104] gpio-oxnas 44000000.gpio: at address c8848000
[    0.245445] gpio-oxnas 44100000.gpio: at address c884a000
[    0.246041] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.260183] vgaarb: loaded
[    0.260720] SCSI subsystem initialized
[    0.261591] usbcore: registered new interface driver usbfs
[    0.261703] usbcore: registered new interface driver hub
[    0.261857] usbcore: registered new device driver usb
[    0.262082] pps_core: LinuxPPS API ver. 1 registered
[    0.262095] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.262146] PTP clock support registered
[    0.263895] cfg80211: Calling CRDA to update world regulatory domain
[    0.264422] Switched to clocksource rps_clocksource_timer
[    0.283983] NET: Registered protocol family 2
[    0.284974] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.285020] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.285061] TCP: Hash tables configured (established 1024 bind 1024)
[    0.285163] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.285209] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.285498] NET: Registered protocol family 1
[    0.286003] RPC: Registered named UNIX socket transport module.
[    0.286023] RPC: Registered udp transport module.
[    0.286036] RPC: Registered tcp transport module.
[    0.286046] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.287856] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.287938] Initialise system trusted keyring
[    0.302192] zpool: loaded
[    0.302218] zbud: loaded
[    0.307663] NFS: Registering the id_resolver key type
[    0.307729] Key type id_resolver registered
[    0.307742] Key type id_legacy registered
[    0.307781] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.307804] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.308751] fuse init (API version 7.23)
[    0.310571] Key type big_key registered
[    0.316482] alg: No test for stdrng (krng)
[    0.366873] Key type asymmetric registered
[    0.366906] Asymmetric key parser 'x509' registered
[    0.367047] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.367080] io scheduler noop registered
[    0.367104] io scheduler deadline registered
[    0.367493] io scheduler cfq registered (default)
[    0.368202] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.369710] console [ttyS0] disabled
[    0.369802] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    0.898398] console [ttyS0] enabled
[    0.912499] loop: module loaded
[    0.917557] scsi host0: sata_oxnas
[    0.921443] ata1: SATA max UDMA/133 irq 7
[    0.925706] ox820sata: reseting SATA core
[    0.926620] nand: Could not find valid ONFI parameter page; aborting
[    0.926663] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.926668] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.926676] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.926694] Scanning device for bad blocks
[    0.953830] Bad eraseblock 324 at 0x000002880000
[    0.953879] Bad eraseblock 325 at 0x0000028a0000
[    1.096760] 2 ofpart partitions found on MTD device 41000000.nand
[    1.102855] Creating 2 MTD partitions on "41000000.nand":
[    1.108234] 0x000000000000-0x000000e00000 : "boot"
[    1.114752] 0x000000e00000-0x000008000000 : "data"
[    1.122081] stmmaceth 40400000.ethernet: no reset control found
[    1.127982] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.133038]  Ring mode enabled
[    1.136079]  DMA HW capability register supported
[    1.140602]  Enhanced/Alternate descriptors
[    1.144931]  Enabled extended descriptors
[    1.148915]  RX Checksum Offload Engine supported (type 2)
[    1.154383]  TX Checksum insertion supported
[    1.158625]  Wake-Up On Lan supported
[    1.162280]  Enable RX Mitigation via HW Watchdog Timer
[    1.171328] libphy: stmmac: probed
[    1.174727] eth0: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.181068] eth0: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.186885] PPP generic driver version 2.4.2
[    1.191777] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.198287] ehci-pci: EHCI PCI platform driver
[    1.203266] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.208762] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.216634] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.240576] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.246881] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.253675] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.260884] usb usb1: Product: EHCI Host Controller
[    1.265735] usb usb1: Manufacturer: Linux 4.1.0-oxnas-tld-1 ehci_hcd
[    1.272071] usb usb1: SerialNumber: 40200100.ehci
[    1.277724] hub 1-0:1.0: USB hub found
[    1.281582] hub 1-0:1.0: 2 ports detected
[    1.286553] usbcore: registered new interface driver cdc_acm
[    1.292226] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.300308] usbcore: registered new interface driver cdc_wdm
[    1.306140] usbcore: registered new interface driver usb-storage
[    1.312394] usbcore: registered new interface driver usbserial
[    1.318287] usbcore: registered new interface driver usbserial_generic
[    1.324881] usbserial: USB Serial support registered for generic
[    1.331302] mousedev: PS/2 mouse device common for all mice
[    1.337024] i2c /dev entries driver
[    1.341903] hidraw: raw HID events driver (C) Jiri Kosina
[    1.347527] usbcore: registered new interface driver usbhid
[    1.353111] usbhid: USB HID core driver
[    1.358878] NET: Registered protocol family 10
[    1.364951] sit: IPv6 over IPv4 tunneling driver
[    1.370780] NET: Registered protocol family 17
[    1.375390] Key type dns_resolver registered
[    1.381350] Loading compiled-in X.509 certificates
[    1.390453] Key type encrypted registered
[    1.395322] ubi0: attaching mtd1
[    1.480010] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.541562] ata1.00: HPA detected: current 156299375, native 156301488
[    1.548083] ata1.00: ATA-7: ST380815AS, 3.AAC, max UDMA/133
[    1.549772] ubi0: scanning is finished
[    1.549975] ubi0 error: ubi_read_volume_table: the layout volume was not found
[    1.550886] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[    1.571604] UBI error: cannot attach mtd1
[    1.571607] ata1.00: 156299375 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.616542] ata1.00: configured for UDMA/133
[    1.640453] scsi 0:0:0:0: Direct-Access     ATA      ST380815AS       C    PQ: 0 ANSI: 5
[    1.649927] sd 0:0:0:0: [sda] 156299375 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    1.658654] sd 0:0:0:0: [sda] Write Protect is off
[    1.663713] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.698472]  sda: sda1 sda2 sda3
[    1.704348] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.734382] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    1.742156] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    1.765342] devtmpfs: mounted
[    1.768634] Freeing unused kernel memory: 200K (c07ee000 - c0820000)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    3.236339] udevd[187]: starting version 175
. ok
[    3.472514] cfg80211: Calling CRDA to update world regulatory domain
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[    5.355609] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 26997/262144 files, 281881/1048576 blocks
done.
[    5.669125] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
[ ok ] Loading kernel modules...done.
[    6.630318] cfg80211: Calling CRDA to update world regulatory domain
[....] Activating lvm and md swap...[    9.568325] Adding 524284k swap on /swapfile1.  Priority:-1 extents:3 across:540668k FS
done.
[....] Checking file systems...fsck from util-linux 2.20.1
[    9.790108] cfg80211: Calling CRDA to update world regulatory domain
home: clean, 11/4628480 files, 303741/18484493 blocks
[    9.873221] random: nonblocking pool is initialized
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:11:11:11:11
Sending on   LPF/eth0/74:f0:11:11:11:11
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   12.950018] cfg80211: Calling CRDA to update world regulatory domain
[   16.110005] cfg80211: Calling CRDA to update world regulatory domain
[   17.560727] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.3.1
[   19.270056] cfg80211: Calling CRDA to update world regulatory domain
bound to 192.168.3.179 -- renewal in 19909 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[   22.440122] cfg80211: Calling CRDA to update world regulatory domain
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting rpcbind daemon...[....] Already running..
[ ok ] Starting system message bus: dbus.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1692 (syslogd)
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
1695 (klogd)
. ok
[   25.610012] cfg80211: Calling CRDA to update world regulatory domain

Debian GNU/Linux 7 debian ttyS0

debian login: [   28.770012] cfg80211: Calling CRDA to update world regulatory domain
[   31.930009] cfg80211: Calling CRDA to update world regulatory domain
[   35.090017] cfg80211: Exceeded CRDA call max attempts. Not calling CRDA

Debian GNU/Linux 7 debian ttyS0

debian login: root
Password:
Last login: Wed Dec 31 16:00:40 PST 1969 on ttyS0
Linux debian 4.1.0-oxnas-tld-1 #3 SMP PREEMPT Wed Jul 1 05:11:47 PDT 2015 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#
[свернуть]


Сеть работает, вроде как и DHCP Server включается, если роутера нет.

CPU с 700Мгц до 800Мгц разогнан. Есть разгон и до 850Мгц.

WiFi usb свистки TEW-664UB и DWA-140 rev В2 не увидел, но тут ядро похоже старое (скрипт писался 2,5г назад), в более новых вроде как включена поддержка некоторых, цитата

"loaded automatically during kernel booting: ATH9K, RT2X00, RT2800PCI,CFG80211, MAC80211."

GPIO светодиоды и кнопки не задействованы, но думаю это решаемо, не все сразу

Файловую систему UBI на Nand флешь не видит, саму Nand распознает.

Можно зайти через WinSCP (sshd стартует по умолчанию)

Если специально подготовленный sata винт вытащить, то будет как обычно грузиться с Nand.
Миниатюры
Нажмите на изображение для увеличения
Название: Снимок экрана.png
Просмотров: 8
Размер:	74.6 Кб
ID:	4686  

Последний раз редактировалось sakatgg; 05.01.2018 в 01:01.
sakatgg вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 16:55. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика