Terastation TS3420DN

From Buffalo NAS Wiki
Revision as of 17:23, 4 May 2024 by I000001101000 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Specs

Terastation TS3420DN

CPU
Memory
Bays
Network
Sata
NAND Flash
SPI Flash
USB 2.0
USB 3.0
Fan
Power

Stock Firmware Installation

Custom Firmware/Operating System installation

Mainline Linux

There is partial support for these SoCs in the mainline Linux kernel. I managed to build and boot such a kernel at one point though it appeared to lack network and USB support at the very least.

It is conceivable I could figure out how to work past those issues, though hard to imagine finding the time or motivation.

Stock Kernel

These device come with a modified 3.10.x Kernel which, in addition to the changes needed to boot the device, include modifications to support larger memory pages than the typical 4K and use LPAE to support larger address spaces than typical 32-bit ARM limits.

This allows these devices to:

  • Use block devices larger than the normal 16-TiB limit
  • Most likely support >8GB ram though I haven't tried that yet.

The kernel running in the stock firmware is configured to use 32KB pages. When I first ran tests with these devices it seemed that some applications would crash when run on these devices, this may have been related to issues with how 4K vs 32K pages were linked by older tools. Binaries linked with BINUTILS >=2.40 and likely other modern linkers won't run at all with this kernel.

see: https://grsecurity.net/toolchain_necromancy_past_mistakes_haunting_aslr


It turns out that recompiling the kernel to use 4k pages fixes the binary compatibility issues while maintaining support for >16TiB block devices. The relavant config options are:

# CONFIG_ARM_PAGE_SIZE_32KB is not set
# CONFIG_ARM_PAGE_SIZE_LARGE_SHIFT=15

CONFIG_ARM_PAGE_SIZE_4KB=y
CONFIG_ARM_PAGE_SIZE_LARGE_SHIFT=12

Custom OS

I've put together a project for generating a custom OS image for these devices using a custom-compiled kernel based on the GPL patches provided by buffalo.

see: https://github.com/1000001101000/Buildroot_for_Buffalo

Device Notes

Pictures

Serial Console

U-Boot Output

Annapurna Labs stage 2: stage2_eth3_ram_loader v1.65.1
Executing next!
Annapurna Labs stage 2: stage2.5_loader v1.65.1
SPD I2C Address:00000050
Executing next!

-----------------------------------------------------
Stage 3 version: 1.65.1
Commit ID: e88c9c4
CVOS commit ID: d32367c
HAL commit ID: 8b8f7b5
Build date: May 20 2015 19:57:35
-----------------------------------------------------

EEPROM Revision ID = 39
Device ID = a214
Device Info: AL21400-1400
Loading DT to 00100000 (23319 bytes)...
Board config ID: ts3x20_buffalo_rev1.0
Loading application to 00100000 (515864 bytes)...
Executing application...


U-Boot 2015.01-alpine_db-1.65.1-00016-g08d77f3-dirty-HAL (Oct 30 2020 - 13:27:11)

I2C:   ready
DRAM:  1 GiB

   _
  /_\  _ __  _ __   __ _ _ __  _   _ _ __ _ __   __ _
 //_\\| '_ \| '_ \ / _` | '_ \| | | | '__| '_ \ / _` |
/  _  \ | | | | | | (_| | |_) | |_| | |  | | | | (_| |
\_/ \_/_| |_|_| |_|\__,_| .__/ \__,_|_|  |_| |_|\__,_|
   __       _           |_|
  / /  __ _| |__  ___
 / /  / _` | '_ \/ __|
/ /__| (_| | |_) \__ \
\____/\__,_|_.__/|___/
               ___             _
 /\ /\        / __\ ___   ___ | |_
/ / \ \_____ /__\/// _ \ / _ \| __|
\ \_/ /_____/ \/  \ (_) | (_) | |_
 \___/      \_____/\___/ \___/ \__|

eeprom_per_device_init: no valid information found!
power_init_board: EEPROM per device information is not valid - using defaults!
SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB
U-Boot environment not found in TOC - falling back to instance 0!
Board config ID: ts3x20_buffalo_rev1.0
SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB
dt_based_init_serdes_params: serdes_init NAS_PID=0x2041
dt_based_init_pcie_params_port: PCIe port 2 initialization node not found - assuming gen3x4!
NAND:  1024 MiB
SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB
  00:00.0     - 1c36:0002 - Network controller
  00:01.0     - 1c36:0001 - Network controller
  00:04.0     - 1c36:0011 - Cryptographic device
  00:05.0     - 1c36:0021 - Base system peripheral
  00:09.0     - 1c36:0031 - Mass storage controller
PCIE_0: Link up. Speed 5GT/s Width x1
  01:00.0     - 1912:0014 - Serial bus controller
pci_init_board_external: PCIE_2 no link found
In:    serial
Out:   serial
Err:   serial
SF: Detected W25Q32DW with page size 256 Bytes, erase size 4 KiB, total 4 MiB
- Function switch: 1 - 
Net:   al_eth0, al_eth1
Hit any key to stop autoboot:  0 
###############
## ubiboot
###############
bootargs=root=/dev/sda1 rw pci=pcie_bus_perf console=ttyS0,115200 BOOTVER=0.37 ubootenv=0x2e0000,0x4000,0x05,0x00@mtd6 u
bootenv_redund=0x2f0000,0x4000,0x05,0x00@mtd6 boot=buffalofirm bootfrom=ubi

device nand0 <nand_flash>, # parts = 6
 #: name                size            offset          mask_flags
 0: al_boot             0x00200000      0x00000000      0
 1: device_tree         0x00200000      0x00200000      0
 2: linux_kernel        0x00800000      0x00400000      0
 3: initrd              0x01e00000      0x00c00000      0
 4: ubifs               0x09a00000      0x02a00000      0
 5: rootfs              0x33c00000      0x0c400000      0

active partition: nand0,0 - (al_boot) 0x00200000 @ 0x00000000

defaults:
mtdids  : none
mtdparts: none
UBI: attaching mtd1 to ubi0
ecc_read_page: corrected increased to 1
ecc_read_page: corrected increased to 2
ecc_read_page: corrected increased to 3
ecc_read_page: corrected increased to 4
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=5", size 828 MiB) to ubi0
UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
UBI: available PEBs: 2, total reserved PEBs: 3310, PEBs reserved for bad PEB handling: 80
          3145728  Wed Oct 27 08:17:10 2021  u-boot-ts3020.buffalo.updated
            23319  Wed Oct 27 08:17:10 2021  alpine-ts3020.dtb
         23182619  Wed Jul 06 04:01:04 2022  uInitrd-generic.buffalo
          6359304  Wed Jul 06 04:00:57 2022  uImage-generic.buffalo
        496214016  Wed Jul 06 04:01:56 2022  hddrootfs.buffalo.updated
UBI: MTD device name:            "mtd=5"
UBI: MTD device size:            828 MiB
UBI: physical eraseblock size:   262144 bytes (256 KiB)
UBI: logical eraseblock size:    253952 bytes
UBI: number of good PEBs:        3312
UBI: number of bad PEBs:         0
UBI: smallest flash I/O unit:    4096
UBI: VID header offset:          4096 (aligned 4096)
UBI: data offset:                8192
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             2
UBI: total number of reserved PEBs: 3310
UBI: number of PEBs reserved for bad PEB handling: 80
UBI: max/mean erase counter: 2/0
Loading file 'uImage-generic.buffalo' to addr 0x08000004 with size 6359304 (0x00610908)...
ecc_read_page: corrected increased to 5
ecc_read_page: corrected increased to 6
ecc_read_page: corrected increased to 7
ecc_read_page: corrected increased to 8
Done
Loading file 'uInitrd-generic.buffalo' to addr 0x04000004 with size 23182619 (0x0161bd1b)...
ecc_read_page: corrected increased to 9
ecc_read_page: corrected increased to 10
ecc_read_page: corrected increased to 11
ecc_read_page: corrected increased to 12
ecc_read_page: corrected increased to 13
ecc_read_page: corrected increased to 14
ecc_read_page: corrected increased to 15
ecc_read_page: corrected increased to 16
Done
## Booting kernel from Legacy Image at 08000004 ...
   Image Name:   TS5010
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6359240 Bytes = 6.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000004 ...
   Image Name:   TS5010
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    23182555 Bytes = 22.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 03b62008
   Booting using the fdt blob at 0x3b62008
   Loading Kernel Image ... OK
   reserving fdt memory region: addr=0 size=100000
   Loading Ramdisk to 02532000, end 03b4dcdb ... OK
   Loading Device Tree to 02529000, end 02531b16 ... OK
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I/O CC forced to 1!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Starting kernel ...


DMESG output

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.20-031020-generic-sa ([email protected]) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu
1~14.04.1) ) #201311201536 SMP Mon Mar 28 10:33:19 JST 2022
[    0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c7387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: AnnapurnaLabs Alpine (Device Tree), model: BUFFALO TS3x20(TS3K2AL2-AA) Board
[    0.000000] cma: CMA: reserved 32 MiB at 3e000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 2 pages/cpu @80f18000 s42688 r8192 d14656 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32728
[    0.000000] Kernel command line: root=/dev/sda1 rw pci=pcie_bus_perf console=ttyS0,115200 BOOTVER=0.37 ubootenv=0x2e0
000,0x4000,0x05,0x00@mtd6 ubootenv_redund=0x2f0000,0x4000,0x05,0x00@mtd6 boot=buffalofirm bootfrom=ubi
[    0.000000] PID hash table entries: 4096 (order: -1, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
[    0.000000] allocated 262144 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 975552k/975552k available, 73024k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff8000   (  32 kB)
[    0.000000]     fixmap  : 0xff400000 - 0xff800000   (4096 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80b7c9f0   (11731 kB)
[    0.000000]       .init : 0x80b80000 - 0x80bea6c0   ( 426 kB)
[    0.000000]       .data : 0x80bf0000 - 0x80c849e0   ( 595 kB)
[    0.000000]        .bss : 0x80c849e0 - 0x80db76ec   (1228 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected local timer running at 50.00MHz (phys).
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: ARM arch timer >56 bits at 50000kHz, resolution 20ns
[    0.000000] sched_clock: 32 bits at 375MHz, resolution 2ns, wraps every 11453ms
[    0.000000] Console: colour dummy device 80x30
[   25.154400] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
[   25.154408] pid_max: default: 32768 minimum: 301
[   25.154466] Security Framework initialized
[   25.154480] AppArmor: AppArmor initialized
[   25.154484] Yama: becoming mindful.
[   25.154566] Mount-cache hash table entries: 4096
[   25.158177] Initializing cgroup subsys memory
[   25.158195] Initializing cgroup subsys devices
[   25.158200] Initializing cgroup subsys freezer
[   25.158204] Initializing cgroup subsys blkio
[   25.158209] Initializing cgroup subsys perf_event
[   25.158246] CPU: Testing write buffer coherency: ok
[   25.158399] CPU speed: 1.4GHz
[   25.158420] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[   25.158491] Setting up static identity map for 0x80836560 - 0x808365b8
[   25.162604] CPU1: Booted secondary processor
[   25.162623] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[   25.162985] CPU2: Booted secondary processor
[   25.163002] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[   25.163358] CPU3: Booted secondary processor
[   25.163375] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[   25.163461] Brought up 4 CPUs
[   25.163475] SMP: Total of 4 processors activated.
[   25.163478] CPU: All CPU(s) started in HYP mode.
[   25.163481] CPU: Virtualization extensions available.
[   25.164172] devtmpfs: initialized
[   25.167883] EVM: security.selinux
[   25.167888] EVM: security.SMACK64
[   25.167892] EVM: security.capability
[   25.170934] xor: measuring software checksum speed
[   25.264229]    arm4regs  :  1590.400 MB/sec
[   25.364259]    8regs     :  1241.600 MB/sec
[   25.464301]    32regs    :  1276.800 MB/sec
[   25.464305] xor: using function: arm4regs (1590.400 MB/sec)
[   25.464459] regulator-dummy: no parameters
[   25.464671] NET: Registered protocol family 16
[   25.465566] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   25.465859] Initializing System Fabric
[   25.465886] Enabling IO Cache Coherency.
[   25.468237] No ATAGs?
[   25.468251] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[   25.468256] hw-breakpoint: maximum watchpoint size is 8 bytes.
[   25.468333] Serial: AMBA PL011 UART driver
[   25.472023] bio: create slab <bio-0> at 0
[   25.634400] raid6: int32x1    670 MB/s
[   25.804415] raid6: int32x2    644 MB/s
[   25.974492] raid6: int32x4    606 MB/s
[   26.144514] raid6: int32x8    527 MB/s
[   26.144518] raid6: using algorithm int32x1 (670 MB/s)
[   26.144522] raid6: using intx1 recovery algorithm
[   26.145089] vgaarb: loaded
[   26.145707] SCSI subsystem initialized
[   26.145893] usbcore: registered new interface driver usbfs
[   26.145919] usbcore: registered new interface driver hub
[   26.145967] usbcore: registered new device driver usb
[   26.146647] pps_core: LinuxPPS API ver. 1 registered
[   26.146652] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[   26.146663] PTP clock support registered
[   26.146777] EDAC MC: Ver: 3.0.0
[   26.147014] Advanced Linux Sound Architecture Driver Initialized.
[   26.147230] NetLabel: Initializing
[   26.147235] NetLabel:  domain hash size = 128
[   26.147239] NetLabel:  protocols = UNLABELED CIPSOv4
[   26.147277] NetLabel:  unlabeled traffic allowed by default
[   26.147430] Switching to clocksource arch_sys_counter
[   26.176618] FS-Cache: Loaded
[   26.176740] AppArmor: AppArmor Filesystem Enabled
[   26.181188] NET: Registered protocol family 2
[   26.181501] TCP established hash table entries: 8192 (order: 1, 65536 bytes)
[   26.181593] TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
[   26.181681] TCP: Hash tables configured (established 8192 bind 8192)
[   26.181702] TCP: reno registered
[   26.181709] UDP hash table entries: 1024 (order: 0, 32768 bytes)
[   26.181744] UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
[   26.181905] NET: Registered protocol family 1
[   26.182097] RPC: Registered named UNIX socket transport module.
[   26.182102] RPC: Registered udp transport module.
[   26.182106] RPC: Registered tcp transport module.
[   26.182109] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   26.182217] Trying to unpack rootfs image as initramfs...
[   26.944527] Freeing initrd memory: 22592K (82538000 - 83b48000)
[   26.944624] NetWinder Floating Point Emulator V0.97 (double precision)
[   26.944735] hw perfevents: enabled with ARMv7 Cortex-A15 PMU driver, 7 counters available
[   26.944932] al-pcie pcie-internal.3: PCI host bridge to bus 0000:00
[   26.944940] pci_bus 0000:00: root bus resource [mem 0xfe000000-0xfeffffff]
[   26.944946] pci_bus 0000:00: root bus resource [bus 00]
[   26.944953] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   26.945020] pci 0000:00:00.0: PCI-E Max Payload Size set to  128/ 256 (was  128), Max Read Rq  128
[   26.945211] pci 0000:00:01.0: PCI-E Max Payload Size set to  128/ 256 (was  128), Max Read Rq  128
[   26.945406] pci 0000:00:04.0: PCI-E Max Payload Size set to  128/ 256 (was  128), Max Read Rq  128
[   26.945581] pci 0000:00:05.0: PCI-E Max Payload Size set to  128/ 256 (was  128), Max Read Rq  128
[   26.945821] pci 0000:00:09.0: PCI-E Max Payload Size set to  128/ 256 (was  128), Max Read Rq  128
[   26.946430] PCI: bus0: Fast back to back transfers disabled
[   26.946667] pci 0000:00:00.0: BAR 0: assigned [mem 0xfe000000-0xfe01ffff 64bit]
[   26.946686] pci 0000:00:00.0: BAR 7: assigned [mem 0xfe020000-0xfe07ffff 64bit]
[   26.946695] pci 0000:00:01.0: BAR 0: assigned [mem 0xfe080000-0xfe09ffff 64bit]
[   26.946703] pci 0000:00:04.0: BAR 0: assigned [mem 0xfe0a0000-0xfe0bffff 64bit]
[   26.946721] pci 0000:00:04.0: BAR 7: assigned [mem 0xfe0c0000-0xfe0dffff 64bit]
[   26.946730] pci 0000:00:05.0: BAR 0: assigned [mem 0xfe0e0000-0xfe0fffff 64bit]
[   26.946748] pci 0000:00:05.0: BAR 7: assigned [mem 0xfe100000-0xfe11ffff 64bit]
[   26.946756] pci 0000:00:00.0: BAR 4: assigned [mem 0xfe120000-0xfe123fff 64bit]
[   26.946765] pci 0000:00:01.0: BAR 4: assigned [mem 0xfe124000-0xfe127fff 64bit]
[   26.946773] pci 0000:00:09.0: BAR 5: assigned [mem 0xfe128000-0xfe12bfff]
[   26.946780] pci 0000:00:04.0: BAR 4: assigned [mem 0xfe12c000-0xfe12dfff 64bit]
[   26.946789] pci 0000:00:05.0: BAR 4: assigned [mem 0xfe12e000-0xfe12ffff 64bit]
[   26.946797] pci 0000:00:00.0: BAR 2: assigned [mem 0xfe130000-0xfe130fff 64bit]
[   26.946805] pci 0000:00:01.0: BAR 2: assigned [mem 0xfe131000-0xfe131fff 64bit]
[   26.946877] PCIe 1: Link up. speed gen2 negotiated width 1
[   26.946883] al-pcie fd800000.pcie-external0: link up: speed Gen 2 width x1
[   26.946889] Configuring PCIE for IOCC
[   26.946893] PCIE_1: snoop mode enable
[   26.946958] al-pcie fd800000.pcie-external0: PCI host bridge to bus 0001:00
[   26.946964] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff]
[   26.946969] pci_bus 0001:00: root bus resource [mem 0xe0010000-0xe7ffffff]
[   26.946975] pci_bus 0001:00: root bus resource [bus 00-ff]
[   26.947040] pci 0001:00:00.0: PCI-E Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[   26.947200] PCI: bus0: Fast back to back transfers disabled
[   26.947207] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   26.947439] pci 0001:01:00.0: PCI-E Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[   26.947709] PCI: bus1: Fast back to back transfers disabled
[   26.947794] pci 0001:00:00.0: BAR 14: assigned [mem 0xe0100000-0xe01fffff]
[   26.947801] pci 0001:00:00.0: BAR 0: assigned [mem 0xe0010000-0xe0010fff]
[   26.947809] pci 0001:00:00.0: BAR 1: assigned [mem 0xe0011000-0xe0011fff pref]
[   26.947817] pci 0001:01:00.0: BAR 0: assigned [mem 0xe0100000-0xe0101fff 64bit]
[   26.947834] pci 0001:00:00.0: PCI bridge to [bus 01]
[   26.947841] pci 0001:00:00.0:   bridge window [mem 0xe0100000-0xe01fffff]
[   26.947887] Kernel event proc (C) BUFFALO INC. V.1.00 installed.
[   26.947894] MICON ctrl (C) BUFFALO INC. V.1.00 installed.
[   26.947898] UPSDRV (C) BUFFALO INC. V.1.10 installed.
[   26.947904] BUFFALO UPS Recover Function Initialized.
[   26.948117] Initialise module verification
[   26.948210] audit: initializing netlink socket (disabled)
[   26.948230] type=2000 audit(1.790:1): initialized
[   27.041382] VFS: Disk quotas dquot_6.5.2
[   27.041460] Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
[   27.041802] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   27.042039] Registering unionfs 2.6 (for 3.10.53)
[   27.042163] FS-Cache: Netfs 'nfs' registered for caching
[   27.042304] Installing knfsd (copyright (C) 1996 [email protected]).
[   27.042521] FS-Cache: Netfs 'cifs' registered for caching
[   27.042572] Key type cifs.spnego registered
[   27.042591] Key type cifs.idmap registered
[   27.042597] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[   27.042673] ROMFS MTD (C) 2007 Red Hat, Inc.
[   27.042686] fuse init (API version 7.22)
[   27.042778] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[   27.043228] bio: create slab <bio-1> at 1
[   27.043414] Btrfs loaded
[   27.043432] msgmni has been set to 2012
[   27.045325] alg: No test for stdrng (krng)
[   27.045344] async_tx: api initialized (async)
[   27.045351] Key type asymmetric registered
[   27.045356] Asymmetric key parser 'x509' registered
[   27.045389] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   27.045457] io scheduler noop registered
[   27.045462] io scheduler deadline registered (default)
[   27.045485] io scheduler cfq registered
[   27.046098] al_dma: Annapurna Labs DMA Driver 0.01
[   27.148475] PCI: enabling device 0000:00:05.0 (0000 -> 0002)
[   27.257513] pci 0000:00:05.1: PCI-E Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[   27.368478] PCI: enabling device 0000:00:05.1 (0400 -> 0402)
[   27.377645] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[   27.381007] fd883000.uart0: ttyS0 at MMIO 0xfd883000 (irq = 49) is a 16550A
[   28.520546] console [ttyS0] enabled
[   28.524311] fd884000.uart1: ttyS1 at MMIO 0xfd884000 (irq = 50) is a 16550A
[   28.533247] brd: module loaded
[   28.537943] loop: module loaded
[   28.541482] PCI: enabling device 0000:00:09.0 (0000 -> 0002)
[   28.547139] ahci 0000:00:09.0: use MSIX for ahci controller. vectors: 4
[   28.553790] ahci 0000:00:09.0: controller can't do PMP, turning off CAP_PMP
[   28.560743] ahci 0000:00:09.0: forcing PORTS_IMPL to 0xf
[   28.566124] ahci: SSS flag set, parallel bus scan disabled
[   28.571623] ahci 0000:00:09.0: AHCI 0001.0300 32 slots 4 ports 6 Gbps 0xf impl SATA mode
[   28.579701] ahci 0000:00:09.0: flags: 64bit ncq sntf stag pm led clo only fbs pio slum part ccc apst 
[   28.589814] scsi0 : ahci
[   28.592501] scsi1 : ahci
[   28.595160] scsi2 : ahci
[   28.597837] scsi3 : ahci
[   28.600458] ata1: SATA max UDMA/133 abar m16384@0xfe128000 port 0xfe128100 irq 132
[   28.608019] ata2: SATA max UDMA/133 abar m16384@0xfe128000 port 0xfe128180 irq 133
[   28.615569] ata3: SATA max UDMA/133 abar m16384@0xfe128000 port 0xfe128200 irq 134
[   28.623125] ata4: SATA max UDMA/133 abar m16384@0xfe128000 port 0xfe128280 irq 135
[   28.630722] ahci: probe of 0001:00:00.0 failed with error -22
[   28.636794] al_nand_probe: AnnapurnaLabs nand driver
[   28.641933] ONFI param page 0 valid
[   28.645412] ONFI flash detected
[   28.648553] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xa3 (Micron MT29F8G08ABBCAH4), 1024MiB, page size: 4096, OO
B size: 224
[   28.660116] Scanning device for bad blocks
[   28.852862] 6 ofpart partitions found on MTD device Alpine nand flash
[   28.859294] Creating 6 MTD partitions on "Alpine nand flash":
[   28.865026] 0x000000000000-0x000000200000 : "al_boot_nand"
[   28.870906] 0x000000200000-0x000000400000 : "device_tree"
[   28.876664] 0x000000400000-0x000000c00000 : "linux_kernel"
[   28.882514] 0x000000c00000-0x000002a00000 : "initrd"
[   28.887830] 0x000002a00000-0x00000c400000 : "ubifs"
[   28.893074] 0x00000c400000-0x000040000000 : "squashfs"
[   28.898835] dw_spi_mmio fd882000.spi: master is unqueued, this is deprecated
[   28.908125] m25p80 spi0.0: found w25q32dw, expected spi_flash_jedec_detection
[   28.915249] m25p80 spi0.0: w25q32dw (4096 Kbytes)
[   28.919969] 4 ofpart partitions found on MTD device spi0.0
[   28.925440] Creating 4 MTD partitions on "spi0.0":
[   28.930227] 0x000000000000-0x000000300000 : "al_boot"
[   28.935708] 0x000000300000-0x0000003d0000 : "future_reserved"
[   28.941828] 0x0000003d0000-0x0000003f0000 : "nas-feature"
[   28.947614] 0x0000003f0000-0x000000400000 : "firmware_hash"
[   28.954274] libphy: Fixed MDIO Bus: probed
[   28.958784] tun: Universal TUN/TAP device driver, 1.6
[   28.963822] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[   28.970089] al_eth_drv: AnnapurnaLabs unified 1GbE and 10GbE Ethernet Driver al_eth v0.2 (Feb 18, 2013)
[   28.977478] ata1: SATA link down (SStatus 0 SControl 300)
[   28.984898] al_eth 0000:00:00.0: Board info: phy exist Yes. phy addr 8. mdio freq 2500 Khz. SFP connected No. media 2
[   28.999852] al_eth 0000:00:00.0 eth0: AnnapurnaLabs unified 1Gbe/10Gbe found at mem fe000000, mac addr 50:c4:dd:6b:62
:61
[   29.010766] al_eth 0000:00:01.0: Board info: phy exist Yes. phy addr 4. mdio freq 1000 Khz. SFP connected No. media 1
[   29.025689] al_eth 0000:00:01.0 eth1: AnnapurnaLabs unified 1Gbe/10Gbe found at mem fe080000, mac addr 50:c4:dd:6b:62
:60
[   29.036567] PPP generic driver version 2.4.2
[   29.040920] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   29.047430] ehci-pci: EHCI PCI platform driver
[   29.051899] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   29.058118] uhci_hcd: USB Universal Host Controller Interface driver
[   29.064515] PCI: enabling device 0001:01:00.0 (0140 -> 0142)
[   29.070177] xhci_hcd 0001:01:00.0: xHCI Host Controller
[   29.075398] xhci_hcd 0001:01:00.0: new USB bus registered, assigned bus number 1
[   29.088376] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   29.095148] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   29.102362] usb usb1: Product: xHCI Host Controller
[   29.107228] usb usb1: Manufacturer: Linux 3.10.20-031020-generic-sa xhci_hcd
[   29.114264] usb usb1: SerialNumber: 0001:01:00.0
[   29.119119] hub 1-0:1.0: USB hub found
[   29.122871] hub 1-0:1.0: 4 ports detected
[   29.127101] xhci_hcd 0001:01:00.0: xHCI Host Controller
[   29.132329] xhci_hcd 0001:01:00.0: new USB bus registered, assigned bus number 2
[   29.139783] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[   29.146561] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   29.153773] usb usb2: Product: xHCI Host Controller
[   29.158648] usb usb2: Manufacturer: Linux 3.10.20-031020-generic-sa xhci_hcd
[   29.165677] usb usb2: SerialNumber: 0001:01:00.0
[   29.170522] hub 2-0:1.0: USB hub found
[   29.174271] hub 2-0:1.0: 4 ports detected
[   29.277593] usbcore: registered new interface driver usb-storage
[   29.283911] mousedev: PS/2 mouse device common for all mice
[   29.290149] rtc-rx8010 0-0032: Frequency stop was detected, probably due to a supply voltage drop
[   29.299012] rtc-rx8010 0-0032: Update timer was detected
[   29.305090] rtc-rx8010 0-0032:  - time reset to 1970/1/1
[   29.310769] rtc-rx8010 0-0032: rtc core: registered rx8010 as rtc0
[   29.316936] rtc-rx8010 0-0032: rx8010-irq_1 missing or invalid
[   29.322775] rtc-rx8010 0-0032: rx8010-irq_2 missing or invalid
[   29.327477] ata2: SATA link down (SStatus 0 SControl 300)
[   29.334032] i2c /dev entries driver
[   29.337659] pca954x 0-0070: probe failed
[   29.359753] al_thermal_probe: Thermal Sensor Loaded at: 0xc0e80a00.
[   29.366175] sp805-wdt fd88c000.wdt0: registration successful
[   29.371843] md: linear personality registered for level -1
[   29.377328] md: raid0 personality registered for level 0
[   29.382633] md: raid1 personality registered for level 1
[   29.387937] md: raid10 personality registered for level 10
[   29.393407] md: raid6 personality registered for level 6
[   29.398710] md: raid5 personality registered for level 5
[   29.404008] md: raid4 personality registered for level 4
[   29.409311] md: faulty personality registered for level -5
[   29.414804] device-mapper: uevent: version 1.0.3
[   29.419509] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: [email protected]
[   29.427981] al_mc_edac fb080000.mc: No ECC present, or ECC disabled
[   29.434252] cpuidle: using governor ladder
[   29.437482] usb 1-3: new full-speed USB device number 2 using xhci_hcd
[   29.444869] cpuidle: using governor menu
[   29.448819] sdhci: Secure Digital Host Controller Interface driver
[   29.454981] sdhci: Copyright(c) Pierre Ossman
[   29.459332] sdhci-pltfm: SDHCI platform and OF driver helper
[   29.465069] ledtrig-cpu: registered to indicate activity on CPUs
[   29.471082] al_crypto: Annapurna Labs Crypto Driver 0.01
[   29.502772] usb 1-3: New USB device found, idVendor=067b, idProduct=23d3
[   29.509468] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   29.516586] usb 1-3: Product: USB-Serial Controller 
[   29.521543] usb 1-3: Manufacturer: Prolific Technology Inc. 
[   29.527187] usb 1-3: SerialNumber: EMBPh10CD20
[   29.578473] PCI: enabling device 0000:00:04.0 (0000 -> 0002)
[   29.677473] ata3: SATA link down (SStatus 0 SControl 300)
[   29.687515] pci 0000:00:04.1: PCI-E Max Payload Size set to  128/ 128 (was  128), Max Read Rq  128
[   29.798477] PCI: enabling device 0000:00:04.1 (0400 -> 0402)
[   29.807245] al_crypto 0000:00:04.1: al_crypto_pci_probe: Skipping alg/hash initialization, no allocated channels
[   29.817845] al_crypto 0000:00:04.1: crc/csum algorithms registered in /proc/crypto
[   29.831781] al_crypto 0000:00:04.0: algorithms registered in /proc/crypto
[   29.841799] al_crypto 0000:00:04.0: hash algorithms registered in /proc/crypto
[   29.849015] al_crypto 0000:00:04.0: al_crypto_pci_probe: Skipping crc initialization, no allocated channels
[   29.859288] TCP: cubic registered
[   29.862596] NET: Registered protocol family 17
[   29.867079] Key type dns_resolver registered
[   29.871440] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[   29.879104] Registering SWP/SWPB emulation handler
[   29.884083] Loading module verification certificates
[   29.889072] X.509: Cert 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c is not yet valid
[   29.896537] MODSIGN: Problem loading in-kernel X.509 certificate (-129)
[   29.903165] registered taskstats version 1
[   29.911454] Key type trusted registered
[   29.919057] Key type encrypted registered
[   29.927254] rtc-rx8010 0-0032: setting system clock to 1970-01-01 00:00:00 UTC (0)
[   29.935028] ALSA device list:
[   29.938000]   No soundcards found.
[   30.027482] ata4: SATA link down (SStatus 0 SControl 300)
[   30.033017] Freeing unused kernel memory: 416K (80b80000 - 80be8000)
Loading, please wait...
[   30.058189] systemd-udevd[157]: starting version 204
Begin: Loading essential drivers ... [   30.127048] Request for unknown module key 'Magrathea: Glacier signing key: 3b5a
a56b47c94f42ab65adbd5fd743a76912ce2c' err -11
[   30.138644] multipath: module verification failed: signature and/or required key missing - tainting kernel
[   30.155771] md: multipath personality registered for level -4
modprobe: module raid5 not found in modules.dep
modprobe: module raid6 not found in modules.dep
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Entering buffalo boot script ... [   31.338391] systemd-udevd[165]: renamed 
network interface eth0 to rename2
[   31.408119] systemd-udevd[172]: renamed network interface eth1 to eth0
[   31.437972] systemd-udevd[165]: renamed network interface rename2 to eth1
Begin: Entering buffaloinit ... 0 /proc/sys/kernel/printk
SATA: ahci 0000:00:09.0: enabling SSS
libsys: PID=0x00002041 by dumpnf
libsys: nas_feature : using /root/.nas_features/US/0x00002041
[   34.171255] Request for unknown module key 'Magrathea: Glacier signing key: 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c'
 err -11
[   34.184555] usbcore: registered new interface driver usbserial
[   34.190798] usbcore: registered new interface driver usbserial_generic
[   34.201193] usbserial: USB Serial support registered for generic
[   34.207379] Request for unknown module key 'Magrathea: Glacier signing key: 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c'
 err -11
[   34.220077] usbcore: registered new interface driver pl2303
[   34.228060] usbserial: USB Serial support registered for pl2303
[   34.238220] Request for unknown module key 'Magrathea: Glacier signing key: 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c'
 err -11
[   34.250303] usbcore: registered new interface driver pl2303g
[   34.257763] usbserial: USB Serial support registered for pl2303g
[   34.263812] pl2303g 1-3:1.0: pl2303g converter detected
[   34.273992] usb 1-3: pl2303g converter now attached to ttyUSB0
Start a service: miconapl
retry miconapl version check.
#[miconapl.mcon_get_version]
mcon_version=TS-M 0.51


====== Convert mtd5 to UBIFS ======
create working directories
[   35.323956] UBI: default fastmap pool size: 165
[   35.328492] UBI: default fastmap WL pool size: 25
[   35.333183] UBI: attaching mtd5 to ubi0
[   37.147489] UBI: scanning is finished
[   37.161683] UBI: attached mtd5 (name "squashfs", size 828 MiB) to ubi0
[   37.168231] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[   37.175003] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[   37.181701] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[   37.188570] UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
[   37.194561] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   37.201684] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
[   37.210627] UBI: available PEBs: 0, total reserved PEBs: 3312, PEBs reserved for bad PEB handling: 80
[   37.219842] UBI: background thread "ubi_bgt0d" started, PID 4217
[   37.226007] UBIFS: background thread "ubifs_bgt0_0" started, PID 4224
[   37.308227] UBIFS: mounted UBI device 0, volume 0, name "boot"
[   37.314050] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[   37.323171] UBIFS: FS size: 815693824 bytes (777 MiB, 3212 LEBs), journal size 33521664 bytes (31 MiB, 132 LEBs)
[   37.333326] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[   37.339152] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8EDCF806-14CF-40A6-BBB5-10E39515D6C5, small LPT model
mtd5 is already converted
[   37.359788] UBIFS: un-mount UBI device 0, volume 0
[   37.364587] UBIFS: background thread "ubifs_bgt0_0" stops
[   37.373417] UBI: detaching mtd5 from ubi0
[   37.383559] UBI: mtd5 is detached from ubi0
====== Entering initramfs(/scripts/buffaloinit) ======
CANDIDATE_NUM=0 : CANDIDATE_LIST=
Selecting disk with not considering signature
CANDIDATE_NUM=0 : CANDIDATE_LIST=
DISK=

libsys: PID=0x00002041 by dumpnf
libsys: nas_feature : using /root/.nas_features/US/0x00002041
Checking the existance of micon ... 
#[miconapl.mcon_get_version]
mcon_version=TS-M 0.51

libsys: PID=0x00002041 by dumpnf
libsys: /etc/sysctl.conf : using /root/.params/sysctl/0x00002041
cat: can't open '/var/tmp/devlink': No such file or directory
libsys: /dev/rtc was updated : /dev/rtc 254 0
Thu Jan  1 09:00:10 1970  -0.998385 seconds
Thu Jan  1 09:00:10 JST 1970
libsys: PID=0x00002041 by dumpnf



Create /var/tmp/devlink from /dev/disk?
root
pci
console
BOOTVER
ubootenv
ubootenv_redund
boot
bootfrom
fwdump.sh: try to mount mtd5 as UBIFS
[   39.901339] UBI: default fastmap pool size: 165
[   39.905860] UBI: default fastmap WL pool size: 25
[   39.910569] UBI: attaching mtd5 to ubi0
[   41.723991] UBI: scanning is finished
[   41.737505] UBI: attached mtd5 (name "squashfs", size 828 MiB) to ubi0
[   41.744032] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[   41.750825] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[   41.757524] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[   41.764384] UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
[   41.770386] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   41.777509] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
[   41.786445] UBI: available PEBs: 0, total reserved PEBs: 3312, PEBs reserved for bad PEB handling: 80
[   41.795657] UBI: background thread "ubi_bgt0d" started, PID 4615
[   41.875998] UBIFS: mounted UBI device 0, volume 0, name "boot", R/O mode
[   41.882699] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[   41.891822] UBIFS: FS size: 815693824 bytes (777 MiB, 3212 LEBs), journal size 33521664 bytes (31 MiB, 132 LEBs)
[   41.901987] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[   41.907813] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8EDCF806-14CF-40A6-BBB5-10E39515D6C5, small LPT model
fwdump.sh: mtd5 mounted to /tmp/tmp.EnEBvQ will be read as UBIFS
fwdump.sh: dump_nand_checksum ... done (/tmp/tmp.RvrZSM/tmp_firmware/FW_CHECKSUM.SHA1)
fwdump.sh: dump_nand_initrd ... done (/tmp/tmp.RvrZSM/tmp_firmware/uInitrd-generic.buffalo)
fwdump.sh: dump_nand_kernel ... done (/tmp/tmp.RvrZSM/tmp_firmware/uImage-generic.buffalo)
fwdump.sh: dump_nand_rootfs ... done (/tmp/tmp.RvrZSM/tmp_firmware/hddrootfs.buffalo.updated)
fwdump.sh: dump_nand_others ... done (/tmp/tmp.RvrZSM/tmp_firmware/*)
[   92.404451] UBIFS: un-mount UBI device 0, volume 0
[   92.411949] UBI: detaching mtd5 from ubi0
[   92.418518] UBI: mtd5 is detached from ubi0
[   92.467855] UBI: default fastmap pool size: 165
[   92.472379] UBI: default fastmap WL pool size: 25
[   92.477070] UBI: attaching mtd5 to ubi0
[   94.291305] UBI: scanning is finished
[   94.301950] UBI: attached mtd5 (name "squashfs", size 828 MiB) to ubi0
[   94.308483] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[   94.315256] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[   94.321962] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[   94.328836] UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
[   94.334827] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   94.341951] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
[   94.350892] UBI: available PEBs: 0, total reserved PEBs: 3312, PEBs reserved for bad PEB handling: 80
[   94.360106] UBI: background thread "ubi_bgt0d" started, PID 4893
[   94.441290] UBIFS: mounted UBI device 0, volume 0, name "boot", R/O mode
[   94.447989] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[   94.457101] UBIFS: FS size: 815693824 bytes (777 MiB, 3212 LEBs), journal size 33521664 bytes (31 MiB, 132 LEBs)
[   94.467255] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[   94.473087] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8EDCF806-14CF-40A6-BBB5-10E39515D6C5, small LPT model
-- CopyFromSfsToInitramfs --
CopyFromSfsToInitramfs: copy 'usr/sbin/xfs_quota' from rootfs image
CopyFromSfsToInitramfs: 'usr/sbin/xfs_quota' depends on '/lib/arm-linux-gnueabihf/libreadline.so.5'
CopyFromSfsToInitramfs: 'usr/sbin/xfs_quota' depends on '/lib/arm-linux-gnueabihf/libc.so.6'
CopyFromSfsToInitramfs: 'usr/sbin/xfs_quota' depends on '/lib/arm-linux-gnueabihf/libtinfo.so.5'
CopyFromSfsToInitramfs: copy 'usr/sbin/smartctl' from rootfs image
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libselinux.so.1'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/usr/lib/arm-linux-gnueabihf/libstdc++.so.6'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libgcc_s.so.1'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libc.so.6'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libpcre.so.3'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libdl.so.2'
CopyFromSfsToInitramfs: 'usr/sbin/smartctl' depends on '/lib/arm-linux-gnueabihf/libm.so.6'
CopyFromSfsToInitramfs: copy 'etc/raidkeeper.conf' from rootfs image
CopyFromSfsToInitramfs: copy 'usr/bin/pgrep' from rootfs image
CopyFromSfsToInitramfs: 'usr/bin/pgrep' depends on '/lib/arm-linux-gnueabihf/libprocps.so.3'
CopyFromSfsToInitramfs: 'usr/bin/pgrep' depends on '/lib/arm-linux-gnueabihf/libc.so.6'
CopyFromSfsToInitramfs: copy 'usr/sbin/memtester' from rootfs image
CopyFromSfsToInitramfs: 'usr/sbin/memtester' depends on '/lib/arm-linux-gnueabihf/libc.so.6'
CopyFromSfsToInitramfs: copy 'usr/local/bin/agingtest.sh' from rootfs image
CopyFromSfsToInitramfs: copy 'usr/local/bin/agingtest_sub.sh' from rootfs image
[   95.141410] UBIFS: un-mount UBI device 0, volume 0
[   95.149815] UBI: detaching mtd5 from ubi0
[   95.157301] UBI: mtd5 is detached from ubi0
linuxrc:choose operation (timeout 4[s])
 1:RamRoot 2:NfsRoot 3:sda1 4:sda2 n:NandRoot h:HddRoot other:HddRoot  ? 
-HddRoot-
CRC region is good. Continue boot process.
[   99.301792] UBI: default fastmap pool size: 165
[   99.306315] UBI: default fastmap WL pool size: 25
[   99.311021] UBI: attaching mtd5 to ubi0
[  101.125620] UBI: scanning is finished
[  101.136722] UBI: attached mtd5 (name "squashfs", size 828 MiB) to ubi0
[  101.143278] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[  101.150066] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[  101.156754] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[  101.163630] UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
[  101.169630] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[  101.176747] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
[  101.185688] UBI: available PEBs: 0, total reserved PEBs: 3312, PEBs reserved for bad PEB handling: 80
[  101.194901] UBI: background thread "ubi_bgt0d" started, PID 5218
[  101.273833] UBIFS: mounted UBI device 0, volume 0, name "boot", R/O mode
[  101.280532] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[  101.289649] UBIFS: FS size: 815693824 bytes (777 MiB, 3212 LEBs), journal size 33521664 bytes (31 MiB, 132 LEBs)
[  101.299868] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[  101.305689] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8EDCF806-14CF-40A6-BBB5-10E39515D6C5, small LPT model
[  101.357435] UBIFS: un-mount UBI device 0, volume 0
[  101.364646] UBI: detaching mtd5 from ubi0
[  101.370215] UBI: mtd5 is detached from ubi0
hwaccess.sh hdd_power_control off 0
hwaccess.sh hdd_power_control off 1
hwaccess.sh hdd_power_control off 2
hwaccess.sh hdd_power_control off 3
Create /var/tmp/devlink from /dev/disk?
mdadm: cannot open /dev/disk?_1: No such file or directory
mdadm: cannot open /dev/disk??_1: No such file or directory
mdadm: cannot open /dev/disk?_2: No such file or directory
mdadm: cannot open /dev/disk??_2: No such file or directory
mdadm: cannot open /dev/disk?_5: No such file or directory
mdadm: cannot open /dev/disk??_5: No such file or directory
mdadm: cannot open /dev/disk*_2: No such file or directory
mdadm: cannot open /dev/disk*_1: No such file or directory
----- /tmp/enclosure_list-no_fwcheck.csv -----
#DISK_NAME,DEV_PATH,PARTITION,DISK_MODEL,DISK_SIZE,SYSTEM_ID,PRIMARY_DISK,UUID_BOOT,UUID_ROOTFS,UUID_SWAP,UUID_SHARE,MDD
EV_SHARE,PRODUCTID,SERIES,FW_VERSION,FW_STATE,FW_UPDATE,PREVIOUS_DISK_NUM,PREVIOUS_DISK_ID,OLD_CONF_TIME,ALMOST_BROKEN
disk1,,,,,,false,,,,,,,,,,,,,,
disk2,,,,,,false,,,,,,,,,,,,,,
disk3,,,,,,false,,,,,,,,,,,,,,
disk4,,,,,,false,,,,,,,,,,,,,,
----- /tmp/enclosure_list-no_fwcheck.json -----
{
"disk1":{"state":false,"system_id":-1,"fw_version":"","fw_valid":false,"model":"","size":-1,"primary":false,"prev_disk_n
um":-1,"prev_disk_id":-1,"last_boot":-1,"almost_broken":false},
"disk2":{"state":false,"system_id":-1,"fw_version":"","fw_valid":false,"model":"","size":-1,"primary":false,"prev_disk_n
um":-1,"prev_disk_id":-1,"last_boot":-1,"almost_broken":false},
"disk3":{"state":false,"system_id":-1,"fw_version":"","fw_valid":false,"model":"","size":-1,"primary":false,"prev_disk_n
um":-1,"prev_disk_id":-1,"last_boot":-1,"almost_broken":false},
"disk4":{"state":false,"system_id":-1,"fw_version":"","fw_valid":false,"model":"","size":-1,"primary":false,"prev_disk_n
um":-1,"prev_disk_id":-1,"last_boot":-1,"almost_broken":false}
}
--- /tmp/unplugged_or_blank_disks ---
disk4
disk1
disk3
disk2
NUM_SYSTEM=0
no system drives, or md1 may be broken
enclosure_boot_check.sh: retv=4
enclosure_all_disks_are_mine: disk1 is unplugged or blank disk (ignored)
enclosure_all_disks_are_mine: disk2 is unplugged or blank disk (ignored)
enclosure_all_disks_are_mine: disk3 is unplugged or blank disk (ignored)
enclosure_all_disks_are_mine: disk4 is unplugged or blank disk (ignored)
enclosure_all_disks_are_mine: all disks are unplugged or blank
is_normal_boot: enclosure is changed
*** Drive Setup Mode ***
-RamdiskRoot-
 * Starting fanctld ...    [ ok ]
fan speed is set to full, and reset log output interval.
fan change depend temp, temp0= 
temp0=32 
fan speed is set to fast, and reset log output interval.
fan change depend temp, temp0=32 


--- rcStart (initrd) ---
Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot set device ring parameters: Operation not supported
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
Cannot get device ring settings: No such device
=== checkroot.sh ===
Create /var/tmp/devlink from /dev/disk?
swapon: can't stat '/dev/md2': No such file or directory
get_disktype.sh: md2: no such device
*** Setting vm.swappiness=60
/usr/local/bin/libbuffalo: line 1114: sysctl: command not found
create dir : /var/cache/man
create dir : /var/spool/lpd
create dir : /var/mail
create dir : /var/spool/news
create dir : /var/spool/uucp
create dir : /var/www
create dir : /var/backups
create dir : /var/list
create dir : /var/run/ircd
create dir : /var/lib/gnats
create dir : /var/lib/libuuid
create dir : /home/syslog
create dir : /var/run/sshd
create dir : /home/ntp
create dir : /var/run/dbus
create dir : /var/lib/avahi-autoipd
create dir : /var/run/lldpd
create dir : /var/run/proftpd
create dir : /var/lib/snmp
create dir : /var/run/avahi-daemon
create dir : /var/lib/puppet
create dir : /var/lib/ldap
create dir : /dev/null
mkdir: can't create directory '/dev/null': File exists
create dir : /dev/null
mkdir: can't create directory '/dev/null': File exists
=== create_devlink.sh ===
Create /var/tmp/devlink from /dev/disk?
=== closeSysMd.sh ===
mdadm: error opening /dev/md0: No such file or directory
mdadm: error opening /dev/md1: No such file or directory
mdadm: error opening /dev/md2: No such file or directory
=== sethostname.sh ===
configure /etc/hosts based on Buffalo parameters.
=== EnablingAutoip.sh ===
/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf
=== networking.sh ===
[  112.599411] configured MAC to RGMII mode:
[  112.603913] al_eth 0000:00:01.0 eth0: using MSI-X per Queue interrupt mode
[  112.616083] libphy: al mdio bus: probed
[  112.620275] ar8035 found
[  112.623816] al_eth 0000:00:01.0 eth0: phy[4]: device 8:04, driver Atheros 8035 ethernet
[  112.631826] al_eth 0000:00:01.0 eth0: phy[4]:supported 2ef adv 2ef
[  112.640184] configured MAC to KR mode:
[  112.644471] al_eth 0000:00:00.0 eth1: using MSI-X per Queue interrupt mode
[  112.653238] libphy: al mdio bus: probed
[  112.661164] al_eth 0000:00:00.0 eth1: phy[8]: device 0:08, driver Aquantia AQR112 phy driver
[  112.669610] al_eth 0000:00:00.0 eth1: phy[8]:supported 1028 adv 1028
RecordFanRpm fan_input_value[0]=fast
fan0=fast->2488 
RecordUpdateStatusFile /tmp/my_status can't flock!
[  152.682607] al_eth 0000:00:01.0 eth0: al_eth_down
[  152.688959] [eth rx] warn: dma state didn't change to Disable
[  152.694699] [eth rx] warn: failed to change state, error -110
[  152.705691] al_eth 0000:00:00.0 eth1: al_eth_down
[  152.712073] [eth rx] warn: dma state didn't change to Disable
[  152.717887] [eth rx] warn: failed to change state, error -110
configuring network interfaces.
PORTTRUNK1: not configured
LAN1: eth0 IPaddr=[dhcp], netmask=[], mtu=1518
LAN2: eth1 IPaddr=[dhcp], netmask=[], mtu=1500
priority_order=eth1 eth0
default_gateway=[], dns1=[], dns2=[]
primary_interface=[eth1]
NetDevStart eth1
[  152.879991] configured MAC to KR mode:
[  152.884276] al_eth 0000:00:00.0 eth1: using MSI-X per Queue interrupt mode
[  152.893011] libphy: al mdio bus: probed
[  152.900285] al_eth 0000:00:00.0 eth1: phy[8]: device 0:08, driver Aquantia AQR112 phy driver
[  152.908735] al_eth 0000:00:00.0 eth1: phy[8]:supported 1028 adv 1028
NetDevStart eth0
[  160.968888] configured MAC to RGMII mode:
[  160.973446] al_eth 0000:00:01.0 eth0: using MSI-X per Queue interrupt mode
[  160.986562] libphy: al mdio bus: probed
[  160.990717] ar8035 found
[  160.994240] al_eth 0000:00:01.0 eth0: phy[4]: device 8:04, driver Atheros 8035 ethernet
[  161.002249] al_eth 0000:00:01.0 eth0: phy[4]:supported 2ef adv 2ef
fan speed is set to slow, and reset log output interval.
fan change depend temp, temp0=32 
checking & resolving IPaddress confliction.
arping notify new IPaddress 
setting up default_gateway
configuring route
configuring DNS
configure /etc/hosts based on Buffalo parameters.
=== syslog.sh ===
=== kernelmon.sh ===
Starting kernelmon:=== miconmon.sh ===
KERNELMON (lanact 0 full eth1)

KERNELMON (lanact 0 half eth0)
KERNELMON (lanact 0 full eth1)
KERNELMON (lanact 0 half eth0)
=== usb.sh ===

[  171.603089] Request for unknown module key 'Magrathea: Glacier signing key: 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c'
 err -11
[  171.615990] hidraw: raw HID events driver (C) Jiri Kosina
[  171.621609] Request for unknown module key 'Magrathea: Glacier signing key: 3b5aa56b47c94f42ab65adbd5fd743a76912ce2c'
 err -11
[  171.638424] usbcore: registered new interface driver usbhid
[  171.643993] usbhid: USB HID core driver
grep: /etc/melco/usbshareinfo: No such file or directory
Error: no such table: shares
grep: /etc/melco/usbshareinfo: No such file or directory
Error: no such table: shares
Error: no such table: shares
Error: no such table: shares
Error: no such table: shares
Error: no such table: shares
Creating node for USB device /sys/bus/usb/devices/1-3 BUS_NUM=1 DEV_NUM=2 MAJOR=189 MINOR=1
Creating node for USB device /sys/bus/usb/devices/usb1 BUS_NUM=1 DEV_NUM=1 MAJOR=189 MINOR=0
Creating node for USB device /sys/bus/usb/devices/usb2 BUS_NUM=2 DEV_NUM=1 MAJOR=189 MINOR=128
=== clientUtil_servd.sh ===
Starting clientUtil_server:
=== daemonwatch.sh ===
Starting daemonwatch:daemonwatch Ver.1.01
watch list file : /etc/daemonwatch.list
=== bootcomplete.sh ===
No need to run drivecheck.sh


[  172.028168] unknown cpu_status(ups_shutdown)
is_supported_ssd.sh: disk1: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk2: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk3: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk4: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
/usr/local/bin/hdd_raid_syncspeed.sh: line 43: sysctl: command not found
/usr/local/bin/hdd_raid_syncspeed.sh: line 171: /sys/block/md0/md/sync_speed_max: No such file or directory
/usr/local/bin/hdd_raid_syncspeed.sh: line 171: /sys/block/md1/md/sync_speed_max: No such file or directory
/usr/local/bin/hdd_raid_syncspeed.sh: line 171: /sys/block/md2/md/sync_speed_max: No such file or directory
is_supported_ssd.sh: disk1: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk2: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk3: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
is_supported_ssd.sh: disk4: no such disk
/usr/local/bin/hdd_raid_syncspeed.sh: line 37: [: -eq: unary operator expected
/usr/local/bin/hdd_raid_syncspeed.sh: line 43: sysctl: command not found
hdd_raid_syncspeed.sh: Adding EDP md devices
hdd_raid_syncspeed.sh: USERLAND_MD=md10 md11 md12 md20 md21 md22 md101 md102 md103 md104
=== micon_setup.sh ===
=== late_inspection_phase.sh ===
=== webui-em.sh ===
[  172.627587] UBI: default fastmap pool size: 165
[  172.632113] UBI: default fastmap WL pool size: 25
[  172.636805] UBI: attaching mtd5 to ubi0
[  174.546079] UBI: scanning is finished
[  174.557525] UBI: attached mtd5 (name "squashfs", size 828 MiB) to ubi0
[  174.564059] UBI: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[  174.570872] UBI: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[  174.577583] UBI: VID header offset: 4096 (aligned 4096), data offset: 8192
[  174.584455] UBI: good PEBs: 3312, bad PEBs: 0, corrupted PEBs: 0
[  174.590469] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[  174.597602] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 759194126
[  174.606542] UBI: available PEBs: 0, total reserved PEBs: 3312, PEBs reserved for bad PEB handling: 80
[  174.615767] UBI: background thread "ubi_bgt0d" started, PID 7595
[  174.700725] UBIFS: mounted UBI device 0, volume 0, name "boot", R/O mode
[  174.707419] UBIFS: LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[  174.716555] UBIFS: FS size: 815693824 bytes (777 MiB, 3212 LEBs), journal size 33521664 bytes (31 MiB, 132 LEBs)
[  174.726729] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[  174.732565] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 8EDCF806-14CF-40A6-BBB5-10E39515D6C5, small LPT model
errormon ver.2.00(BuildDate Dec 22 2021 12:01:28 compiled for TS-M Series) Started
sh: /usr/bin/test: No such file or directory

BUFFALO INC. TeraStation series 
TS3420D260 login: 

U-Boot env

DEVICEID=a7BQ25VLoILjYhTnmMA461-STCCH48LK
arch=arm
autoload=n
baudrate=115200
board=alpine_db
board_name=alpine_db
boot_instance_active=1
boot_instance_non_active=0
bootargsbnas=setenv buffaloargs BOOTVER=0.37 ubootenv=0x$env_offset,0x4000,0x05,0x00@mtd6 ubootenv_redund=0x$env_offset_redund,0x4000,0x05,0x00@mtd6 boot=buffalofirm bootfrom=${boot_from}
bootargshd=run rootargshd; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 $bootargsextra $buffaloargs; printenv bootargs
bootargshd_buffalo=run rootargshd; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 $bootargsextra $buffaloargs tftpbootcmd=yes noperftest; printenv bootargs
bootargsnand=run rootargsnand; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 $bootargsextra $buffaloargs; printenv bootargs
bootargsnfs=run rootargsnfs; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 $bootargsextra $buffaloargs; printenv bootargs
bootargssfs=run rootargssfs;setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 $bootargsextra;printenv bootargs
bootcmd=for i in $bootorder; do run $i; done; run netboot_buffalo
bootdelay=5
bootext4=lcd_print "Loading OS...";ext4load scsi ${ext4dev}:${ext4part} $loadaddr ${ext4dir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then ;else flash_contents_obj_read_mem $loadaddr_dt $loadaddr;if test $? -ne 0; then run fail; exit; fi;fi;ext4load scsi ${ext4dev}:${ext4part} $loadaddr ${ext4dir}${kernel_filename}
;if test $? -ne 0; then run fail; exit; fi;fdt addr $loadaddr_dt;bootm $loadaddr $initrdaddr $fdtaddr;run fail;exit
bootnand=lcd_print "Loading OS...";nand set_partition_offset $nand_pt_addr_kernel;nand read $loadaddr $nand_pt_addr_kernel 4;setenvmem filesize $loadaddr;incenv filesize 4;nand read $loadaddr $nand_pt_addr_kernel $filesize;nand set_partition_offset $nand_pt_addr_al_boot;fdt addr $loadaddr_dt;bootm $loadaddr_payload $initrdaddr $fdtaddr;run fail;exit
bootnandmulti=run kernel_select;if test $kernel_selected -ne 0; then run bootnand; fi
bootorder=ubiboot fastboot hddboot hddboot
boottftp=lcd_print "Loading OS...";tftpboot $loadaddr ${tftpdir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then cp ${loadaddr} ${loadaddr_dt} ${filesize};else flash_contents_obj_read_mem $loadaddr_dt $loadaddr;if test $? -ne 0; then run fail; exit; fi;fi;tftpboot $loadaddr ${tftpdir}${kernel_filename};if test $? -ne
 0; then run fail; exit; fi;fdt addr $loadaddr_dt;bootm $loadaddr $initrdaddr $fdtaddr;run fail;exit
bootubi=setenv initrdaddr $loadaddr_rd;incenv initrdaddr 4;setenv mtdparts mtdparts=nand_flash:2M(al_boot),2M(device_tree),8M(linux_kernel),30M(initrd),154M(ubifs),828M(rootfs);setenv mtdids nand0=nand_flash;mtdparts;if test $? -ne 0; then echo !!---- FAIL ----- 'mtdparts';run fail; exit; fi;ubi part nand0,5;if test $? -ne 0; then echo !!---- FAIL ----- 'ubi' p
art nand0,5;run fail; exit; fi;ubifsmount ubi0;if test $? -ne 0; then echo !!---- FAIL ----- 'ubifsmount' ubi0;run fail; exit; fi;ubifsls;ubi info;ubifsload $loadaddr_payload $kernel_filename;if test $? -ne 0; then echo !!---- FAIL ----- 'ubifsload' $loadaddr_payload $kernel_filename;run fail; exit; fi;ubifsload $initrdaddr $rd_filename;if test $? -ne 0; then e
cho !!---- FAIL ----- 'ubifsload' $initrdaddr $rd_filename;run fail; exit; fi;bootm $loadaddr_payload $initrdaddr $fdtaddr;if test $? -ne 0; then echo !!---- FAIL ----- 'bootm';echo bootm $loadaddr_payload $initrdaddr $fdtaddr;run fail; exit; fi;run fail; exit
bootupd=is_nand_boot; if test $? -eq 0; then run bootupdspi; else; run bootupdnand; fi
bootupdnand=lcd_print "Updating al-boot" "to NAND"; tftpboot $loadaddr ${tftpdir}boot.img; if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread $nand_pt_addr_al_boot $filesize; nand write $loadaddr $nand_pt_addr_al_boot $filesize; lcd_print "Done"
bootupdnandy=lcd_print "Updating al-boot" "to NAND"; echo >> Use YModem to upload the boot image binary...;loady $loadaddr;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread $nand_pt_addr_al_boot $filesize; nand write $loadaddr $nand_pt_addr_al_boot $filesize; lcd_print "Done"
bootupdspi=lcd_print "Updating al-boot" "to SPI"; tftpboot ${loadaddr} ${tftpdir}boot.img; if test $? -ne 0; then run fail; exit; fi;sf probe; sf erase 0 +${filesize}; sf write ${loadaddr} 0 ${filesize}; echo bootupd done;echo Notice: Changes in default environment variables will only take effect once the;echo environment variables are deleted from flash using 
the 'delenv' script;lcd_print "Done"
bootupdspiy=lcd_print "Updating al-boot" "to SPI"; echo >> Use YModem to upload the boot image binary...;loady ${loadaddr};if test $? -ne 0; then run fail; exit; fi;sf probe; sf erase 0 +${filesize}; sf write ${loadaddr} 0 ${filesize}; echo bootupd done;echo Notice: Changes in default environment variables will only take effect once the;echo environment variabl
es are deleted from flash using the 'delenv' script;lcd_print "Done"
bootupdy=is_nand_boot; if test $? -eq 0; then run bootupdspiy;else; run bootupdnandy; fi
buffalo_version=0.37
cpu=armv7
cvos_tags=0x01000000
cvos_tags_seed_a=0x01000004
cvos_tags_seed_b=0x01000008
cvos_tags_validate=mw.l ${cvos_tags} 0xcf05cf05
delay_time_ms=5500
delenv=is_nand_boot; if test $? -eq 0; then run delenvspi; else; run delenvnand; fi
delenvnand=lcd_print "Deleting env..."; nand erase ${env_offset} 2000; if test -n ${env_offset_redund}; then nand erase ${env_offset_redund} 2000; fi;lcd_print "Done"
delenvspi=lcd_print "Deleting env..."; sf probe; sf erase ${env_offset} +2000;if test -n ${env_offset_redund}; then sf erase ${env_offset_redund} +2000;fi;lcd_print "Done"
dt_filename=alpine-ts3020.dtb
dt_is_from_toc=0
dt_location=1e0000
dt_nand_location=0x00200000
dt_nand_size=0x00010000
dtupd=is_nand_boot; if test $? -eq 0; then run dtupdspi; else; run dtupdnand; fi
dtupdatenand=lcd_print "Updating DT" "to NAND";tftpboot $loadaddr_dt ${tftpdir}dt.img;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread ${dt_nand_location} ${dt_nand_size};nand write ${loadaddr_dt} ${dt_nand_location} ${dt_nand_size};lcd_print "Done"
dtupdnand=lcd_print "Updating DT" "to NAND"; tftpboot $loadaddr_dt ${tftpdir}dt.img;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread ${dt_location} 10000; nand write
 ${loadaddr_dt} ${dt_location} 10000; lcd_print "Done"
dtupdnandy=lcd_print "Updating DT" "to NAND"; echo >> Use YModem to upload the device tree binary...;loady $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spr
ead ${dt_location} 10000; nand write ${loadaddr_dt} ${dt_location} 10000; lcd_print "Done"
dtupdspi=lcd_print "Updating DT" "to SPI"; tftpboot $loadaddr_dt ${tftpdir}dt.img;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;sf probe; sf erase ${dt_location} +${filesize}; sf write ${loadaddr_dt} ${dt_location} ${filesize};e
cho dtupd done;lcd_print "Done"
dtupdspiy=lcd_print "Updating DT" "to SPI"; echo >> Use YModem to upload the device tree binary...;loady $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;sf probe; sf erase ${dt_location} +${filesize}; sf write ${loada
ddr_dt} ${dt_location} ${filesize}; echo dtupd done;lcd_print "Done"
dtupdy=is_nand_boot; if test $? -eq 0; then run dtupdspiy; else; run dtupdnandy; fi
eepromupd=confirm_msg "Perform EEPROM update? [y/n] ";if test $? -ne 0; then exit; fi;tftpboot ${tftpdir}eeprom.bin;if test $? -ne 0; then exit; fi;i2c probe ${pld_i2c_addr};if test $? -ne 0; then exit; fi;i2c write $fileaddr ${pld_i2c_addr} 0.2 $filesize;if test $? -ne 0; then exit;fi;echo eepromupd done
eepromupdy=confirm_msg "Perform EEPROM update? [y/n] ";if test $? -ne 0; then exit; fi;echo >> Use YModem to upload the EEPROM binary...;loady $loadaddr;if test $? -ne 0; then exit; fi;i2c probe ${pld_i2c_addr};if test $? -ne 0; then exit; fi;i2c write $loadaddr ${pld_i2c_addr} 0.2 $filesize;if test $? -ne 0; then exit;fi;echo eepromupdy done
env_offset=2e0000
env_offset_redund=2f0000
eth1addr=50:c4:dd:6b:62:60
ethact=al_eth0
ethaddr=50:c4:dd:6b:62:61
ethprime=al_eth3
ext4dev=0
ext4part=1
fail=echo Failed!; lcd_print "Failed!"
fastboot=echo '###############';echo '## fastboot';echo '###############';boot_from=fast;run initrdnand;run bootargsbnas;run bootargshd;run bootnand
fdtaddr=3b62008
fwupd=tftpboot ${tftpdir}uboot_script_fw_update.bin;source ${loadaddr}
hddboot=echo '###############';echo '## hddboot';echo '###############';boot_from=hdd;run initrdext4;run bootargsbnas;run bootargshd;run bootext4
hdroot=/dev/sda1
initrdaddr=-
initrdext4=lcd_print "Loading initrd" "from HDD";scsi init;for i in 0 1 2 3; do ext4load scsi $i:${ext4part} $loadaddr_rd ${ext4dir}${rd_filename};if test $? -eq 0; then setenv ext4dev $i;setenv rd_filesize $filesize;setenv initrdaddr $loadaddr_rd;exit;fi;done
initrdnand=lcd_print "Loading initrd" "from NAND";nand set_partition_offset $nand_pt_addr_al_boot;nand read $loadaddr $rd_location 4;setenvmem filesize $loadaddr;incenv filesize 4;nand read $loadaddr_rd $rd_location $filesize;setenv initrdaddr $loadaddr_rd;incenv initrdaddr 4;nand set_partition_offset $nand_pt_addr_al_boot;lcd_print "Done"
initrdtftp=lcd_print "Loading initrd" "from TFTP";while true; do tftpboot $loadaddr_rd ${tftpdir}${rd_filename};if test $? -ne 0; then run fail;if test ${ethact} != "al_eth1"; then setenv ethact al_eth1;echo ethact:al_eth1;else setenv ethact al_eth3;echo ethact:al_eth3;fi;else setenv rd_filesize $filesize;setenv initrdaddr $loadaddr_rd;lcd_print "Done";exit;fi;
done
initrdupd=lcd_print "Updating initrd" "to NAND";tftpboot $loadaddr_payload ${tftpdir}${rd_filename};if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_kernel;mw.l $loadaddr $filesize;incenv filesize 4;nand erase.spread $rd_location $filesize;nand write $loadaddr $rd_location $filesize;nand set_partition_offset $nand_pt_addr_al_boo
t;echo initrdupdnand done;lcd_print "Done"
iocc_force=1
iocc_force_val=1
ipaddr=192.168.11.150
kernel_filename=uImage-generic.buffalo
kernel_rename_1=editenv nand_pt_desc_kernel_1;saveenv
kernel_rename_2=editenv nand_pt_desc_kernel_2;saveenv
kernel_select=setenv kernel_selected 0;setenv bootmenu_0 ${nand_pt_desc_kernel_1}=run kernel_select_1;setenv bootmenu_1 ${nand_pt_desc_kernel_2}=run kernel_select_2;bootmenu
kernel_select_1=setenv nand_pt_addr_kernel ${nand_pt_addr_kernel_1};setenv kernel_selected 1
kernel_select_2=setenv nand_pt_desc_kernel ${nand_pt_desc_kernel_2};setenv nand_pt_addr_kernel ${nand_pt_addr_kernel_2};setenv nand_pt_desc_kernel_2 ${nand_pt_desc_kernel_1};setenv nand_pt_addr_kernel_2 ${nand_pt_addr_kernel_1};setenv nand_pt_desc_kernel_1 ${nand_pt_desc_kernel};setenv nand_pt_addr_kernel_1 ${nand_pt_addr_kernel};saveenv;setenv kernel_selected 
2
kernelupd=lcd_print "Updating kernel...";tftpboot $loadaddr_payload ${tftpdir}${kernel_filename};if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_kernel;mw.l $loadaddr $filesize;incenv filesize 4;nand erase.spread $nand_pt_addr_kernel $filesize;nand write $loadaddr $nand_pt_addr_kernel $filesize;nand set_partition_offset $nand_p
t_addr_al_boot;echo kernelupd done;lcd_print "Done"
loadaddr=0x08000000
loadaddr_dt=0x07000000
loadaddr_payload=0x08000004
loadaddr_rd=0x04000000
loadaddr_rootfs_chk=0x07000000
nand_pt_addr_al_boot=0x0
nand_pt_addr_fs=0x02a00000
nand_pt_addr_kernel=0x00400000
nand_pt_addr_kernel_1=0x00400000
nand_pt_addr_kernel_2=0x00a00000
nand_pt_addr_sfs=0x0c400000
nand_pt_desc_kernel_1=Test kernel A
nand_pt_desc_kernel_2=Test kernel B
nand_pt_size_al_boot=0x00400000
nand_pt_size_fs=0x09a00000
nand_pt_size_kernel=0x00c00000
nand_pt_size_sfs=0x33c00000
nandboot=echo '###############';echo '## nandboot';echo '###############';boot_from=nand;run initrdnand;run bootargsbnas;run bootargssfs;run bootnand
netboot=echo '###############';echo '## netboot';echo '###############';boot_from=netboot;run initrdtftp;run bootargsbnas;run bootargsnfs;run boottftp
netboot_buffalo=echo '###############';echo '## netboot_buffalo';echo '###############';boot_from=netboot_buffalo;run initrdtftp;run bootargsbnas;run bootargshd_buffalo;run boottftp
nfsrootdir=/srv/root/
pld_i2c_addr=50
rd_filename=uInitrd-generic.buffalo
rd_location=0x00c00000
rescue_bootorder=hddboot hddboot ubiboot fastboot
rootargshd=setenv rootargs root=${hdroot} rw
rootargshd_buffalo=setenv rootargs root=${hdroot} rw tftpbootcmd=yes
rootargsnand=setenv rootargs root=ubi0:root rootfstype=ubifs ubi.mtd=3
rootargsnfs=setenv rootargs root=/dev/nfs rw nfsroot=${serverip}:${nfsrootdir},tcp,nolock rw ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${board_name}:eth1:none
rootargssfs=setenv rootargs root=${squashrootdev} ro rootfstype=squashfs rootdelay=1 ${unionrootdev}
rootfs_filename=hddrootfs.buffalo.updated
rootfsupd=lcd_print "Updating rootfs...";tftpboot $loadaddr_rootfs_chk ${tftpdir}rootfs.ubi.md5;if test $? -ne 0; then run fail; exit; fi;tftpboot $loadaddr ${tftpdir}rootfs.ubi;if test $? -ne 0; then run fail; exit; fi;md5sum -v $loadaddr $filesize *$loadaddr_rootfs_chk;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_fs;nand e
rase.spread $nand_pt_addr_fs $nand_pt_size_fs;nand write $loadaddr $nand_pt_addr_fs $filesize;nand set_partition_offset $nand_pt_addr_al_boot;echo rootfsupd done;lcd_print "Done"
series=ts3x20
serverip=192.168.11.1
skip_eth_halt=0
soc=alpine
squashrootdev=/dev/mtdblock5
squashupd=lcd_print "Updating rootfs...";tftpboot $loadaddr_rootfs_chk ${tftpdir}${rootfs_filename}.md5;if test $? -ne 0; then run fail; exit; fi;tftpboot $loadaddr ${tftpdir}${rootfs_filename};if test $? -ne 0; then run fail; exit; fi;md5sum -v $loadaddr $filesize *$loadaddr_rootfs_chk;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_p
t_addr_fs;nand erase.spread $nand_pt_addr_sfs $nand_pt_size_sfs;nand write $loadaddr $nand_pt_addr_sfs $filesize;nand set_partition_offset $nand_pt_addr_al_boot;echo squashsupd done;lcd_print "Done"
test=echo this is a test!
ubiboot=echo '###############';echo '## ubiboot';echo '###############';boot_from=ubi;run bootargsbnas;run bootargshd;run bootubi
unionrootdev=unionfs=ubi0:ubifs ubi.mtd=4
vendor=annapurna-labs

Environment size: 15254/16379 bytes

Buffalo Resources