Welcome! Log In Create A New Profile

Advanced

Help! Akitio mycloudmini using stock kernel but missing system setting files

Posted by Popo 
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 03, 2024 02:31AM
Popo,

All I have is out on GitHub:

https://forum.doozan.com/read.php?3,16017

References:

1. U-Boot source code at GitHub (branch 2015.10-oxnas, sync to released 2015.10-tld-1 u-boot in this thread).
Note 1: The source code in GitHub only work for NAND version. SATA (Ext4, FAT) version will be updated in the future.
Note 2: For building SPL, please use 2013.10 (oxnas branch)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 03, 2024 04:49PM
Dear bodhi :

Thank you ! I will research and build my own spl/uboot for my requirement.

BTW, OMV has been announce OMV 7 for bookworm.

Maybe it's a good choice to install to these old machine.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 07, 2024 12:00AM
rayknight Wrote:
-------------------------------------------------------
> 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.


YES !

The OpenWRT wiki is wrong !

According to PLX872X DataSeet :

please see the reference datasheet image...

AND .. the 782x can modding 512 MB DDR RAM, but need some component on the board.

The pcieII is supporting Wi-fi Card module for PLX7825 . PLX7821 just has the only pcie channel.

The RTC is also need rtc-m41t80.c in the driver of linux-kernel.
Attachments:
open | download - PLX782x-Support.JPG (62.3 KB)
open | download - PLX782x-DDR-RAM.JPG (42.5 KB)
open | download - PLX7825-RDA-BOARD.JPG (19.9 KB)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 07, 2024 12:16AM
The RDA Board image:

The RDA board just has 128MB RAM/NAND.
Attachments:
open | download - PLX-RDA-BOARD1.JPG (113.2 KB)
open | download - PLX-RDA-BOARD2.JPG (38.3 KB)
open | download - PLX-RDA-BOARD-WIFI.JPG (93.5 KB)
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 09, 2024 10:00PM
Dear bodhi :

I have successfully used 850Mhz and 256MB DDR RAM in the spl stage.

And you can successfully obtain 256MB of memory during the uboot stage, and then use the go command to execute the uboot elf provided by you on the NAND. After completing the chainload, akitio-stock/omv-arm/debian can be successfully started.

Thank you very much for your help and guidance. I will improve the system and further test the performance of phoneme JAVA.

Now I can compile/run whatever I want.
My case is ready for closure.
If there are partners who need guidance and help in the future, I will not hesitate to provide my experience and solutions.

Thank you very much again.

Stage-1 Bootloader CAIYU Project
Attempting to set PLLA to 850MHz ...
  plla_ctrl0 : 0x0000020A
  plla_ctrl1 : 0x00330000
  plla_ctrl2 : 0x0065008B
  plla_ctrl3 : 0x000000F1
PLLA Set

Setup memory, testing, Image 0
  Fetch u-Boot image from ... done!
  Hdr len: 0x0001AE80
  Hdr CRC: 0x7D4F6340
 OK

Spl is OK for 850MHz & DDR2 400MHz 256MB initialized.

U-Boot 1.1.2 (Jan  9 2024 - 10:39:47)

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

In:    serial
Out:   serial
Err:   serial
Reading upgrade flag from NAND address 0x01ec0000 : 0
Hit any key to stop autoboot:  0
$ nand read 0x64000000 0x200000 0x7bb14  && go 0x64000000

NAND read: device 0 offset 0x200000, size 0x7bb14
 506644 bytes read: OK
## Starting application at 0x64000000 ...

Chainload uboot form NAND.

U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  256 MiB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootfstype=ext3 rootdelay=10 mem=256M poweroutage=yes elevator=cfq raid=noautodetect mac_adr=0x00,0x01,0xd2,0x12,0x00,0xfa'
OX820> setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootfstype=ext3 rootdelay=10 mem=256M poweroutage=yes elevator=cfq raid=noautodetect mac_adr=0x00,0x01,0xd2,0x12,0x00,0xfa
OX820> setenv dt_usb_boot 'run dt_load_uimage; run dt_load_initrd'
OX820> usb start ;run dt_usb_bootcmd;usb stop
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
2551636 bytes read in 313 ms (7.8 MiB/s)
2402940 bytes read in 320 ms (7.2 MiB/s)
stopping USB..
OX820> bootm $uimage_addr $uinitrd_addr
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   2.6.31.14-hmnhdce+v5
   Created:      2012-08-21  21:09:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2551572 Bytes = 2.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:
   Created:      1970-01-01   0:11:26 UTC
   Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
   Data Size:    2402876 Bytes = 2.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Success to boot OMV (I can use mtd-utils and ubifs and file sharing)

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: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootfstype=ext3 rootdelay=10 mem=256M poweroutage=yes elevator=cfq raid=noautodetect mac_adr=0x00,0x01,0xd2,0x12,0x00,0xfa
[    0.000000] PID hash table entries: 1024 (order: 10, 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: 256MB = 256MB total
[    0.000000] Memory: 252220KB 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... 425.50MHz.
[    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: 2048 (order: 1, 8192 bytes)
[    0.720000] Switched to NOHz mode on CPU #0
[    0.720000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.720000] Switched to NOHz mode on CPU #1
[    0.730000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.740000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.740000] TCP reno registered
[    0.750000] NET: Registered protocol family 1
[    0.750000] Trying to unpack rootfs image as initramfs...
[    0.990000] Freeing initrd memory: 2344K
[    0.990000] Create fragment cache
[    1.000000] VFS: Disk quotas dquot_6.5.2
[    1.000000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.010000] fuse init (API version 7.12)
[    1.010000] JFS: nTxBlock = 1991, nTxLock = 15929
[    1.020000] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    1.030000] SGI XFS Quota Management subsystem
[    1.040000] msgmni has been set to 497
[    1.040000] alg: No test for stdrng (krng)
[    1.040000] io scheduler noop registered
[    1.050000] io scheduler anticipatory registered
[    1.050000] io scheduler deadline registered
[    1.060000] io scheduler cfq registered (default)
[    1.070000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.070000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[    1.080000] brd: module loaded
[    1.090000] loop: module loaded
[    1.090000] ox820sata: OX820 sata core.
[    1.100000] scsi0 : oxnassata
[    1.100000] scsi1 : oxnassata
[    1.100000] ata1: SATA max UDMA/133 irq 50
[    1.110000] ata2: SATA max UDMA/133 irq 50
[    1.110000] ox820sata: reseting SATA core
[    1.480000] ata1: SATA link down (SStatus 0 SControl 300)
[    1.480000] ox820sata: reseting SATA core
[    1.840000] ata2: SATA link down (SStatus 0 SControl 300)
[    1.840000] tun: Universal TUN/TAP device driver, 1.6
[    1.850000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.860000] Start USB clocks
[    1.860000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[    1.870000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[    1.910000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[    1.930000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[    1.930000] usb usb1: configuration #1 chosen from 1 choice
[    1.940000] hub 1-0:1.0: USB hub found
[    1.940000] hub 1-0:1.0: 2 ports detected
[    1.950000] Initializing USB Mass Storage driver...
[    1.950000] usbcore: registered new interface driver usb-storage
[    1.960000] USB Mass Storage support registered.
[    1.960000] usbcore: registered new interface driver ums-alauda
[    1.970000] usbcore: registered new interface driver ums-datafab
[    1.970000] usbcore: registered new interface driver ums-freecom
[    1.980000] usbcore: registered new interface driver ums-isd200
[    1.980000] usbcore: registered new interface driver ums-jumpshot
[    1.990000] usbcore: registered new interface driver ums-sddr09
[    2.000000] usbcore: registered new interface driver ums-sddr55
[    2.000000] usbcore: registered new interface driver ums-usbat
[    2.010000] mice: PS/2 mouse device common for all mice
[    2.010000] md: linear personality registered for level -1
[    2.020000] md: raid0 personality registered for level 0
[    2.020000] md: raid1 personality registered for level 1
[    2.030000] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    2.040000] input: Mapower Buttons as /devices/virtual/input/input0
[    2.050000] TCP cubic registered
[    2.050000] NET: Registered protocol family 17
[    2.050000] Freeing init memory: 128K
Loading, please wait...
mount: mounting none on /dev failed: No such device
W: devtmpfs not available, falling back to tmpfs for /dev
[    2.270000] usb 1-2: new high speed USB device using oxnas-ehci and address 2
[    2.420000] usb 1-2: configuration #1 chosen from 1 choice
[    2.420000] scsi2 : SCSI emulation for USB Mass Storage devices
[    7.470000] scsi 2:0:0:0: Direct-Access     USB3.0   FLASH DRIVE      1.00 PQ: 0 ANSI: 6
[    7.490000] sd 2:0:0:0: [sda] 30408704 512-byte logical blocks: (15.5 GB/14.5 GiB)
[    7.490000] sd 2:0:0:0: [sda] Write Protect is off
[    7.500000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.510000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.510000]  sda: sda1
[    7.520000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    7.520000] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... [   12.820000] OXNAS bit-bash I2C driver initialisation OK
[   12.860000] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[   12.870000] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... umount: can't umount /tmp/usb: No such file or directory
rmdir: '/tmp/usb': No such file or directory
Warning: old md initialisation script found, getting out of its way...
mdadm: no recogniseable superblock on /dev/sda1
mdadm: /dev/sda1 has no superblock - assembly aborted
done.
Begin: Running /scripts/local-premount ... done.
[   23.220000] kjournald starting.  Commit interval 5 seconds
[   23.230000] EXT3-fs: mounted filesystem with writeback data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
Starting the hotplug events dispatcher: udevdudevd[220]: BUS= will be removed in a future udev version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS= to match a parent device, in /lib/udev/rules.d/52-nut-usbups.rules:6

[   23.900000] udev[221]: starting version 164
.
udevd[221]: BUS= will be removed in a future udev version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS= to match a parent device, in /lib/udev/rules.d/52-nut-usbups.rules:6

Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting parameters of disc:  /dev/sda.
Setting preliminary keymap...done.
Activating swap...done.
Checking root file system...fsck from util-linux-ng 2.17.2
rootfs: clean, 58187/950272 files, 336281/3800832 blocks
done.
[   25.430000] EXT3 FS on sda1, internal journal
Cleaning up ifupdown....
[   25.620000] mp_therm: initializing - NAS7820
Loading kernel modules...done.
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
.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
/dev/sda1 is mounted.  e2fsck: Cannot continue, aborting.


fsck died with exit status 8
failed (code 8).
File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the file system manually. ... failed!
A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot. ... (warning).
Give root password for maintenance
(or type Control-D to continue):
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...[   32.010000] Probing for Synopsis GMAC, unit 0
[   32.010000] eth0: Tuning GMAC 0 RGMII timings
[   32.020000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[   32.020000] eth0: GMAC ver = 53, vendor ver = 18 at 0xe1400000, IRQ 40
[   32.030000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[   32.040000] eth0: Ethernet addr: 00:01:d2:12:00:fa
[   32.040000] probe() eth0: Leon x2 clock
[   32.060000] CoPro offload is active on eth0
[   32.060000] Alloc'ing ARM descs 8192 bytes
[   32.070000] Alloc'ing CoPro parameters 40 bytes
[   32.070000] gmac gmac.0: firmware: requesting gmac_copro_firmware
[   32.110000] CoPro: Programming start address as 0xd000dd00
[   32.220000] Heartbeats started
[   32.220000] eth0: Resetting GMAC
[   32.230000] eth0: GMAC reset complete
[   32.230000] hw_set_mac_address() Storing port0 mac_adr in global array
[   32.240000] eth0: Setting Rx flow control thresholds for LAN port
[   32.240000] CoPro available SRAM end 0x1000dc64
[   32.250000] Copro offload started
[   35.260000] Attempting to set new mtu 4000
[   35.260000] eth0: Resetting GMAC
[   35.260000] eth0: GMAC reset complete
[   35.270000] hw_set_mac_address() Storing port0 mac_adr in global array
[   35.280000] eth0: Setting Rx flow control thresholds for LAN port
[   35.280000] CoPro available SRAM end 0x1000dc64
[   35.290000] Copro offload started
[   35.790000] eth0: link up, 1000Mbps, full-duplex, not using pause, lpa 0xC1E1
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.
FATAL: Module softdog not found.
Starting watchdog keepalive daemon: wd_keepalive.
Starting portmap daemon...Already running..
Starting NFS common utilities: statd.
Starting daemon monitor: monit.
Starting enhanced syslogd: rsyslogd.
Loading ACPI kernel modules... failed!
Starting ACPI services...RTNETLINK1 answers: No such file or directory
acpid: error talking to the kernel via netlink
.
Starting anac(h)ronistic cron: anacron.
Starting web server: apache2.
Starting deferred execution scheduler: atd.
Starting MD monitoring service: mdadm --monitormdadm: No mail address or alert command - not monitoring.
 failed!
Starting Name Service Cache Daemon: nscd.
Starting system message bus: dbus.
Starting statistics collection and monitoring daemon: collectd.
Loading cpufreq kernel modules...done (none).
Starting OpenBSD Secure Shell server: sshd.
Starting periodic command scheduler: cron.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
CPUFreq Utilities: Setting conservative CPUFreq governor...disabled, governor not available...done.
Starting NTP server: ntpd.
Start Normal Power LED
FATAL: Module softdog not found.
Stopping watchdog keepalive daemon....
Starting watchdog daemon....

OpenMediaVault 0.3.10 (Omnius) OpenMediaVault ttyS0
Copyright (C) 2009-2013 by Volker Theile. All rights reserved.

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

eth0: 192.168.20.249

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

OpenMediaVault login:

Ready to go !

if I want to boot from nand , I can use nand-uboot .
if I want to boot from USB/IDE, I can Chain-load uboot from nand to do any thing.
That's what I want !



Edited 1 time(s). Last edit at 01/09/2024 10:07PM by Popo.
Re: Help! Akitio mycloudmini using stock kernel but missing system setting files
January 09, 2024 10:28PM
Congrats!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: