Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 06:10AM
OK, I had already upgrade to bullseye 11.8

root@iSharing:~# cat aptkey
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793 \
    0E98404D386FA1D9 648ACFD622F3D138
root@iSharing:~# cat /etc/debian_version
11.8
root@iSharing:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";
root@iSharing:~# cat /etc/apt/sources.list
deb http://opensource.nchc.org.tw/debian bullseye main
deb-src http://opensource.nchc.org.tw/debian bullseye main

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src  http://security.debian.org/debian-security bullseye-security main contrib non-free

deb     http://opensource.nchc.org.tw/debian bullseye-updates main contrib
deb-src http://opensource.nchc.org.tw/debian bullseye-updates main contrib

root@iSharing:~#

if 'apt update' get PUBKEY warring

W: GPG error: http://deb.debian.org stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 605C66F00D6C9793

use this way
remember to install dirmngr

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793 \
    0E98404D386FA1D9 648ACFD622F3D138

after upgrade , before boot, remember to mkimage again

root@iSharing:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-5.4.224-oxnas-tld-1 -d vmlinuz-5.4.224-oxnas-tld-1 uImage
Image Name:   Linux-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:08 2023
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5589592 Bytes = 5458.59 KiB = 5.33 MiB
Load Address: 60008000
Entry Point:  60008000
root@iSharing:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x60000000 -e 0x60000000 -n initramfs-5.4.224-oxnas-tld-1  -d initrd.img-5.4.224-oxnas-tld-1 uInitrd
Image Name:   initramfs-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:17 2023
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    6497712 Bytes = 6345.42 KiB = 6.20 MiB
Load Address: 60000000
Entry Point:  60000000
root@iSharing:/boot# sync;sync;sync


I will backup all rootfs and upgrade to bookworm 12



Edited 2 time(s). Last edit at 11/27/2023 07:37AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 08:19AM
OK, I had already upgrade to bookworm 12

NOTICE!!!

PLEASE REMEMBER Enough Space!!!!

root@iSharing:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            117M     0  117M   0% /dev
tmpfs            25M  248K   24M   2% /run
/dev/sda1       7.4G  1.3G  6.2G  17% /
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            49M     0   49M   0% /dev/shm
tmpfs           122M     0  122M   0% /tmp



root@iSharing:~# cat /etc/debian_version
12.2
root@iSharing:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";

root@iSharing:~# cat /etc/apt/sources.list

# Debian 12 (bookworm)
deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main

# Security
deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main

# Updates
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main

# Non-free
deb http://ftp.de.debian.org/debian bookworm main non-free-firmware
deb-src http://ftp.de.debian.org/debian bookworm main non-free-firmware


1.Backup all rootfs
2.Modify /etc/sources.list
3.apt update
4.apt upgrade --without-new-pkgs

5.Don't remember to do as following

root@iSharing:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-5.4.224-oxnas-tld-1 -d vmlinuz-5.4.224-oxnas-tld-1 uImage
Image Name:   Linux-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:08 2023
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5589592 Bytes = 5458.59 KiB = 5.33 MiB
Load Address: 60008000
Entry Point:  60008000
root@iSharing:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x60000000 -e 0x60000000 -n initramfs-5.4.224-oxnas-tld-1  -d initrd.img-5.4.224-oxnas-tld-1 uInitrd
Image Name:   initramfs-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:17 2023
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    6497712 Bytes = 6345.42 KiB = 6.20 MiB
Load Address: 60000000
Entry Point:  60000000
root@iSharing:/boot# sync;sync;sync

6.apt full-upgrade

make sure !!make sure!!!

root@iSharing:~# cd /
root@iSharing:/# ls -al
total 64
drwxrwxrwx  18 root root  4096 Nov 27 21:36 .
drwxrwxrwx  18 root root  4096 Nov 27 21:36 ..
lrwxrwxrwx   1 root root     7 Nov 27 21:36 bin -> usr/bin
drwxr-xr-x   3 root root  4096 Nov 27 21:42 boot
drwxr-xr-x  13 root root  2580 Jan  1  1970 dev
drwxr-xr-x  72 root root  4096 Nov 27 22:03 etc
drwxr-xr-x   2 root root  4096 Nov 27 10:38 home
lrwxrwxrwx   1 root root     7 Nov 27 21:36 lib -> usr/lib
drwx------   2 root root 16384 Nov 27 10:33 lost+found
drwxr-xr-x   2 root root  4096 Nov 27 10:38 media
drwxr-xr-x   2 root root  4096 Nov 27 10:38 mnt
drwxr-xr-x   2 root root  4096 Nov 27 10:38 opt
dr-xr-xr-x 111 root root     0 Jan  1  1970 proc
drwx------   5 root root  4096 Nov 27 20:02 root
drwxr-xr-x  12 root root   560 Nov 27 22:08 run
lrwxrwxrwx   1 root root     8 Nov 27 21:36 sbin -> usr/sbin
drwxr-xr-x   2 root root  4096 Nov 27 10:38 srv
dr-xr-xr-x  12 root root     0 Jan  1  1970 sys
drwxrwxrwt   2 root root    40 Jan  1  1970 tmp
drwxr-xr-x  11 root root  4096 Nov 27 19:34 usr
drwxr-xr-x  25 root root  4096 Nov 27 10:40 var


7.Don't remember to do as following again

root@iSharing:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-5.4.224-oxnas-tld-1 -d vmlinuz-5.4.224-oxnas-tld-1 uImage
Image Name:   Linux-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:08 2023
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5589592 Bytes = 5458.59 KiB = 5.33 MiB
Load Address: 60008000
Entry Point:  60008000
root@iSharing:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x60000000 -e 0x60000000 -n initramfs-5.4.224-oxnas-tld-1  -d initrd.img-5.4.224-oxnas-tld-1 uInitrd
Image Name:   initramfs-5.4.224-oxnas-tld-1
Created:      Sun Nov 26 19:11:17 2023
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    6497712 Bytes = 6345.42 KiB = 6.20 MiB
Load Address: 60000000
Entry Point:  60000000
root@iSharing:/boot# sync;sync;sync

8.reboot (go to console serial)

You will look at , can't ifup eth0 , can't find eth0

9.as following to do

root@iSharing:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:30:e0:00:00:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.249/16 brd 192.168.255.255 scope global end0
       valid_lft forever preferred_lft forever
    inet6 fe80::230:e0ff:fe00:1/64 scope link
       valid_lft forever preferred_lft forever
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1000
    link/tunnel6 :: brd ::
root@iSharing:~#

modify interface by yourself
vi /etc/network/interfaces


change eth0 to end0

#auto lo eth0
#iface lo inet loopback
#iface eth0 inet dhcp
#hwaddress ether XX:XX:XX:XX:XX:XX

auto lo
iface lo inet loopback

auto end0
iface end0 inet static
address 192.168.20.249
netmask 255.255.0.0
gateway 192.168.20.253
dns-nameservers 192.168.20.253 8.8.8.8
hwaddress ether XX:XX:XX:XX:XX:XX

do this command

ifdown end0 && ifup -v end0

use 'ip a' to check again ...
and 'ping 8.8.8.8'



Edited 3 time(s). Last edit at 11/27/2023 09:12AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 08:41AM
Hi, bodhi :

I got some trouble with EXT3 for u-boot.

Everytime, after I force shutdown (kernel boot stuck ....kernel panic .....blablabla.....)

Next time , I power on , uImage seems load ok ,
but stuck in 'Uncompressing Linux ........ done, booting the kernel'

I must do 'mkimage' or 'copy backup' uImage/uInitrd again .

It's very scary!

I will try boot from USB/NFS/TFTP.

Can this u-boot do this way ?



Edited 1 time(s). Last edit at 11/27/2023 08:44AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 02:27PM
Quote

I change the cable .....sigh ....

It's OK, HW fails more often than we think :)

Quote

work well for 1Gbps..

------------------------------------------------------------
Client connecting to 192.168.30.12, TCP port 5001
TCP window size: 16.0 MByte (default)
------------------------------------------------------------
[ 3] local 10.0.3.2 port 32850 connected with 192.168.30.12 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 448 MBytes 371 Mbits/sec

This is actually a poor performance. These OXNAS boxes Ethernet can get ~900 Mbits. First thing to do is to disable flow control. And test with a box that is also on the same Gbits switch.

Disable flow control;
ethtool -A eth0 autoneg off rx off tx off

Quote

mtd0: 10000000 00020000 "NAND 256MiB 3,3V 8-bit"
mtd1: 026c0000 00020000 "Boot partition"
mtd2: 0d940000 00020000 "Data Partition"

I'm really interested to know what happened to the NAND of my machine.
Originally, UBIFS could correctly ubiattach at the beginning, but an error occurred and ubi0 could not be mounted due to an accident.
After I successfully booted the Debian system from the HDD, I tried ubiattach, but was disappointed.
And the size of mtd may also be unable to be mounted because the description of the dtb file is incorrectly defined.

UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 262144 mtdblock0 (driver?)
1f01 39680 mtdblock1 (driver?)
1f02 222464 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

The MTD definitions should be discussed in a separate post later.

Quote

[ 8.898257][ T77] ata2: SATA link down (SStatus 0 SControl 300)

ata2 is defined in device tree, SATA2 is an external HDD (No Power eSATA)...
But seems kernel check and wait SATA2 .....
Is it a bug for kernel ?

No, this is normal. The link is not up until you plug in eSATA disk.

==========

BTW, you're posting too many topics in the same post! Please stop posting until I answer all previous questions.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 11/27/2023 02:28PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 02:35PM
Quote

OK, I had already upgrade to bookworm 12

Congrats!

2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

That's the new naming scheme that affect these OXNAS boxes. For Kirkwood, they stay the same as eth0.


Quote

I got some trouble with EXT3 for u-boot.

Everytime, after I force shutdown (kernel boot stuck ....kernel panic .....blablabla.....)

Next time , I power on , uImage seems load ok ,
but stuck in 'Uncompressing Linux ........ done, booting the kernel'

I must do 'mkimage' or 'copy backup' uImage/uInitrd again .

It's very scary!

I will try boot from USB/NFS/TFTP.

Can this u-boot do this way ?

No need to. In a separate post, capture the serial console log when this happens and post here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 02:52PM
>
Quote

I got some trouble with EXT3 for u-boot.
>
> Everytime, after I force shutdown (kernel boot
> stuck ....kernel panic .....blablabla.....)
>
> Next time , I power on , uImage seems load ok ,
> but stuck in 'Uncompressing Linux ........ done,
> booting the kernel'
>
> I must do 'mkimage' or 'copy backup'
> uImage/uInitrd again .
>
> It's very scary!
>
> I will try boot from USB/NFS/TFTP.
>
> Can this u-boot do this way ?
>
> No need to. In a separate post, capture the serial
> console log when this happens and post here.

OK, please continue with this topic.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 08:08PM
Hi, bodhi ,

I appreciate your guidance and help over the past week!!
Thank you so much !


I will try to write down the entire process from the accident to the perfect solution during Christmas into a detailed operation step. A complete supplement and update for the Topics I have browsed.

After upgrading to Bookworm, I did some restriction testing.

First: I noticed that HDD speed ...
Perhaps it is to allow U-Boot to adapt to the speed of HDD, so the speed is limited SATA 1.5 Gbps.
Sometimes, we have some contexts on our system.

1.Synchronous data writing (fdatasync), after executing one-time writing, simulates single-file Stream writing
2.Write data one by one (dsync), continue reading after writing according to Block Size, simulate DB writing, Block Size adjustment affects the speed

I did some dd testing.
But, the read/write performace is so poor!


root@iSharing:~# dd if=/dev/zero of=test bs=4k count=4k
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 0.652171 s, 25.7 MB/s

root@iSharing:~# dd if=/dev/zero of=test bs=4k count=4k oflag=sync
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 281.859 s, 59.5 kB/s

root@iSharing:~# dd if=/dev/zero of=test bs=4k count=4k oflag=dsync
4096+0 records in
4096+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 280.485 s, 59.8 kB/s

root@iSharing:~# dd if=/dev/zero of=/tmp/output bs=1M count=1K conv=fsync; rm -f /tmp/output
dd: error writing '/tmp/output': No space left on device
122+0 records in
121+0 records out
126922752 bytes (127 MB, 121 MiB) copied, 1.64995 s, 76.9 MB/s

root@iSharing:~# dd if=/dev/zero of=/tmp/output bs=4k count=10k oflag=dsync; rm -f /tmp/output
10240+0 records in
10240+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 0.667037 s, 62.9 MB/s
root@iSharing:~#

The following is my HDD and System information

root@iSharing:~# hdparm -ITt /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       APPLE HDD HTS547550A9E384
        Serial Number:      J2600055GJDE2E
        Firmware Revision:  JE3AD70F
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6; Revision: ATA8-AST T13 Project D1697 Revision 0b
Standards:
        Used: unknown (minor revision code 0x0028)
        Supported: 8 7 6 5
        Likely used: 8
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    16514064
        LBA    user addressable sectors:   268435455
        LBA48  user addressable sectors:   976773168
        Logical  Sector size:                   512 bytes
        Physical Sector size:                  4096 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      476940 MBytes
        device size with M = 1000*1000:      500107 MBytes (500 GB)
        cache/buffer size  = 8192 KBytes (type=DualPortCache)
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: 5400
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 0
        Advanced power management level: 128
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
           *    Advanced Power Management feature set
                Power-Up In Standby feature set
           *    SET_FEATURES required to spinup after power up
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    64-bit World wide name
           *    IDLE_IMMEDIATE with UNLOAD
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Free-fall Control feature set
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
           *    Idle-Unload when NCQ is active
           *    NCQ priority information
                Non-Zero buffer offsets in DMA Setup FIS
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
                In-order data delivery
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Write Same (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        136min for SECURITY ERASE UNIT. 138min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000cca70fc77491
        NAA             : 5
        IEEE OUI        : 000cca
        Unique ID       : 70fc77491
Checksum: correct
 Timing cached reads:   486 MB in  2.00 seconds = 242.89 MB/sec
 Timing buffered disk reads: 230 MB in  3.02 seconds =  76.22 MB/sec
root@iSharing:~# dmesg | grep -i sata | grep 'link up'
[    8.243415] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
root@iSharing:~# dmesg | grep -i --color ahci
root@iSharing:~# dmesg | grep -i ahci | grep -i --color Gbps
root@iSharing:~# grep -i SATA /var/log/messages | grep --color -i 'link up'
grep: /var/log/messages: No such file or directory
root@iSharing:~# grep -i SATA /var/log/syslog | grep --color -i 'link up'
grep: /var/log/syslog: No such file or directory
root@iSharing:~# dmesg | grep --color -i 'link up'
[    8.243415] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
root@iSharing:~# smartctl -a /dev/sda | grep "^SATA"
SATA Version is:  SATA 2.6, 3.0 Gb/s
root@iSharing:~# smartctl -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [armv6l-linux-5.4.224-oxnas-tld-1] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar 5K750
Device Model:     APPLE HDD HTS547550A9E384
Serial Number:    J2600055GJDE2E
LU WWN Device Id: 5 000cca 70fc77491
Firmware Version: JE3AD70F
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database 7.3/5319
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Tue Nov 28 09:30:29 2023 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (   45) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 137) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   193   193   033    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0012   091   091   000    Old_age   Always       -       15540
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   067   067   000    Old_age   Always       -       14716
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   093   093   000    Old_age   Always       -       11891
160 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   098   098   000    Old_age   Always       -       1374389534807
193 Load_Cycle_Count        0x0012   031   031   000    Old_age   Always       -       699479
194 Temperature_Celsius     0x0002   130   130   000    Old_age   Always       -       46 (Min/Max 9/49)
195 Hardware_ECC_Recovered  0x000a   097   097   000    Old_age   Always       -       1048576
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0
254 Free_Fall_Sensor        0x0032   087   087   000    Old_age   Always       -       4294970638

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     14668         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

root@iSharing:~# hdparm -I /dev/sda | egrep "Model|speed|Transport"
        Model Number:       APPLE HDD HTS547550A9E384
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6; Revision: ATA8-AST T13 Project D1697 Revision 0b
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    SMART Command Transport (SCT) feature set


Second: Network Speed

IIRC, When I use stock firmware, The network speed and related parameters are at best like this and cannot be higher.
I did remember this network chip can setup mtu-4000 (max)/ I used ping to try the best and max...
and I use this parameter over 10 yrs on this machine.

Request from Client

root@b02c529804b3:/home/akitio# iperf -c 192.168.20.249 -t 30
------------------------------------------------------------
Client connecting to 192.168.20.249, TCP port 5001
TCP window size: 16.0 MByte (default)
------------------------------------------------------------
[  3] local 10.0.3.2 port 39416 connected with 192.168.20.249 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-30.1 sec  1.32 GBytes   376 Mbits/sec
root@b02c529804b3:/home/akitio# iperf -c 192.168.20.249 -t 15 -P 10
------------------------------------------------------------
Client connecting to 192.168.20.249, TCP port 5001
TCP window size: 16.0 MByte (default)
------------------------------------------------------------
[  6] local 10.0.3.2 port 39510 connected with 192.168.20.249 port 5001
[  7] local 10.0.3.2 port 39512 connected with 192.168.20.249 port 5001
[  5] local 10.0.3.2 port 39508 connected with 192.168.20.249 port 5001
[ 10] local 10.0.3.2 port 39518 connected with 192.168.20.249 port 5001
[ 11] local 10.0.3.2 port 39520 connected with 192.168.20.249 port 5001
[  3] local 10.0.3.2 port 39506 connected with 192.168.20.249 port 5001
[  4] local 10.0.3.2 port 39514 connected with 192.168.20.249 port 5001
[  9] local 10.0.3.2 port 39522 connected with 192.168.20.249 port 5001
[  8] local 10.0.3.2 port 39516 connected with 192.168.20.249 port 5001
[ 12] local 10.0.3.2 port 39524 connected with 192.168.20.249 port 5001
[ ID] Interval       Transfer     Bandwidth
[  8]  0.0-15.1 sec  52.8 MBytes  29.4 Mbits/sec
[ 12]  0.0-15.1 sec  58.1 MBytes  32.3 Mbits/sec
[ 11]  0.0-15.2 sec  68.8 MBytes  38.1 Mbits/sec
[  9]  0.0-15.5 sec  52.6 MBytes  28.4 Mbits/sec
[  7]  0.0-15.7 sec  52.8 MBytes  28.2 Mbits/sec
[ 10]  0.0-16.1 sec  52.8 MBytes  27.4 Mbits/sec
[  6]  0.0-16.5 sec  58.0 MBytes  29.4 Mbits/sec
[  5]  0.0-16.6 sec  73.9 MBytes  37.4 Mbits/sec
[  3]  0.0-16.6 sec  58.0 MBytes  29.4 Mbits/sec
[  4]  0.0-17.0 sec  68.6 MBytes  33.9 Mbits/sec
[SUM]  0.0-17.0 sec   596 MBytes   295 Mbits/sec

Result from akitio mycloud mini (debian 12)

root@iSharing:~# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  1] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39416 (icwnd/mss/irtt=14/1448/256)
[ ID] Interval       Transfer     Bandwidth
[  1] 0.0000-30.3074 sec  1.32 GBytes   373 Mbits/sec
[  2] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39506 (icwnd/mss/irtt=14/1448/294)
[  4] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39510 (icwnd/mss/irtt=14/1448/433)
[  5] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39512 (icwnd/mss/irtt=14/1448/263)
[  7] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39516 (icwnd/mss/irtt=14/1448/310)
[  8] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39518 (icwnd/mss/irtt=14/1448/199)
[  6] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39514 (icwnd/mss/irtt=14/1448/259)
[  3] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39508 (icwnd/mss/irtt=14/1448/341)
[  9] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39520 (icwnd/mss/irtt=14/1448/307)
[ 10] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39522 (icwnd/mss/irtt=14/1448/254)
[ 11] local 192.168.20.249 port 5001 connected with 192.168.10.252 port 39524 (icwnd/mss/irtt=14/1448/332)
[ ID] Interval       Transfer     Bandwidth
[  7] 0.0000-17.4925 sec  52.7 MBytes  25.3 Mbits/sec
[  9] 0.0000-17.8108 sec  68.7 MBytes  32.4 Mbits/sec
[ 11] 0.0000-17.9834 sec  58.1 MBytes  27.1 Mbits/sec
[ 10] 0.0000-18.7448 sec  52.6 MBytes  23.6 Mbits/sec
[  5] 0.0000-18.8843 sec  52.7 MBytes  23.4 Mbits/sec
[  4] 0.0000-18.8941 sec  58.0 MBytes  25.8 Mbits/sec
[  3] 0.0000-19.1051 sec  73.9 MBytes  32.4 Mbits/sec
[  2] 0.0000-19.1401 sec  58.0 MBytes  25.4 Mbits/sec
[  8] 0.0000-19.1376 sec  52.7 MBytes  23.1 Mbits/sec
[  6] 0.0000-19.1578 sec  68.6 MBytes  30.0 Mbits/sec
[SUM] 0.0000-19.1869 sec   596 MBytes   261 Mbits/sec

Regardless of whether flow control is turned off or not, the result is the same.

ethtool -A end0 autoneg off rx off tx off

Especially , HDD speed is the bottleneck.
When I perform a large number of command transmissions (system status/device infomation) or read trivial files (logfile/configfile) at the same time, using perl or python, it is easy to cause the CPU usage to surge to 100% continuously. until the end of the job.

Although we all know that Webmin consumes resources very much, this is intolerable. If you want to read and write to HDD, then reading and writing to network disk drive will have better overall system performance. (At least the CPU doesn’t have too many big changes)

I will try to set the parameter to get SATAII (3.0Gbps) after kernel booting..
libata.force=3.0Gbps

or any suggestion very welcome?

Next I'll try booting from USB/NFS (I have the whole bookworm rootfs that I can simply migrate to a USB stick)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 27, 2023 10:18PM
> HDD speed ...
> Perhaps it is to allow U-Boot to adapt to the
> speed of HDD, so the speed is limited SATA 1.5
> Gbps.

U-Boot has nothing to do with the SATA speed at all. The kernel does its own discovery and spin up. If you see slower speed in dmesg than what you expect, try reboot the system, and check dmesg again.

If the box has SATA 3.0 Gbps, when encounter errors it will slow SATA down to 1.5. Or it could be just a slow link and usually a reboot will fix it.

> Network Speed

I did remember incorrectly (what I said above). This SoC network usually gets to about 600-700 Mbps (not 900 Mbps like with the Kirkwood plugs). But when you get only 200-300 Mbps then perhaps it's the test environment that caused the slow down.

See the Pogo V3 Pro/Classic benchmark here:

https://forum.doozan.com/read.php?2,33321,33390#msg-33390
https://forum.doozan.com/read.php?2,33321,33547#msg-33547

When you run iperf, the other big factor are the switch and the box at the other end. It's best to run with unmanaged switch and the faster box at the other end.

=====

The Wiki thread has several benchmarks for Pogo V3 OXNAS.

Quote

Perfornance Tuning & Benchmarks

Pogo ProV3 vs Pogo E02
Another Pogo Pro V3 benchmarks
Network performance - SAMBA - NFS (various protocols)
Pogo Pro V3 Network NFS benchmarks
Kirkwood vs OXNAS network performance (with flow control)
Kirkwood vs OXNAS network performance (flow control turned off )
OXNAS vs OXNAS network performance (flow control turned off)
Samba Tuning
Mount NTFS with big_writes
Increase NFSD max_block_size
Reduce NFSD threads

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 11/27/2023 10:20PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 28, 2023 02:48PM
Good work! so far the booting looks good. As long as you can boot with SATA u-boot from HDD raw sector, you have many options. Now you can boot the USB rootfs, too.

I suspect the kernel stuck at that point might be because it is too old or becasue the overlock 850Mhz. But I need to look at my notes to see.

I'll be back shortly.

I try to remove HDD from this box, and plug USB stick to USB1/USB2 (all prepared as the same as the HDD)
I have never see u-boot come from USB. Just come from stock flash.

Maybe this box can't boot from USB directly ?
The SoC boot sequnce maybe 'HDD = > Flash => USB' ?
Unless the stock u-boot fails, there is no way to test whether you can u-boot directly from USB.

Or, has any someone success to boot USB directly ?
Or, I just the only way to start u-boot from HDD and setenv to boot from USB ?

----
BTW, maybe I'm wrong and remembering it wrong.
In this box, I never saw the link go to 3.0Gbps, it always stayed at 1.5Gbps. (Keyword->link)
This is a misunderstanding. The original advertisement for selling this machine said it could support the SATAII standard, but in fact, perhaps it only had the SATAI speed specification.

But this is my previous Log record from stock firmware, he can indeed link up to 3.0 Gbps

Uncompressing Linux..................................................................................................................................................................................... done, booting the kernel.
Linux version 2.6.31.6-fast-20110114 (thom@11z) (gcc version 4.5.1 (GCC) ) #1 SMP Fri Jan 14 13:58:20 CST 2011
CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Oxsemi NAS
1 memory region
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=256M poweroutage=yes
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 253696KB available (5260K code, 310K data, 136K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:96
OX820_RPS_init_irq: interrupts 64 to 96
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Calibrating local timer... 349.99MHz.
CPU1: Booted secondary processor
Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
Brought up 2 CPUs
SMP: Total of 2 processors activated (558.69 BogoMIPS).
NET: Registered protocol family 16
Number of DMA channels = 4, version = 4
Reserving a DMA channel for DirectRAID
Allocating 218 SRAM generic DMA descriptors
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
Switched to NOHz mode on CPU #0
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Switched to NOHz mode on CPU #1
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Create fragment cache
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 496
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
brd: module loaded
loop: module loaded
ox820sata: OX820 sata core.
scsi0 : oxnassata
scsi1 : oxnassata
ata1: SATA max UDMA/133 irq 50
ata2: SATA max UDMA/133 irq 50

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: TOSHIBA MQ01ABD100, AX0A1U, max UDMA/100
ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/100
ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4
ata1.00: configured for UDMA/100
ata1: EH complete

ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABD1 AX0A PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
 sda:
Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x0000026c0000 : "Boot partition"
0x0000026c0000-0x000010000000 : "Data Partition"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
 sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
UBI warning: ubi_eba_init_scan: cannot reserve enough PEBs for bad PEB handling, reserved 11, need 17
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "Data Partition"
UBI: MTD device size:            217 MiB
UBI: number of good PEBs:        1738
UBI: number of bad PEBs:         0
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:             0
UBI: total number of reserved PEBs: 1738
UBI: number of PEBs reserved for bad PEB handling: 11
UBI: max/mean erase counter: 800/105
UBI: image sequence number: 1359814330
UBI: background thread "ubi_bgt0d" started, PID 407
Probing for Synopsis GMAC, unit 0



Edited 1 time(s). Last edit at 11/28/2023 02:54PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 28, 2023 03:35PM
Popo,

> Now you can boot the USB rootfs,

> I try to remove HDD from this box, and plug USB
> stick to USB1/USB2 (all prepared as the same as
> the HDD)
> I have never see u-boot come from USB. Just come
> from stock flash.

> Maybe this box can't boot from USB directly ?

Correct. Either u-boot is on NAND or on HDD raw sector. Not possible to do the same for USB.

It's all depending on the SoC BootROM and the strapping registers and both can not be changed. This SoC BootROM always tries to find SATA u-boot first, and then NAND/SPI u-boot.

Once you can boot into USB rootfs, we'll move on to the MTDs topic, and try flashing u-boot.


> Or, I just the only way to start u-boot from HDD
> and setenv to boot from USB ?

Yes. That's what I meant above. You can put the rootfs on USB and change the disk label or the bootargs env to let u-boot find the root device.

If hacksome or youxiaojie (the 2 tutorials you followed) keep the naming scheme that I had then the env for bootargs should show root=LABEL=rootfs. And you can just label the USB rootfs partition as rootfs and the SATA rootfs partition as sata_rootfs, the kernel will find the USB rootfs and boot that.

BTW, always use LABEL (not PARTLABEL or PARTUUID or UUID or other naming method). root=LABEL=rootfs is the most flexible and robust way to name the root device for successful booting and ease in disks reconfiguration.

> BTW, maybe I'm wrong and remembering it wrong.
> In this box, I never saw the link go to 3.0Gbps,
> it always stayed at 1.5Gbps.

> But this is my previous Log record from stock
> firmware, he can indeed link up to 3.0 Gbps

> ata1: SATA link up 3.0 Gbps (SStatus 123
> SControl 300)


I would trust this info from stock FW. In fact, I have never seen a NAS that's only capable of SATA I in the last 2 decades. Always something else is wrong that degraded the speed to 1.5 Gbps.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 11/28/2023 03:39PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 28, 2023 03:46PM
I see you already have the correct bootargs

ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=256M poweroutage=yes

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 28, 2023 09:36PM
I see you already have the correct bootargs


Yes, this is a good habit. Anyone who is an experienced Linux player knows this.
It originated after RedHat 7 or 8 later ? and some say it came from UFS, BSD disklabel (FreeBSD partition tables) support.
If grub and fstab still mount the disk according to the old markings, it will cause the system to be unable to boot.
BTW, SoC should be able to write U-Boot to MBR or Super Block to boot like LILO boot? In this way, the /boot directory is not needed. Just like the concept of stage1/stage2.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 02:54PM
> It originated after RedHat 7 or 8 later ? and some
> say it came from UFS, BSD disklabel (FreeBSD
> partition tables) support.

Cool! I did not know that.

> If grub and fstab still mount the disk according
> to the old markings, it will cause the system to
> be unable to boot.
> BTW, SoC should be able to write U-Boot to MBR or
> Super Block to boot like LILO boot? In this way,
> the /boot directory is not needed. Just like the
> concept of stage1/stage2.

Not that I'm aware of. SATA boot or USB boot use some magic string the space before partition so BootROM can recognize. In a way, it is similar concept.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 04:49PM
Hi, bodhi :

finally, I got 3.0GBps ! this is the 'magic string' in the args to kernel.


[    0.000000][    T0] Kernel command line: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M libata.force=3.0G poweroutage=yes elevator=cfq
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 239608K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 22536K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000015][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000046][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000061][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000089][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000245][    T0] GIC: PPI13 is secure or misconfigured
[    0.000299][    T0] GIC: PPI13 is secure or misconfigured
[    0.000611][    T0] Console: colour dummy device 80x30
[    0.000686][    T0] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050388][    T0] pid_max: default: 32768 minimum: 301
[    0.051100][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051128][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051397][    T0] *** VALIDATE tmpfs ***
[    0.052756][    T0] *** VALIDATE proc ***
[    0.052968][    T0] *** VALIDATE cgroup1 ***
[    0.052992][    T0] *** VALIDATE cgroup2 ***
[    0.053191][    T0] CPU: Testing write buffer coherency: ok
[    0.055644][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.055984][    T1] rcu: Hierarchical SRCU implementation.
[    0.057018][    T1] smp: Bringing up secondary CPUs ...
[    0.058309][    T0] GIC: PPI13 is secure or misconfigured
[    0.110653][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110694][    T1] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.111882][    T1] devtmpfs: initialized
[    0.118515][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118571][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.118725][    T1] prandom: seed boundary self test passed
[    0.123028][    T1] prandom: 100 self tests passed
[    0.123048][    T1] pinctrl core: initialized pinctrl subsystem
[    0.125196][    T1] NET: Registered protocol family 16
[    0.127057][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130347][    T1] cpuidle: using governor ladder
[    0.130439][    T1] cpuidle: using governor menu
[    6.079395][    T1] vgaarb: loaded
[    6.080478][    T1] SCSI subsystem initialized
[    6.081397][    T1] usbcore: registered new interface driver usbfs
[    6.081492][    T1] usbcore: registered new interface driver hub
[    6.081574][    T1] usbcore: registered new device driver usb
[    6.081812][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.081830][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.081863][    T1] PTP clock support registered
[    6.083688][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.083745][    T1] *** VALIDATE bpf ***
[    6.084270][    T1] *** VALIDATE ramfs ***
[    6.103851][    T1] NET: Registered protocol family 2
[    6.104133][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.105231][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.105548][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.105620][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.105676][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    6.105912][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.105971][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.106286][    T1] NET: Registered protocol family 1
[    6.107563][    T1] RPC: Registered named UNIX socket transport module.
[    6.107589][    T1] RPC: Registered udp transport module.
[    6.107599][    T1] RPC: Registered tcp transport module.
[    6.107612][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.107632][    T1] PCI: CLS 0 bytes, default 32
[    6.108088][    T1] Unpacking initramfs...
[    6.966771][    T1] Freeing initrd memory: 7308K
[    6.968161][    T1] Initialise system trusted keyrings
[    6.968268][    T1] Key type blacklist registered
[    6.968724][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    6.981634][    T1] zbud: loaded
[    6.987927][    T1] NFS: Registering the id_resolver key type
[    6.988019][    T1] Key type id_resolver registered
[    6.988037][    T1] Key type id_legacy registered
[    6.988067][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.988085][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    6.988101][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.989555][    T1] fuse: init (API version 7.31)
[    6.989849][    T1] *** VALIDATE fuse ***
[    6.989877][    T1] *** VALIDATE fuse ***
[    6.990814][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.991229][    T1] orangefs_init: module version upstream loaded
[    7.037217][    T1] Key type asymmetric registered
[    7.037250][    T1] Asymmetric key parser 'x509' registered
[    7.037340][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.044605][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.046108][    T1] printk: console [ttyS0] disabled
[    7.046277][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.685419][    T1] printk: console [ttyS0] enabled
[    7.705689][    T1] loop: module loaded
[    7.711976][    T1] scsi host0: sata_oxnas
[    7.716812][    T1] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    7.722544][    T1] ata1: SATA max UDMA/133 irq 57
[    7.727480][   T75] sata_oxnas: resetting SATA core
[    7.794032][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.803443][    T1] ONFI parameter recovery failed, aborting
[    7.809154][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.816207][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.821327][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.829598][    T1] Scanning device for bad blocks
[    8.000916][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    8.009525][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    8.016642][    T1] 0x000000000000-0x000000e00000 : "boot"
[    8.023106][    T1] 0x000000e00000-0x000008000000 : "data"
[    8.030789][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    8.037662][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    8.044218][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    8.114150][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    8.121792][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    8.127582][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    8.135587][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    8.143562][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    8.149314][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    8.156887][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    8.163857][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    8.171307][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    8.178616][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    8.184972][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    8.243816][   T75] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[    8.249157][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.260910][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.272092][    T1] PPP generic driver version 2.4.2
[    8.277414][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.284661][    T1] ehci-pci: EHCI PCI platform driver
[    8.493749][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.500011][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.508646][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.543744][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.550766][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.559751][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.567703][    T1] usb usb1: Product: EHCI Host Controller
[    8.567749][   T75] ata1.00: ATA-8: TOSHIBA MQ01ABD100, AX0A1U, max UDMA/100
[    8.573260][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.580339][   T75] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    8.587535][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.601420][    T1] hub 1-0:1.0: USB hub found
[    8.605987][   T75] ata1.00: configured for UDMA/100
[    8.606031][    T1] hub 1-0:1.0: 2 ports detected
[    8.616232][    T7] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABD1 1U   PQ: 0 ANSI: 5
[    8.625103][    T1] usbcore: registered new interface driver cdc_wdm
[    8.632619][   T54] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    8.641090][   T54] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.641295][    T1] usbcore: registered new interface driver usb-storage
[    8.647234][   T54] sd 0:0:0:0: [sda] Write Protect is off
[    8.654054][    T1] usbcore: registered new interface driver usbserial_generic
[    8.666621][    T1] usbserial: USB Serial support registered for generic
[    8.666854][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.683386][    T1] mousedev: PS/2 mouse device common for all mice
[    8.689832][    T1] i2c /dev entries driver
[    8.695539][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.701800][    T1] usbcore: registered new interface driver usbhid
[    8.708090][    T1] usbhid: USB HID core driver
[    8.714611][    T1] NET: Registered protocol family 10
[    8.721553][    T1] Segment Routing with IPv6
[    8.726103][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.735198][    T1] NET: Registered protocol family 17
[    8.740858][    T1] Key type dns_resolver registered
[    8.746723][    T1] registered taskstats version 1
[    8.751500][    T1] Loading compiled-in X.509 certificates
[    8.757219][    T1] zswap: loaded using pool lzo/zbud
[    8.762803][    T1] Key type ._fscrypt registered
[    8.767569][    T1] Key type .fscrypt registered
[    8.772390][   T54]  sda: sda1
[    8.779005][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.884139][    T1] Key type big_key registered
[    8.938004][    T1] Key type encrypted registered
[    8.947322][    T1] hctosys: unable to open rtc device (rtc0)
[    8.955225][    T1] Freeing unused kernel memory: 1024K
[    8.985011][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.991347][    T1] Run /init as init process
Loading, please wait...

and this is syslog and device information to ensure that

root@iSharing:~# dmesg |grep SATA
[    7.722544] ata1: SATA max UDMA/133 irq 57
[    7.727480] sata_oxnas: resetting SATA core
[    8.243816] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
root@iSharing:~#
root@iSharing:~# sudo smartctl -a /dev/sda | grep SATA
-bash: sudo: command not found
root@iSharing:~# smartctl -a /dev/sda | grep SATA
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
root@iSharing:~#
root@iSharing:~# hdparm -I /dev/sda | egrep "Model|speed|Transport"
        Model Number:       TOSHIBA MQ01ABD100
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    SMART Command Transport (SCT) feature set
root@iSharing:~#
root@iSharing:~#
root@iSharing:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: TOSHIBA MQ01ABD1 Rev: 1U
  Type:   Direct-Access                    ANSI  SCSI revision: 05
root@iSharing:~#

root@iSharing:~# vi sataspeed
for i in `grep -l Gbps /sys/class/ata_link/*/sata_spd`; do
 echo Link "${i%/*}" Speed `cat $i`
 cat "${i%/*}"/device/dev*/ata_device/dev*/id | perl -nE 's/([0-9a-f]{2})/print
chr hex $1/gie' | echo "    " Device `strings` | cut -f 1-3
done
~
~
~
root@iSharing:~# ./sataspeed
Link /sys/class/ata_link/link1 Speed 3.0 Gbps
     Device 531FC1COT AX0A1U TOSHIBA MQ01ABD100 tk} acti ac ?
root@iSharing:~#
root@iSharing:~# dd if=/dev/sda of=/dev/null bs=4k count=1000000
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB, 3.8 GiB) copied, 65.1022 s, 62.9 MB/s
root@iSharing:~#
root@iSharing:~#
root@iSharing:~# dd if=/dev/zero of=./Test bs=4k count=100000
100000+0 records in
100000+0 records out
409600000 bytes (410 MB, 391 MiB) copied, 17.4572 s, 23.5 MB/s
root@iSharing:~# rm Test

But I have to emphasize it again. Very strange and confusing.
The HDD , TOSHIBA MQ01ABD100, ,
It used on the old stock FW always boot to 3.0G !
But, In Debian , It can't !


I use magic args to kernel force to reach 3.0G speed.
You can see that he did force the device from the PHY to reach the speed I wanted. Compared with the original FW, the test speed on the Debian system is a little worse (~80Mib)

There's another thing I mentioned before.
If I don't succeed in booting up once, I have to remove the HDD and re-copy the uImage file to another system.
Otherwise he will just stay at'
Starting kernel ...

Uncompressing Linux... done, booting the kernel.

AND .. I always saveenv fail at this HDD,
After it failed, the u-boot can't get u-boot.env on next power on.

OX820 # setenv bootargs console=ttyS0,115200n8 libata.force=3.0G
OX820 # saveenv
Saving Environment to EXT4...
File System is consistent
file found deleting
update journal finished
wait_sata_command_not_busy() Timed out of wait for SATA command to finish
wait_dma_not_busy() Timed out of wait for DMA not busy
wait_dma_not_busy() Timed out of wait for DMA channel abort
Timed out of wait for DMA channel for SATA device 0 to have in-progress clear

U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  256 MiB
IDE:   Bus 0: OK
  Device 0: Model: TOSHIBA MQ01ABD100 Firm: AX0A1U Ser#:  531FC1COT
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
NAND:  256 MiB
** File not found /boot/u-boot.env **

** Unable to read "/boot/u-boot.env" from ide0:1 **
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
switch to net console

But!!
The file is indeed still in the /boot directory. Perhaps it no longer conforms to the format, so u-boot determines that the file does not exist.

Over and Over, again and agin .....
so tired ....

I need to copy u-boot.env/uImage/uInitrd back ...and power on again.



Edited 1 time(s). Last edit at 11/29/2023 04:56PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 05:27PM
Unfortunately, this u-boot is very old, so I don't remember most of its peculiarities. kref did a good job getting it working, but also did some hacks.

Let's correct these envs. This will solve the UBIFS issue, and allow you to mount the UBIFS volume in Debian. Also, for other problem, earlyprintk will hopefully print out more info than just stuck at "Uncompressing Linux...."

Power up, interrupt serial console countdown, and

setenv mtdparts 'mtdparts=41000000.nand:0x0000026c0000@0x0(boot),-(ubi)'
setenv ide_set_bootargs 'setenv bootargs root=LABEL=rootfs console=ttyS0,115200 rootdelay=10 $mtdparts earlyprintk=serial'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10  $mtdparts earlyprintk=serial'

And then boot
boot
Let it boot all the way, log in and try attach mtd1..., mount the UBI volumn. See if you can brows the content.

====

Reboot, and repeat the envs settings, this time do a saveenv, and then boot. It should boot all the way.

And reboot, we expect the envs will have problem. Interrupt serial console count down and
printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 08:24PM
Popo Wrote:
-------------------------------------------------------
>
> U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 -
> 14:31:34)
> Boot device: SATA
> Attempting to set PLLA to 850 MHz ...
> plla_ctrl0 : 0000020a
> plla_ctrl1 : 00330000
> plla_ctrl2 : 0065008b
> plla_ctrl3 : 000000f1
>

This could be the source of some of your problems. The Akito MyCloud Mini was designed for 750 MHz, not 850 MHz so this difference could be causing timing issues that contribute to the problems you are seeing.

Ray
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 11:35PM
> U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 -
> 14:31:34)
> Boot device: SATA
> Attempting to set PLLA to 850 MHz ...
> plla_ctrl0 : 0000020a
> plla_ctrl1 : 00330000
> plla_ctrl2 : 0065008b
> plla_ctrl3 : 000000f1
>

This could be the source of some of your problems. The Akito MyCloud Mini was designed for 750 MHz, not 850 MHz so this difference could be causing timing issues that contribute to the problems you are seeing.


IIRC, Actually, it should be 700Mhz...
find the log....

Unfortunately, I did not find the relevant ubi.ko module in the lib in 4.14.180-oxnas-tld-1.
When I was at buster, I did try ubi and the attempt to attach failed.
I don’t know why, but I reinstalled mtd-utils and still couldn’t find ubi.ko, which caused me no response when I tried modprobe.
But mtdinfo has a response message.


root@iSharing:/home# modprobe ubifs
root@iSharing:/home# lsmod
Module                  Size  Used by
tls                    45056  0
dm_mod                114688  0
configfs               36864  1
ip_tables              28672  0
x_tables               32768  1 ip_tables
autofs4                32768  2
dwmac_generic          16384  0
root@iSharing:/home# mtd
mtd_debug  mtdinfo    mtdpart
root@iSharing:/home# mtd
mtd_debug  mtdinfo    mtdpart
root@iSharing:/home# mtdinfo /dev/
Display all 143 possibilities? (y or n)
root@iSharing:/home# mtdinfo /dev/mtd
mtd0    mtd0ro  mtd1    mtd1ro
root@iSharing:/home# mtdinfo /dev/mtd0
mtd0
Name:                           boot
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          112 (14680064 bytes, 14.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             false

root@iSharing:/home# cat /proc/mtd
Public/ admin/
root@iSharing:/home# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
root@iSharing:/home# modprobe ubimtd=0;modprobe ubifs
modprobe: FATAL: Module ubimtd=0 not found in directory /lib/modules/5.4.224-oxnas-tld-1
root@iSharing:/home# modprobe ubi mtd=0;modprobe ubifs
root@iSharing:/home# lsmod
Module                  Size  Used by
tls                    45056  0
dm_mod                114688  0
configfs               36864  1
ip_tables              28672  0
x_tables               32768  1 ip_tables
autofs4                32768  2
dwmac_generic          16384  0


root@iSharing:/home# modprobe ubi mtd=1;modprobe ubifs
root@iSharing:/home# mtdinfo /dev/mtd1
mtd1
Name:                           data
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          912 (119537664 bytes, 114.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

root@iSharing:/home# mtdinfo /dev/mtd0
mtd0
Name:                           boot
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          112 (14680064 bytes, 14.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             false

root@iSharing:/home# modprobe ubi mtd=1;modprobe ubifs
root@iSharing:/home# ubinfo
UBI version:                    1
Count of UBI devices:           0
UBI control device major/minor: 10:61
root@iSharing:/home# ls -al /dev/ubi*
crw------- 1 root root 10, 61 Nov 13 22:52 /dev/ubi_ctrl
root@iSharing:/home# modprobe -f ubi mtd=1;modprobe -f ubifs
root@iSharing:/home# lsmod
Module                  Size  Used by
tls                    45056  0
dm_mod                114688  0
configfs               36864  1
ip_tables              28672  0
x_tables               32768  1 ip_tables
autofs4                32768  2
dwmac_generic          16384  0
root@iSharing:/home# apt-get install mtd-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
mtd-utils is already the newest version (1:2.1.5-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@iSharing:/home# modprobe ubifs
root@iSharing:/home# lsmod
Module                  Size  Used by
tls                    45056  0
dm_mod                114688  0
configfs               36864  1
ip_tables              28672  0
x_tables               32768  1 ip_tables
autofs4                32768  2
dwmac_generic          16384  0
root@iSharing:/home# find /lib/modules/$(uname -r) -name 'ubi.ko'


root@iSharing:/# mkfs.
mkfs.bfs     mkfs.cramfs  mkfs.ext2    mkfs.ext3    mkfs.ext4    mkfs.jffs2   mkfs.minix   mkfs.ubifs   mkfs.xfs


Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 29, 2023 11:41PM
new bootargs

No more information....


U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  256 MiB
IDE:   Bus 0: OK
  Device 0: Model: APPLE HDD HTS547550A9E384  Firm: JE3AD70F Ser#: J2600055GJDE2E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0
ide - IDE sub-system

Usage:
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
    to/from memory address `addr'
5589656 bytes read in 1892 ms (2.8 MiB/s)
7481451 bytes read in 2553 ms (2.8 MiB/s)
8892 bytes read in 76 ms (114.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5589592 Bytes = 5.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7481387 Bytes = 7.1 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 6f706000, end 6fe2882b ... OK
   Loading Device Tree to 6f700000, end 6f7052bb ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022
[    0.000000][    T0] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Pogoplug V3 Classic
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 libata.force=3.0G mem=256M rootdelay=10 mtdparts=41000000.nand:0x0000026c0000@0x0(boot),-(ubi) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 239608K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 22536K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000020][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008775][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020108][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026869][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036006][    T0] GIC: PPI13 is secure or misconfigured
[    0.041418][    T0] GIC: PPI13 is secure or misconfigured
[    0.047091][    T0] Console: colour dummy device 80x30
[    0.052308][    T0] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.108416][    T0] pid_max: default: 32768 minimum: 301
[    0.114416][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.122429][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.131092][    T0] *** VALIDATE tmpfs ***
[    0.136545][    T0] *** VALIDATE proc ***
[    0.140738][    T0] *** VALIDATE cgroup1 ***
[    0.145036][    T0] *** VALIDATE cgroup2 ***
[    0.149473][    T0] CPU: Testing write buffer coherency: ok
[    0.157552][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165125][    T1] rcu: Hierarchical SRCU implementation.
[    0.171653][    T1] smp: Bringing up secondary CPUs ...
[    0.178127][    T0] GIC: PPI13 is secure or misconfigured
[    0.231772][    T1] smp: Brought up 1 node, 2 CPUs
[    0.241996][    T1] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.250114][    T1] devtmpfs: initialized
[    0.260672][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.271234][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.278850][    T1] prandom: seed boundary self test passed
[    0.288599][    T1] prandom: 100 self tests passed
[    0.293386][    T1] pinctrl core: initialized pinctrl subsystem
[    0.301381][    T1] NET: Registered protocol family 16
[    0.308421][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319531][    T1] cpuidle: using governor ladder
[    0.324492][    T1] cpuidle: using governor menu
[    6.280642][    T1] vgaarb: loaded
[    6.285086][    T1] SCSI subsystem initialized
[    6.290334][    T1] usbcore: registered new interface driver usbfs
[    6.296744][    T1] usbcore: registered new interface driver hub
[    6.302881][    T1] usbcore: registered new device driver usb
[    6.308848][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.314588][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.324456][    T1] PTP clock support registered
[    6.330923][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.338785][    T1] *** VALIDATE bpf ***
[    6.343395][    T1] *** VALIDATE ramfs ***
[    6.367692][    T1] NET: Registered protocol family 2
[    6.373053][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.382087][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.391477][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.399841][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.407733][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    6.415011][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.422295][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.430218][    T1] NET: Registered protocol family 1
[    6.436695][    T1] RPC: Registered named UNIX socket transport module.
[    6.443386][    T1] RPC: Registered udp transport module.
[    6.448762][    T1] RPC: Registered tcp transport module.
[    6.454177][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.461319][    T1] PCI: CLS 0 bytes, default 32
[    6.466355][    T1] Unpacking initramfs...
[    7.328104][    T1] Freeing initrd memory: 7308K
[    7.334197][    T1] Initialise system trusted keyrings
[    7.339435][    T1] Key type blacklist registered
[    7.344652][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.363525][    T1] zbud: loaded
[    7.372748][    T1] NFS: Registering the id_resolver key type
[    7.378524][    T1] Key type id_resolver registered
[    7.383457][    T1] Key type id_legacy registered
[    7.388167][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.395573][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.403658][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.412188][    T1] fuse: init (API version 7.31)
[    7.417136][    T1] *** VALIDATE fuse ***
[    7.421209][    T1] *** VALIDATE fuse ***
[    7.426173][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.433715][    T1] orangefs_init: module version upstream loaded
[    7.489930][    T1] Key type asymmetric registered
[    7.494768][    T1] Asymmetric key parser 'x509' registered
[    7.500387][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.515619][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.524172][    T1] printk: console [ttyS0] disabled
[    7.529267][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.538854][    T1] printk: console [ttyS0] enabled
[    7.538854][    T1] printk: console [ttyS0] enabled
[    7.548610][    T1] printk: bootconsole [earlycon0] disabled
[    7.548610][    T1] printk: bootconsole [earlycon0] disabled
[    7.575257][    T1] loop: module loaded
[    7.581445][    T1] scsi host0: sata_oxnas
[    7.586211][    T1] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    7.592017][    T1] ata1: SATA max UDMA/133 irq 57
[    7.596904][   T75] sata_oxnas: resetting SATA core
[    7.661273][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.670686][    T1] ONFI parameter recovery failed, aborting
[    7.676395][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.683448][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.688568][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.696839][    T1] Scanning device for bad blocks
[    7.866362][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.874969][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.882088][    T1] 0x000000000000-0x000000e00000 : "boot"
[    7.888535][    T1] 0x000000e00000-0x000008000000 : "data"
[    7.896179][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.903045][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.909560][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.981393][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.989040][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.994826][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    8.002831][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    8.010800][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    8.016550][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    8.024112][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    8.031078][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    8.038530][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    8.045834][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    8.052208][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    8.111055][   T75] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[    8.115806][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.128248][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.138562][   T75] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    8.139573][    T1] PPP generic driver version 2.4.2
[    8.146496][   T75] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.158976][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.166269][    T1] ehci-pci: EHCI PCI platform driver
[    8.171717][   T75] ata1.00: configured for UDMA/133
[    8.177280][    T7] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    8.187781][   T54] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    8.196257][   T54] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.202480][   T54] sd 0:0:0:0: [sda] Write Protect is off
[    8.208171][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.380994][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.387202][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.395783][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.430978][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.438128][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.447127][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.455047][    T1] usb usb1: Product: EHCI Host Controller
[    8.460595][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.467816][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.474257][    T1] hub 1-0:1.0: USB hub found
[    8.478763][    T1] hub 1-0:1.0: 2 ports detected
[    8.484669][    T1] usbcore: registered new interface driver cdc_wdm
[    8.491276][    T1] usbcore: registered new interface driver usb-storage
[    8.498181][    T1] usbcore: registered new interface driver usbserial_generic
[    8.505589][   T54]  sda: sda1
[    8.509004][    T1] usbserial: USB Serial support registered for generic
[    8.518492][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.524439][    T1] mousedev: PS/2 mouse device common for all mice
[    8.530816][    T1] i2c /dev entries driver
[    8.536481][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.542865][    T1] usbcore: registered new interface driver usbhid
[    8.549109][    T1] usbhid: USB HID core driver
[    8.555750][    T1] NET: Registered protocol family 10
[    8.562772][    T1] Segment Routing with IPv6
[    8.567214][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.576140][    T1] NET: Registered protocol family 17
[    8.581877][    T1] Key type dns_resolver registered
[    8.587530][    T1] registered taskstats version 1
[    8.592494][    T1] Loading compiled-in X.509 certificates
[    8.598151][    T1] zswap: loaded using pool lzo/zbud
[    8.603783][    T1] Key type ._fscrypt registered
[    8.608471][    T1] Key type .fscrypt registered
[    8.722288][    T1] Key type big_key registered
[    8.776071][    T1] Key type encrypted registered
[    8.785338][    T1] hctosys: unable to open rtc device (rtc0)
[    8.793195][    T1] Freeing unused kernel memory: 1024K
[    8.832256][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.838594][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.17-1~deb12u1
[    9.914716][  T127] oxnas-dwmac 40400000.ethernet end0: renamed from eth0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: Group descriptor 0 marked uninitialized without feature set.
FIXED.
Inodes that were part of a corrupted orphan linked list found.

rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
fsck exited with status code 4
done.
Failure: File system check of the root filesystem failed
The root filesystem on /dev/sda1 requires a manual fsck


BusyBox v1.35.0 (Debian 1:1.35.0-4+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
(initramfs)
(initramfs)
(initramfs)
(initramfs) exit
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs contains a file system with errors, check forced.
[  121.380961][    C0] random: crng init done============        | 85.3%
rootfs: 72583/122880 files (3.5% non-contiguous), 489359/1955904 blocks
done.
[  123.857454][  T155] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  124.094451][  T155] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[  125.919703][    T1] systemd[1]: System time before build time, advancing clock.
[  126.165575][    T1] systemd[1]: Inserted module 'autofs4'
[  126.321725][    T1] systemd[1]: systemd 254.5-1~bpo12+2 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[  126.355072][    T1] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 12 (bookworm)!

[  126.413629][    T1] systemd[1]: Hostname set to <iSharing>.
[  130.500712][    T1] systemd[1]: Queued start job for default target graphical.target.
[  130.521374][    T1] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[  130.564518][    T1] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-modprobe.slice - Slice /system/modprobe.
[  130.604666][    T1] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[  OK  ] Created slice system-serial\x2dget…slice - Slice /system/serial-getty.
[  130.653058][    T1] systemd[1]: Created slice user.slice - User and Session Slice.
[  OK  ] Created slice user.slice - User and Session Slice.
[  130.692139][    T1] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started systemd-ask-password-conso…equests to Console Directory Watch.
[  130.742159][    T1] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Started systemd-ask-password-wall.…d Requests to Wall Directory Watch.
[  130.794956][    T1] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount proc-sys-fs-binfm…ormats File System Automount Point.
[  130.841935][    T1] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[  OK  ] Reached target cryptsetup.target - Local Encrypted Volumes.
[  130.881863][    T1] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[  OK  ] Reached target integritysetup.targ… Local Integrity Protected Volumes.
[  130.922173][    T1] systemd[1]: Reached target nss-lookup.target - Host and Network Name Lookups.
[  OK  ] Reached target nss-lookup.target - Host and Network Name Lookups.
[  130.961602][    T1] systemd[1]: Reached target paths.target - Path Units.
[  OK  ] Reached target paths.target - Path Units.
[  131.002024][    T1] systemd[1]: Reached target slices.target - Slice Units.
[  OK  ] Reached target slices.target - Slice Units.
[  131.041786][    T1] systemd[1]: Reached target swap.target - Swaps.
[  OK  ] Reached target swap.target - Swaps.
[  131.081786][    T1] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[  OK  ] Reached target veritysetup.target - Local Verity Protected Volumes.
[  131.123781][    T1] systemd[1]: Listening on rpcbind.socket - RPCbind Server Activation Socket.
[  OK  ] Listening on rpcbind.socket - RPCbind Server Activation Socket.
[  131.172971][    T1] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[  OK  ] Listening on systemd-fsckd.socket …fsck to fsckd communication Socket.
[  131.222197][    T1] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-initctl.socke…- initctl Compatibility Named Pipe.
[  131.263416][    T1] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journald-dev-…socket - Journal Socket (/dev/log).
[  131.313530][    T1] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[  OK  ] Listening on systemd-journald.socket - Journal Socket.
[  131.397355][    T1] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[  OK  ] Listening on systemd-udevd-control.socket - udev Control Socket.
[  131.443294][    T1] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  OK  ] Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  131.482990][    T1] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[  131.505512][    T1] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
         Mounting dev-mqueue.mount - POSIX Message Queue File System...
[  131.557749][    T1] systemd[1]: Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
         Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
[  131.608660][    T1] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
         Mounting sys-kernel-debug.mount - Kernel Debug File System...
[  131.652423][    T1] systemd[1]: sys-kernel-tracing.mount - Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
[  131.669007][    T1] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keytab).
[  131.695810][    T1] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
         Starting kmod-static-nodes.service…eate List of Static Device Nodes...
[  131.752371][    T1] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
         Starting modprobe@configfs.service - Load Kernel Module configfs...
[  131.812861][    T1] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
         Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[  131.880609][    T1] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
         Starting modprobe@drm.service - Load Kernel Module drm...
[  131.935206][  T190] device-mapper: uevent: version 1.0.3
[  131.941288][  T190] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[  131.960220][    T1] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
         Starting modprobe@efi_pstore.servi… - Load Kernel Module efi_pstore...
[  132.020597][    T1] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
         Starting modprobe@fuse.service - Load Kernel Module fuse...
[  132.071311][    T1] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
         Starting modprobe@loop.service - Load Kernel Module loop...
[  132.114493][    T1] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[  132.134840][    T1] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[  132.148459][    T1] systemd[1]: systemd-journald.service: (This warning is only shown for the first unit using IP firewalling.)
[  132.165798][    T1] systemd[1]: Starting systemd-journald.service - Journal Service...
         Starting systemd-journald.service - Journal Service...
[  132.229240][    T1] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
         Starting systemd-modules-load.service - Load Kernel Modules...
[  132.301099][    T1] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
         Starting systemd-remount-fs.servic…unt Root and Kernel File Systems...
[  132.345868][  T196] systemd-journald[196]: Collecting audit messages is disabled.
[  132.388679][    T1] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
         Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[  132.497402][    T1] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  OK  ] Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  132.547502][  T200] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[  132.557250][    T1] systemd[1]: Mounted proc-fs-nfsd.mount - NFSD configuration filesystem.
[  OK  ] Mounted proc-fs-nfsd.mount - NFSD configuration filesystem.
[  132.629145][    T1] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  OK  ] Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  132.655408][    T1] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[  OK  ] Finished kmod-static-nodes.service…Create List of Static Device Nodes.
[  132.754024][    T1] systemd[1]: Started systemd-journald.service - Journal Service.
[  OK  ] Started systemd-journald.service - Journal Service.
[  OK  ] Finished modprobe@configfs.service - Load Kernel Module configfs.
[  OK  ] Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@drm.service - Load Kernel Module drm.
[  OK  ] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[  OK  ] Finished modprobe@fuse.service - Load Kernel Module fuse.
[  OK  ] Finished modprobe@loop.service - Load Kernel Module loop.
[  OK  ] Finished systemd-modules-load.service - Load Kernel Modules.
[  OK  ] Finished systemd-remount-fs.servic…mount Root and Kernel File Systems.
         Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
         Mounting sys-kernel-config.mount - Kernel Configuration File System...
         Starting systemd-journal-flush.ser…sh Journal to Persistent Storage...
         Starting systemd-random-seed.service - Load/Save OS Random Seed...
         Starting systemd-sysctl.service - Apply Kernel Variables...
         Starting systemd-tmpfiles-setup-de… Device Nodes in /dev gracefully...
[  OK  ] Finished systemd-udev-trigger.service - Coldplug All udev Devices.
[  133.667220][  T196] systemd-journald[196]: Received client request to flush runtime journal.
[  OK  ] Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[  OK  ] Mounted sys-kernel-config.mount - Kernel Configuration File System.
         Starting ifupdown-pre.service - He…synchronize boot up for ifupdown...
[  OK  ] Finished systemd-sysctl.service - Apply Kernel Variables.
[  OK  ] Finished systemd-random-seed.service - Load/Save OS Random Seed.
[  134.361656][  T196] systemd-journald[196]: /var/log/journal/c4334d5b2fba8bce5294b56551baee86/system.journal: Realtime clock jumped backwards relative to last journal entry, rotating.
[  134.378112][  T196] systemd-journald[196]: Rotating system journal.
[  OK  ] Finished systemd-tmpfiles-setup-de…ic Device Nodes in /dev gracefully.
         Starting systemd-tmpfiles-setup-de…eate Static Device Nodes in /dev...
[  OK  ] Finished systemd-tmpfiles-setup-de…Create Static Device Nodes in /dev.
[  OK  ] Reached target local-fs-pre.target…Preparation for Local File Systems.
         Mounting tmp.mount - /tmp...
         Starting systemd-udevd.service - R…ager for Device Events and Files...
[  OK  ] Mounted tmp.mount - /tmp.
[  OK  ] Reached target local-fs.target - Local File Systems.
         Starting systemd-binfmt.service - Set Up Additional Binary Formats...
         Mounting proc-sys-fs-binfmt_misc.m…cutable File Formats File System...
[  OK  ] Mounted proc-sys-fs-binfmt_misc.mo…xecutable File Formats File System.
[  OK  ] Finished systemd-binfmt.service - Set Up Additional Binary Formats.
[  OK  ] Started systemd-udevd.service - Ru…anager for Device Events and Files.
[  OK  ] Finished systemd-journal-flush.ser…lush Journal to Persistent Storage.
         Starting systemd-tmpfiles-setup.se…e Volatile Files and Directories...
[  OK  ] Found device dev-ttyS0.device - /dev/ttyS0.
[  OK  ] Finished systemd-tmpfiles-setup.se…ate Volatile Files and Directories.
         Mounting run-rpc_pipefs.mount - RPC Pipe File System...
         Starting systemd-update-utmp.servi…ord System Boot/Shutdown in UTMP...
[  OK  ] Mounted run-rpc_pipefs.mount - RPC Pipe File System.
[  OK  ] Reached target rpc_pipefs.target.
         Starting nfs-blkmap.service - pNFS block layout mapping daemon...
         Starting nfs-idmapd.service - NFSv4 ID-name mapping service...
         Starting nfsdcld.service - NFSv4 Client Tracking Daemon...
[  OK  ] Reached target nfs-client.target - NFS client services.
[  OK  ] Reached target remote-fs-pre.targe…reparation for Remote File Systems.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[  OK  ] Started nfs-blkmap.service - pNFS block layout mapping daemon.
[  OK  ] Started nfsdcld.service - NFSv4 Client Tracking Daemon.
[  OK  ] Started nfs-idmapd.service - NFSv4 ID-name mapping service.
[  OK  ] Finished systemd-update-utmp.servi…ecord System Boot/Shutdown in UTMP.
[  OK  ] Reached target sysinit.target - System Initialization.
[  OK  ] Started apt-daily.timer - Daily apt download activities.
[  OK  ] Started apt-daily-upgrade.timer - …y apt upgrade and clean activities.
[  OK  ] Started dpkg-db-backup.timer - Daily dpkg database backup timer.
[  OK  ] Started e2scrub_all.timer - Period…Metadata Check for All Filesystems.
[  OK  ] Started fstrim.timer - Discard unused blocks once a week.
[  140.079536][   T75] sata_oxnas: resetting SATA core
[  OK  ] Started man-db.timer - Daily man-db regeneration.
[  OK  ] Started ntpsec-rotate-stats.timer - Rotate ntpd stats daily.
[  OK  ] Started systemd-tmpfiles-clean.tim…y Cleanup of Temporary Directories.
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on avahi-daemon.socket -…DNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on dbus.socket - D-Bus System Message Bus Socket.
[  OK  ] Reached target sockets.target - Socket Units.
[  OK  ] Reached target basic.target - Basic System.
         Starting avahi-daemon.service - Avahi mDNS/DNS-SD Stack...
         Starting busybox-syslogd.service - LSB: Starts syslogd...
         Starting dbus.service - D-Bus System Message Bus...
[  140.931018][   T75] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[  140.939783][   T75] ata1.00: configured for UDMA/133
         Starting e2scrub_reap.service - Re…ne ext4 Metadata Check Snapshots...
         Starting smartmontools.service - S…orting Technology (SMART) Daemon...
         Starting systemd-logind.service - User Login Management...
[  OK  ] Finished ifupdown-pre.service - He…o synchronize boot up for ifupdown.
         Starting networking.service - Raise network interfaces...
[  OK  ] Started systemd-logind.service - User Login Management.
[  OK  ] Finished e2scrub_reap.service - Re…line ext4 Metadata Check Snapshots.
[  OK  ] Started dbus.service - D-Bus System Message Bus.
[  OK  ] Started busybox-syslogd.service - LSB: Starts syslogd.
         Starting busybox-klogd.service - LSB: Starts klogd...
[  OK  ] Started busybox-klogd.service - LSB: Starts klogd.
[  OK  ] Started avahi-daemon.service - Avahi mDNS/DNS-SD Stack.
[  144.590448][  T409] oxnas-dwmac 40400000.ethernet end0: PHY [stmmac-0:00] driver [Generic PHY]
[  144.606748][  T409] oxnas-dwmac 40400000.ethernet end0: No Safety Features support found
[  144.614904][  T409] oxnas-dwmac 40400000.ethernet end0: IEEE 1588-2008 Advanced Timestamp supported
[  144.631288][  T409] oxnas-dwmac 40400000.ethernet end0: registered PTP clock
[  144.641057][  T409] oxnas-dwmac 40400000.ethernet end0: configuring for phy/rgmii link mode
[  OK  ] Started smartmontools.service - Se…eporting Technology (SMART) Daemon.
[  OK  ] Finished networking.service - Raise network interfaces.
[  OK  ] Reached target network.target - Network.
[  OK  ] Reached target network-online.target - Network is Online.
         Starting nfs-mountd.service - NFS Mount Daemon...
         Starting ntpsec.service - Network Time Service...
         Starting rc-local.service - /etc/rc.local Compatibility...
         Starting rpc-statd.service - NFS s…tus monitor for NFSv2/3 locking....
         Starting ssh.service - OpenBSD Secure Shell server...
         Starting systemd-user-sessions.service - Permit User Sessions...
         Starting webmin.service - Webmin server daemon...
[  OK  ] Started rc-local.service - /etc/rc.local Compatibility.
[  OK  ] Finished systemd-user-sessions.service - Permit User Sessions.
[  OK  ] Started ntpsec.service - Network Time Service.
[  OK  ] Started getty@tty1.service - Getty on tty1.
         Starting rpcbind.service - RPC bind portmap service...
[  OK  ] Started serial-getty@ttyS0.service - Serial Getty on ttyS0.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Started rpcbind.service - RPC bind portmap service.
[  OK  ] Reached target rpcbind.target - RPC Port Mapper.
[  OK  ] Started nfs-mountd.service - NFS Mount Daemon.
[  OK  ] Started rpc-statd.service - NFS status monitor for NFSv2/3 locking..
         Starting nfs-server.service - NFS server and services...
         Stopping ntpsec.service - Network Time Service...
[  OK  ] Started ssh.service - OpenBSD Secure Shell server.
[  OK  ] Stopped ntpsec.service - Network Time Service.
[  148.841889][   T21] oxnas-dwmac 40400000.ethernet end0: Link is Up - 1Gbps/Full - flow control off
[  148.850867][   T21] IPv6: ADDRCONF(NETDEV_CHANGE): end0: link becomes ready
[  149.089034][  T486] NFSD: Using nfsdcld client tracking operations.
[  149.095375][  T486] NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000129)
[  OK  ] Finished nfs-server.service - NFS server and services.
         Starting ntpsec.service - Network Time Service...
         Starting rpc-statd-notify.service - Notify NFS peers of a restart...
[  OK  ] Started ntpsec.service - Network Time Service.
[  150.760988][    C1] sched: RT throttling activated
[  OK  ] Started rpc-statd-notify.service - Notify NFS peers of a restart.

Debian GNU/Linux 12 iSharing ttyS0

iSharing login:

Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 30, 2023 02:16PM
[ 0.000000][ T0] Kernel command line: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 libata.force=3.0G mem=256M rootdelay=10 mtdparts=41000000.nand:0x0000026c0000@0x0(boot),-(ubi) earlyprintk=serial

There is no need to use rootfstype=ext3 in bootargs.

Something is still not right about NAND in your last boot.

[    7.676395][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.683448][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.688568][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.696839][    T1] Scanning device for bad blocks
[    7.866362][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.874969][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.882088][    T1] 0x000000000000-0x000000e00000 : "boot"
[    7.888535][    T1] 0x000000e00000-0x000008000000 : "data"

Let's try this for mtdparts

setenv mtdparts 'mtdparts=41000000.nand:0x0000026c0000(boot),-(ubi)'
and boot
printenv
boot
Please post this serial console log verbatim (don't do anything else at u-boot prompt).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 30, 2023 05:39PM
bodhi ,
still no more information ....


U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK
  Device 0:
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  256 MiB
IDE:   Bus 0: OK
  Device 0: Model: APPLE HDD HTS547550A9E384  Firm: JE3AD70F Ser#: J2600055GJDE2E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0
OX820 #
OX820 # setenv mtdparts 'mtdparts=41000000.nand:0x0000026c0000(boot),-(ubi)'
OX820 # setenv ide_set_bootargs 'setenv bootargs root=LABEL=rootfs console=ttyS0,115200 mem=256M rootdelay=10 $mtdparts earlyprintk=serial'
OX820 # setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs mem=256M rootdelay=10  $mtdparts earlyprintk=serial'
OX820 # saveenv
Saving Environment to EXT4...
File System is consistent
file found deleting
update journal finished
File System is consistent
update journal finished
done
OX820 # boot
ide - IDE sub-system

Usage:
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
    to/from memory address `addr'
5589656 bytes read in 1973 ms (2.7 MiB/s)
7481451 bytes read in 2554 ms (2.8 MiB/s)
8892 bytes read in 76 ms (114.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5589592 Bytes = 5.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7481387 Bytes = 7.1 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 6f705000, end 6fe2782b ... OK
   Loading Device Tree to 6f6ff000, end 6f7042bb ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2
[    0.000000][    T0] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Pogoplug V3 Classic
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: root=LABEL=rootfs console=ttyS0,115200 mem=256M rootdelay=10 mtdparts=41000000.nand:0x0000026c0000(boot),-(ubi) earlyprl
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 239608K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 22536K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000017][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008778][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020111][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026872][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036016][    T0] GIC: PPI13 is secure or misconfigured
[    0.041428][    T0] GIC: PPI13 is secure or misconfigured
[    0.047106][    T0] Console: colour dummy device 80x30
[    0.052326][    T0] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.108426][    T0] pid_max: default: 32768 minimum: 301
[    0.114416][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.122424][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.131097][    T0] *** VALIDATE tmpfs ***
[    0.136524][    T0] *** VALIDATE proc ***
[    0.140715][    T0] *** VALIDATE cgroup1 ***
[    0.145016][    T0] *** VALIDATE cgroup2 ***
[    0.149452][    T0] CPU: Testing write buffer coherency: ok
[    0.157524][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165104][    T1] rcu: Hierarchical SRCU implementation.
[    0.171627][    T1] smp: Bringing up secondary CPUs ...
[    0.178119][    T0] GIC: PPI13 is secure or misconfigured
[    0.231787][    T1] smp: Brought up 1 node, 2 CPUs
[    0.242012][    T1] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.250129][    T1] devtmpfs: initialized
[    0.260894][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.271500][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.279078][    T1] prandom: seed boundary self test passed
[    0.288837][    T1] prandom: 100 self tests passed
[    0.293629][    T1] pinctrl core: initialized pinctrl subsystem
[    0.301693][    T1] NET: Registered protocol family 16
[    0.308631][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319575][    T1] cpuidle: using governor ladder
[    0.324462][    T1] cpuidle: using governor menu
[    6.279068][    T1] vgaarb: loaded
[    6.283466][    T1] SCSI subsystem initialized
[    6.288788][    T1] usbcore: registered new interface driver usbfs
[    6.295191][    T1] usbcore: registered new interface driver hub
[    6.301237][    T1] usbcore: registered new device driver usb
[    6.307269][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.312985][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.322851][    T1] PTP clock support registered
[    6.329241][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.337305][    T1] *** VALIDATE bpf ***
[    6.341783][    T1] *** VALIDATE ramfs ***
[    6.365972][    T1] NET: Registered protocol family 2
[    6.371361][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.380398][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.389818][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.398177][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.406062][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    6.413335][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.420615][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.428538][    T1] NET: Registered protocol family 1
[    6.435046][    T1] RPC: Registered named UNIX socket transport module.
[    6.441725][    T1] RPC: Registered udp transport module.
[    6.447104][    T1] RPC: Registered tcp transport module.
[    6.452523][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.459660][    T1] PCI: CLS 0 bytes, default 32
[    6.464706][    T1] Unpacking initramfs...
[    7.328445][    T1] Freeing initrd memory: 7308K
[    7.334522][    T1] Initialise system trusted keyrings
[    7.339840][    T1] Key type blacklist registered
[    7.344890][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.364170][    T1] zbud: loaded
[    7.373480][    T1] NFS: Registering the id_resolver key type
[    7.379409][    T1] Key type id_resolver registered
[    7.384263][    T1] Key type id_legacy registered
[    7.388963][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.396377][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.404456][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.413032][    T1] fuse: init (API version 7.31)
[    7.417994][    T1] *** VALIDATE fuse ***
[    7.422044][    T1] *** VALIDATE fuse ***
[    7.426972][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.434570][    T1] orangefs_init: module version upstream loaded
[    7.488670][    T1] Key type asymmetric registered
[    7.493509][    T1] Asymmetric key parser 'x509' registered
[    7.499130][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.514391][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.522956][    T1] printk: console [ttyS0] disabled
[    7.528051][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.537648][    T1] printk: console [ttyS0] enabled
[    7.537648][    T1] printk: console [ttyS0] enabled
[    7.547386][    T1] printk: bootconsole [earlycon0] disabled
[    7.547386][    T1] printk: bootconsole [earlycon0] disabled
[    7.574156][    T1] loop: module loaded
[    7.580518][    T1] scsi host0: sata_oxnas
[    7.585323][    T1] ata1: SATA max UDMA/133 irq 57
[    7.590287][   T75] sata_oxnas: resetting SATA core
[    7.659591][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.669002][    T1] ONFI parameter recovery failed, aborting
[    7.674713][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.681766][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.686883][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.695157][    T1] Scanning device for bad blocks
[    7.863902][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.872512][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.879636][    T1] 0x000000000000-0x000000e00000 : "boot"
[    7.886105][    T1] 0x000000e00000-0x000008000000 : "data"
[    7.893734][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.900623][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.907136][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.979706][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.987351][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.993136][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    8.001144][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    8.009113][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    8.014865][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    8.022430][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    8.029396][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    8.036846][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    8.044149][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    8.050524][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    8.099358][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.114580][   T75] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    8.121533][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    8.122462][   T75] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.132659][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.151042][   T75] ata1.00: configured for UDMA/133
[    8.151296][    T1] PPP generic driver version 2.4.2
[    8.161605][    T7] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    8.170805][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.177996][    T1] ehci-pci: EHCI PCI platform driver
[    8.185518][   T54] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    8.193758][   T54] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.199900][   T54] sd 0:0:0:0: [sda] Write Protect is off
[    8.205588][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.389301][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.395507][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.404085][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.439296][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.446318][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.455303][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.463221][    T1] usb usb1: Product: EHCI Host Controller
[    8.468774][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.475993][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.482362][    T1] hub 1-0:1.0: USB hub found
[    8.486871][    T1] hub 1-0:1.0: 2 ports detected
[    8.492884][    T1] usbcore: registered new interface driver cdc_wdm
[    8.499530][    T1] usbcore: registered new interface driver usb-storage
[    8.499537][   T54]  sda: sda1
[    8.502115][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.506460][    T1] usbcore: registered new interface driver usbserial_generic
[    8.522309][    T1] usbserial: USB Serial support registered for generic
[    8.529495][    T1] mousedev: PS/2 mouse device common for all mice
[    8.535874][    T1] i2c /dev entries driver
[    8.541532][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.547793][    T1] usbcore: registered new interface driver usbhid
[    8.554142][    T1] usbhid: USB HID core driver
[    8.560619][    T1] NET: Registered protocol family 10
[    8.567592][    T1] Segment Routing with IPv6
[    8.572093][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.581040][    T1] NET: Registered protocol family 17
[    8.586593][    T1] Key type dns_resolver registered
[    8.592442][    T1] registered taskstats version 1
[    8.597219][    T1] Loading compiled-in X.509 certificates
[    8.602936][    T1] zswap: loaded using pool lzo/zbud
[    8.608517][    T1] Key type ._fscrypt registered
[    8.613283][    T1] Key type .fscrypt registered
[    8.727119][    T1] Key type big_key registered
[    8.781875][    T1] Key type encrypted registered
[    8.791313][    T1] hctosys: unable to open rtc device (rtc0)
[    8.799070][    T1] Freeing unused kernel memory: 1024K
[    8.840558][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.846894][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.17-1~deb12u1
[    9.874798][  T128] oxnas-dwmac 40400000.ethernet end0: renamed from eth0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: Group descriptor 0 marked uninitialized without feature set.
FIXED.
[   38.809282][    C0] random: crng init done==============      - 90.0%
rootfs: 72594/122880 files (3.5% non-contiguous), 490225/1955904 blocks
done.
[   39.431436][  T152] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   39.690890][  T152] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   41.527196][    T1] systemd[1]: System time before build time, advancing clock.
[   41.772963][    T1] systemd[1]: Inserted module 'autofs4'
[   41.928936][    T1] systemd[1]: systemd 254.5-1~bpo12+2 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFU)
[   41.962329][    T1] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 12 (bookworm)!

[   42.022039][    T1] systemd[1]: Hostname set to <iSharing>.
[   45.898370][    T1] systemd[1]: Queued start job for default target graphical.target.
[   45.919326][    T1] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[   45.962859][    T1] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-modprobe.slice - Slice /system/modprobe.
[   46.003307][    T1] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[  OK  ] Created slice system-serial\x2dget???slice - Slice /system/serial-getty.
[   46.051343][    T1] systemd[1]: Created slice user.slice - User and Session Slice.
[  OK  ] Created slice user.slice - User and Session Slice.
[   46.090483][    T1] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started systemd-ask-password-conso???equests to Console Directory Watch.
[   46.140433][    T1] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Started systemd-ask-password-wall.???d Requests to Wall Directory Watch.
[   46.193297][    T1] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount proc-sys-fs-binfm???ormats File System Automount Point.
[   46.240391][    T1] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[  OK  ] Reached target cryptsetup.target - Local Encrypted Volumes.
[   46.280215][    T1] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[  OK  ] Reached target integritysetup.targ??? Local Integrity Protected Volumes.
[   46.320732][    T1] systemd[1]: Reached target nss-lookup.target - Host and Network Name Lookups.
[  OK  ] Reached target nss-lookup.target - Host and Network Name Lookups.
[   46.359884][    T1] systemd[1]: Reached target paths.target - Path Units.
[  OK  ] Reached target paths.target - Path Units.
[   46.400381][    T1] systemd[1]: Reached target slices.target - Slice Units.
[  OK  ] Reached target slices.target - Slice Units.
[   46.440061][    T1] systemd[1]: Reached target swap.target - Swaps.
[  OK  ] Reached target swap.target - Swaps.
[   46.480099][    T1] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[  OK  ] Reached target veritysetup.target - Local Verity Protected Volumes.
[   46.522278][    T1] systemd[1]: Listening on rpcbind.socket - RPCbind Server Activation Socket.
[  OK  ] Listening on rpcbind.socket - RPCbind Server Activation Socket.
[   46.571294][    T1] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[  OK  ] Listening on systemd-fsckd.socket ???fsck to fsckd communication Socket.
[   46.620572][    T1] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-initctl.socke???- initctl Compatibility Named Pipe.
[   46.661647][    T1] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journald-dev-???socket - Journal Socket (/dev/log).
[   46.711877][    T1] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[  OK  ] Listening on systemd-journald.socket - Journal Socket.
[   46.793715][    T1] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[  OK  ] Listening on systemd-udevd-control.socket - udev Control Socket.
[   46.841648][    T1] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  OK  ] Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[   46.881233][    T1] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   46.903808][    T1] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
         Mounting dev-mqueue.mount - POSIX Message Queue File System...
[   46.956582][    T1] systemd[1]: Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
         Mounting proc-fs-nfsd.mount - NFSD configuration filesystem...
[   47.017210][    T1] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
         Mounting sys-kernel-debug.mount - Kernel Debug File System...
[   47.070896][    T1] systemd[1]: sys-kernel-tracing.mount - Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
[   47.087485][    T1] systemd[1]: auth-rpcgss-module.service - Kernel Module supporting RPCSEC_GSS was skipped because of an unmet condition check (ConditionPathExists=/etc/krb5.keyt.
[   47.114659][    T1] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
         Starting kmod-static-nodes.service???eate List of Static Device Nodes...
[   47.171494][    T1] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
         Starting modprobe@configfs.service - Load Kernel Module configfs...
[   47.231723][    T1] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
         Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[   47.298513][    T1] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
         Starting modprobe@drm.service - Load Kernel Module drm...
[   47.353848][  T187] device-mapper: uevent: version 1.0.3
[   47.360112][  T187] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[   47.378744][    T1] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
         Starting modprobe@efi_pstore.servi??? - Load Kernel Module efi_pstore...
[   47.438712][    T1] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
         Starting modprobe@fuse.service - Load Kernel Module fuse...
[   47.488980][    T1] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
         Starting modprobe@loop.service - Load Kernel Module loop...
[   47.532958][    T1] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fs.
[   47.553259][    T1] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   47.566878][    T1] systemd[1]: systemd-journald.service: (This warning is only shown for the first unit using IP firewalling.)
[   47.584056][    T1] systemd[1]: Starting systemd-journald.service - Journal Service...
         Starting systemd-journald.service - Journal Service...
[   47.647380][    T1] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
         Starting systemd-modules-load.service - Load Kernel Modules...
[   47.708838][    T1] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
         Starting systemd-remount-fs.servic???unt Root and Kernel File Systems...
[   47.775569][  T193] systemd-journald[193]: Collecting audit messages is disabled.
[   47.796139][    T1] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
         Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[   47.896791][    T1] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  OK  ] Mounted dev-mqueue.mount - POSIX Message Queue File System.
[   47.922265][    T1] systemd[1]: Mounted proc-fs-nfsd.mount - NFSD configuration filesystem.
[  OK  ] Mounted proc-fs-nfsd.mount - NFSD configuration filesystem.
[   47.965506][  T197] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   47.997053][    T1] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  OK  ] Mounted sys-kernel-debug.mount - Kernel Debug File System.
[   48.043240][    T1] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[  OK  ] Finished kmod-static-nodes.service???Create List of Static Device Nodes.
[   48.162081][    T1] systemd[1]: Started systemd-journald.service - Journal Service.
[  OK  ] Started systemd-journald.service - Journal Service.
[  OK  ] Finished modprobe@configfs.service - Load Kernel Module configfs.
[  OK  ] Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@drm.service - Load Kernel Module drm.
[  OK  ] Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[  OK  ] Finished modprobe@fuse.service - Load Kernel Module fuse.
[  OK  ] Finished modprobe@loop.service - Load Kernel Module loop.
[  OK  ] Finished systemd-modules-load.service - Load Kernel Modules.
[  OK  ] Finished systemd-remount-fs.servic???mount Root and Kernel File Systems.
         Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
         Mounting sys-kernel-config.mount - Kernel Configuration File System...
         Starting systemd-journal-flush.ser???sh Journal to Persistent Storage...
         Starting systemd-random-seed.service - Load/Save OS Random Seed...
         Starting systemd-sysctl.service - Apply Kernel Variables...
         Starting systemd-tmpfiles-setup-de??? Device Nodes [   49.008619][  T193] systemd-journald[193]: Received client request to flush runtime journal.
in /dev gracefully...
[  OK  ] Finished systemd-udev-trigger.service - Coldplug All udev Devices.
[  OK  ] Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[  OK  ] Mounted sys-kernel-config.mount - Kernel Configuration File System.
         Starting ifupdown-pre.service - He???synchronize boot up for ifupdown...
[  OK  ] Finished systemd-random-seed.service - Load/Save OS Random Seed.
[  OK  ] Finished systemd-sysctl.service - Apply Kernel Variables.
[   49.593297][  T193] systemd-journald[193]: /var/log/journal/c4334d5b2fba8bce5294b56551baee86/system.journal: Realtime clock jumped backwards relative to last journal entry, rotatin.
[   49.609761][  T193] systemd-journald[193]: Rotating system journal.
[  OK  ] Finished systemd-tmpfiles-setup-de???ic Device Nodes in /dev gracefully.
         Starting systemd-tmpfiles-setup-de???eate Static Device Nodes in /dev...
[  OK  ] Finished systemd-tmpfiles-setup-de???Create Static Device Nodes in /dev.
[  OK  ] Reached target local-fs-pre.target???Preparation for Local File Systems.
         Mounting tmp.mount - /tmp...
         Starting systemd-udevd.service - R???ager for Device Events and Files...
[  OK  ] Mounted tmp.mount - /tmp.
[  OK  ] Reached target local-fs.target - Local File Systems.
         Starting systemd-binfmt.service - Set Up Additional Binary Formats...
         Mounting proc-sys-fs-binfmt_misc.m???cutable File Formats File System...
[  OK  ] Mounted proc-sys-fs-binfmt_misc.mo???xecutable File Formats File System.
[  OK  ] Finished systemd-binfmt.service - Set Up Additional Binary Formats.
[  OK  ] Started systemd-udevd.service - Ru???anager for Device Events and Files.
[  OK  ] Finished systemd-journal-flush.ser???lush Journal to Persistent Storage.
         Starting systemd-tmpfiles-setup.se???e Volatile Files and Directories...
[  OK  ] Found device dev-ttyS0.device - /dev/ttyS0.
[  OK  ] Finished systemd-tmpfiles-setup.se???ate Volatile Files and Directories.
         Mounting run-rpc_pipefs.mount - RPC Pipe File System...
         Starting systemd-update-utmp.servi???ord System Boot/Shutdown in UTMP...
[  OK  ] Mounted run-rpc_pipefs.mount - RPC Pipe File System.
[  OK  ] Reached target rpc_pipefs.target.
         Starting nfs-blkmap.service - pNFS block layout mapping daemon...
         Starting nfs-idmapd.service - NFSv4 ID-name mapping service...
         Starting nfsdcld.service - NFSv4 Client Tracking Daemon...
[  OK  ] Reached target nfs-client.target - NFS client services.
[  OK  ] Reached target remote-fs-pre.targe???reparation for Remote File Systems.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[  OK  ] Started nfs-blkmap.service - pNFS block layout mapping daemon.
[  OK  ] Finished systemd-update-utmp.servi???ecord System Boot/Shutdown in UTMP.
[  OK  ] Reached target sysinit.target - System Initialization.
[  OK  ] Started apt-daily.timer - Daily apt download activities.
[  OK  ] Started apt-daily-upgrade.timer - ???y apt upgrade and clean activities.
[  OK  ] Started dpkg-db-backup.timer - Daily dpkg database backup timer.
[  OK  ] Started e2scrub_all.timer - Period???Metadata Check for All Filesystems.
[  OK  ] Started fstrim.timer - Discard unused blocks once a week.
[  OK  ] Started man-db.timer - Daily man-db regeneration.
[  OK  ] Started ntpsec-rotate-stats.timer - Rotate ntpd stats daily.
[  OK  ] Started systemd-tmpfiles-clean.tim???y Cleanup of Temporary Directories.
[   55.774740][   T75] sata_oxnas: resetting SATA core
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on avahi-daemon.socket -???DNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on dbus.socket - D-Bus System Message Bus Socket.
[  OK  ] Reached target sockets.target - Socket Units.
[  OK  ] Reached target basic.target - Basic System.
         Starting avahi-daemon.service - Avahi mDNS/DNS-SD Stack...
         Starting busybox-syslogd.service - LSB: Starts syslogd...
         Starting dbus.service - D-Bus System Message Bus...
[   56.629301][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   56.638295][   T75] ata1.00: configured for UDMA/133
         Starting e2scrub_reap.service - Re???ne ext4 Metadata Check Snapshots...
         Starting smartmontools.service - S???orting Technology (SMART) Daemon...
         Starting systemd-logind.service - User Login Management...
[  OK  ] Finished ifupdown-pre.service - He???o synchronize boot up for ifupdown.
[  OK  ] Started nfs-idmapd.service - NFSv4 ID-name mapping service.
[  OK  ] Started nfsdcld.service - NFSv4 Client Tracking Daemon.
         Starting networking.service - Raise network interfaces...
[  OK  ] Started systemd-logind.service - User Login Management.
[  OK  ] Started dbus.service - D-Bus System Message Bus.
[  OK  ] Finished e2scrub_reap.service - Re???line ext4 Metadata Check Snapshots.
[  OK  ] Started avahi-daemon.service - Avahi mDNS/DNS-SD Stack.
[  OK  ] Started busybox-syslogd.service - LSB: Starts syslogd.
         Starting busybox-klogd.service - LSB: Starts klogd...
[  OK  ] Started busybox-klogd.service - LSB: Starts klogd.
[   60.572103][  T407] oxnas-dwmac 40400000.ethernet end0: PHY [stmmac-0:00] driver [Generic PHY]
[   60.584325][  T407] oxnas-dwmac 40400000.ethernet end0: No Safety Features support found
[   60.598924][  T407] oxnas-dwmac 40400000.ethernet end0: IEEE 1588-2008 Advanced Timestamp supported
[   60.609853][  T407] oxnas-dwmac 40400000.ethernet end0: registered PTP clock
[   60.616913][  T407] oxnas-dwmac 40400000.ethernet end0: configuring for phy/rgmii link mode
[  OK  ] Started smartmontools.service - Se???eporting Technology (SMART) Daemon.
[  OK  ] Finished networking.service - Raise network interfaces.
[  OK  ] Reached target network.target - Network.
[  OK  ] Reached target network-online.target - Network is Online.
         Starting nfs-mountd.service - NFS Mount Daemon...
         Starting ntpsec.service - Network Time Service...
         Starting rc-local.service - /etc/rc.local Compatibility...
         Starting rpc-statd.service - NFS s???tus monitor for NFSv2/3 locking....
         Starting ssh.service - OpenBSD Secure Shell server...
         Starting systemd-user-sessions.service - Permit User Sessions...
         Starting webmin.service - Webmin server daemon...
[  OK  ] Started rc-local.service - /etc/rc.local Compatibility.
[  OK  ] Finished systemd-user-sessions.service - Permit User Sessions.
[  OK  ] Started getty@tty1.service - Getty on tty1.
[  OK  ] Started serial-getty@ttyS0.service - Serial Getty on ttyS0.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Stopped ntpsec.service - Network Time Service.
         Starting rpcbind.service - RPC bind portmap service...
[  OK  ] Started rpcbind.service - RPC bind portmap service.
[  OK  ] Reached target rpcbind.target - RPC Port Mapper.
[  OK  ] Started nfs-mountd.service - NFS Mount Daemon.
[  OK  ] Started rpc-statd.service - NFS status monitor for NFSv2/3 locking..
         Starting nfs-server.service - NFS server and services...
         Starting ntpsec.service - Network Time Service...
[  OK  ] Started ntpsec.service - Network Time Service.
[   64.005299][  T491] NFSD: Using nfsdcld client tracking operations.
[   64.017331][  T491] NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000129)
[  OK  ] Started ssh.service - OpenBSD Secure Shell server.
[  OK  ] Finished nfs-server.service - NFS server and services.
         Starting rpc-statd-notify.service - Notify NFS peers of a restart...
[  OK  ] Started rpc-statd-notify.service - Notify NFS peers of a restart.
[   64.780039][  T188] oxnas-dwmac 40400000.ethernet end0: Link is Up - 1Gbps/Full - flow control off
[   64.789332][  T188] IPv6: ADDRCONF(NETDEV_CHANGE): end0: link becomes ready

Debian GNU/Linux 12 iSharing ttyS0

iSharing login:



Maybe I need roll back to 'buster' ?
and try again ?



Edited 1 time(s). Last edit at 11/30/2023 05:47PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 30, 2023 05:55PM
Popo,

Check your uImage. Is the booting uImage the same as one in the rootfs? is it the original uImage (without the DTB embedded)? It must be the original uImage for the kernel to work properly.

Look at the date of both, and also see if you have uImage.orig in /boot.

And please turn off systemd, booting with sysvinit is much better during debugging booting issues.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 11/30/2023 06:40PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
November 30, 2023 06:58PM
Quote

Maybe I need roll back to 'buster' ?

Not gonna help. We are still dealing with the kernel. Debian version is not relevant at this point.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 03:52AM
bodhi

I went back and redone everything again, and now I use NFS to mount rootfs for use. The original HDD can only be booted as U-BOOT. And boot to tftp to download uImage/uInitrd/dtb file and then boot, and successfully mount rootfs in NFS mode.

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022
[    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] OF: fdt: Machine model: Pogoplug V3 Classic
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    0.000000] pcpu-alloc: s30636 r8192 d22612 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.20.252:/akitio-bookworm,nfsvers=3,nolock,intr,soft,rsize=32768,wsize=32768 rw ip=192.168.20.249:192.168.20.252:192.168.20.253:255.255.0.0::end0:off mem=256M rootdelay=10 mtdparts=41000000.nand:0x0000026c0000(boot),-(ubi) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 239608K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 22536K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000015] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008770] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020101] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026864] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.035998] GIC: PPI13 is secure or misconfigured
[    0.041402] GIC: PPI13 is secure or misconfigured
[    0.047088] Console: colour dummy device 80x30
[    0.052303] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.108403] pid_max: default: 32768 minimum: 301
[    0.114406] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.122416] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.131079] *** VALIDATE tmpfs ***
[    0.136509] *** VALIDATE proc ***
[    0.140695] *** VALIDATE cgroup1 ***
[    0.144998] *** VALIDATE cgroup2 ***
[    0.149434] CPU: Testing write buffer coherency: ok
[    0.157519] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165094] rcu: Hierarchical SRCU implementation.
[    0.171614] smp: Bringing up secondary CPUs ...
[    0.178104] GIC: PPI13 is secure or misconfigured
[    0.231756] smp: Brought up 1 node, 2 CPUs
[    0.241981] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.250114] devtmpfs: initialized
[    0.261135] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.271700] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.279272] prandom: seed boundary self test passed
[    0.289018] prandom: 100 self tests passed
[    0.293811] pinctrl core: initialized pinctrl subsystem
[    0.301880] NET: Registered protocol family 16
[    0.308856] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319685] cpuidle: using governor ladder
[    0.324669] cpuidle: using governor menu
[    6.279403] vgaarb: loaded
[    6.283822] SCSI subsystem initialized
[    6.288657] libata version 3.00 loaded.
[    6.289067] usbcore: registered new interface driver usbfs
[    6.295464] usbcore: registered new interface driver hub
[    6.301593] usbcore: registered new device driver usb
[    6.307537] pps_core: LinuxPPS API ver. 1 registered
[    6.313244] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.323112] PTP clock support registered
[    6.329587] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.337653] *** VALIDATE bpf ***
[    6.342126] *** VALIDATE ramfs ***
[    6.365890] NET: Registered protocol family 2
[    6.371269] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.380326] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.389736] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.398100] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.405995] TCP: Hash tables configured (established 2048 bind 2048)
[    6.413265] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.420554] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.428474] NET: Registered protocol family 1
[    6.434949] RPC: Registered named UNIX socket transport module.
[    6.441628] RPC: Registered udp transport module.
[    6.447004] RPC: Registered tcp transport module.
[    6.452421] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.459527] PCI: CLS 0 bytes, default 32
[    6.464586] Unpacking initramfs...
[    7.324861] Freeing initrd memory: 7308K
[    7.331031] Initialise system trusted keyrings
[    7.336238] Key type blacklist registered
[    7.341386] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.362101] zbud: loaded
[    7.371668] NFS: Registering the id_resolver key type
[    7.377443] Key type id_resolver registered
[    7.382379] Key type id_legacy registered
[    7.387084] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.394475] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.402562] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.411146] fuse: init (API version 7.31)
[    7.416084] *** VALIDATE fuse ***
[    7.420144] *** VALIDATE fuse ***
[    7.425100] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.432645] orangefs_init: module version upstream loaded
[    7.488291] Key type asymmetric registered
[    7.493130] Asymmetric key parser 'x509' registered
[    7.498749] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.513999] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.522544] printk: console [ttyS0] disabled
[    7.527636] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.537236] printk: console [ttyS0] enabled
[    7.546974] printk: bootconsole [earlycon0] disabled
[    7.573539] loop: module loaded
[    7.579932] scsi host0: sata_oxnas
[    7.584683] ata1: SATA max UDMA/133 irq 57
[    7.589639] sata_oxnas: resetting SATA core
[    7.659937] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.669350] ONFI parameter recovery failed, aborting
[    7.675061] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.682109] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.687229] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.695500] Scanning device for bad blocks
[    7.864476] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.873082] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.880209] 0x000000000000-0x000000e00000 : "boot"
[    7.886663] 0x000000e00000-0x000008000000 : "data"
[    7.894282] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.901168] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.907678] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.980106] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.987752] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.993536] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    8.001543] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    8.009512] oxnas-dwmac 40400000.ethernet: COE Type 2
[    8.015262] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    8.022830] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    8.029798] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    8.037250] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    8.044554] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    8.050928] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer


I am pretty sure that there is no ubi.ko module in the Kernel and rootfs packages you provided on DropBOX.

This will cause uImage to only detect mtd information from the device tree in dtb when it is powered on, but will not perform any Attach work.

The following is the feedback information I got in Debian 12, using only ubi/mtd/nand and other tools.

Since ubi.ko is not compiled into the kernel module, using 'modprobe ubifs' has no effect, so you cannot see that the three modules ubu/ubifs/mtd are successfully loaded in 'lsmod'.
root@iSharing:/# ubiattach -h
ubiattach version 2.1.5 - a tool to attach MTD device to UBI.

Usage: ubiattach [<UBI control device node file name>]
        [-m <MTD device number>] [-d <UBI device number>] [-p <path to device>]
        [--mtdn=<MTD device number>] [--devn=<UBI device number>]
        [--dev-path=<path to device>]
        [--max-beb-per1024=<maximum bad block number per 1024 blocks>]
UBI control device defaults to /dev/ubi_ctrl if not supplied.
Example 1: ubiattach -p /dev/mtd0 - attach /dev/mtd0 to UBI
Example 2: ubiattach -m 0 - attach MTD device 0 (mtd0) to UBI
Example 3: ubiattach -m 0 -d 3 - attach MTD device 0 (mtd0) to UBI
           and create UBI device number 3 (ubi3)
Example 4: ubiattach -m 1 -b 25 - attach /dev/mtd1 to UBI and reserve
           25*C/1024 eraseblocks for bad block handling, where C is the flash
           is total flash chip eraseblocks count, that is flash chip size in
           eraseblocks (including bad eraseblocks). E.g., if the flash chip
           has 4096 PEBs, 100 will be reserved.

-d, --devn=<number>   the number to assign to the newly created UBI device
                      (assigned automatically if this is not specified)
-p, --dev-path=<path> path to MTD device node to attach
-m, --mtdn=<number>   MTD device number to attach (alternative method, e.g
                      if the character device node does not exist)
-O, --vid-hdr-offset  VID header offset (do not specify this unless you really
                      know what you are doing, the default should be optimal)
-b, --max-beb-per1024 maximum expected bad block number per 1024 eraseblock.
                      The default value is correct for most NAND devices.
                      Allowed range is 0-768, 0 means the default kernel value.
-h, --help            print help message
-V, --version         print program version
root@iSharing:/# ubiattach -p /dev/mtd0
ubiattach: error!: cannot attach "/dev/mtd0"
           error 22 (Invalid argument)
root@iSharing:/# ubiattach -p /dev/mtd1
ubiattach: error!: cannot attach "/dev/mtd1"
           error 22 (Invalid argument)
root@iSharing:/# ubiattach -m 0
ubiattach: error!: cannot attach mtd0
           error 22 (Invalid argument)
root@iSharing:/# ubiattach -m 0 -d 1
ubiattach: error!: cannot attach mtd0
           error 22 (Invalid argument)

root@iSharing:~# nandtest /dev/mtd0
open: Permission denied
root@iSharing:~# nandtest /dev/mtd1
ECC corrections: 0
ECC failures   : 0
Bad blocks     : 0
BBT blocks     : 0
071e0000: checking...of 4)...
Finished pass 1 successfully
root@iSharing:~# nandtest -h
usage: nandtest [OPTIONS] <device>

  -h, --help           Display this help output
  -V, --version        Display version information and exit
  -m, --markbad        Mark blocks bad if they appear so
  -s, --seed           Supply random seed
  -p, --passes         Number of passes
  -r <n>, --reads=<n>  Read & check <n> times per pass
  -o, --offset         Start offset on flash
  -l, --length         Length of flash to test
  -k, --keep           Restore existing contents after test
root@iSharing:~# mtd_debug info /dev/mtd0
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_ROM
mtd.size = 14680064 (14M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64
regions = 0

root@iSharing:~# mtd_debug info /dev/mtd1
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 119537664 (114M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64
regions = 0

root@iSharing:~# dmesg |grep read-only
[  164.822103] ubi0: MTD device 0 is write-protected, attach in read-only mode


[   78.017210] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[  129.001930] ubi0: attaching mtd1
[  129.023912] ubi0 error: validate_vid_hdr: bad vol_type
[  129.029813] ubi0 error: validate_vid_hdr: bad VID header
[  129.035796] Volume identifier header dump:
[  129.040696]  magic     55424921
[  129.044820]  version   1
[  129.048038]  vol_type  0
[  129.051317]  copy_flag 0
[  129.054745]  compat    5
[  129.057966]  vol_id    2147479551
[  129.062110]  lnum      0
[  129.065546]  data_size 0
[  129.068856]  used_ebs  0
[  129.072240]  data_pad  0
[  129.075458]  sqnum     183355
[  129.079234]  hdr_crc   3a2fbd9b
[  129.083269] Volume identifier header hexdump:
[  129.088381] 00000000: 55 42 49 21 01 00 00 05 7f ff ef ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  UBI!............................
[  129.088414] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 02 cc 3b 00 00 00 00 00 00 00 00 00 00 00 00 3a 2f bd 9b  ...............;............:/..
[  129.088437] CPU: 0 PID: 1013 Comm: ubiattach Not tainted 5.4.224-oxnas-tld-1 #1.0
[  129.096578] Hardware name: Generic DT based system
[  129.102062] [<c0109674>] (unwind_backtrace) from [<c0105ab8>] (show_stack+0x10/0x14)
[  129.110474] [<c0105ab8>] (show_stack) from [<c08ba3bc>] (dump_stack+0xb0/0xcc)
[  129.118366] [<c08ba3bc>] (dump_stack) from [<c0637704>] (validate_vid_hdr+0x220/0x314)
[  129.126950] [<c0637704>] (validate_vid_hdr) from [<c0638260>] (ubi_io_read_vid_hdr+0x1b8/0x230)
[  129.136309] [<c0638260>] (ubi_io_read_vid_hdr) from [<c063d1e0>] (ubi_attach+0x18c/0x1458)
[  129.145239] [<c063d1e0>] (ubi_attach) from [<c0631928>] (ubi_attach_mtd_dev+0x448/0xb20)
[  129.153989] [<c0631928>] (ubi_attach_mtd_dev) from [<c0632db0>] (ctrl_cdev_ioctl+0x190/0x20c)
[  129.163176] [<c0632db0>] (ctrl_cdev_ioctl) from [<c0250208>] (do_vfs_ioctl+0x398/0x974)
[  129.171842] [<c0250208>] (do_vfs_ioctl) from [<c0250878>] (sys_ioctl+0x34/0x60)
[  129.179816] [<c0250878>] (sys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  129.188042] Exception stack(0xcd96ffa8 to 0xcd96fff0)
[  129.193768] ffa0:                   00000003 be93fb8c 00000003 40186f40 be93fb8c be93fb58
[  129.202603] ffc0: 00000003 be93fb8c 0050bf34 00000036 004f1634 0050bdb4 b6fab12c 0050bdb0
[  129.211432] ffe0: 00000000 be93fb40 b6fa7000 b6f25364
[  129.218488] ubi0 error: ubi_io_read_vid_hdr: validation failed for PEB 203
[  129.226247] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[  164.818181] ubi0: attaching mtd0
[  164.822103] ubi0: MTD device 0 is write-protected, attach in read-only mode
[  164.842199] ubi0: scanning is finished
[  164.846661] ubi0 error: ubi_read_volume_table: the layout volume was not found
[  164.854732] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd0, error -22
[18962.330063] ubi0: attaching mtd1
[18962.456435] ubi0: scanning is finished
[18962.461032] ubi0 error: ubi_read_volume_table: the layout volume was not found
[18962.469475] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22

sigh ! But,
If you meant before, let me try to mount mtdparts from cmdline, it is the same situation.

now .next ?
if i got stock FW (FROM NAND, FROM SOMEONE) , that's my last resort.
Now,
I can't use stock u-boot, it can boot uImage but can't mount ubi0.rootfs (mtd1)...
seems have another chance to rescue my original rootfs (or get it to qemu to research and analyse....)


In fact, I have no losses in any attempt. I would like to set up a complete build make environment in the future and try to compile u-boot/uImage/dtb by myself.
Then use this machine as a development tool to enter this wonderful world of embedded systems.
I love playing with systems, writing programs, and turning a piece of trash into something valuable.

I saw on shopee store that someone was selling almost 50 units of akitio mycloud mini. Each unit was priced at about $70. This reminded me of my great plan to use ten machines to build a small parallel server. computing environment.



Edited 1 time(s). Last edit at 12/02/2023 04:06AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 07:45AM
Finally, I took a little tricky hacking on the device tree

OX820 # run ide_set_bootargs
OX820 # run dt_bootm
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5589592 Bytes = 5.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-5.4.224-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6435113 Bytes = 6.1 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 6f805000, end 6fe28129 ... OK
   Loading Device Tree to 6f7ff000, end 6f8042bb ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.4.224-oxnas-tld-1 (root@tldDebian) (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022
[    0.000000][    T0] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Pogoplug V3 Classic
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] percpu: Embedded 15 pages/cpu s30636 r8192 d22612 u61440
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.20.252:/akitio-buster,nfsvers=3,nolock,intr,soft,rsize=32768,wsize=32768 rw ip=192.168.20.249:192.168.20.252:192.168.20.253:255.255.0.0::eth0:off mem=256M rootdelay=10 mtdparts=41000000.nand:0x0000026c0000(boot),-(ubi) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 240628K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 21516K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 16
[    0.000020][    T0] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.008775][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020108][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026872][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036011][    T0] GIC: PPI13 is secure or misconfigured
[    0.041423][    T0] GIC: PPI13 is secure or misconfigured
[    0.047098][    T0] Console: colour dummy device 80x30
[    0.052316][    T0] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.108423][    T0] pid_max: default: 32768 minimum: 301
[    0.114414][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.122424][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.131087][    T0] *** VALIDATE tmpfs ***
[    0.136542][    T0] *** VALIDATE proc ***
[    0.140738][    T0] *** VALIDATE cgroup1 ***
[    0.145039][    T0] *** VALIDATE cgroup2 ***
[    0.149478][    T0] CPU: Testing write buffer coherency: ok
[    0.157573][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165158][    T1] rcu: Hierarchical SRCU implementation.
[    0.171668][    T1] smp: Bringing up secondary CPUs ...
[    0.178168][    T0] GIC: PPI13 is secure or misconfigured
[    0.231777][    T1] smp: Brought up 1 node, 2 CPUs
[    0.242009][    T1] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.250140][    T1] devtmpfs: initialized
[    0.261657][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.272230][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.279805][    T1] prandom: seed boundary self test passed
[    0.289559][    T1] prandom: 100 self tests passed
[    0.294348][    T1] pinctrl core: initialized pinctrl subsystem
[    0.302374][    T1] NET: Registered protocol family 16
[    0.309329][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.320010][    T1] cpuidle: using governor ladder
[    0.324897][    T1] cpuidle: using governor menu
[    6.279971][    T1] vgaarb: loaded
[    6.284364][    T1] SCSI subsystem initialized
[    6.289674][    T1] usbcore: registered new interface driver usbfs
[    6.296151][    T1] usbcore: registered new interface driver hub
[    6.302251][    T1] usbcore: registered new device driver usb
[    6.308206][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.313884][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.323717][    T1] PTP clock support registered
[    6.330219][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.338344][    T1] *** VALIDATE bpf ***
[    6.342827][    T1] *** VALIDATE ramfs ***
[    6.366492][    T1] NET: Registered protocol family 2
[    6.371875][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.380943][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.390371][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.398732][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.406625][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    6.413900][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.421191][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.429112][    T1] NET: Registered protocol family 1
[    6.435604][    T1] RPC: Registered named UNIX socket transport module.
[    6.442286][    T1] RPC: Registered udp transport module.
[    6.447662][    T1] RPC: Registered tcp transport module.
[    6.453079][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.460236][    T1] PCI: CLS 0 bytes, default 32
[    6.465277][    T1] Unpacking initramfs...
[    7.201873][    T1] Freeing initrd memory: 6288K
[    7.207920][    T1] Initialise system trusted keyrings
[    7.213306][    T1] Key type blacklist registered
[    7.218396][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.238254][    T1] zbud: loaded
[    7.247398][    T1] NFS: Registering the id_resolver key type
[    7.253273][    T1] Key type id_resolver registered
[    7.258129][    T1] Key type id_legacy registered
[    7.262883][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.270289][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.278338][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.286945][    T1] fuse: init (API version 7.31)
[    7.291955][    T1] *** VALIDATE fuse ***
[    7.295964][    T1] *** VALIDATE fuse ***
[    7.301032][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.308451][    T1] orangefs_init: module version upstream loaded
[    7.360760][    T1] Key type asymmetric registered
[    7.365544][    T1] Asymmetric key parser 'x509' registered
[    7.371217][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.386439][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.395020][    T1] printk: console [ttyS0] disabled
[    7.400117][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.409717][    T1] printk: console [ttyS0] enabled
[    7.409717][    T1] printk: console [ttyS0] enabled
[    7.419456][    T1] printk: bootconsole [earlycon0] disabled
[    7.419456][    T1] printk: bootconsole [earlycon0] disabled
[    7.446269][    T1] loop: module loaded
[    7.452451][    T1] scsi host0: sata_oxnas
[    7.457254][    T1] ata1: SATA max UDMA/133 irq 57
[    7.462218][   T75] sata_oxnas: resetting SATA core
[    7.530575][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.539988][    T1] ONFI parameter recovery failed, aborting
[    7.545697][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.552750][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.557870][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.566149][    T1] Scanning device for bad blocks
[    7.734993][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.743605][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.750730][    T1] 0x000000000000-0x0000026c0000 : "boot"
[    7.757363][    T1] 0x0000026c0000-0x000010000000 : "data"
[    7.765445][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.772313][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.778823][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.850734][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.858375][    T1] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    7.864158][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    7.872168][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    7.880135][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    7.885885][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    7.893450][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    7.900421][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    7.907868][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    7.915174][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    7.921546][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    7.970344][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    7.975534][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    7.987435][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    7.997701][   T75] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    7.998714][    T1] PPP generic driver version 2.4.2
[    8.005632][   T75] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.018030][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.025320][    T1] ehci-pci: EHCI PCI platform driver
[    8.030758][   T75] ata1.00: configured for UDMA/133
[    8.036372][    T7] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    8.047091][   T54] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    8.055321][   T54] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.061442][   T54] sd 0:0:0:0: [sda] Write Protect is off
[    8.067130][   T54] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.240289][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.246492][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.255073][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.290275][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.297297][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.306291][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.314209][    T1] usb usb1: Product: EHCI Host Controller
[    8.319756][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.326976][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.333309][    T1] hub 1-0:1.0: USB hub found
[    8.337812][    T1] hub 1-0:1.0: 2 ports detected
[    8.343864][    T1] usbcore: registered new interface driver cdc_wdm
[    8.350394][    T1] usbcore: registered new interface driver usb-storage
[    8.357309][    T1] usbcore: registered new interface driver usbserial_generic
[    8.364748][    T1] usbserial: USB Serial support registered for generic
[    8.364769][   T54]  sda: sda1
[    8.372185][    T1] mousedev: PS/2 mouse device common for all mice
[    8.381194][    T1] i2c /dev entries driver
[    8.383188][   T54] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.386787][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.397058][    T1] usbcore: registered new interface driver usbhid
[    8.403348][    T1] usbhid: USB HID core driver
[    8.409740][    T1] NET: Registered protocol family 10
[    8.416744][    T1] Segment Routing with IPv6
[    8.421276][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.430274][    T1] NET: Registered protocol family 17
[    8.435847][    T1] Key type dns_resolver registered
[    8.441679][    T1] registered taskstats version 1
[    8.446456][    T1] Loading compiled-in X.509 certificates
[    8.452177][    T1] zswap: loaded using pool lzo/zbud
[    8.457827][    T1] Key type ._fscrypt registered
[    8.462599][    T1] Key type .fscrypt registered
[    8.555617][    T1] Key type big_key registered
[    8.599546][    T1] Key type encrypted registered
[    8.608755][    T1] hctosys: unable to open rtc device (rtc0)
[    8.616005][    T1] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY]
[    8.628183][    T1] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[    8.636303][    T1] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    8.645729][    T1] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[    8.652843][    T1] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[   12.850905][   T16] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   12.860303][   T26] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.890478][    T1] IP-Config: Complete:
[   12.894400][    T1]      device=eth0, hwaddr=00:30:e0:00:00:01, ipaddr=192.168.20.249, mask=255.255.0.0, gw=192.168.20.253
[   12.905469][    T1]      host=192.168.20.249, domain=, nis-domain=(none)
[   12.912207][    T1]      bootserver=192.168.20.252, rootserver=192.168.20.252, rootpath=
[   12.922836][    T1] Freeing unused kernel memory: 1024K
[   12.971581][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.977922][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-7+deb11u4
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done.
Begin: Running /scripts/nfs-premount ... done.
Begin: Waiting up to 180 secs for eth0 to become available ... done.
IP-Config: eth0 hardware address 00:30:e0:00:00:01 mtu 1500
IP-Config: eth0 guessed broadcast address 192.168.255.255
IP-Config: eth0 complete:
 address: 192.168.20.249   broadcast: 192.168.255.255  netmask: 255.255.0.0
 gateway: 192.168.20.253   dns0     : 0.0.0.0          dns1   : 0.0.0.0
 rootserver: 192.168.20.252 rootpath:
 filename  :
done.
Begin: Running /scripts/nfs-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[   27.048371][  T297] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   27.075491][  T297] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   27.084723][  T297] random: systemd-udevd: uninitialized urandom read (16 bytes read)
. ok
[....] Synthesizing the initial hotplug events...[   28.050414][  T324] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   28.052797][  T318] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   28.058908][  T324] random: systemd-udevd: uninitialized urandom read (16 bytes read)
done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
mount.nfs: an incorrect mount option was specified
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Cleaning up temporary files....
[ ok ] Loading kernel modules...done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[   34.739773][  T925] random: dd: uninitialized urandom read (32 bytes read)
[....] Configuring network interfaces...RTNETLINK answers: Device or resource busy
ifup: failed to bring up eth0
failed.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[   37.180331][    C0] random: crng init done
[   37.184424][    C0] random: 757 urandom warning(s) missed due to ratelimiting
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1143 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1170 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 10 iSharing ttyS0

iSharing login: root
Password:
Last login: Wed Dec 31 16:01:08 PST 1969 on ttyS0
Linux iSharing 5.4.224-oxnas-tld-1 #1.0 SMP PREEMPT Mon Nov 14 15:48:26 PST 2022 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@iSharing:~# ubiattach -m 0 -d 0
[   76.846315][ T1383] ubi0: attaching mtd0
[   76.889098][ T1383] ubi0: scanning is finished
[   76.893629][ T1383] ubi0 error: ubi_read_volume_table: the layout volume was not found
[   76.902200][ T1383] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd0, error -22
ubiattach: error!: cannot attach mtd0
           error 22 (Invalid argument)
root@iSharing:~# ubiattach -m 1 -d 0
[   86.620761][ T1384] ubi0: attaching mtd1
[   86.861642][ T1384] ubi0: scanning is finished
[   86.876157][ T1384] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 11, need 40
[   86.891458][ T1384] ubi0: attached mtd1 (name "data", size 217 MiB)
[   86.898122][ T1384] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[   86.906053][ T1384] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[   86.913669][ T1384] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[   86.921387][ T1384] ubi0: good PEBs: 1738, bad PEBs: 0, corrupted PEBs: 0
[   86.928289][ T1384] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   86.936437][ T1384] ubi0: max/mean erase counter: 800/132, WL threshold: 4096, image sequence number: 1359814330
[   86.946752][ T1384] ubi0: available PEBs: 0, total reserved PEBs: 1738, PEBs reserved for bad PEB handling: 11
[   86.957007][ T1385] ubi0: background thread "ubi_bgt0d" started, PID 1385
UBI device number 0, total 1738 LEBs (224243712 bytes, 213.9 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
root@iSharing:~#

Now ...It's so exciting !!!

I must get a sleep ....

The dtb file for ox820-pogoplug-class, it must be re-define and make again , to refer to the ox820-akitio.dtb

root@iSharing:~# modprobe ubifs
root@iSharing:~# lsmod
Module                  Size  Used by
xfs                   864256  0
libcrc32c              16384  1 xfs
dwmac_generic          16384  0
root@iSharing:~# modprobe mtdram
modprobe: FATAL: Module mtdram not found in directory /lib/modules/5.4.224-oxnas-tld-1
root@iSharing:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"
root@iSharing:~# ls /mnt
.  ..  rootfs
root@iSharing:~# mkdir -p /mnt/mtd1
root@iSharing:~# ls /dev/mtd*
/dev/mtd0  /dev/mtd0ro  /dev/mtd1  /dev/mtd1ro
root@iSharing:~# mount -t ext3 /dev/sda1 /mnt/rootfs
root@iSharing:~# ls /mnt/
mtd1/   rootfs/
root@iSharing:~# ls /mnt/
mtd1/   rootfs/
root@iSharing:~# ls /mnt/rootfs/
.  ..  .Trash-1000  bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@iSharing:~# dd if=/dev/mtd0 of=/mnt/rootfs/home/
Public/ admin/
root@iSharing:~# dd if=/dev/mtd0 of=/mnt/rootfs/home/
Public/ admin/
root@iSharing:~# dd if=/dev/mtd0 of=/mnt/rootfs/home/Public/mtd0.nand
79360+0 records in
79360+0 records out
40632320 bytes (41 MB, 39 MiB) copied, 16.2362 s, 2.5 MB/s
root@iSharing:~# dd if=/dev/mtd1 of=/mnt/rootfs/home/Public/mtd1.nand
444928+0 records in
444928+0 records out
227803136 bytes (228 MB, 217 MiB) copied, 88.0056 s, 2.6 MB/s
root@iSharing:~# mkdir -p /mnt/ubifs_rootfs
root@iSharing:~# mount -t ubifs ubi0:rootfs /mnt/ubifs_rootfs
mount: wrong fs type, bad option, bad superblock on ubi0:rootfs,
       missing codepage or helper program, or other error


root@iSharing:~# mtdinfo /dev/mtd1
mtd1
Name:                           data
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          1738 (227803136 bytes, 217.2 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

root@iSharing:~# mtdinfo /dev/mtd0
mtd0
Name:                           boot
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          310 (40632320 bytes, 38.8 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

root@iSharing:~# ls /dev/ubi
ubi0      ubi0_0    ubi_ctrl
root@iSharing:~# ls /dev/ubi
ubi0      ubi0_0    ubi_ctrl
root@iSharing:~# ubinfo /dev/ubi0
ubi0
Volumes count:                           1
Logical eraseblock size:                 129024 bytes, 126.0 KiB
Total amount of logical eraseblocks:     1738 (224243712 bytes, 213.9 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       0
Count of reserved physical eraseblocks:  11
Current maximum erase counter value:     800
Minimum input/output unit size:          2048 bytes
Character device major/minor:            246:0
Present volumes:                         0

root@iSharing:~# nanddump -s 0 -f /mnt/rootfs/home/Public/mtd1.nand.dump /dev/mtd1
ECC failed: 0
ECC corrected: 2
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...
ECC: 1 corrected bitflip(s) at offset 0x05b9a800
ECC: 1 corrected bitflip(s) at offset 0x0d37c800
root@iSharing:~# nanddump -s 0 -f /mnt/rootfs/home/Public/mtd0.nand.dump /dev/mtd0
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...
root@iSharing:~#


The next step is the important step~My Kernel lacks support for ubifs~
It's too sad.....

I will use vim/xxd/qemu to watch content and use 'nandsim' to simulate 'nand ubifs' to try to mount file system. (maybe xfs)



Edited 4 time(s). Last edit at 12/02/2023 08:20AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 10:02AM
One more thing ..

I know that why the kernel stuck at booting when we use ox820-akitio.dtb.

	i2c-gpio {
		compatible = "i2c-gpio";
		gpios = <0x11 0x09 0x00 0x11 0x0a 0x00>;
		pinctrl-names = "default";
		pinctrl-0 = <0x12>;
		i2c-gpio,delay-us = <0x0a>;
		#address-cells = <0x01>;
		#size-cells = <0x00>;

		rtc@68 {
			compatible = "dallas,ds1307";
			reg = <0x68>;
		};
	};

on the Stock FW...

rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0
i2c-gpio i2c-gpio.0: using pins 41 (SDA) and 42 (SCL)

My Akitio mycloud mini / DC01(sell by Silver) motherboard,
it has no battery,no clock , so that I2C initial module for "dallas,ds1307" will be stuck.
just remove this node from the tree device.
all good for booting.

And ,this partition node has a big problem on Stock FW .

			nand@0 {
				reg = <0x00>;
				#address-cells = <0x01>;
				#size-cells = <0x01>;
				nand-ecc-mode = "soft";
				nand-ecc-algo = "hamming";

				partition@0 {
					label = "boot";
					reg = <0x00 0x26c0000>;
				};

				partition@26c0000 {
					label = "ubi";
					reg = <0x26c0000 0xd940000>;
				};
			};

it must be modified to , or kernel can't refer to device tree to mapping the address on the NAND, when machine uses Stock FW.
That's it !



Edited 1 time(s). Last edit at 12/02/2023 10:12AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 02:06PM
Quote

I am pretty sure that there is no ubi.ko module in the Kernel and rootfs packages you provided on DropBOX.

Because it is a builtin kernel module

# grep UBIFS config-5.4.224-oxnas-tld-1
CONFIG_UBIFS_FS=y

Therefore you have successfully attached it
root@iSharing:~# ubiattach -m 1 -d 0
[   86.620761][ T1384] ubi0: attaching mtd1
[   86.861642][ T1384] ubi0: scanning is finished
[   86.876157][ T1384] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 11, need 40
[   86.891458][ T1384] ubi0: attached mtd1 (name "data", size 217 MiB)
[   86.898122][ T1384] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[   86.906053][ T1384] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[   86.913669][ T1384] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[   86.921387][ T1384] ubi0: good PEBs: 1738, bad PEBs: 0, corrupted PEBs: 0
[   86.928289][ T1384] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   86.936437][ T1384] ubi0: max/mean erase counter: 800/132, WL threshold: 4096, image sequence number: 1359814330
[   86.946752][ T1384] ubi0: available PEBs: 0, total reserved PEBs: 1738, PEBs reserved for bad PEB handling: 11
[   86.957007][ T1385] ubi0: background thread "ubi_bgt0d" started, PID 1385
UBI device number 0, total 1738 LEBs (224243712 bytes, 213.9 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)

Ok, its name is "data"

root@iSharing:~# mtdinfo /dev/mtd1
mtd1
Name:                           data

Quote

The next step is the important step~My Kernel lacks support for ubifs~
It's too sad.....

Should not be sad at all for that reason :) it is fully supported.

Now, we need to look back at stock dmesg and try to match up with the original MTDs definition. I think the current DTS was defined as how OpenWrt wants to see it. They don't care about stock, and me neither.

But to be able to get data out of the mtd1, we should go back to the original definition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 12/02/2023 02:09PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 02:39PM
Stock

mtd0: 10000000 00020000 "NAND 256MiB 3,3V 8-bit" 
mtd1: 026c0000 00020000 "Boot partition" 
mtd2: 0d940000 00020000 "Data Partition"

So we change the env

In serial console:
setenv mtdparts 'mtdparts=41000000.nand:0x0000026c0000(Boot partition),-(Data Partition)'
And don't save the envs until we are satisfied that it works.

Boot into Debian, and
dmesg | grep mtdparts
dmesg | grep 0x0
cat /proc/mtd

And try to attach mtd1 again.

=====

And note that stock mtd0 is the entire flash (size 0x10000000, i.e. 256 MB). It's irrelevant. But if things don't work the way we expect, we'll include it as last resort.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 03:41PM
Quote

My Akitio mycloud mini / DC01(sell by Silver) motherboard,
it has no battery,no clock , so that I2C initial module for "dallas,ds1307" will be stuck.
just remove this node from the tree device.
all good for booting.

Cool! so yours is a variation of the original Akitio.

So the i2c-gpio node becomes:

i2c-gpio {
                compatible = "i2c-gpio";
                gpios = <&gpio1  9 GPIO_ACTIVE_HIGH
                         &gpio1 10 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_i2c>;
                i2c-gpio,delay-us = <10>;
                #address-cells = <1>;
                #size-cells = <0>;
        };
Is that correct?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/02/2023 04:02PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 03:44PM
Quote

And ,this partition node has a big problem on Stock FW .

nand@0 {
reg = <0x00>;
#address-cells = <0x01>;
#size-cells = <0x01>;
nand-ecc-mode = "soft";
nand-ecc-algo = "hamming";

partition@0 {
label = "boot";
reg = <0x00 0x26c0000>;
};

partition@26c0000 {
label = "ubi";
reg = <0x26c0000 0xd940000>;
};
};

it must be modified to , or kernel can't refer to device tree to mapping the address on the NAND, when machine uses Stock FW.

For booting Debian, it is irrelevant what's in the DTS for partitions. Because we already are using bootargs to tell the kernel to ignore the DTS nand partitions.

So if your MTDs are not what defined in u-boot envs mtdparts, then there is something wrong. You should check uImage to see if it is the original (without DTB appended).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/02/2023 05:10PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 02, 2023 09:40PM
Perhaps the original DTB has always been wrong? I have 2 of these devices that I gave up on as I was having issues getting them to boot and now that I go back an look at them they both have STMicroelectronics M41T80 for RTC not the Dallas 1307.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: