Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 12:28AM
Ray,

> 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.

It's more likely that there are many production batches that use different RTC chip, or no RTC. The original DTS came from OpenWrt, so I guess someone must have tested it before it got to the release.

Interesting that yours is another variation, IMO. Do they have a version label like Popo's box (DC01)?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 02:13AM
High res photos of board for one of my devices are available at WikiDevi. Markings indicate V1.01
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 03:27AM
bodhi Wrote:
-------------------------------------------------------
> 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
>

root@iSharing:~# dmesg | grep mtdparts
[    0.000000] 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 partition),-(Data Partition) earlyprintk=serial
root@iSharing:~# dmesg | grep 0x0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] 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 partition),-(Data Partition) earlyprintk=serial
[    7.768727] 0x000000000000-0x0000026c0000 : "boot"
[    7.775308] 0x0000026c0000-0x000010000000 : "data"
root@iSharing:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"

But, I saw dmesg log ..

[    7.552197] ONFI parameter recovery failed, aborting
[    7.557911] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.564963] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.570081] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.578355] Scanning device for bad blocks
[    7.747243] mtd: no closing ) found in partition name
[    7.753036] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.761607] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.768727] 0x000000000000-0x0000026c0000 : "boot"
[    7.775308] 0x0000026c0000-0x000010000000 : "data"

I saw the cmdlinepart.c of the kernel

	/* now look for name */
	if (*s == '(')
		delim = ')';
	if (delim) {
		char *p;
		name = ++s;
		p = strchr(name, delim);
		if (!p) {
			printk(KERN_ERR ERRP "no closing %c found in partition name\n", delim);
			return ERR_PTR(-EINVAL);
		}
		name_len = p - name;
		s = p + 1;
	} else {
		name = NULL;
		name_len = 13; /* Partition_000 */
	}

It checks the cmdline args to compare the partition name ,
shall we need to modify the device tree about nand partition name ?
I don't think so , you told that, kernel will replace the device tree information, right ?


>
> 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.

Yeah, so I can't nanddump whole of the MTD by using dd command.
That's the point ...
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 03:31AM
bodhi Wrote:
-------------------------------------------------------
>
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?

I use dtc in 'device-tree-compiler' package to decompile/recompile dts<->dtb
Notice that red marking, it cause kernel boot stuck (primary reason).

/dts-v1/;

/ {
	#address-cells = <0x01>;
	#size-cells = <0x01>;
	compatible = "akitio,mycloud\0oxsemi,ox820";
	model = "Akitio MyCloud";

	chosen {
		bootargs = "earlyprintk console=ttyS0,115200n8";
		stdout-path = "serial0:115200n8";
	};

	aliases {
		ethernet0 = "/soc/ethernet@40400000";
		serial0 = "/soc/apb-bridge@44000000/serial@200000";
		gpio0 = "/soc/apb-bridge@44000000/gpio@000000";
		gpio1 = "/soc/apb-bridge@44000000/gpio@100000";
		led-boot = "/leds/status";
		led-failsafe = "/leds/status";
		led-running = "/leds/status";
		led-upgrade = "/leds/status";
	};

	memory@60000000 {
		device_type = "memory";
		reg = <0x60000000 0x8000000>;
	};

	cpus {
		#address-cells = <0x01>;
		#size-cells = <0x00>;
		enable-method = "oxsemi,ox820-smp";

		cpu@0 {
			device_type = "cpu";
			compatible = "arm,arm11mpcore";
			clocks = <0x01>;
			reg = <0x00>;
		};

		cpu@1 {
			device_type = "cpu";
			compatible = "arm,arm11mpcore";
			clocks = <0x01>;
			reg = <0x01>;
		};
	};

	clocks {

		oscillator {
			compatible = "fixed-clock";
			#clock-cells = <0x00>;
			clock-frequency = <0x17d7840>;
			linux,phandle = <0x02>;
			phandle = <0x02>;
		};

		gmacclk {
			compatible = "fixed-clock";
			#clock-cells = <0x00>;
			clock-frequency = <0x7735940>;
			linux,phandle = <0x08>;
			phandle = <0x08>;
		};

		sysclk {
			compatible = "fixed-factor-clock";
			#clock-cells = <0x00>;
			clock-div = <0x04>;
			clock-mult = <0x01>;
			clocks = <0x02>;
			linux,phandle = <0x0d>;
			phandle = <0x0d>;
		};

		armclk {
			compatible = "fixed-factor-clock";
			#clock-cells = <0x00>;
			clock-div = <0x02>;
			clock-mult = <0x01>;
			clocks = <0x03>;
			linux,phandle = <0x01>;
			phandle = <0x01>;
		};
	};

	soc {
		#address-cells = <0x01>;
		#size-cells = <0x01>;
		compatible = "simple-bus";
		ranges;
		interrupt-parent = <0x04>;

		nand-controller@41000000 {
			compatible = "oxsemi,ox820-nand";
			reg = <0x41000000 0x100000>;
			clocks = <0x05 0x09>;
			resets = <0x06 0x0f>;
			#address-cells = <0x01>;
			#size-cells = <0x00>;
			status = "okay";
			pinctrl-names = "default";
			pinctrl-0 = <0x07>;

			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 = "data";
					reg = <0x26c0000 0xd940000>;
				};
			};
		};

		ethernet@40400000 {
			compatible = "oxsemi,ox820-dwmac\0snps,dwmac";
			reg = <0x40400000 0x2000>;
			interrupts = <0x00 0x08 0x04 0x00 0x11 0x04>;
			interrupt-names = "macirq\0eth_wake_irq";
			phy-mode = "rgmii";
			clocks = <0x05 0x07 0x08>;
			clock-names = "gmac\0stmmaceth";
			resets = <0x06 0x06>;
			oxsemi,sys-ctrl = <0x09>;
			status = "okay";
			pinctrl-names = "default";
			pinctrl-0 = <0x0a>;
		};

		ehci@40200100 {
			compatible = "plxtech,nas782x-ehci";
			reg = <0x40200100 0xf00>;
			interrupts = <0x00 0x07 0x04>;
			clocks = <0x05 0x06 0x0b 0x05 0x0c>;
			clock-names = "usb\0refsrc\0phyref";
			resets = <0x06 0x04 0x06 0x05 0x06 0x1a>;
			reset-names = "host\0phya\0phyb";
			oxsemi,sys-ctrl = <0x09>;
			oxsemi,ehci_use_pllb;
			status = "okay";
			#address-cells = <0x01>;
			#size-cells = <0x00>;

			port@1 {
				reg = <0x01>;
				#trigger-source-cells = <0x00>;
			};

			port@2 {
				reg = <0x02>;
				#trigger-source-cells = <0x00>;
			};
		};

		apb-bridge@44000000 {
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			compatible = "simple-bus";
			ranges = <0x00 0x44000000 0x1000000>;

			pinctrl {
				compatible = "oxsemi,ox820-pinctrl";
				oxsemi,sys-ctrl = <0x09>;
				linux,phandle = <0x0c>;
				phandle = <0x0c>;

				uart0 {
					linux,phandle = <0x0e>;
					phandle = <0x0e>;

					uart0 {
						pins = "gpio30\0gpio31";
						function = "fct5";
					};
				};

				uart0_modem {

					uart0_modem_a {
						pins = "gpio24\0gpio24\0gpio26\0gpio27";
						function = "fct4";
					};

					uart0_modem_b {
						pins = "gpio28\0gpio29";
						function = "fct5";
					};
				};

				uart1 {

					uart1 {
						pins = "gpio7\0gpio8";
						function = "fct4";
					};
				};

				uart1_modem {

					uart1_modem {
						pins = "gpio5\0gpio6\0gpio40\0gpio41\0gpio42\0gpio43";
						function = "fct4";
					};
				};

				etha_mdio {
					linux,phandle = <0x0a>;
					phandle = <0x0a>;

					etha_mdio {
						pins = "gpio3\0gpio4";
						function = "fct1";
					};
				};

				nand {
					linux,phandle = <0x07>;
					phandle = <0x07>;

					nand {
						pins = "gpio12\0gpio13\0gpio14\0gpio15\0gpio16\0gpio17\0gpio18\0gpio19\0gpio20\0gpio21\0gpio22\0gpio23\0gpio24";
						function = "fct1";
					};
				};

				i2c-0 {
					linux,phandle = <0x12>;
					phandle = <0x12>;

					i2c {
						pins = "gpio41\0gpio42";
						function = "gpio";
					};
				};

				buttons-0 {
					linux,phandle = <0x13>;
					phandle = <0x13>;

					buttons {
						pins = "gpio11\0gpio38";
						function = "gpio";
					};
				};

				leds-0 {
					linux,phandle = <0x15>;
					phandle = <0x15>;

					leds {
						pins = "gpio29";
						function = "gpio";
					};
				};

				poweroff-0 {
					linux,phandle = <0x16>;
					phandle = <0x16>;

					poweroff {
						pins = "gpio45";
						function = "gpio";
					};
				};
			};

			gpio@000000 {
				compatible = "oxsemi,ox820-gpio";
				reg = <0x000000 0x100000>;
				interrupts = <0x00 0x15 0x04>;
				#gpio-cells = <0x02>;
				gpio-controller;
				interrupt-controller;
				#interrupt-cells = <0x02>;
				ngpios = <0x20>;
				oxsemi,gpio-bank = <0x00>;
				gpio-ranges = <0x0c 0x00 0x00 0x20>;
				linux,phandle = <0x14>;
				phandle = <0x14>;
			};

			gpio@100000 {
				compatible = "oxsemi,ox820-gpio";
				reg = <0x100000 0x100000>;
				interrupts = <0x00 0x16 0x04>;
				#gpio-cells = <0x02>;
				gpio-controller;
				interrupt-controller;
				#interrupt-cells = <0x02>;
				ngpios = <0x12>;
				oxsemi,gpio-bank = <0x01>;
				gpio-ranges = <0x0c 0x00 0x20 0x12>;
				linux,phandle = <0x11>;
				phandle = <0x11>;
			};

			serial@200000 {
				compatible = "ns16550a";
				reg = <0x200000 0x100000>;
				interrupts = <0x00 0x17 0x04>;
				reg-shift = <0x00>;
				fifo-size = <0x10>;
				reg-io-width = <0x01>;
				current-speed = <0x1c200>;
				no-loopback-test;
				status = "okay";
				clocks = <0x0d>;
				resets = <0x06 0x11>;
				pinctrl-names = "default";
				pinctrl-0 = <0x0e>;
			};

			serial@300000 {
				compatible = "ns16550a";
				reg = <0x300000 0x100000>;
				interrupts = <0x00 0x18 0x04>;
				reg-shift = <0x00>;
				fifo-size = <0x10>;
				reg-io-width = <0x01>;
				current-speed = <0x1c200>;
				no-loopback-test;
				status = "disabled";
				clocks = <0x0d>;
				resets = <0x06 0x12>;
				#pinctrl-names = "default";
				#pinctrl-0 = <0x0e>;
			};

			rps@400000 {
				#address-cells = <0x01>;
				#size-cells = <0x01>;
				compatible = "simple-bus";
				ranges = <0x00 0x400000 0x100000>;

				interrupt-controller@0 {
					compatible = "oxsemi,ox820-rps-irq\0oxsemi,ox810se-rps-irq";
					interrupt-controller;
					reg = <0x00 0x200>;
					interrupts = <0x00 0x05 0x04>;
					#interrupt-cells = <0x01>;
					valid-mask = <0xffffffff>;
					clear-mask = <0xffffffff>;
					linux,phandle = <0x0f>;
					phandle = <0x0f>;
				};

				timer@200 {
					compatible = "oxsemi,ox820-rps-timer";
					reg = <0x200 0x40>;
					clocks = <0x0d>;
					interrupt-parent = <0x0f>;
					interrupts = <0x04>;
				};
			};

			pcie-phy@a00000 {
				compatible = "oxsemi,ox820-pcie-phy";
				reg = <0xa00000 0x10>;
				#phy-cells = <0x00>;
				resets = <0x06 0x0e>;
				reset-names = "phy";
				status = "okay";
				linux,phandle = <0x10>;
				phandle = <0x10>;
			};

			sys-ctrl@e00000 {
				compatible = "oxsemi,ox820-sys-ctrl\0syscon\0simple-mfd";
				reg = <0xe00000 0x200000>;
				linux,phandle = <0x09>;
				phandle = <0x09>;

				reset-controller {
					compatible = "oxsemi,ox820-reset\0oxsemi,ox810se-reset";
					#reset-cells = <0x01>;
					linux,phandle = <0x06>;
					phandle = <0x06>;
				};

				stdclk {
					compatible = "oxsemi,ox820-stdclk\0oxsemi,ox810se-stdclk";
					#clock-cells = <0x01>;
					linux,phandle = <0x05>;
					phandle = <0x05>;
				};

				plla {
					compatible = "plxtech,nas782x-plla";
					#clock-cells = <0x00>;
					clocks = <0x02>;
					linux,phandle = <0x03>;
					phandle = <0x03>;
				};

				pllb {
					compatible = "plxtech,nas782x-pllb";
					#clock-cells = <0x00>;
					clocks = <0x02>;
					resets = <0x06 0x1f>;
					linux,phandle = <0x0b>;
					phandle = <0x0b>;
				};
			};
		};

		apb-bridge@47000000 {
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			compatible = "simple-bus";
			ranges = <0x00 0x47000000 0x2000>;

			scu@0 {
				compatible = "arm,arm11mp-scu";
				reg = <0x00 0x100>;
			};

			local-timer@600 {
				compatible = "arm,arm11mp-twd-timer";
				reg = <0x600 0x20>;
				interrupts = <0x01 0x0d 0x304>;
				clocks = <0x01>;
			};

			watchdog@620 {
				compatible = "mpcore_wdt";
				reg = <0x620 0x20>;
				interrupts = <0x01 0x0e 0x304>;
				clocks = <0x01>;
			};

			gic@1000 {
				compatible = "arm,arm11mp-gic";
				interrupt-controller;
				#interrupt-cells = <0x03>;
				reg = <0x1000 0x1000 0x100 0x500>;
				linux,phandle = <0x04>;
				phandle = <0x04>;
			};
		};

		pcie@47c00000 {
			compatible = "plxtech,nas782x-pcie";
			device_type = "pci";
			#address-cells = <0x03>;
			#size-cells = <0x02>;
			ranges = <0x82000000 0x00 0x48000000 0x48000000 0x00 0x2000000 0xc2000000 0x00 0x4a000000 0x4a000000 0x00 0x1e00000 0x81000000 0x00 0x4be00000 0x4be00000 0x00 0x100000 0x80000000 0x00 0x4bf00000 0x4bf00000 0x00 0x100000>;
			bus-range = <0x00 0x7f>;
			reg = <0x47c00000 0x1000 0x47d00000 0x100>;
			phys = <0x10>;
			phy-names = "pcie-phy";
			#interrupt-cells = <0x01>;
			interrupt-map-mask = <0x00 0x00 0x00 0x00>;
			interrupt-map = <0x00 0x00 0x00 0x00 0x04 0x00 0x13 0x304>;
			gpios = <0x11 0x0c 0x00>;
			clocks = <0x05 0x08 0x0b>;
			clock-names = "pcie\0busclk";
			resets = <0x06 0x07>;
			reset-names = "pcie";
			plxtech,pcie-hcsl-bit = <0x02>;
			plxtech,pcie-ctrl-offset = <0x120>;
			plxtech,pcie-outbound-offset = <0x138>;
			status = "disabled";
		};

		pcie@47e00000 {
			compatible = "plxtech,nas782x-pcie";
			device_type = "pci";
			#address-cells = <0x03>;
			#size-cells = <0x02>;
			ranges = <0x82000000 0x00 0x4c000000 0x4c000000 0x00 0x2000000 0xc2000000 0x00 0x4e000000 0x4e000000 0x00 0x1e00000 0x81000000 0x00 0x4fe00000 0x4fe00000 0x00 0x100000 0x80000000 0x00 0x4ff00000 0x4ff00000 0x00 0x100000>;
			bus-range = <0x80 0xff>;
			reg = <0x47e00000 0x1000 0x47f00000 0x100>;
			phys = <0x10>;
			phy-names = "pcie-phy";
			#interrupt-cells = <0x01>;
			interrupt-map-mask = <0x00 0x00 0x00 0x00>;
			interrupt-map = <0x00 0x00 0x00 0x00 0x04 0x00 0x14 0x304>;
			clocks = <0x05 0x0a 0x0b>;
			clock-names = "pcie\0busclk";
			resets = <0x06 0x17>;
			reset-names = "pcie";
			plxtech,pcie-hcsl-bit = <0x03>;
			plxtech,pcie-ctrl-offset = <0x124>;
			plxtech,pcie-outbound-offset = <0x174>;
			status = "disabled";
		};

		sata@45900000 {
			compatible = "plxtech,nas782x-sata";
			reg = <0x45900000 0x20000 0x459a0000 0x40 0x459b0000 0x20 0x459e0000 0x2000 0x44900000 0x0c 0x50000000 0x1000>;
			interrupts = <0x00 0x12 0x04>;
			clocks = <0x05 0x04>;
			resets = <0x06 0x0b 0x06 0x0c 0x06 0x0d>;
			reset-names = "sata\0link\0phy";
			nr-ports = <0x02>;
			status = "okay";
		};
	};

	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>;
		status = "okay";

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

	keys {
		compatible = "gpio-keys-polled";
		pinctrl-names = "default";
		pinctrl-0 = <0x13>;
		#address-cells = <0x01>;
		#size-cells = <0x00>;
		poll-interval = <0x64>;

		power {
			label = "power";
			gpios = <0x14 0x0b 0x01>;
			linux,code = <0x74>;
		};

		reset {
			label = "reset";
			gpios = <0x11 0x06 0x01>;
			linux,code = <0x198>;
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <0x15>;

		status {
			label = "akitio:red:status";
			gpios = <0x14 0x1d 0x00>;
		};
	};

	gpio-poweroff {
		compatible = "gpio-poweroff";
		pinctrl-names = "default";
		pinctrl-0 = <0x16>;
		gpios = <0x11 0x0d 0x02>;
	};
};


That's why I use NFS boot ...
I can try everything ....ahuh!
To replace file so easy before reboot.



Edited 2 time(s). Last edit at 12/05/2023 07:49AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 04:13AM
bodhi Wrote:
-------------------------------------------------------
>
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.

you are right !!

root@iSharing:/boot# grep UBIFS config-5.4.224-oxnas-tld-1
CONFIG_UBIFS_FS=y
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_ZSTD=y
# CONFIG_UBIFS_ATIME_SUPPORT is not set
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_SECURITY=y
# CONFIG_UBIFS_FS_AUTHENTICATION is not set
root@iSharing:/boot# 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:/boot# 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:/boot# ubinfo -a /dev/ubi2
ubi2
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

Volume ID:   0 (on ubi2)
Type:        dynamic
Alignment:   1
Size:        1723 LEBs (222308352 bytes, 212.0 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 246:1

and , I can see 'rootfs', but I can't mount, even nanddump in another ubuntu after I use nandsim to simulate..



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

> I use dtc in 'device-tree-compiler' package to
> decompile/recompile dts<->dtb
> Notice that red marking, it cause kernel boot
> stuck (primary reason).

Here is my reminder. Any time you change the DTB, you need to tell me. And describe what change. It would be best that you have a new DTS so you can do a diff. Otherwise, I could waste my time thinking you are running the DTB as is from the kernel release.

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

[ 7.747243] mtd: no closing ) found in partition name

OK so that's the problem with the MTD partitions. Let's play with it a bit

In serial console,
setenv mtdparts 'mtdparts=41000000.nand:39680k(Boot),-(Data)'
printenv
and boot
boot

Log into Debian, and
dmesg | grep -2 mtdparts
dmesg | grep -2 0x0
cat /proc/mtd

And try to attach mtd1 again.

====

Question: do you really have anything to copy from the stock rootfs? or you just want to see if you can read it?

If you don't have anything important to save, then perhaps you should back up this mtd1 with nanddump (do not use dd), and use flash_erase to wipe it, and then create a new UBIFS file system on it.

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



Edited 1 time(s). Last edit at 12/03/2023 02:51PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 07:33PM
> ====
>
> Question: do you really have anything to copy from
> the stock rootfs? or you just want to see if you
> can read it?
>
> If you don't have anything important to save, then
> perhaps you should back up this mtd1 with nanddump
> (do not use dd), and use flash_erase to
> wipe it, and then create a new UBIFS file system
> on it.

For me, giving up on rescuing Stock FW is no longer an important goal. I can always go to the next stage and erase the NAND as you said and try a new UBIFS Partition job.

These past two weeks have been an eye-opener for me because of my situation and the help of your appropriate reminders. For an IT person, the passion for research and exploration will never stop.

I know his STOCK FW is outdated, and the U-BOOT is so old that it doesn't have any advanced functionality to do anything.

There was a lot of information during this time, and I learned a lot. Fortunately, in this era, there are many explorers like you who have conducted a lot of attempts and research over a long period of time and developed very practical tools. And I have followed in your footsteps to where I am now.

If I can successfully mount STOCK FW and obtain the data inside, people who have the same situation in the future will be able to get help from my experience.

Anyway, I have used the dd and Nanddump tools to back up ubi0_0 using these two methods (as far as I know, the archive data obtained is slightly different).

As far as we know so far, we can explore two mtds under the new kernel, which are also derived from the definition of dtb.

dev: size erasesize name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "rootfs"

mtd0: I can't ubiattach at all, and I can't perform nanddump, so I can only use the dd command to backup.

mtd1: I can successfully ubiattach and use nanddump and dd commands for backup. Although the file content and capacity obtained by the two backup methods will be different
1.dd command -> mtd1 and ubi0_0
2.nandsim -> ubi0_0
With the archive, I can use nandsim or other tools that I don't know about to continue to explore the reasons in the subsequent days. (Maybe UBIFS Rescue Tool can be developed)

I don't think I'm wasting my time. My situation may inspire more people like me who have just stepped into the Embedded System in the future.
Or get some help for others with serious conditions.

Especially the dtb of Akitio Mycloud mini, there is still a lot of room for improvement. For example, rtc settings and GPIO verification of Power/Reset Button.

BTW, my machine is not DC01. My machine is the same OEM product as OpenWRT and Ray's machine. It's just that I don't have the RTC on the motherboard.

But everything goes as you said and I am always ready to move on to the next phase of my research.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 08:21PM
>
> In serial console,
>
> setenv mtdparts
> 'mtdparts=41000000.nand:39680k(Boot),-(Data)'
> printenv
>
> and boot
>
> boot
>


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: Akitio MyCloud
[    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:39680k(Boot),-(Data) 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: 240624K/262144K available (8192K kernel code, 234K rwdata, 2068K rodata, 1024K init, 258K bss, 21520K 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.008770][    T0] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.020106][    T0] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.026867][    T0] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.036008][    T0] GIC: PPI13 is secure or misconfigured
[    0.041418][    T0] GIC: PPI13 is secure or misconfigured
[    0.047109][    T0] Console: colour dummy device 80x30
[    0.052328][    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.122421][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.131079][    T0] *** VALIDATE tmpfs ***
[    0.136506][    T0] *** VALIDATE proc ***
[    0.140689][    T0] *** VALIDATE cgroup1 ***
[    0.144988][    T0] *** VALIDATE cgroup2 ***
[    0.149427][    T0] CPU: Testing write buffer coherency: ok
[    0.157496][    T1] Setting up static identity map for 0x60100000 - 0x60100038
[    0.165066][    T1] rcu: Hierarchical SRCU implementation.
[    0.171594][    T1] smp: Bringing up secondary CPUs ...
[    0.178063][    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.250117][    T1] devtmpfs: initialized
[    0.261376][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.271941][    T1] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.279567][    T1] prandom: seed boundary self test passed
[    0.289326][    T1] prandom: 100 self tests passed
[    0.294118][    T1] pinctrl core: initialized pinctrl subsystem
[    0.302187][    T1] NET: Registered protocol family 16
[    0.309204][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.320107][    T1] cpuidle: using governor ladder
[    0.325099][    T1] cpuidle: using governor menu
[    6.280913][    T1] vgaarb: loaded
[    6.285373][    T1] SCSI subsystem initialized
[    6.290565][    T1] usbcore: registered new interface driver usbfs
[    6.297105][    T1] usbcore: registered new interface driver hub
[    6.303216][    T1] usbcore: registered new device driver usb
[    6.309184][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.314859][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.324692][    T1] PTP clock support registered
[    6.331146][    T1] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    6.339120][    T1] *** VALIDATE bpf ***
[    6.343623][    T1] *** VALIDATE ramfs ***
[    6.367029][    T1] NET: Registered protocol family 2
[    6.372416][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    6.381447][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.390758][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    6.399216][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.407109][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    6.414387][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.421672][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    6.429598][    T1] NET: Registered protocol family 1
[    6.436047][    T1] RPC: Registered named UNIX socket transport module.
[    6.442728][    T1] RPC: Registered udp transport module.
[    6.448104][    T1] RPC: Registered tcp transport module.
[    6.453521][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.460633][    T1] PCI: CLS 0 bytes, default 32
[    6.465715][    T1] Unpacking initramfs...
[    7.202168][    T1] Freeing initrd memory: 6288K
[    7.208184][    T1] Initialise system trusted keyrings
[    7.213534][    T1] Key type blacklist registered
[    7.218606][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.239659][    T1] zbud: loaded
[    7.248960][    T1] NFS: Registering the id_resolver key type
[    7.254837][    T1] Key type id_resolver registered
[    7.259696][    T1] Key type id_legacy registered
[    7.264468][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.271866][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.279915][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    7.288396][    T1] fuse: init (API version 7.31)
[    7.293414][    T1] *** VALIDATE fuse ***
[    7.297420][    T1] *** VALIDATE fuse ***
[    7.302479][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    7.309941][    T1] orangefs_init: module version upstream loaded
[    7.363530][    T1] Key type asymmetric registered
[    7.368314][    T1] Asymmetric key parser 'x509' registered
[    7.373990][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    7.389368][    T1] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.397928][    T1] printk: console [ttyS0] disabled
[    7.403092][    T1] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    7.412656][    T1] printk: console [ttyS0] enabled
[    7.412656][    T1] printk: console [ttyS0] enabled
[    7.422389][    T1] printk: bootconsole [earlycon0] disabled
[    7.422389][    T1] printk: bootconsole [earlycon0] disabled
[    7.449054][    T1] loop: module loaded
[    7.455872][    T1] scsi host0: sata_oxnas
[    7.461309][    T1] scsi host1: sata_oxnas
[    7.465868][    T1] ata1: SATA max UDMA/133 irq 57
[    7.470645][    T1] ata2: SATA max UDMA/133 irq 57
[    7.475581][   T75] sata_oxnas: resetting SATA core
[    7.541486][    T1] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    7.550899][    T1] ONFI parameter recovery failed, aborting
[    7.556613][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    7.563665][    T1] nand: Hynix NAND 256MiB 3,3V 8-bit
[    7.568783][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.577057][    T1] Scanning device for bad blocks
[    7.744972][    T1] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.753582][    T1] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.760673][    T1] 0x000000000000-0x0000026c0000 : "boot"
[    7.767290][    T1] 0x0000026c0000-0x000010000000 : "data"
[    7.775395][    T1] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.782277][    T1] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    7.788789][    T1] oxnas-dwmac 40400000.ethernet: no reset control found
[    7.861614][    T1] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    7.869258][    T1] oxnas-dwmac 40400000.ethernet: DWMAC1000
[    7.875043][    T1] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    7.883048][    T1] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    7.891020][    T1] oxnas-dwmac 40400000.ethernet: COE Type 2
[    7.896770][    T1] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    7.904337][    T1] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    7.911311][    T1] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    7.918760][    T1] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    7.926069][    T1] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    7.932446][    T1] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    7.986260][    T1] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    7.996513][    T1] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    8.001216][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    8.007769][    T1] PPP generic driver version 2.4.2
[    8.018931][   T75] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    8.018954][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.026867][   T75] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    8.034088][    T1] ehci-pci: EHCI PCI platform driver
[    8.047587][   T75] ata1.00: configured for UDMA/133
[    8.053271][    T7] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    8.063820][   T79] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    8.072394][   T79] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.078499][   T77] sata_oxnas: resetting SATA core
[    8.078625][   T79] sd 0:0:0:0: [sda] Write Protect is off
[    8.089144][   T79] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.098949][   T75] sata_oxnas: resetting SATA core
[    8.251215][    T1] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    8.257418][    T1] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    8.266181][    T1] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    8.301224][    T1] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    8.308249][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    8.317222][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.325186][    T1] usb usb1: Product: EHCI Host Controller
[    8.330739][    T1] usb usb1: Manufacturer: Linux 5.4.224-oxnas-tld-1 ehci_hcd
[    8.337968][    T1] usb usb1: SerialNumber: 40200100.ehci
[    8.344360][    T1] hub 1-0:1.0: USB hub found
[    8.348864][    T1] hub 1-0:1.0: 2 ports detected
[    8.354877][    T1] usbcore: registered new interface driver cdc_wdm
[    8.361500][    T1] usbcore: registered new interface driver usb-storage
[    8.368381][    T1] usbcore: registered new interface driver usbserial_generic
[    8.375672][    T1] usbserial: USB Serial support registered for generic
[    8.383267][    T1] mousedev: PS/2 mouse device common for all mice
[    8.389634][    T1] i2c /dev entries driver
[    8.395253][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.401735][    T1] usbcore: registered new interface driver usbhid
[    8.407979][    T1] usbhid: USB HID core driver
[    8.414451][    T1] NET: Registered protocol family 10
[    8.421524][    T1] Segment Routing with IPv6
[    8.426037][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    8.435079][    T1] NET: Registered protocol family 17
[    8.440683][    T1] Key type dns_resolver registered
[    8.446553][    T1] registered taskstats version 1
[    8.451420][    T1] Loading compiled-in X.509 certificates
[    8.457072][    T1] zswap: loaded using pool lzo/zbud
[    8.462855][    T1] Key type ._fscrypt registered
[    8.467548][    T1] Key type .fscrypt registered
[    8.562314][    T1] Key type big_key registered
[    8.606261][    T1] Key type encrypted registered
[    8.615856][    T1] hctosys: unable to open rtc device (rtc0)
[    8.623132][    T1] oxnas-dwmac 40400000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY]
[    8.635353][    T1] oxnas-dwmac 40400000.ethernet eth0: No Safety Features support found
[    8.643658][    T1] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[    8.653102][    T1] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[    8.660134][    T1] oxnas-dwmac 40400000.ethernet eth0: configuring for phy/rgmii link mode
[    8.752832][   T77] ata2: SATA link down (SStatus 0 SControl 300)
[    9.781209][   T75] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    9.790003][   T75] ata1.00: configured for UDMA/133
[   10.072691][   T79]  sda: sda1
[   10.078307][   T79] sd 0:0:0:0: [sda] Attached SCSI disk
[   10.085437][   T26] sda: detected capacity change from 0 to 500107862016
[   12.851880][    T5] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   12.861240][   T21] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   12.891212][    T1] IP-Config: Complete:
[   12.895193][    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.906240][    T1]      host=192.168.20.249, domain=, nis-domain=(none)
[   12.913024][    T1]      bootserver=192.168.20.252, rootserver=192.168.20.252, rootpath=
[   12.923686][    T1] Freeing unused kernel memory: 1024K
[   12.962480][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.968816][    T1] Run /init as init process



>
> Log into Debian, and
>
> dmesg | grep -2 mtdparts
> dmesg | grep -2 0x0
> cat /proc/mtd
>
>

root@iSharing:~# dmesg | grep -2 mtdparts
[    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-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:39680k(Boot),-(Data) 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)
root@iSharing:~# dmesg | grep -2 0x0
[    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
--
[    7.744972] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.753582] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.760673] 0x000000000000-0x0000026c0000 : "boot"
[    7.767290] 0x0000026c0000-0x000010000000 : "data"
[    7.775395] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    7.782277] oxnas-dwmac 40400000.ethernet: PTP uses main clock
root@iSharing:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"
root@iSharing:~#


still no changes

> And try to attach mtd1 again.
>

root@iSharing:~# ubiattach -m 0
ubiattach: error!: cannot attach mtd0
           error 22 (Invalid argument)
root@iSharing:~# ubiattach -m 1
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:~# ubinfo /dev/
Display all 130 possibilities? (y or n)
root@iSharing:~# ubinfo /dev/ubi0_0
Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        1723 LEBs (222308352 bytes, 212.0 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 246:1
root@iSharing:~#

dmesg

[  316.985538] ubi0: attaching mtd0
[  317.028705] ubi0: scanning is finished
[  317.033187] ubi0 error: ubi_read_volume_table: the layout volume was not found
[  317.041569] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd0, error -22
[  319.512919] ubi0: attaching mtd1
[  319.755653] ubi0: scanning is finished
[  319.769548] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 11, need 40
[  319.787095] ubi0: attached mtd1 (name "data", size 217 MiB)
[  319.793477] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[  319.801592] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[  319.809274] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[  319.816967] ubi0: good PEBs: 1738, bad PEBs: 0, corrupted PEBs: 0
[  319.823905] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[  319.832097] ubi0: max/mean erase counter: 800/132, WL threshold: 4096, image sequence number: 1359814330
[  319.842452] ubi0: available PEBs: 0, total reserved PEBs: 1738, PEBs reserved for bad PEB handling: 11
[  319.852736] ubi0: background thread "ubi_bgt0d" started, PID 1410

Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 08:34PM
bodhi Wrote:
-------------------------------------------------------
>
Quote

[ 7.747243] mtd: no closing ) found in
> partition name
>
> OK so that's the problem with the MTD partitions.
> Let's play with it a bit
>
> In serial console,
>
> setenv mtdparts
> 'mtdparts=41000000.nand:39680k(Boot),-(Data)'
> printenv
>
> and boot
>
> boot
>
>

It seems 'Cut' too long word from kernel cmdline ..
IIRC, It's a long issue ....


And another thing, I can simulate the mtd partition as STOCK FW by using mtdutil and nandsim.

modprobe nandsim first_id_byte=0x98 second_id_byte=0xd1 third_id_byte=0x90 fourth_id_byte=0x15 parts=4,8

dev:    size   erasesize  name
mtd0: 10000000 00020000 "NAND simulator partition 0"
mtd1: 026c0000 00020000 "NAND simulator partition 1"
mtd2: 0d940000 00020000 "NAND simulator partition 2"
root@debdev:~# mtdinfo
Count of MTD devices:           3
Present MTD devices:            mtd0, mtd1, mtd2
Sysfs interface supported:      yes



Edited 1 time(s). Last edit at 12/03/2023 08:46PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 09:31PM
Popo,

> But everything goes as you said and I am always
> ready to move on to the next phase of my research.

MTDs defintiion is still wrong.

[    7.744972] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    7.753582] Creating 2 MTD partitions on "41000000.nand-controller":
[    7.760673] 0x000000000000-0x0000026c0000 : "boot"
[    7.767290] 0x0000026c0000-0x000010000000 : "data"

You seem to ignore what I asked about this.

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).

I'm pretty sure that your uImage is the one with DTB appended. And it is worng one to use (during boot, the DTB was already loaded).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 03, 2023 10:10PM
Quote
Popo
BTW, my machine is not DC01. My machine is the same OEM product as OpenWRT and Ray's machine. It's just that I don't have the RTC on the motherboard.

Are you sure you have no RTC on the motherboard? I posted a link to an image of my board which does have an RTC IC, just not the one referenced in the DTS. On the bottom of the board there is a small battery marked BT1 the clock RTC IC is marked D3 and one my device has the ST Microelectronics logo and a part number M41T0 which I believe corresponds to the M41T80 which uses rtc-m41t80.c driver under Linux.

In any case it would be interesting to see if your example differs from the photos posted at AKiTio MyCloud Mini

Ray
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 04, 2023 01:28AM
bodhi Wrote:
-------------------------------------------------------
> Popo,
>
> > But everything goes as you said and I am always
> > ready to move on to the next phase of my
> research.
>
> MTDs defintiion is still wrong.
>
>
> [    7.744972] 2 fixed-partitions partitions found
> on MTD device 41000000.nand-controller
> [    7.753582] Creating 2 MTD partitions on
> "41000000.nand-controller":
> [    7.760673] 0x000000000000-0x0000026c0000 :
> "boot"
> [    7.767290] 0x0000026c0000-0x000010000000 :
> "data"
>
>
> You seem to ignore what I asked about this.
>
>
> 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).
>
>
> I'm pretty sure that your uImage is the one with
> DTB appended. And it is worng one to use (during
> boot, the DTB was already loaded).


OK!! I will do it and make sure again ...
ready to move on to the next phase.
Thanks.


BTW, After I fix the dtb for power button,
I can completely power down the machine.



Edited 1 time(s). Last edit at 12/04/2023 01:43AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 04, 2023 01:34AM
rayknight Wrote:
-------------------------------------------------------
>
Quote
Popo
> BTW, my machine is not DC01. My machine is the
> same OEM product as OpenWRT and Ray's machine.
> It's just that I don't have the RTC on the
> motherboard.
>
>
> Are you sure you have no RTC on the motherboard?
> I posted a link to an image of my board which does
> have an RTC IC, just not the one referenced in the
> DTS. On the bottom of the board there is a small
> battery marked BT1 the clock RTC IC is marked D3
> and one my device has the ST Microelectronics logo
> and a part number M41T0 which I believe
> corresponds to the M41T80 which uses rtc-m41t80.c
> driver under Linux.
>
> In any case it would be interesting to see if your
> example differs from the photos posted at
> AKiTio
> MyCloud Mini

>
> Ray

as you can see mine ...

my akitio motherboard image

I see the battery and rtc on the motherboard...

So embarrassing~haha

but, now ! after fix dtb, I can completely power off machine!
It's good situation...



Edited 1 time(s). Last edit at 12/04/2023 01:50AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 05, 2023 12:49AM
Popo Wrote:
> but, now ! after fix dtb, I can completely power
> off machine!
> It's good situation...

Can you please post the your modified dts file?

Thanks,
Ray
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 05, 2023 07:47AM
Hi, Ray :

Please refer this post ,
after you edit this dts file,
please use dtc to compile it and replace the file in /boot/dts/ox820-akitio.dtb.

dtc -I dts -O dtb ox820-akitio.dts > ox820-akitio.dtb
reboot

dtc in the device-tree-compiler package,
please apt install it first.

about RTC,
can you see the module to be opened ?

grep CONFIG_RTC_DRV_DS1307 config-5.4.224-oxnas-tld-1

according to this source code
m41t0/m41t00 was already supported ...

Regards.



Edited 4 time(s). Last edit at 12/05/2023 08:17AM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 05, 2023 01:43PM
Popo,

> >
> > 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).
> >
> >
>
> OK!! I will do it and make sure again ...
> ready to move on to the next phase.

This could be the cause of problems you've seen and potential problems you will see. Wrong mtdparts is just an indicator.

Also please post the current DTS that you are using to compile the DTB. If I cannot see the exact kernel you are running, then I'll have no idea why something is strange or not working!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 06, 2023 10:27PM
After these three days of research and study. I successfully restored all data in mtd0/mtd1. I will make a note here first, and also give a big warning and pre-processing suggestions to those friends who suddenly cannot mount UBIFS.
Of course, this is a very big title that involves UBIFS format knowledge. Fortunately, with the efforts of many people, I found some useful tools and scripts during the rescue process. Unfortunately, relying on these tools alone does not guarantee a successful rescue. We have to be patient and manually analyze and correct the data. (UBIFS is a very special data format, which includes the meaning of OOB for data modification.)

My suggestions are as follows:
1. Do not attempt to mount NAND again. Make sure that all operations you perform on NAND are read-only at every step.
2. Try booting from HDD or any method other than Stock FW, such as the method I used during this time. Boot the hard drive using Debian. And use tools to back up NAND.
(1). Taking my machine as an example, try to see if you can see /dev/mtd0 and /dev/mtd1. Of course, you must ensure that the FDT you launch uses the correct device tree. This step is very important, if you use the wrong DTB file, then each MTD part of the NAND will be different. Take me for example.

Don't worry about getting the name right. Just pay attention to whether the order and size of each block of mtd is correct.
[    7.768727] 0x000000000000-0x0000026c0000 : "boot"
[    7.775308] 0x0000026c0000-0x000010000000 : "data"

root@iSharing:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 026c0000 00020000 "boot"
mtd1: 0d940000 00020000 "data"

If the information in this step is not 100% correct, everything you do later will be meaningless.

(2) Next, make sure you have installed the mtd-utils package. This kit is designed to successfully retrieve all current raw data from NAND (regardless of whether the data is corrupt or has errors). This step is performed so that after backing up the original NAND data to an archive, we will use other Linux systems (eg: debian/ubuntu) to analyze and rescue the data.
My backup method is as follows. I also tried to compare whether there is any difference between using the nanddump tool and using the dd command to extract the raw data.


Usage: nanddump [OPTIONS] MTD-device
Dumps the contents of a nand mtd partition.

-h         --help               Display this help and exit
           --version            Output version information and exit
           --bb=METHOD          Choose bad block handling method (see below).
-a         --forcebinary        Force printing of binary data to tty
-c         --canonicalprint     Print canonical Hex+ASCII dump
-f file    --file=file          Dump to file
-l length  --length=length      Length
-n         --noecc              Read without error correction
           --omitoob            Omit OOB data (default)
-o         --oob                Dump OOB data
-p         --prettyprint        Print nice (hexdump)
-q         --quiet              Don't display progress and status messages
-s addr    --startaddress=addr  Start address
           --skip-bad-blocks-to-start
                                Skip bad blocks when seeking to the start address

--bb=METHOD, where METHOD can be `padbad', `dumpbad', or `skipbad':
    padbad:  dump flash data, substituting 0xFF for any bad blocks
    dumpbad: dump flash data, including any bad blocks
    skipbad: dump good data, completely skipping any bad blocks (default)

root@iSharing:~/nand# nanddump -o --bb=dumpbad -f mtd0.nanddump-omitoob_oob_dumpbad /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:~/nand# nanddump -o --bb=dumpbad -f mtd1.nanddump-omitoob_oob_dumpbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump -o --bb=padbad -f mtd0.nanddump-omitoob_oob_padbad /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:~/nand# nanddump -o --bb=padbad -f mtd1.nanddump-omitoob_oob_padbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump -o --bb=skipbad -f mtd0.nanddump-omitoob_oob_skipbad /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:~/nand# nanddump -o --bb=skipbad -f mtd1.nanddump-omitoob_oob_skipbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump --bb=dumpbad -f mtd0.nanddump-omitoob_no-oob_dumpbad /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:~/nand# nanddump --bb=dumpbad -f mtd1.nanddump-omitoob_nooob_dumpbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump --bb=padbad -f mtd0.nanddump-omitoob_nooob_padbad /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:~/nand# nanddump --bb=padbad -f mtd1.nanddump-omitoob_nooob_padbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump --bb=padbad -f mtd0.nanddump-omitoob_nooob_skipbad /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:~/nand# nanddump --bb=skipbad -f mtd0.nanddump-omitoob_nooob_skipbad /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:~/nand# nanddump --bb=skipbad -f mtd1.nanddump-omitoob_nooob_skipbad /dev/mtd1
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 0x0d940000...

root@iSharing:~/nand# nanddump -n --bb=dumpbad -f mtd0.nanddump-noecc_nooob_dumpbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n --bb=dumpbad -f mtd1.nanddump-noecc_nooob_dumpbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# nanddump -n --bb=padbad -f mtd0.nanddump-noecc_nooob_padbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n --bb=padbad -f mtd1.nanddump-noecc_nooob_padbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# nanddump -n --bb=skipbad -f mtd0.nanddump-noecc_nooob_skipbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n --bb=skipbad -f mtd1.nanddump-noecc_nooob_skipbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# nanddump -n -o --bb=dumpbad -f mtd0.nanddump-noecc_oob_dumpbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n -o --bb=dumpbad -f mtd1.nanddump-noecc_oob_dumpbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# nanddump -n -o --bb=padbad -f mtd0.nanddump-noecc_oob_padbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n -o --bb=padbad -f mtd1.nanddump-noecc_oob_padbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# nanddump -n -o --bb=skipbad -f mtd0.nanddump-noecc_oob_skipbad /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x026c0000...

root@iSharing:~/nand# nanddump -n -o --bb=skipbad -f mtd1.nanddump-noecc_oob_skipbad /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x0d940000...

root@iSharing:~/nand# mtdinfo -a
Count of MTD devices:           2
Present MTD devices:            mtd0, mtd1
Sysfs interface supported:      yes

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

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

After getting all the raw data, I tried to compare the md5 checksum and found that there was no difference between using the dd command and nanddump.

root@iSharing:~/nand# find -type f -name \* | xargs md5sum

48b37feebd937584754934fe3014b7ab  ./mtd0.single-byte.dd
48b37feebd937584754934fe3014b7ab  ./mtd0.64bytes.dd
48b37feebd937584754934fe3014b7ab  ./mtd0.512bytes.dd

48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-omitoob_nooob_dumpbad
48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-omitoob_nooob_padbad
48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-omitoob_nooob_skipbad

48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-noecc_nooob_dumpbad
48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-noecc_nooob_padbad
48b37feebd937584754934fe3014b7ab  ./mtd0.nanddump-noecc_nooob_skipbad

156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-omitoob_oob_dumpbad
156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-omitoob_oob_padbad
156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-omitoob_oob_skipbad

156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-noecc_oob_dumpbad
156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-noecc_oob_padbad
156d93a18c924c8682c3d2b0031d7c7d  ./mtd0.nanddump-noecc_oob_skipbad

ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.64bytes.dd
ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.512bytes.dd

ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-omitoob_nooob_dumpbad
ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-omitoob_nooob_padbad
ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-omitoob_nooob_skipbad

ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-noecc_nooob_dumpbad
ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-noecc_nooob_padbad
ec11bc8e9f493b4fd384ebd56f35cab4  ./mtd1.nanddump-noecc_nooob_skipbad

d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-omitoob_oob_dumpbad
d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-omitoob_oob_padbad
d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-omitoob_oob_skipbad

d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-noecc_oob_dumpbad
d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-noecc_oob_padbad
d36b92af459ff2255eb8467fd94c2c1f  ./mtd1.nanddump-noecc_oob_skipbad

-rw-r--r-- 1 root root  40632320 Dec  5 14:03 mtd0.single-byte.dd
-rw-r--r-- 1 root root  40632320 Dec  5 22:58 mtd0.64bytes.dd
-rw-r--r-- 1 root root  40632320 Dec  5 22:58 mtd0.512bytes.dd

-rw-r--r-- 1 root root  40632320 Dec  5 22:26 mtd0.nanddump-noecc_nooob_dumpbad
-rw-r--r-- 1 root root  40632320 Dec  5 22:27 mtd0.nanddump-noecc_nooob_padbad
-rw-r--r-- 1 root root  40632320 Dec  5 22:28 mtd0.nanddump-noecc_nooob_skipbad
-rw-r--r-- 1 root root  40632320 Dec  5 22:21 mtd0.nanddump-omitoob_nooob_dumpbad
-rw-r--r-- 1 root root  40632320 Dec  5 22:22 mtd0.nanddump-omitoob_nooob_padbad
-rw-r--r-- 1 root root  40632320 Dec  5 22:24 mtd0.nanddump-omitoob_nooob_skipbad

-rw-r--r-- 1 root root  41902080 Dec  5 22:30 mtd0.nanddump-noecc_oob_dumpbad
-rw-r--r-- 1 root root  41902080 Dec  5 22:31 mtd0.nanddump-noecc_oob_padbad
-rw-r--r-- 1 root root  41902080 Dec  5 22:33 mtd0.nanddump-noecc_oob_skipbad
-rw-r--r-- 1 root root  41902080 Dec  5 22:14 mtd0.nanddump-omitoob_oob_dumpbad
-rw-r--r-- 1 root root  41902080 Dec  5 22:17 mtd0.nanddump-omitoob_oob_padbad
-rw-r--r-- 1 root root  41902080 Dec  5 22:18 mtd0.nanddump-omitoob_oob_skipbad

-rw-r--r-- 1 root root 227803136 Dec  5 22:55 mtd1.64bytes.dd
-rw-r--r-- 1 root root 227803136 Dec  5 22:46 mtd1.512bytes.dd

-rw-r--r-- 1 root root 227803136 Dec  5 22:26 mtd1.nanddump-noecc_nooob_dumpbad
-rw-r--r-- 1 root root 227803136 Dec  5 22:28 mtd1.nanddump-noecc_nooob_padbad
-rw-r--r-- 1 root root 227803136 Dec  5 22:29 mtd1.nanddump-noecc_nooob_skipbad
-rw-r--r-- 1 root root 227803136 Dec  5 22:22 mtd1.nanddump-omitoob_nooob_dumpbad
-rw-r--r-- 1 root root 227803136 Dec  5 22:23 mtd1.nanddump-omitoob_nooob_padbad
-rw-r--r-- 1 root root 227803136 Dec  5 22:25 mtd1.nanddump-omitoob_nooob_skipbad

-rw-r--r-- 1 root root 234921984 Dec  5 22:31 mtd1.nanddump-noecc_oob_dumpbad
-rw-r--r-- 1 root root 234921984 Dec  5 22:32 mtd1.nanddump-noecc_oob_padbad
-rw-r--r-- 1 root root 234921984 Dec  5 22:34 mtd1.nanddump-noecc_oob_skipbad
-rw-r--r-- 1 root root 234921984 Dec  5 22:15 mtd1.nanddump-omitoob_oob_dumpbad
-rw-r--r-- 1 root root 234921984 Dec  5 22:18 mtd1.nanddump-omitoob_oob_padbad
-rw-r--r-- 1 root root 234921984 Dec  5 22:19 mtd1.nanddump-omitoob_oob_skipbad

We can then use this raw data to simulate, analyze and rescue Linux systems on other, more efficient computers.
Please remember to keep another copy of these raw data archives to prevent us from accidentally making irreversible modifications to the data during analysis and rescue. The result is that we have to go to the machine with the problem and re-capture the original raw data.

After that, it's time for installation and rescue analysis. Along the way we will analyze UBIFS using the nandsim tool, as well as other useful scripts I found on github or online resources. It would be even more helpful if you have the ability to write shell scripts. Otherwise, at least you must be able to use the following Linux instructions (please do your best to learn them).

vi/vim/xxd
grep
od
strings

Then, try your best to understand the UBIFS file system. There are many reference articles on the Internet. Then we can think of ourselves as hackers, work hard to analyze the cause, and try to save the data.

In my case, my UBIFS was corrupted due to the Superblock area, so although the UBIFS mod could recognize my mtd part, it could not mount successfully. This is very similar to the previous situation where our traditional file partition table was damaged. Fortunately, the characteristics of UBIFS allow us to correct the data in OOB and ECC and restore the file system if possible.

The subsequent rescue process needs to be handled according to the situation because everyone may have different problems. What I can be sure of is that there is currently no tool that can help you generate all the information after you place a command. At this stage, we still have to rely on our own learning and analysis, and then use the script "python or other programming language" to modify the original data. If it can be mounted successfully in nandsim, then we can put the entire modified original data into , and then flash back to the NAND of the machine.

During my analysis and rescue process, I will take the time to write a teaching article here to bring some useful inspiration and direction to those partners who will encounter problems in the future or have already encountered problems.

Because I am currently quite busy with work projects and need to find time to build Hadoop and Redup environments on this machine, I want to use arm's jvm acceleration performance for Java to build a parallel computing civilian supercomputer.


That's it !
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 06, 2023 11:18PM
bodhi Wrote:
-------------------------------------------------------
> Popo,
>
> > >
> > > 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).
> > >
> > >
> >
> > OK!! I will do it and make sure again ...
> > ready to move on to the next phase.
>
> This could be the cause of problems you've seen
> and potential problems you will see. Wrong
> mtdparts is just an indicator.
>
> Also please post the current DTS that you are
> using to compile the DTB. If I cannot see the
> exact kernel you are running, then I'll have no
> idea why something is strange or not working!

I will go back and re-establish the debian buster rescue boot system and document all the steps to ensure a complete, correct, clean Deian Linux system (debian bullseye version). I will also use this system to build a hadoop/Redup platform in the future.

Then let's discuss why when dts correctly defines nand reg, after args is passed to the core, the correct partition name cannot appear during the startup process and finally when entering the system.

I even directly used the original uImage and uInitrd in the tar archive obtained from dropbox as the boot image, and used u-boot for uboot loading.

I don't know the reason.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 06, 2023 11:34PM
bodhi:

Also, I would try installing OpenWRT and OMV, maybe even stg202? . I will try any system related to ox820nas. See if you can suggest anything else.

Because I can ignore the nand content now. I can boldly try to install any system on this machine. And verify its effect to see if it can be successful. I'd also like to know if other kits have the same issues we have.

I also plan to re-erase the entire NAND and flash other u-boot versions related to ox820nas.

But as I mentioned in my last article about saving UBIFS, a wrong DTS definition can make the rescue operation pointless. In my case, I initially booted using the ox820-pogo-classic.dtb file and it booted. However, NAND was defined incorrectly, causing initial rescue efforts to go in the wrong direction.

I can try more and see if I can come up with suggestions and warnings that are not mentioned in other rescue articles. In a rescue operation, if you make a mistake at the beginning, everything you do later will become meaningless, and even get worse results.


In fact, the most correct and efficient way is that I can build an entire environment that can be compiled. (regardless of any system)

I have always liked debian (because of my previous girlfriend). Although I started to come into contact with Linux systems from slackware. But in the later period, because I liked to experiment, I also developed a strong interest in alpine and archlinux. (Because the way the suite is developed, installed, and updated is very novel).

I think I'd rather go back to a salckware/debian environment now. After the kernel-3.x version, although I miss init for the Linux system, the systemd method is more convenient.

That's it , Time is always lacking..huh!



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

Then let's discuss why when dts correctly defines nand reg, after args is passed to the core, the correct partition name cannot appear during the startup process and finally when entering the system.

The partition names are not important. You can use anything you'd want. Those names are only important in u-boot phase booting for system like OpenWrt.

The point is to make the error more prominent that mtdparts in the bootargs was not used. Therefore, there might be other bootargs that were ignored by the kernel, too.

Quote

I even directly used the original uImage and uInitrd in the tar archive obtained from dropbox as the boot image, and used u-boot for uboot loading.

I don't know the reason.

Strange!!

I don't think we can trust the system is working correctly when we can't explain why that bootarg is not working.

Note that the same kernel (from the tarball) is working on the Pogo V3 for that mtdparts bootarg.

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



Edited 1 time(s). Last edit at 12/07/2023 03:49PM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 07, 2023 06:33PM
With serial console connected, power up. Interrupt countdown and,

printenv
ide reset
ide part
boot

And please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 16, 2023 05:39PM
Dear bodhi:

I try to do the fourth time to whole new job.

1. do disk_create which used shv's: ox820-sata-uboot.tar.gz.
2. tar -xjf for Latest released rootfs: Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 (17 May 2020)
3. please see the file tree to confirm that (especially file datetime)

root@ubuntu:/media/popo/rootfs# ls -al
็ธฝ่จˆ 96
drwxr-xr-x  21 root root  4096  8ๆœˆ  1  2017 .
drwxr-x---+  4 root root  4096 12ๆœˆ 17 05:55 ..
drwxr-xr-x   2 root root  4096  5ๆœˆ 15  2020 bin
drwxr-xr-x   3 root root  4096  5ๆœˆ 15  2020 boot
drwxr-xr-x   5 root root  4096  2ๆœˆ 24  2012 dev
drwxr-xr-x  61 root root  4096  5ๆœˆ 17  2020 etc
drwxr-xr-x   2 root root  4096  1ๆœˆ 23  2012 home
drwxr-xr-x  12 root root  4096  5ๆœˆ 15  2020 lib
drwx------   2 root root 16384  2ๆœˆ 24  2012 lost+found
drwxr-xr-x   2 root root  4096  2ๆœˆ 24  2012 media
drwxr-xr-x   2 root root  4096  8ๆœˆ  1  2017 mnt
drwxr-xr-x   2 root root  4096  2ๆœˆ 24  2012 opt
drwxr-xr-x   2 root root  4096  1ๆœˆ 23  2012 proc
drwx------   5 root root  4096  5ๆœˆ 17  2020 root
drwxr-xr-x   2 root root  4096  2ๆœˆ  8  2013 run
drwxr-xr-x   2 root root  4096  5ๆœˆ 15  2020 sbin
drwxr-xr-x   2 root root  4096  2ๆœˆ 24  2012 srv
drwxr-xr-x   2 root root  4096  1ๆœˆ  1  2011 sys
drwxrwxrwt   2 root root  4096  1ๆœˆ  1  1970 tmp
drwxr-xr-x  10 root root  4096  2ๆœˆ 24  2012 usr
drwxr-xr-x  11 root root  4096  1ๆœˆ  1  1970 var
root@ubuntu:/media/popo/rootfs# tree boot
boot
โ”œโ”€โ”€ config-4.14.180-oxnas-tld-1
โ”œโ”€โ”€ config-5.4.224-oxnas-tld-1
โ”œโ”€โ”€ disk_create
โ”œโ”€โ”€ dts
โ”‚ย ย  โ”œโ”€โ”€ ox810se-wd-mbwe.dtb
โ”‚ย ย  โ”œโ”€โ”€ ox820-akitio.dtb
โ”‚ย ย  โ”œโ”€โ”€ ox820-kd20.dtb
โ”‚ย ย  โ”œโ”€โ”€ ox820-pogoplug-classic.dtb  <--- already replace from Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 (17 May 2020)
โ”‚ย ย  โ”œโ”€โ”€ ox820-pogoplug-pro.dtb
โ”‚ย ย  โ””โ”€โ”€ ox820-stg212.dtb
โ”œโ”€โ”€ initrd.img-4.14.180-oxnas-tld-1
โ”œโ”€โ”€ linux-5.4.224-oxnas-tld-1.patch
โ”œโ”€โ”€ linux-dtb-5.4.224-oxnas-tld-1.tar
โ”œโ”€โ”€ linux-headers-4.14.180-oxnas-tld-1_1.0_armel.deb
โ”œโ”€โ”€ linux-headers-5.4.224-oxnas-tld-1_1.0_armel.deb
โ”œโ”€โ”€ linux-image-5.4.224-oxnas-tld-1_1.0_armel.deb
โ”œโ”€โ”€ System.map-4.14.180-oxnas-tld-1
โ”œโ”€โ”€ u-boot.env
โ”œโ”€โ”€ u-boot.env.orig
โ”œโ”€โ”€ u-boot.img
โ”œโ”€โ”€ u-boot-spl.bin
โ”œโ”€โ”€ uImage <--- already replace from Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 (17 May 2020)
โ”œโ”€โ”€ uImage_2.6.31.14_OX820_1.2_shv.Pro
โ”œโ”€โ”€ uInitrd  <--- already replace from Debian-4.14.180-oxnas-tld-1-rootfs-bodhi.tar.bz2 (17 May 2020)
โ”œโ”€โ”€ vmlinuz-4.14.180-oxnas-tld-1
โ”œโ”€โ”€ zImage-4.14.180-oxnas-tld-1
โ””โ”€โ”€ zImage-5.4.224-oxnas-tld-1

1 directory, 26 files
root@ubuntu:/media/popo/rootfs# cd boot
root@ubuntu:/media/popo/rootfs/boot# ls -al
็ธฝ่จˆ 72748
drwxr-xr-x  3 root root     4096  5ๆœˆ 15  2020 .
drwxr-xr-x 21 root root     4096  8ๆœˆ  1  2017 ..
-rw-r--r--  1 root root   126846  5ๆœˆ 13  2020 config-4.14.180-oxnas-tld-1
-rw-r--r--  1 root root   142138 11ๆœˆ 15  2022 config-5.4.224-oxnas-tld-1
-rwxr-xr-x  1 root root      671 12ๆœˆ 17 04:40 disk_create
drwxr-xr-x  2 root root     4096  5ๆœˆ  8  2020 dts
-rw-r--r--  1 root root  6464843  5ๆœˆ 15  2020 initrd.img-4.14.180-oxnas-tld-1
-rw-r--r--  1 root root   160176 11ๆœˆ 15  2022 linux-5.4.224-oxnas-tld-1.patch
-rw-r--r--  1 root root    61440 11ๆœˆ 15  2022 linux-dtb-5.4.224-oxnas-tld-1.tar
-rw-r--r--  1 root root 10872364  5ๆœˆ 13  2020 linux-headers-4.14.180-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 11289280 11ๆœˆ 15  2022 linux-headers-5.4.224-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 14710632 11ๆœˆ 15  2022 linux-image-5.4.224-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  1797644  5ๆœˆ 13  2020 System.map-4.14.180-oxnas-tld-1
-rwxr-xr-x  1 root root    16384  1ๆœˆ  1  1970 u-boot.env
-rwxr-xr-x  1 root root    16384 12ๆœˆ 17 04:48 u-boot.env.orig
-rw-r--r--  1 root root   525880  8ๆœˆ  3  2014 u-boot.img
-rwxr-xr-x  1 root root    32120  8ๆœˆ  3  2014 u-boot-spl.bin
-rw-r--r--  1 root root  4600448  5ๆœˆ 15  2020 uImage
-rw-r--r--  1 root root  2212156  8ๆœˆ  3  2014 uImage_2.6.31.14_OX820_1.2_shv.Pro
-rw-r--r--  1 root root  6464907  5ๆœˆ 15  2020 uInitrd
-rwxr-xr-x  1 root root  4600384  5ๆœˆ 13  2020 vmlinuz-4.14.180-oxnas-tld-1
-rwxr-xr-x  1 root root  4600384  5ๆœˆ 13  2020 zImage-4.14.180-oxnas-tld-1
-rwxr-xr-x  1 root root  5589592 11ๆœˆ 15  2022 zImage-5.4.224-oxnas-tld-1
root@ubuntu:/media/popo/rootfs/boot# cd dts
root@ubuntu:/media/popo/rootfs/boot/dts# ls -al
็ธฝ่จˆ 76
drwxr-xr-x 2 root root  4096  5ๆœˆ  8  2020 .
drwxr-xr-x 3 root root  4096  5ๆœˆ 15  2020 ..
-rw-r--r-- 1 root root  6831  5ๆœˆ 13  2020 ox810se-wd-mbwe.dtb
-rw-r--r-- 1 root root  9945  5ๆœˆ 13  2020 ox820-akitio.dtb
-rw-r--r-- 1 root root 10282  5ๆœˆ 13  2020 ox820-kd20.dtb
-rw-r--r-- 1 root root  8892  5ๆœˆ 13  2020 ox820-pogoplug-classic.dtb
-rw-r--r-- 1 root root  9032  5ๆœˆ 13  2020 ox820-pogoplug-pro.dtb
-rw-r--r-- 1 root root  9479  5ๆœˆ 13  2020 ox820-stg212.dtb

4. I modify /etc/fstab to mount rootfs for ext3 fstype
5. setenv for u-boot parameter

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 # printenv
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
bootcmd=run dt_bootcmd_ide
bootdelay=3
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage; bootm $uimage_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:C6:76
ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M $mtdparts
if_netconsole=ping $serverip
ipaddr=192.168.20.249
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
normalboot=run ide_set_bootargs;run dt_ide_load_uimage; run dt_ide_load_initrd;run dt_ide_load_dtb;run dt_bootm
preboot_nc=run if_netconsole start_netconsole
sata_bootcmd=run usb_set_bootargs; run sata_boot
serverip=192.168.20.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 2147/16380 bytes

6. saveenv (sometime fail ...but try again success)
7.boot (once successful)

OX820 # run normalboot
4600448 bytes read in 1579 ms (2.8 MiB/s)
6464907 bytes read in 2173 ms (2.8 MiB/s)
8892 bytes read in 57 ms (152.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600384 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6464843 Bytes = 6.2 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 6f7fe000, end 6fe2854b ... OK
   Loading Device Tree to 6f7f8000, end 6f7fd2bb ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    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] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x84/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29548 r8192 d23700 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 242664K/262144K available (7168K kernel code, 199K rwdata, 1524K rodata, 1024K init, 245K bss, 19480K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
[    0.000000]       .data : 0xc0b00000 - 0xc0b31f68   ( 200 kB)
[    0.000000]        .bss : 0xc0b383b8 - 0xc0b757c0   ( 246 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ d0804000, 32 irqs, parent IRQ: 16
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000046] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000061] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000087] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000235] GIC: PPI13 is secure or misconfigured
[    0.000289] GIC: PPI13 is secure or misconfigured
[    0.000458] Console: colour dummy device 80x30
[    0.000499] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050383] pid_max: default: 32768 minimum: 301
[    0.050652] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050675] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051558] CPU: Testing write buffer coherency: ok
[    0.090444] Setting up static identity map for 0x60100000 - 0x60100038
[    0.110343] Hierarchical SRCU implementation.
[    0.150348] smp: Bringing up secondary CPUs ...
[    0.220454] GIC: PPI13 is secure or misconfigured
[    0.280629] smp: Brought up 1 node, 2 CPUs
[    0.280665] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.281402] devtmpfs: initialized
[    0.286481] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.286517] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.286850] prandom: seed boundary self test passed
[    0.291141] prandom: 100 self tests passed
[    0.291164] pinctrl core: initialized pinctrl subsystem
[    0.291860] NET: Registered protocol family 16
[    0.293498] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.295802] cpuidle: using governor ladder
[    0.295882] cpuidle: using governor menu
[    0.313413] vgaarb: loaded
[    0.313914] SCSI subsystem initialized
[    0.314616] usbcore: registered new interface driver usbfs
[    0.314728] usbcore: registered new interface driver hub
[    0.314877] usbcore: registered new device driver usb
[    0.315061] pps_core: LinuxPPS API ver. 1 registered
[    0.315079] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.315112] PTP clock support registered
[    0.316162] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.331978] NET: Registered protocol family 2
[    0.332884] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.332938] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.332997] TCP: Hash tables configured (established 2048 bind 2048)
[    0.333158] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.333207] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.333473] NET: Registered protocol family 1
[    0.334284] RPC: Registered named UNIX socket transport module.
[    0.334307] RPC: Registered udp transport module.
[    0.334323] RPC: Registered tcp transport module.
[    0.334336] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.334714] Unpacking initramfs...
[    1.041948] Freeing initrd memory: 6316K
[    1.043133] Initialise system trusted keyrings
[    1.043207] Key type blacklist registered
[    1.043530] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    1.051330] zbud: loaded
[    1.055700] NFS: Registering the id_resolver key type
[    1.055749] Key type id_resolver registered
[    1.055761] Key type id_legacy registered
[    1.055790] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.055800] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.056773] fuse init (API version 7.26)
[    1.057676] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.057935] orangefs_init: module version upstream loaded
[    3.051041] Key type asymmetric registered
[    3.051074] Asymmetric key parser 'x509' registered
[    3.051174] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.051192] io scheduler noop registered
[    3.051205] io scheduler deadline registered
[    3.051266] io scheduler cfq registered (default)
[    3.052853] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.054287] console [ttyS0] disabled
[    3.054430] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    3.631285] console [ttyS0] enabled
[    3.645253] loop: module loaded
[    3.650342] scsi host0: sata_oxnas
[    3.654041] ata1: SATA max UDMA/133 irq 57
[    3.658278] sata_oxnas: resetting SATA core
[    3.726504] nand: Could not find valid ONFI parameter page; aborting
[    3.732843] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    3.739217] nand: Hynix NAND 256MiB 3,3V 8-bit
[    3.743646] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.751226] Scanning device for bad blocks
[    3.920783] 2 ofpart partitions found on MTD device 41000000.nand-controller
[    3.927831] Creating 2 MTD partitions on "41000000.nand-controller":
[    3.934159] 0x000000000000-0x000000e00000 : "boot"
[    3.940551] 0x000000e00000-0x000008000000 : "data"
[    3.948467] libphy: Fixed MDIO Bus: probed
[    3.952965] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    3.958837] oxnas-dwmac 40400000.ethernet: no reset control found
[    4.026265] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    4.031303] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    4.036992] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    4.044270] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    4.051059] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    4.057671] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    4.064949] oxnas-dwmac 40400000.ethernet: COE Type 2
[    4.070005] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    4.076876] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    4.083118] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.134120] libphy: stmmac: probed
[    4.137597] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    4.147082] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    4.157573] PPP generic driver version 2.4.2
[    4.162073] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.168683] ehci-pci: EHCI PCI platform driver
[    4.176245] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.183290] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    4.190448] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    4.198072] ata1.00: configured for UDMA/133
[    4.202872] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    4.212500] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    4.220564] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.225912] sd 0:0:0:0: [sda] Write Protect is off
[    4.231019] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.376235] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    4.381744] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    4.389601] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    4.416232] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    4.422538] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.429355] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.436577] usb usb1: Product: EHCI Host Controller
[    4.441433] usb usb1: Manufacturer: Linux 4.14.180-oxnas-tld-1 ehci_hcd
[    4.448048] usb usb1: SerialNumber: 40200100.ehci
[    4.453562] hub 1-0:1.0: USB hub found
[    4.457469] hub 1-0:1.0: 2 ports detected
[    4.462420] usbcore: registered new interface driver cdc_wdm
[    4.468275] usbcore: registered new interface driver usb-storage
[    4.474380] usbcore: registered new interface driver usbserial
[    4.480394] usbcore: registered new interface driver usbserial_generic
[    4.487011] usbserial: USB Serial support registered for generic
[    4.493317] mousedev: PS/2 mouse device common for all mice
[    4.499100] i2c /dev entries driver
[    4.503790] hidraw: raw HID events driver (C) Jiri Kosina
[    4.509414] usbcore: registered new interface driver usbhid
[    4.514964] usbhid: USB HID core driver
[    4.519055]  sda: sda1
[    4.523445] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.529551] NET: Registered protocol family 10
[    4.535367] Segment Routing with IPv6
[    4.539156] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.546808] NET: Registered protocol family 17
[    4.551352] Key type dns_resolver registered
[    4.557004] registered taskstats version 1
[    4.561085] Loading compiled-in X.509 certificates
[    4.565946] zswap: loaded using pool lzo/zbud
[    4.646592] Key type big_key registered
[    4.687124] Key type encrypted registered
[    4.693332] hctosys: unable to open rtc device (rtc0)
[    4.700369] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    4.931143] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.939781] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.947379] random: systemd-udevd: uninitialized urandom read (16 bytes read)
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.29.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   11.060387] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   11.068405] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   11.075258] EXT4-fs (sda1): write access will be enabled during recovery
[   11.287388] random: fast init done
[   12.636456] EXT4-fs (sda1): recovery complete
[   12.659432] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-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
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   18.060510] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.29.2
rootfs: Group descriptor 0 marked uninitialized without feature set.
FIXED.
[   19.408084] random: crng init done                            | 12.0%
[   19.411481] random: 7 urandom warning(s) missed due to ratelimiting
rootfs: 13953/524288 files (6.2% non-contiguous), 180952/2097152 blocks
done.
[   25.860400] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ 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.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   29.834816] oxnas-dwmac 40400000.ethernet eth0: No phy led trigger registered for speed(-1)
[   29.843230] Generic PHY stmmac-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   29.857336] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   29.866063] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   29.873113] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Listening on LPF/eth0/00:25:31:01:c6:76
Sending on   LPF/eth0/00:25:31:01:c6:76
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
[   30.887165] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   30.895431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
DHCPNAK from 192.168.20.253
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST of 192.168.30.92 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.30.92 from 192.168.20.253
DHCPACK of 192.168.30.92 from 192.168.20.253
bound to 192.168.30.92 -- renewal in 41210 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1213 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1240 (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 debian ttyS0

debian login: root
Password:
Last login: Wed Dec 31 16:01:35 PST 1969 from 192.168.0.100 on pts/0
Linux debian 4.14.180-oxnas-tld-1 #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020 armv6l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# passwd
New password:
Retype new password:
passwd: password updated successfully
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"
root@debian:~# uname -ar
Linux debian 4.14.180-oxnas-tld-1 #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020 armv6l GNU/Linux
root@debian:~# ls /dev/mt*
/dev/mtd0  /dev/mtd0ro  /dev/mtd1  /dev/mtd1ro  /dev/mtdblock0  /dev/mtdblock1
root@debian:~# ls /dev/ubi*
/dev/ubi_ctrl
root@debian:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";
root@debian:~#

dmesg log

root@debian:/boot# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020
[    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] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0b30540, node_mem_map cf5f8000
[    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] random: get_random_bytes called from start_kernel+0x84/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 15 pages/cpu s29548 r8192 d23700 u61440
[    0.000000] pcpu-alloc: s29548 r8192 d23700 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: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 242664K/262144K available (7168K kernel code, 199K rwdata, 1524K rodata, 1024K init, 245K bss, 19480K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
                   lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0800000   (8160 kB)
                     .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
                     .data : 0xc0b00000 - 0xc0b31f68   ( 200 kB)
                      .bss : 0xc0b383b8 - 0xc0b757c0   ( 246 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ d0804000, 32 irqs, parent IRQ: 16
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000046] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000061] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000087] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000235] GIC: PPI13 is secure or misconfigured
[    0.000289] GIC: PPI13 is secure or misconfigured
[    0.000458] Console: colour dummy device 80x30
[    0.000499] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050383] pid_max: default: 32768 minimum: 301
[    0.050652] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050675] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051558] CPU: Testing write buffer coherency: ok
[    0.090444] Setting up static identity map for 0x60100000 - 0x60100038
[    0.110343] Hierarchical SRCU implementation.
[    0.150348] smp: Bringing up secondary CPUs ...
[    0.220454] GIC: PPI13 is secure or misconfigured
[    0.280629] smp: Brought up 1 node, 2 CPUs
[    0.280665] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.281402] devtmpfs: initialized
[    0.286481] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.286517] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.286850] prandom: seed boundary self test passed
[    0.291141] prandom: 100 self tests passed
[    0.291164] pinctrl core: initialized pinctrl subsystem
[    0.291860] NET: Registered protocol family 16
[    0.293498] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.295802] cpuidle: using governor ladder
[    0.295882] cpuidle: using governor menu
[    0.313413] vgaarb: loaded
[    0.313914] SCSI subsystem initialized
[    0.314252] libata version 3.00 loaded.
[    0.314616] usbcore: registered new interface driver usbfs
[    0.314728] usbcore: registered new interface driver hub
[    0.314877] usbcore: registered new device driver usb
[    0.315061] pps_core: LinuxPPS API ver. 1 registered
[    0.315079] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.315112] PTP clock support registered
[    0.316162] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.331978] NET: Registered protocol family 2
[    0.332884] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.332938] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.332997] TCP: Hash tables configured (established 2048 bind 2048)
[    0.333158] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.333207] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.333473] NET: Registered protocol family 1
[    0.334284] RPC: Registered named UNIX socket transport module.
[    0.334307] RPC: Registered udp transport module.
[    0.334323] RPC: Registered tcp transport module.
[    0.334336] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.334359] PCI: CLS 0 bytes, default 32
[    0.334714] Unpacking initramfs...
[    1.041948] Freeing initrd memory: 6316K
[    1.043133] Initialise system trusted keyrings
[    1.043207] Key type blacklist registered
[    1.043530] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    1.051330] zbud: loaded
[    1.055700] NFS: Registering the id_resolver key type
[    1.055749] Key type id_resolver registered
[    1.055761] Key type id_legacy registered
[    1.055790] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.055800] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.056773] fuse init (API version 7.26)
[    1.057676] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.057935] orangefs_init: module version upstream loaded
[    3.051041] Key type asymmetric registered
[    3.051074] Asymmetric key parser 'x509' registered
[    3.051174] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.051192] io scheduler noop registered
[    3.051205] io scheduler deadline registered
[    3.051266] io scheduler cfq registered (default)
[    3.052853] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    3.054287] console [ttyS0] disabled
[    3.054430] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    3.631285] console [ttyS0] enabled
[    3.645253] loop: module loaded
[    3.650342] scsi host0: sata_oxnas
[    3.654041] ata1: SATA max UDMA/133 irq 57
[    3.658278] sata_oxnas: resetting SATA core
[    3.726504] nand: Could not find valid ONFI parameter page; aborting
[    3.732843] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    3.739217] nand: Hynix NAND 256MiB 3,3V 8-bit
[    3.743646] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.751226] Scanning device for bad blocks
[    3.920783] 2 ofpart partitions found on MTD device 41000000.nand-controller
[    3.927831] Creating 2 MTD partitions on "41000000.nand-controller":
[    3.934159] 0x000000000000-0x000000e00000 : "boot"
[    3.940551] 0x000000e00000-0x000008000000 : "data"
[    3.948467] libphy: Fixed MDIO Bus: probed
[    3.952965] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    3.958837] oxnas-dwmac 40400000.ethernet: no reset control found
[    4.026265] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    4.031303] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    4.036992] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    4.044270] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    4.051059] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    4.057671] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    4.064949] oxnas-dwmac 40400000.ethernet: COE Type 2
[    4.070005] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    4.076876] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    4.083118] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    4.134120] libphy: stmmac: probed
[    4.137597] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    4.147082] mdio_bus stmmac-0:03: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    4.157573] PPP generic driver version 2.4.2
[    4.162073] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.168683] ehci-pci: EHCI PCI platform driver
[    4.176245] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.183290] ata1.00: ATA-8: APPLE HDD HTS547550A9E384, JE3AD70F, max UDMA/133
[    4.190448] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    4.198072] ata1.00: configured for UDMA/133
[    4.202872] scsi 0:0:0:0: Direct-Access     ATA      APPLE HDD HTS547 D70F PQ: 0 ANSI: 5
[    4.212500] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    4.220564] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.225912] sd 0:0:0:0: [sda] Write Protect is off
[    4.230796] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    4.231019] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.376235] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    4.381744] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    4.389601] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100
[    4.416232] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    4.422538] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.429355] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.436577] usb usb1: Product: EHCI Host Controller
[    4.441433] usb usb1: Manufacturer: Linux 4.14.180-oxnas-tld-1 ehci_hcd
[    4.448048] usb usb1: SerialNumber: 40200100.ehci
[    4.453562] hub 1-0:1.0: USB hub found
[    4.457469] hub 1-0:1.0: 2 ports detected
[    4.462420] usbcore: registered new interface driver cdc_wdm
[    4.468275] usbcore: registered new interface driver usb-storage
[    4.474380] usbcore: registered new interface driver usbserial
[    4.480394] usbcore: registered new interface driver usbserial_generic
[    4.487011] usbserial: USB Serial support registered for generic
[    4.493317] mousedev: PS/2 mouse device common for all mice
[    4.499100] i2c /dev entries driver
[    4.503790] hidraw: raw HID events driver (C) Jiri Kosina
[    4.509414] usbcore: registered new interface driver usbhid
[    4.514964] usbhid: USB HID core driver
[    4.519055]  sda: sda1
[    4.523445] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.529551] NET: Registered protocol family 10
[    4.535367] Segment Routing with IPv6
[    4.539156] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.546808] NET: Registered protocol family 17
[    4.551352] Key type dns_resolver registered
[    4.557004] registered taskstats version 1
[    4.561085] Loading compiled-in X.509 certificates
[    4.565946] zswap: loaded using pool lzo/zbud
[    4.646592] Key type big_key registered
[    4.687124] Key type encrypted registered
[    4.693332] hctosys: unable to open rtc device (rtc0)
[    4.700369] Freeing unused kernel memory: 1024K
[    4.931143] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.939781] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.947379] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   11.060387] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   11.068405] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   11.075258] EXT4-fs (sda1): write access will be enabled during recovery
[   11.287388] random: fast init done
[   12.636456] EXT4-fs (sda1): recovery complete
[   12.659432] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.060510] EXT4-fs (sda1): re-mounted. Opts: (null)
[   19.408084] random: crng init done
[   19.411481] random: 7 urandom warning(s) missed due to ratelimiting
[   25.860400] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   29.834816] oxnas-dwmac 40400000.ethernet eth0: No phy led trigger registered for speed(-1)
[   29.843230] Generic PHY stmmac-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[   29.857336] oxnas-dwmac 40400000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   29.866063] oxnas-dwmac 40400000.ethernet eth0: registered PTP clock
[   29.873113] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   30.887165] oxnas-dwmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   30.895431] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


8. where did I go wrong ? never ..but the same situation.
9. I found config less for mtdparts.

root@debian:/boot# cat config-4.14.180-oxnas-tld-1 |grep -i CONFIG_MTDPARTS_DEFAULT
root@debian:/boot# grep -i CONFIG_MTDPARTS_DEFAULT config-4.14.180-oxnas-tld-1
root@debian:/boot# grep -i CONFIG_MTDPARTS_DEFAULT config-5.4.224-oxnas-tld-1
root@debian:/boot# grep -i CONFIG_CMD_MTD  config-5.4.224-oxnas-tld-1
root@debian:/boot# grep -i CONFIG_CMD_MTD config-4.14.180-oxnas-tld-1
root@debian:/boot# grep -i CMD config-4.14.180-oxnas-tld-1
# CONFIG_BLK_CMDLINE_PARSER is not set
CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
# CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is not set
# CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_MANGLE is not set
CONFIG_CMDLINE=""
CONFIG_MTD_CMDLINE_PARTS=y
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CMD640_PCI is not set
root@debian:/boot#


//sigh !!! so frustration ..................

SORRY !
I try to do my best , Is there anything I overlooked or did wrong?
I really need some suggestion and help.

BTW!
I success use oxnas_sata_boot.tgz to boot ALARM and OMV for 2.6.32.X kernel.
But, I try these
1. mtdids=nand0=orion_nand
2. mtdids=nand0=nand_mtd
3. any other keyword ....but no lucky...

I can't see CONFIG for kernel menuconfig, and I don't know what ID for mtd-id build in kernel .

I plan to try OpenWRT which uses tftp boot into initramfs to install system.then do mtdparts again today.



Edited 2 time(s). Last edit at 12/16/2023 06:28PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 16, 2023 06:55PM
This is wrong
bootargs=root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)

Should be
bootargs=root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)

But the kernel said

[    0.000000] Kernel command line: root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)

Weird!

UPDATE:

Let me look at the envs a bit closer.

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



Edited 2 time(s). Last edit at 12/17/2023 12:05AM by bodhi.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 17, 2023 01:45AM
bootargs=root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)


it will reassign by

ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M $mtdparts


so, no matter ...it's not the root cause.:_
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 17, 2023 04:01AM
OK, I have already tesing OpenWRT done.

so frustration , it seems an older issue for booting.

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 # printenv
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8 mem=256M
bootcmd=run dt_bootcmd_ide
bootdelay=3
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage; bootm $uimage_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:C6:76
ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200n8 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
if_netconsole=ping $serverip
ipaddr=192.168.20.249
mem=256M
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
normalboot=run ide_set_bootargs;run dt_ide_load_uimage; run dt_ide_load_initrd;run dt_ide_load_dtb;run dt_bootm
openwrt_initramfs_boot=tftpboot $uinitrd_addr /openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-initramfs-uImage
preboot_nc=run if_netconsole start_netconsole
rootfs=root=LABEL=rootfs rootfstype=ext3
sata_bootcmd=run usb_set_bootargs; run sata_boot
serverip=192.168.20.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 2269/16380 bytes
OX820 # setenv bootargs $console earlyprint mem=256M elevator=cfq $mtdparts
OX820 # printenv
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8 earlyprint mem=256M elevator=cfq mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
bootcmd=run dt_bootcmd_ide
bootdelay=3
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-classic.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage; bootm $uimage_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:C6:76
ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200n8 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
if_netconsole=ping $serverip
ipaddr=192.168.20.249
mem=256M
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
normalboot=run ide_set_bootargs;run dt_ide_load_uimage; run dt_ide_load_initrd;run dt_ide_load_dtb;run dt_bootm
openwrt_initramfs_boot=tftpboot $uinitrd_addr /openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-initramfs-uImage
preboot_nc=run if_netconsole start_netconsole
rootfs=root=LABEL=rootfs rootfstype=ext3
sata_bootcmd=run usb_set_bootargs; run sata_boot
serverip=192.168.20.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 2346/16380 bytes
OX820 # run openwrt_initramfs_boot;bootm $uinitrd_addr
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection
Using mii0 device
TFTP from server 192.168.20.252; our IP address is 192.168.20.249
Filename '/openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-initramfs-uImage'.
Load address: 0x60e00000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############################################################
         1.2 MiB/s
done
Bytes transferred = 7561929 (7362c9 hex)
## Booting kernel from Legacy Image at 60e00000 ...
   Image Name:   ARM OpenWrt Linux-5.15.137
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    7561865 Bytes = 7.2 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Led:    GREEN

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.137 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Tue Nov 14 13:38:11 2023
[    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: Akitio MyCloud
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 64 MiB at 0x64000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s16236 r8192 d20628 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200n8 earlyprint mem=256M elevator=cfq mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
[    0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 44736K/131072K available (7168K kernel code, 590K rwdata, 892K rodata, 9216K init, 228K bss, 20800K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 24
[    0.000002] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000043] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000066] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000089] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000230] GIC: PPI13 is secure or misconfigured
[    0.000284] GIC: PPI13 is secure or misconfigured
[    0.000465] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050370] CPU: Testing write buffer coherency: ok
[    0.050424] pid_max: default: 32768 minimum: 301
[    0.051658] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051696] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.056279] Setting up static identity map for 0x60100000 - 0x6010005c
[    0.056578] rcu: Hierarchical SRCU implementation.
[    0.057464] smp: Bringing up secondary CPUs ...
[    0.058593] GIC: PPI13 is secure or misconfigured
[    0.110579] smp: Brought up 1 node, 2 CPUs
[    0.110627] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.116436] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116490] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.122452] pinctrl core: initialized pinctrl subsystem
[    0.124106] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.128143] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.131120] thermal_sys: Registered thermal governor 'step_wise'
[    0.131292] cpuidle: using governor menu
[    0.131371] No ATAGs?
[    0.159011] pps_core: LinuxPPS API ver. 1 registered
[    0.159037] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.159106] PTP clock support registered
[    0.160849] clocksource: Switched to clocksource oxnas_rps_clocksource_timer
[    0.162974] NET: Registered PF_INET protocol family
[    0.163256] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.164277] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.164341] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.164377] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.164413] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.164454] TCP: Hash tables configured (established 1024 bind 1024)
[    0.164631] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.164695] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.165173] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.165253] PCI: CLS 0 bytes, default 32
[    0.167055] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.182545] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.184294] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.195750] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.201164] printk: console [ttyS0] disabled
[    0.201372] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 63, base_baud = 390625) is a 16550A
[    0.700400] printk: console [ttyS0] enabled
[    0.723645] brd: module loaded
[    0.738106] loop: module loaded
[    0.811200] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    0.819927] ONFI parameter recovery failed, aborting
[    0.824931] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.831288] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.835714] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.843304] Scanning device for bad blocks
[    1.014773] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    1.022699] Creating 2 MTD partitions on "41000000.nand-controller":
[    1.029035] 0x000000000000-0x0000026c0000 : "boot"
[    1.034913] 0x0000026c0000-0x000010000000 : "ubi"
[    1.046205] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    1.052408] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    1.121346] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    1.128355] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    1.133447] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    1.140730] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    1.148047] oxnas-dwmac 40400000.ethernet: COE Type 2
[    1.153111] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    1.159959] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    1.166320] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    1.173122] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    1.179709] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    1.185387] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.193241] oxnas-dwmac 40400000.ethernet: device MAC address 4e:ff:de:79:82:9d
[    1.212385] RTL8211DN Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.222612] RTL8211DN Gigabit Ethernet stmmac-0:03: attached PHY driver (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    1.236590] ledtrig-cpu: registered to indicate activity on CP6s
[    1.242885] hid: raw HID events driver (C) Jiri Kosina
[    1.249871] NET: Registered
[    1.249871] PF_INET protocol family
[    1.258732] Segment Routing with IPv6
[    1.262597] In-situ OAM (IOAM) with IP 6
[    1.266624] NET: Registered
[    1.266624] PF_PACKโ–’T protocol family
[    1.273175] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need thi .
[    1.286494] 8021q: 802.1Q VLAN Support v1.8



--------------------



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 # setenv bootargs $console earlyprint mem=256M elevator=cfq $mtdparts
OX820 # tftpboot $uimage_addr /openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-uImage
Waiting for PHY auto negotiation to complete... done
ENET Speed is 1000 Mbps - FULL duplex connection
Using mii0 device
TFTP from server 192.168.20.252; our IP address is 192.168.20.249
Filename '/openwrt/openwrt-23.05.2-oxnas-ox820-akitio_mycloud-uImage'.
Load address: 0x60500000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##################
         703.1 KiB/s
done
Bytes transferred = 4078097 (3e3a11 hex)
OX820 # bootm $uimage_addr
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   ARM OpenWrt Linux-5.15.137
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4078033 Bytes = 3.9 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Led:    GREEN

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.137 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Tue Nov 14 13:38:11 2023
[    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: Akitio MyCloud
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 64 MiB at 0x64000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000060000000-0x0000000067ffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s16236 r8192 d20628 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200n8 earlyprint mem=256M elevator=cfq mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
[    0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 52932K/131072K available (7168K kernel code, 590K rwdata, 896K rodata, 1024K init, 228K bss, 12604K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] FPGA IRQ chip 0 "interrupt-controller" @ (ptrval), 32 irqs, parent IRQ: 24
[    0.000002] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000040] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000064] timer_oxnas_rps: Registered clocksource rate 390625Hz
[    0.000087] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500
[    0.000227] GIC: PPI13 is secure or misconfigured
[    0.000281] GIC: PPI13 is secure or misconfigured
[    0.000458] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050362] CPU: Testing write buffer coherency: ok
[    0.050424] pid_max: default: 32768 minimum: 301
[    0.051461] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051502] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.056084] Setting up static identity map for 0x60100000 - 0x6010005c
[    0.056384] rcu: Hierarchical SRCU implementation.
[    0.057269] smp: Bringing up secondary CPUs ...
[    0.058398] GIC: PPI13 is secure or misconfigured
[    0.110571] smp: Brought up 1 node, 2 CPUs
[    0.110617] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.116600] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116651] futex hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.122598] pinctrl core: initialized pinctrl subsystem
[    0.124234] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.128458] DMA: preallocated 2โ–’6 KiB pool for atomic coherent allocations
[    0.131358] thermal_sys: Registered thermal governor 'step_wise'
[    0.131527] cpuidle: using governor
[    0.131527] menu
[    0.131607] No ATAGs?
[    0.159585] pps_core: LinuxPPS API ver. 1 registered
[    0.159613] pps_core: Software ver.โ–’5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.159662] PTP clock support registered
[    0.161495] clocksource: Switched to clocksourc
[    0.161495]  oxnas_rps_clocksource_timer
[    0.163581] NET: Registered PF_INET protocol family
, 16384 bytes, linear)ts hash table entries: 2048 (order:
[    0.164940]
 bytes,164940] tcp_listen_portaddr_hasโ–’ hash table entries: 51โ–’ (order 0, 614
[    0.164940] linear)
 linear)65007] โ–’Table-perturb hash table entries: 65536 (order:โ–’6, 2621โ–’4 bytes
[    0.165048]
[    0.165048] TCP established hash table entries: 102โ–’ (order 0, 4096 bytes,โ–’linear)
4 (order: 1, 8192 bytesโ–’ linear)
[    0.165125] TCP: Hash tables configured (establishe 1024 bind 1024)
[    0.165299]
r)   0.165299] UDP hash table entries:_256 (order: 1, 8192 bytes, line
[    0.165368] UDP-Lite hash table entries5 256 (order: 1,8192 bytes, linear)
[    0.165859] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.165939] PCI: CLS 0 bytes, default 3โ–’
[    0.167659] workingset: timestamp_bits=14 max_order_15 bucket_orderโ–’1
[    0.178926] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.180454] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.184645] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.189009] printk: console [ttyS0] disabled
[    0.189168] 44200000.seriโ–’l: ttyS0 at MMIO 0x44200000 (irq = 63, base_baud = 390625) is a 16550A
[    0.697041] printk: console [ttyS0] enabled
[    0.720012] brd: module loaded
[    0.734694] loop: module loaded
[    0.801863] Could not find a valid ONFI parameter page, trying bit-wise majority to recover it
[    0.810590] ONFI parameter recovery failed, aborting
[    0.815592] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.821952] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.826378] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.833966] Scanning device for bad blocks
[    1.004111] 2 fixed-partitions partitions found on MTD device 41000000.nand-controller
[    1.012032] Creating 2 MTD partitions on "41000000.nand-controller":
[    1.018362] 0x000000000000-0x0000026c0000 : "boot"
[    1.024230] 0x0000026c0000-0x000010000000 : "ubi"
[    1.035448] oxnas-dwmac 40400000.ethernet: IRQ eth_lpi not found
[    1.041651] oxnas-dwmac 40400000.ethernet: PTP uses main clock
[    1.111976] oxnas-dwmac 40400000.ethernet: User ID: 0x12, Synopsys ID: 0x35
[    1.118950] oxnas-dwmac 40400000.ethernet:   DWMAC1000
[    1.124037] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported
[    1.131320] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported
[    1.138629] oxnas-dwmac 40400000.ethernet: COE Type 2
[    1.143690] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported
[    1.150538] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported
[    1.156910] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors
[    1.163701] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors
[    1.170291] oxnas-dwmac 40400000.ethernet: Ring mode enabled
[    1.175966] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.183820] oxnas-dwmac 40400000.ethernet: device MAC address 1e:9c:4d:66:43:eb
[    1.202823] RTL8211DN Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.213027] RTL8211DN Gigabit Ethernet stmmac-0:03: attached PHY driver (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[    1.227182] ledtrig-cpu: registered to indicate activity on CPUs
[    1.233354] hid: raw HID events driver (C) Jiri Kosina
[    1.240064] NET: Registered PF_INET6 protocol family
[    1.248038] Segment Routing with IPv6
[    1.251878] In-situ OAM (IOAM) with IPv6
[    1.255902] NET: Registered PF_PACKET protocol family
[    1.261071] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.274360] 8021q: 802.1Q VLAN Support v1.8

Found the STORY!!

So bad ! the newest openwrt build still has problem.....

//sigh

why openwrt can't seprate uimage/uinitrd/fdt ?
even we want to modify the device-tree.
we can't do any more....



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

Since you are booting with this bootargs. Is there a chance that there is some hidden character that we cannot see in the mtdparts?
ide_set_bootargs=setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M $mtdparts

Set it explicitly in serial console by retyping this command (don't copy/paste):
setenv ide_set_bootargs 'setenv bootargs root=LABEL=rootfs rootfstype=ext3 console=ttyS0,115200 mem=256M mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)

=====

OpenWrt:

[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200
[    0.000000] Bootloader command line (ignored): console=ttyS0,115200n8 earlyprint mem=256M elevator=cfq mtdparts=41000000.nand:0x26c0000@0x0(boot),-(rootfs)
[    0.000000] Unknown kernel command line parameters "earlyprintk", will be passed to user space.

The above means whatever the bootargs env is, it will be ignored by OpenWrt.

Quote

why openwrt can't seprate uimage/uinitrd/fdt ?

OpenWrt does not use initrd. And the DTB is embedded in uImage. It's to keep it simple so there is less chance for breakage, and it's backward compatible with stock u-boot.

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

You can see the last post about openWRT and 'printenv', I had fix the env value.
I always setenv by quato '' and never use 'copy-paste' (since i found sometimes has garbage word)
so , I type all of the string slowly.

Reboot after fix , the same situation.

Update:

I also use hexdump to check u-boot.env file to ensure that is clear and pure...


---

BTW,
I extract uImage & initrd to down all of the file.
since i know u-boot uimage format and .gz format and binwalk/cpio tools to do that.
I never see 'device-tree' file ....Weird!!
But the story post told, fix .dtb file and build openwrt package file success to boot into sysupgrade.
But can't boot after upgrade, u-boot can't validate image crc.
(I know the issue and knew why ...i have a though to fix this issue. sine i found that from stock mtd0)

update:
openwrt offers initramfs image to help user to boot from u-boot tftp.
and this tool can help user to do install.
or, just use uimage file to boot openwrt.
I found stock firware on mtd0 which has too many information.
However , it's gpt raw format disk, and uImage just start on 0x440000.
i down the image and analyse it.
I found that twice '2048 bytes header'
header(64byte for magic number) + gunzip code( 2048bytes - 64bytes) = total 2048bytes
i try to crc32 and found some interesting things...

update:

mtd content

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
4456448       0x440000        uImage header, header size: 64 bytes, header CRC: 0xD7CC9F27, created: 2011-01-14 05:58:26, image size: 3056816 bytes, Data Address: 0x60008000, Entry Point: 0x60008000, data CRC: 0x71C6CE7, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "Linux-2.6.31.6-fast-20110114"

4458496       0x440800        uImage header, header size: 64 bytes, header CRC: 0xD7CC9F27, created: 2011-01-14 05:58:26, image size: 3056816 bytes, Data Address: 0x60008000, Entry Point: 0x60008000, data CRC: 0x71C6CE7, OS: Linux, CPU: ARM, image type: OS Kernel Image, compression type: none, image name: "Linux-2.6.31.6-fast-20110114"

4482508       0x4465CC        gzip compressed data, maximum compression, from Unix, last modified: 2011-01-14 05:58:24
4484556       0x446DCC        gzip compressed data, maximum compression, from Unix, last modified: 2011-01-14 05:58:24
40632320      0x26C0000       UBI erase count header, version: 1, EC: 0x85, VID header offset: 0x200, data offset: 0x800

nboot start fetch the code in u-boot.
but, when I watch memory use u-boot md.b ..etc
I just see one header section.but it actually load 3056816 bytes.

use iminfo , it's ok!
but, when i use load to memory, iminfo will be bad crc not valid image.

nboot start fetch the code in u-boot.
but, when I watch memory use u-boot md.b ..etc
I just see one header section.but it actually load 3056816 bytes.

use iminfo , it's ok!
but, when i use load to memory, iminfo will be bad crc not valid image.

it can be downloaded for anyone if insterested...
mtd0.nand



Edited 5 time(s). Last edit at 12/17/2023 08:43PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 18, 2023 09:23AM
OMV (OpenMediaVault) installation guide

We have use oxnas_sata_boot.tar to help us to guiding omv boot & install

oxnas_sata_boot.tar

Operate fdisk and set hdd to dos-compatible mode , create 2 partition.
partition1 : /dev/sdX1 - primary partition at start sector must be align 2048 and about 10M size. (Don't format to)
partition2 : /dev/sdX2 - whatever to create for size you want. and format to ext3/ext4/xfs (whatever)

#!/bin/sh

# uncomment line below and set to the correct disk
disk=/dev/sdX(whatever for your hdd)
#pay attention to fit yourself.this is  my situation

if [ -z "${disk}" ] ; then
   echo "You must uncomment/set the 'disk' variable"
   exit -1
fi

workarea=.

stage1File=$workarea/boot/u-boot-spl.bin

perl <<EOF | dd of="$disk" bs=512
    print "\x00" x 0x1a4;
    print "\x00\x5f\x01\x00";
    print "\x00\xdf\x00\x00";
    print "\x00\x80\x00\x00";
    print "\x00" x (0x1b0 -0x1a4 -12 );
    print "\x22\x80\x00\x00";
    print "\x22\x00\x00\x00";
    print "\x00\x80\x00\x00";
EOF

if [ -f $stage1File ];then
        echo "Writing stage 1"
        dd if=$stage1File    of="$disk" bs=512 seek=34
fi

get omv package (I forgot where to get when I research how to bricks my akitio machine)

There are several files. we just need vmlinuz.uim to dd to /dev/sdX1

however , we can also dd initrd.uim in to dd.

Method 1:
dd if=vmlinuz.uim of=/dev/sdX1 bs=512

Method 2:
dd if=vmlinuz.uim of=/dev/sdX1 bs=512 seek=1290
dd if=initrd.uim of=/dev/sdX1 bs=512 seek=16674

I think u-boot should automatic to search/find the uimage to boot.

after that,

Please tar rootimg.tar file to /dev/sdX2 (don't forget to mount first)

After done, umount and plug hdd to your machine.

first boot :
make sure to setenv bootargs and the other what you want...

Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011
Attempting to set PLLA to 850MHz ...
  plla_ctrl0 : 0x0000020A
  plla_ctrl1 : 0x00330000
  plla_ctrl2 : 0x0065008B
  plla_ctrl3 : 0x000000F1
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x0001FB34
  Hdr CRC: 0x2229BDCD
 OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
  Device 0: Model: TOSHIBA MQ01ABD100 Firm: AX0A1U Ser#: 531FC1COT
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
  Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34  BSS: -> 60E5435C
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:256 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0
$ printenv
bootcmd=run dload1 boot || run dload2 boot || lightled
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
autoload=n
netmask=255.255.0.0
bootfile="uImage"
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000
dload1=diskboot 60500000 0:1
dload2=diskboot 60500000 0:2
root_dev1=/dev/sda2
root_dev2=/dev/sda1
root_dev=/dev/sda2
ipaddr=192.168.20.249
serverip=192.168.20.252
bootarg=root=/dev/sda2 console=ttyS0,115200 elevator=cfq rootwait earlyprintk poweroutage=yes mem=128M
mem=256M
mtdids=nand0=orion_nand
partition=nand0,2
mtdparts=mtdparts=orion_nand:38M(boot),-(rootfs)
root=root=/dev/sda2
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq rootwait earlyprintk mtdparts=orion_nand:38M(boot),-(rootfs) mem=128M poweroutage=yes

Environment size: 792/8188 bytes

don't forget to saveenv.
ready to go use

$ run dload1

Loading from IDE device 0, partition 1: Name: hda1
  Type: U-Boot
   Image Name:   2.6.31.14-hmnhdce+v5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2551572 Bytes =  2.4 MB
   Load Address: 60008000
   Entry Point:  60008000
$ iminfo

## Checking Image at 60500000 ...
   Image Name:   2.6.31.14-hmnhdce+v5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2551572 Bytes =  2.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
$ boot
Unknown command 'boot' - try 'help'
$ run boot
## Booting image at 60500000 ...
   Image Name:   2.6.31.14-hmnhdce+v5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2551572 Bytes =  2.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Now, Start kernel booting....just wait for 10 minutes to auto install omv.

After auto installation , omv will be restarted.

Enjoy it !

The only drawback is that u-boot can only provide 128MB of initialization memory.

IIRC, by WarheadsSE ever offer the 256MB version of u-boot.

But, the link never can be used.

Re: [How-To] Boot Entirely from SATA
Postby WarheadsSE ยป Mon Feb 27, 2012 3:09 am

256MB memory device users: http://ppl.ug/3QrAMaurJE8/

I have a uboot for you. I apologize that I kept forgetting to make this for you!



Edited 1 time(s). Last edit at 12/18/2023 11:33AM by Popo.
Attachments:
open | download - omv.JPG (152.4 KB)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
December 18, 2023 09:25AM
First Time to install OMV

It will hang on install locale package, It's normal, don't do anything.

After Installation and auto reboot.

you can login into Web GUI.

Starting kernel ...

Uncompressing Linux........................................................................................................................................................ done, booting the kernel.
[    0.000000] Linux version 2.6.31.14-hmnhdce+v5 (root@abraham) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #5 SMP Tue Aug 21 22:34:14 CEST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Oxsemi NAS
[    0.000000] 1 memory region
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0,115200 elevator=cfq rootwait earlyprintk mtdparts=orion_nand:38M(boot),-(rootfs) mem=128M poweroutage=yes
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 124756KB available (4360K code, 332K data, 128K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:96
[    0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[    0.000000] ox820_clocksource_init() Timer 2 running at 390625 Hz
[    0.010000] Console: colour dummy device 80x30
[    0.010000] console [ttyS0] enabled
[    0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.230000] Security Framework initialized
[    0.230000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] Calibrating local timer... 424.49MHz.
[    0.310000] CPU1: Booted secondary processor
[    0.410000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.620000] Brought up 2 CPUs
[    0.630000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.640000] NET: Registered protocol family 16
[    0.640000] Number of DMA channels = 4, version = 4
[    0.650000] Reserving a DMA channel for ODRB
[    0.650000] Allocating 475 SRAM generic DMA descriptors
[    0.660000] bio: create slab <bio-0> at 0
[    0.660000] SCSI subsystem initialized
[    0.670000] usbcore: registered new interface driver usbfs
[    0.670000] usbcore: registered new interface driver hub
[    0.680000] usbcore: registered new device driver usb
[    0.710000] NET: Registered protocol family 2
[    0.710000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.720000] Switched to NOHz mode on CPU #0
[    0.720000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.720000] Switched to NOHz mode on CPU #1
[    0.730000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.740000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.740000] TCP reno registered
[    0.750000] NET: Registered protocol family 1
[    0.750000] Create fragment cache
[    0.760000] VFS: Disk quotas dquot_6.5.2
[    0.760000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.770000] fuse init (API version 7.12)
[    0.770000] JFS: nTxBlock = 975, nTxLock = 7807
[    0.780000] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    0.790000] SGI XFS Quota Management subsystem
[    0.790000] msgmni has been set to 243
[    0.800000] alg: No test for stdrng (krng)
[    0.800000] io scheduler noop registered
[    0.810000] io scheduler anticipatory registered
[    0.810000] io scheduler deadline registered
[    0.820000] io scheduler cfq registered (default)
[    0.830000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.830000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[    0.840000] brd: module loaded
[    0.850000] loop: module loaded
[    0.850000] ox820sata: OX820 sata core.
[    0.850000] scsi0 : oxnassata
[    0.860000] scsi1 : oxnassata
[    0.860000] ata1: SATA max UDMA/133 irq 50
[    0.870000] ata2: SATA max UDMA/133 irq 50
[    0.870000] ox820sata: reseting SATA core
[    1.390000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.450000] ata1.00: ATA-8: TOSHIBA MQ01ABD100, AX0A1U, max UDMA/100
[    1.450000] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    1.460000] ata1.00: configured for UDMA/100
[    1.460000] ox820sata: reseting SATA core
[    2.180000] ata2: SATA link down (SStatus 0 SControl 300)
[    2.180000] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABD1 AX0A PQ: 0 ANSI: 5
[    2.190000] tun: Universal TUN/TAP device driver, 1.6
[    2.190000] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.190000] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    2.190000] sd 0:0:0:0: [sda] Write Protect is off
[    2.190000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.220000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.230000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.230000] Start USB clocks
[    2.240000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[    2.240000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[    2.250000]  sda:
[    2.280000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[    2.300000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[    2.300000] usb usb1: configuration #1 chosen from 1 choice
[    2.310000] hub 1-0:1.0: USB hub found
[    2.310000] hub 1-0:1.0: 2 ports detected
[    2.320000] Initializing USB Mass Storage driver...
[    2.320000] usbcore: registered new interface driver usb-storage
[    2.330000] USB Mass Storage support registered.
[    2.330000] usbcore: registered new interface driver ums-alauda
[    2.340000] usbcore: registered new interface driver ums-datafab
[    2.340000] usbcore: registered new interface driver ums-freecom
[    2.350000] usbcore: registered new interface driver ums-isd200
[    2.350000] usbcore: registered new interface driver ums-jumpshot
[    2.360000] usbcore: registered new interface driver ums-sddr09
[    2.370000] usbcore: registered new interface driver ums-sddr55
[    2.370000] usbcore: registered new interface driver ums-usbat
[    2.380000] mice: PS/2 mouse device common for all mice
[    2.380000] md: linear personality registered for level -1
[    2.390000] md: raid0 personality registered for level 0
[    2.390000] md: raid1 personality registered for level 1
[    2.400000] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    2.410000] input: Mapower Buttons as /devices/virtual/input/input0
[    2.420000] TCP cubic registered
[    2.420000] NET: Registered protocol family 17
[    2.570000]  sda1 sda2 sda3
[    2.570000] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.570000] md: Waiting for all devices to be available before autodetect
[    2.580000] md: If you don't use raid, use raid=noautodetect
[    2.590000] md: Autodetecting RAID arrays.
[    2.590000] md: Scanned 0 and added 0 devices.
[    2.600000] md: autorun ...
[    2.600000] md: ... autorun DONE.
[    2.640000] kjournald starting.  Commit interval 5 seconds
[    2.650000] EXT3 FS on sda2, internal journal
[    2.650000] EXT3-fs: mounted filesystem with writeback data mode.
[    2.650000] VFS: Mounted root (ext3 filesystem) on device 8:2.
[    2.650000] Freeing init memory: 128K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
.udev/ already exists on the static /dev! ... (warning).
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting parameters of disc: (none).
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2
omv: clean, 35464/61014016 files, 4318390/244056064 blocks
done.
[    8.320000] EXT3 FS on sda2, internal journal
Cleaning up ifupdown....
Assembling MD arrays...done (no arrays found in config file or automatically).
Setting up LVM Volume Groups  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found
  No volume groups found
.
Loading kernel modules...[    9.510000] mp_therm: initializing - NAS7820
done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Cleaning up temporary files....
Cleaning up...done.
Setting kernel variables ...error: "net.ipv6.conf.default.use_tempaddr" is an unknown key
error: "net.ipv6.conf.all.disable_ipv6" is an unknown key
error: "net.ipv6.conf.default.disable_ipv6" is an unknown key
error: "net.ipv6.conf.lo.disable_ipv6" is an unknown key
failed.
Setting up resolvconf...done.
Setting up networking....
Configuring network interfaces...[   12.030000] Probing for Synopsis GMAC, unit 0
[   12.030000] eth0: Tuning GMAC 0 RGMII timings
[   12.040000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[   12.040000] eth0: GMAC ver = 53, vendor ver = 18 at 0xe1400000, IRQ 40
[   12.050000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[   12.060000] eth0: Ethernet addr: 00:30:e0:00:00:00
[   12.060000] probe() eth0: Leon x2 clock
[   12.080000] CoPro offload is active on eth0
[   12.080000] Alloc'ing ARM descs 8192 bytes
[   12.080000] Alloc'ing CoPro parameters 40 bytes
[   12.090000] gmac gmac.0: firmware: requesting gmac_copro_firmware
[   12.190000] CoPro: Programming start address as 0xd000dd00
[   12.290000] Heartbeats started
[   12.300000] eth0: Resetting GMAC
[   12.300000] eth0: GMAC reset complete
[   12.300000] hw_set_mac_address() Storing port0 mac_adr in global array
[   12.310000] eth0: Setting Rx flow control thresholds for LAN port
[   12.320000] CoPro available SRAM end 0x1000dc64
[   12.320000] Copro offload started
[   15.380000] Freeing CoPro parameters 40 bytes
[   15.380000] Freeing ARM descs 8192 bytes
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   15.780000] CoPro offload is active on eth0
[   15.780000] Alloc'ing ARM descs 8192 bytes
[   15.790000] Alloc'ing CoPro parameters 40 bytes
[   15.790000] gmac gmac.0: firmware: requesting gmac_copro_firmware
[   15.820000] CoPro: Programming start address as 0xd000dd00
[   15.920000] Heartbeats started
[   15.920000] eth0: Resetting GMAC
[   15.930000] eth0: GMAC reset complete
[   15.930000] hw_set_mac_address() Storing port0 mac_adr in global array
[   15.940000] eth0: Setting Rx flow control thresholds for LAN port
[   15.950000] CoPro available SRAM end 0x1000dc64
[   15.950000] Copro offload started
[   16.450000] eth0: link up, 1000Mbps, full-duplex, not using pause, lpa 0xC1E1
Listening on LPF/eth0/00:30:e0:00:00:00
Sending on   LPF/eth0/00:30:e0:00:00:00
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.20.253
Reloading /etc/samba/smb.conf: smbd onlyNo process in pidfile '/var/run/samba/smbd.pid' found running; none killed.
.
bound to 192.168.30.11 -- renewal in 40691 seconds.
done.
Starting portmap daemon....
Starting NFS common utilities: statd.
Cleaning up temporary files....
Setting console screen modes.
cannot (un)set powersave mode
Skipping font and keymap setup (handled by console-setup).
Setting up console font and keymap...done.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting portmap daemon...Already running..
Starting NFS common utilities: statd.
FATAL: Module softdog not found.
Starting watchdog keepalive daemon: wd_keepalive.
Starting daemon monitor: monit.
Starting enhanced syslogd: rsyslogd.
Starting anac(h)ronistic cron: anacron.
Starting ACPI services...RTNETLINK1 answers: No such file or directory
acpid: error talking to the kernel via netlink
.
Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
.
Starting MD monitoring service: mdadm --monitormdadm: No mail address or alert command - not monitoring.
 failed!
Starting deferred execution scheduler: atd.
Loading cpufreq kernel modules...done (none).
CPUFreq Utilities: Setting conservative CPUFreq governor...disabled, governor not available...done.
Starting system message bus: dbus.
Starting periodic command scheduler: cron.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting statistics collection and monitoring daemon: collectd.
Start Normal Power LED
FATAL: Module softdog not found.
Stopping watchdog keepalive daemon....
Starting watchdog daemon....

OpenMediaVault 0.3.0.20 (Omnius) hmnhdce-omv ttyS0
Copyright (C) 2009-2012 by Volker Theile. All rights reserved.

To manage the system visit the OpenMediaVault web administration
interface via a web browser on:

eth0: 192.168.30.11

For more information regarding this appliance, please visit
the web site: http://www.openmediavault.org

hmnhdce-omv login:


OpenMediaVault 0.3.0.20 (Omnius) hmnhdce-omv ttyS0
Copyright (C) 2009-2012 by Volker Theile. All rights reserved.

To manage the system visit the OpenMediaVault web administration
interface via a web browser on:

eth0: 192.168.30.11

For more information regarding this appliance, please visit
the web site: http://www.openmediavault.org

hmnhdce-omv login: root
Password:
Linux hmnhdce-omv 2.6.31.14-hmnhdce+v5 #5 SMP Tue Aug 21 22:34:14 CEST 2012 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@hmnhdce-omv:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@hmnhdce-omv:~# history
    1  passwd
    2  history
root@hmnhdce-omv:~# cat /proc/m
mdstat   meminfo  misc     modules  mounts
root@hmnhdce-omv:~# cat /proc/m
mdstat   meminfo  misc     modules  mounts
root@hmnhdce-omv:~# cat /proc/meminfo
MemTotal:         125044 kB
MemFree:           46332 kB
Buffers:            2936 kB
Cached:            31932 kB
SwapCached:            0 kB
Active:            21816 kB
Inactive:          20576 kB
Active(anon):      10528 kB
Inactive(anon):        0 kB
Active(file):      11288 kB
Inactive(file):    20576 kB
Unevictable:        1612 kB
Mlocked:            1612 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                64 kB
Writeback:             0 kB
AnonPages:          9136 kB
Mapped:             7368 kB
Slab:               5760 kB
SReclaimable:       2824 kB
SUnreclaim:         2936 kB
PageTables:          724 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       62520 kB
Committed_AS:     548796 kB
VmallocTotal:       8192 kB
VmallocUsed:         632 kB
VmallocChunk:       7524 kB
root@hmnhdce-omv:~# cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 5 (v6l)
processor       : 0
BogoMIPS        : 339.14

processor       : 1
BogoMIPS        : 339.14

Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb02
CPU revision    : 5

Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 0000000000000000
root@hmnhdce-omv:~# lsmod
Module                  Size  Used by
gmac                   43716  0
mii                     6264  1 gmac
mp_therm                3624  0
root@hmnhdce-omv:~#
root@hmnhdce-omv:~# dmesg
[    0.000000] Linux version 2.6.31.14-hmnhdce+v5 (root@abraham) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #5 SMP Tue Aug 21 22:34:14 CEST 2012
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Oxsemi NAS
[    0.000000] 1 memory region
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c04a7da0, node_mem_map c04db000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 console=ttyS0,115200 elevator=cfq rootwait earlyprintk mtdparts=orion_nand:38M(boot),-(rootfs) mem=128M poweroutage=yes
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 124756KB available (4360K code, 332K data, 128K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:96
[    0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[    0.000000] ox820_clocksource_init() Timer 2 running at 390625 Hz
[    0.010000] Console: colour dummy device 80x30
[    0.010000] console [ttyS0] enabled
[    0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.230000] Security Framework initialized
[    0.230000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] Calibrating local timer... 424.49MHz.
[    0.310000] CPU1: Booted secondary processor
[    0.410000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.620000] Brought up 2 CPUs
[    0.630000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.640000] NET: Registered protocol family 16
[    0.640000] Number of DMA channels = 4, version = 4
[    0.650000] Reserving a DMA channel for ODRB
[    0.650000] Allocating 475 SRAM generic DMA descriptors
[    0.660000] bio: create slab <bio-0> at 0
[    0.660000] SCSI subsystem initialized
[    0.670000] libata version 3.00 loaded.
[    0.670000] usbcore: registered new interface driver usbfs
[    0.670000] usbcore: registered new interface driver hub
[    0.680000] usbcore: registered new device driver usb
[    0.710000] NET: Registered protocol family 2
[    0.710000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.720000] Switched to NOHz mode on CPU #0
[    0.720000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.720000] Switched to NOHz mode on CPU #1
[    0.730000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.740000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.740000] TCP reno registered
[    0.750000] NET: Registered protocol family 1
[    0.750000] Create fragment cache
[    0.760000] VFS: Disk quotas dquot_6.5.2
[    0.760000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.770000] fuse init (API version 7.12)
[    0.770000] JFS: nTxBlock = 975, nTxLock = 7807
[    0.780000] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    0.790000] SGI XFS Quota Management subsystem
[    0.790000] msgmni has been set to 243
[    0.800000] alg: No test for stdrng (krng)
[    0.800000] io scheduler noop registered
[    0.810000] io scheduler anticipatory registered
[    0.810000] io scheduler deadline registered
[    0.820000] io scheduler cfq registered (default)
[    0.830000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.830000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[    0.840000] brd: module loaded
[    0.850000] loop: module loaded
[    0.850000] ox820sata: OX820 sata core.
[    0.850000] scsi0 : oxnassata
[    0.860000] scsi1 : oxnassata
[    0.860000] ata1: SATA max UDMA/133 irq 50
[    0.870000] ata2: SATA max UDMA/133 irq 50
[    0.870000] ox820sata: reseting SATA core
[    1.390000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.450000] ata1.00: ATA-8: TOSHIBA MQ01ABD100, AX0A1U, max UDMA/100
[    1.450000] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    1.460000] ata1.00: configured for UDMA/100
[    1.460000] ox820sata: reseting SATA core
[    2.180000] ata2: SATA link down (SStatus 0 SControl 300)
[    2.180000] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABD1 AX0A PQ: 0 ANSI: 5
[    2.190000] tun: Universal TUN/TAP device driver, 1.6
[    2.190000] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    2.190000] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    2.190000] sd 0:0:0:0: [sda] Write Protect is off
[    2.190000] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.190000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.220000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.230000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.230000] Start USB clocks
[    2.240000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[    2.240000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[    2.250000]  sda:
[    2.280000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[    2.300000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[    2.300000] usb usb1: configuration #1 chosen from 1 choice
[    2.310000] hub 1-0:1.0: USB hub found
[    2.310000] hub 1-0:1.0: 2 ports detected
[    2.320000] Initializing USB Mass Storage driver...
[    2.320000] usbcore: registered new interface driver usb-storage
[    2.330000] USB Mass Storage support registered.
[    2.330000] usbcore: registered new interface driver ums-alauda
[    2.340000] usbcore: registered new interface driver ums-datafab
[    2.340000] usbcore: registered new interface driver ums-freecom
[    2.350000] usbcore: registered new interface driver ums-isd200
[    2.350000] usbcore: registered new interface driver ums-jumpshot
[    2.360000] usbcore: registered new interface driver ums-sddr09
[    2.370000] usbcore: registered new interface driver ums-sddr55
[    2.370000] usbcore: registered new interface driver ums-usbat
[    2.380000] mice: PS/2 mouse device common for all mice
[    2.380000] md: linear personality registered for level -1
[    2.390000] md: raid0 personality registered for level 0
[    2.390000] md: raid1 personality registered for level 1
[    2.400000] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    2.410000] input: Mapower Buttons as /devices/virtual/input/input0
[    2.420000] TCP cubic registered
[    2.420000] NET: Registered protocol family 17
[    2.570000]  sda1 sda2 sda3
[    2.570000] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.570000] md: Waiting for all devices to be available before autodetect
[    2.580000] md: If you don't use raid, use raid=noautodetect
[    2.590000] md: Autodetecting RAID arrays.
[    2.590000] md: Scanned 0 and added 0 devices.
[    2.600000] md: autorun ...
[    2.600000] md: ... autorun DONE.
[    2.640000] kjournald starting.  Commit interval 5 seconds
[    2.650000] EXT3 FS on sda2, internal journal
[    2.650000] EXT3-fs: mounted filesystem with writeback data mode.
[    2.650000] VFS: Mounted root (ext3 filesystem) on device 8:2.
[    2.650000] Freeing init memory: 128K
[    8.320000] EXT3 FS on sda2, internal journal
[    9.510000] mp_therm: initializing - NAS7820
[   12.030000] Probing for Synopsis GMAC, unit 0
[   12.030000] eth0: Tuning GMAC 0 RGMII timings
[   12.040000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[   12.040000] eth0: GMAC ver = 53, vendor ver = 18 at 0xe1400000, IRQ 40
[   12.050000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[   12.060000] eth0: Ethernet addr: 00:30:e0:00:00:00
[   12.060000] probe() eth0: Leon x2 clock
[   12.080000] CoPro offload is active on eth0
[   12.080000] Alloc'ing ARM descs 8192 bytes
[   12.080000] Alloc'ing CoPro parameters 40 bytes
[   12.090000] gmac gmac.0: firmware: requesting gmac_copro_firmware
[   12.190000] CoPro: Programming start address as 0xd000dd00
[   12.290000] Heartbeats started
[   12.300000] eth0: Resetting GMAC
[   12.300000] eth0: GMAC reset complete
[   12.300000] hw_set_mac_address() Storing port0 mac_adr in global array
[   12.310000] eth0: Setting Rx flow control thresholds for LAN port
[   12.320000] CoPro available SRAM end 0x1000dc64
[   12.320000] Copro offload started
[   15.380000] Freeing CoPro parameters 40 bytes
[   15.380000] Freeing ARM descs 8192 bytes
[   15.780000] CoPro offload is active on eth0
[   15.780000] Alloc'ing ARM descs 8192 bytes
[   15.790000] Alloc'ing CoPro parameters 40 bytes
[   15.790000] gmac gmac.0: firmware: requesting gmac_copro_firmware
[   15.820000] CoPro: Programming start address as 0xd000dd00
[   15.920000] Heartbeats started
[   15.920000] eth0: Resetting GMAC
[   15.930000] eth0: GMAC reset complete
[   15.930000] hw_set_mac_address() Storing port0 mac_adr in global array
[   15.940000] eth0: Setting Rx flow control thresholds for LAN port
[   15.950000] CoPro available SRAM end 0x1000dc64
[   15.950000] Copro offload started
[   16.450000] eth0: link up, 1000Mbps, full-duplex, not using pause, lpa 0xC1E1
root@hmnhdce-omv:~#

The Question :

I dd vmlinux.uim into /dev/sdX1

But what location do I to dd to initrd.uim ?
Update:

It's not the question where to dd initrd.uim...
Since ovm just offers package for users.
you need dd vmlinuz.uim(uImage)/initrd.uim(initrd) by yourself to hdd.

But ! if we are still install u-boot by ourvelves.
Especially, The version of u-boot must has the ability to auto search (uImage/uInitrd) magic number.

That's it !

Update2:

If we use the version of u-boot by bodhi, we have no need to dd to sdX1.
just extload /boot/vmlinuz.uim to boot from hdd
I try it at my first time to boot omv, and it works.
And HDD just need one partition (but format to ext3/ext4).
Don't forget to align 2048 and dos-compatible mode.

These two method also applies to install ALARM(ArchLinuxArm).
I have the lastest ALARM rootfs & armv5t packages (2022-Jan-08).
I try and success.

if someone needs files of ALARM & ovm , I will publish the urllink on my server. plz PM.


finally...
I will try uboot.2015.10-tld-2.ox820.bodhi.tar to boot & installation ovm when I have some free time next weekend.



Edited 7 time(s). Last edit at 12/18/2023 12:02PM by Popo.
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: