Welcome! Log In Create A New Profile

Advanced

NSA325 v2 isn't Boot

Posted by cratsil1979 
NSA325 v2 isn't Boot
October 10, 2021 05:41AM
Hello.

I have a NSA325 v2 and i managed to write to NAND , with Uboot 2016.05-tld-1.
I made an USB ext3 with name rootfs. i downloaded Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and just extracted as root in rootfs. I skipped step 3 (optional) and step 4 with uImage (because i use Uboot after 2012). Tried cold Boot as the forum suggest.

After some failed experiment, finally came back to default env.
I used this command:

setenv default -a
saveenv


It doesn't boot from USB, even completely remove machid with:
setenv machid
saveenv

I suppose something goes wrong with my env. Embedded systems is NOT familiar to me. Could somebody help me?
My final target is to have openmediavault on this little machine

When it boot.....
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15667200        b2624dfa-01     83
loading envs from usb 0 ...
95 bytes read in 274 ms (0 Bytes/s)
importing envs ...
## Info: input data size = 43351 = 0xA957
ERROR: Environment import failed: errno = 22

at cmd/nvedit.c:1084/do_env_import()
3821592 bytes read in 545 ms (6.7 MiB/s)
7245696 bytes read in 742 ms (9.3 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x118f from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000118f).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.

My Env
NSA325> printenv
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; run bootcmd_sata; reset
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=118f
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 2086/131068 bytes



Edited 7 time(s). Last edit at 10/10/2021 03:13PM by cratsil1979.
Re: NSA325 v2 isn't Boot
October 10, 2021 04:00PM
cratsil1979,

Indeed your envs are are the internal envs after you did this
setenv default -a 
saveenv

The internal envs are not the same as the one in the image that you have downloaded from the release thread.

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

a. Download the default u-boot envs at Dropbox:

uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c

This tarball includes 3 files:

uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 only).

So now you need to populate the envs with the uboot.2016.05-tld-1.environment to set them to the real default envs.

Mount your USB rootfs to another Linux box. And assuming it is mounted at /media/sdb1,

cd /media/sdb1/boot


And copy the file uboot.2016.05-tld-1.environment to uEnv.txt

cp -a uboot.2016.05-tld-1.environment uEnv.txt

And modify the DTB file name in this uEnv.txt to have NSA325 DTB:
dtb_file=/boot/dts/kirkwood-kirkwood-nsa325.dtb

Sync and umount.
sync
umount /media/sdb1


Take it back to the NSA325, power up, interrupt serial connsole, and try booting:
boot

If it boots successfully to Debian, then congrats! now you can save the envs, post back here the good news.

=============

OTOH, If it does not boot successfully, we need to check the envs to see why.

Recycle the power. interrupt u-boot at count down and

run bootcmd_uenv
printenv
And post the log here

=============

Generally, we want to avoid doing this.

setenv default -a 
saveenv

It should be done only as a last resort. The correct approach is to try to polulate the envs with the a set of default envs that are released with the u-boot image. The internal envs are for emergency use only.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 v2 isn't Boot
October 11, 2021 12:59AM
Thx for your replay.

My new boot status
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15667200        b2624dfa-01     83
loading envs from usb 0 ...
2766 bytes read in 280 ms (8.8 KiB/s)
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
3821592 bytes read in 546 ms (6.7 MiB/s)
7245696 bytes read in 744 ms (9.3 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000118f).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.

when type:
run bootcmd_uenv
printenv

NSA325> run bootcmd_uenv
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15667200        b2624dfa-01     83
loading envs from usb 0 ...
2766 bytes read in 280 ms (8.8 KiB/s)
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
NSA325> printenv
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
fileaddr=810000
filesize=ace
if_netconsole=ping $serverip
ipaddr=192.168.2.222
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.2.111
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=1
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_ready_retry=15
usb_root=/dev/sda1

Environment size: 3939/131068 bytes

After that if i type just
boot

keep going into debia
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
NSA325> run bootcmd_uenv
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15667200        b2624dfa-01     83
loading envs from usb 0 ...
2766 bytes read in 280 ms (8.8 KiB/s)
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
NSA325> boot

Reset IDE: Bus 0: OK Bus 1: ..OK
  Device 0: Model: ST9250315AS  Firm: 0003SDM1 Ser#: 6VCP7SL8
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
  Device 1: Model: HTS541010G9SA00  Firm: MBZOC60R Ser#: MP2ZXAX0KY18ES
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 95396.2 MB = 93.1 GB (195371568 x 512)
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15667200        b2624dfa-01     83
loading envs from usb 0 ...
2766 bytes read in 280 ms (8.8 KiB/s)

Partition Map for IDE device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     63              1028097         9d1181d4-01     83
  2     1028160         487363905       9d1181d4-02     20


Partition Map for IDE device 1  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x0ba5220e      ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   5d82f391-bdc5-4b15-8d22-a66fcf5b690e
loading envs from ide 0 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 252 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 546 ms (6.7 MiB/s)
loading uInitrd ...
7245696 bytes read in 743 ms (9.3 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 549 ms (25.4 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f429000, end 1fb11f40 ... OK
   Loading Device Tree to 1f422000, end 1f4288d3 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000034] Switching to timer-based delay loop, resolution 5ns
[    0.000418] Console: colour dummy device 80x30
[    0.000449] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000467] pid_max: default: 32768 minimum: 301
[    0.000629] Security Framework initialized
[    0.000727] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001456] CPU: Testing write buffer coherency: ok
[    0.002328] Setting up static identity map for 0x100000 - 0x100058
[    0.002565] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005227] devtmpfs: initialized
[    0.009398] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009421] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009746] prandom: seed boundary self test passed
[    0.012603] prandom: 100 self tests passed
[    0.012618] pinctrl core: initialized pinctrl subsystem
[    0.013602] NET: Registered protocol family 16
[    0.013945] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015311] cpuidle: using governor ladder
[    0.015372] cpuidle: using governor menu
[    0.015730] Feroceon L2: Enabling L2
[    0.015768] Feroceon L2: Cache support initialised.
[    0.016069] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020291] No ATAGs?
[    0.027526] vgaarb: loaded
[    0.027780] SCSI subsystem initialized
[    0.028165] usbcore: registered new interface driver usbfs
[    0.028214] usbcore: registered new interface driver hub
[    0.028255] usbcore: registered new device driver usb
[    0.029028] clocksource: Switched to clocksource orion_clocksource
[    0.098117] VFS: Disk quotas dquot_6.6.0
[    0.098191] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.106377] NET: Registered protocol family 2
[    0.106981] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107037] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107088] TCP: Hash tables configured (established 4096 bind 4096)
[    0.107154] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.107176] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.107324] NET: Registered protocol family 1
[    0.107671] RPC: Registered named UNIX socket transport module.
[    0.107681] RPC: Registered udp transport module.
[    0.107687] RPC: Registered tcp transport module.
[    0.107692] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107884] Unpacking initramfs...
[    0.608547] Freeing initrd memory: 7076K
[    0.608660] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.609453] audit: initializing netlink subsys (disabled)
[    0.609815] Initialise system trusted keyrings
[    0.609858] Key type blacklist registered
[    0.609938] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.610018] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.610074] zbud: loaded
[    0.610841] NFS: Registering the id_resolver key type
[    0.610864] Key type id_resolver registered
[    0.610871] Key type id_legacy registered
[    0.610889] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.610898] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.611060] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.611210] fuse init (API version 7.26)
[    0.611484] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.611649] orangefs_init: module version upstream loaded
[    0.611657] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559032] random: fast init done
[    4.970131] Key type asymmetric registered
[    4.970146] Asymmetric key parser 'x509' registered
[    4.970202] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.970211] io scheduler noop registered
[    4.970218] io scheduler deadline registered
[    4.970289] io scheduler cfq registered (default)
[    4.971288] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.972769] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.972787] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.972798] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.972808] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.973065] PCI: bus0: Fast back to back transfers disabled
[    4.973083] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.999126] PCI: bus1: Fast back to back transfers disabled
[    4.999295] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    4.999310] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    4.999331] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.999344] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    4.999419] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    4.999498] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    4.999925] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.059596] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.059787] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.119597] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.119980] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.121070] console [ttyS0] disabled
[    5.121128] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.804437] console [ttyS0] enabled
[    5.814423] loop: module loaded
[    5.818065] sata_mv f1080000.sata: slots 32 ports 2
[    5.825148] scsi host0: sata_mv
[    5.828665] scsi host1: sata_mv
[    5.832066] ata1: SATA max UDMA/133 irq 32
[    5.836183] ata2: SATA max UDMA/133 irq 32
[    5.840963] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.847409] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.851726] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.859346] Scanning device for bad blocks
[    5.868282] Bad eraseblock 100 at 0x000000c80000
[    5.877708] Bad eraseblock 200 at 0x000001900000
[    5.921651] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.927943] Creating 4 MTD partitions on "orion_nand":
[    5.933124] 0x000000000000-0x000000100000 : "u-boot"
[    5.939195] 0x000000100000-0x000000500000 : "uImage"
[    5.945230] 0x000000500000-0x000002500000 : "rootfs"
[    5.951344] 0x000002500000-0x000008000000 : "data"
[    5.958269] libphy: Fixed MDIO Bus: probed
[    5.963042] libphy: orion_mdio_bus: probed
[    5.971274] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.069509] mv643xx_eth: Set the PHY to fix link down
[    6.070136] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    6.084106] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.090778] ehci-pci: EHCI PCI platform driver
[    6.095296] ehci-orion: EHCI orion driver
[    6.099535] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.105095] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.112942] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.139047] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.145291] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.152146] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.159429] usb usb1: Product: EHCI Host Controller
[    6.164325] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.171138] usb usb1: SerialNumber: f1050000.ehci
[    6.176425] hub 1-0:1.0: USB hub found
[    6.180273] hub 1-0:1.0: 1 port detected
[    6.184694] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.190015] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.197771] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.206382] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.213223] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.220489] usb usb2: Product: xHCI Host Controller
[    6.225383] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.232130] usb usb2: SerialNumber: 0000:01:00.0
[    6.237290] hub 2-0:1.0: USB hub found
[    6.241132] hub 2-0:1.0: 2 ports detected
[    6.245586] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.250891] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.258397] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.266660] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.273494] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.280762] usb usb3: Product: xHCI Host Controller
[    6.285656] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.292477] usb usb3: SerialNumber: 0000:01:00.0
[    6.297654] hub 3-0:1.0: USB hub found
[    6.301496] hub 3-0:1.0: 2 ports detected
[    6.306145] usbcore: registered new interface driver usb-storage
[    6.312508] mousedev: PS/2 mouse device common for all mice
[    6.318359] i2c /dev entries driver
[    6.328282] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.337629] hidraw: raw HID events driver (C) Jiri Kosina
[    6.343122] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.350267] drop_monitor: Initializing network drop monitor service
[    6.356971] NET: Registered protocol family 17
[    6.361528] Key type dns_resolver registered
[    6.366400] registered taskstats version 1
[    6.370553] Loading compiled-in X.509 certificates
[    6.375419] zswap: loaded using pool lzo/zbud
[    6.387963] Key type big_key registered
[    6.399566] Key type encrypted registered
[    6.405951] rtc-pcf8563 0-0051: setting system clock to 2021-10-11 04:33:55 UTC (1633926835)
[    6.539050] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.649098] ata1.00: ATA-8: ST9250315AS, 0003SDM1, max UDMA/133
[    6.655045] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    6.668583] ata1.00: configured for UDMA/133
[    6.683369] scsi 0:0:0:0: Direct-Access     ATA      ST9250315AS      SDM1 PQ: 0 ANSI: 5
[    6.692399] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    6.700401] sd 0:0:0:0: [sda] Write Protect is off
[    6.705341] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.730575] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.737322] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.744647]  sda: sda1 sda2
[    6.745975] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.753488] usb 1-1: Product: USB2.0 Hub
[    6.758237] hub 1-1:1.0: USB hub found
[    6.762446] hub 1-1:1.0: 4 ports detected
[    7.079049] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    7.199062] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    7.209868] ata2.00: ATA-7: HTS541010G9SA00, MBZOC60R, max UDMA/100
[    7.216168] ata2.00: 195371568 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.229637] ata2.00: configured for UDMA/100
[    7.234319] usb 1-1.3: New USB device found, idVendor=18a5, idProduct=0302
[    7.241247] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.248743] usb 1-1.3: Product: STORE N GO
[    7.254889] scsi 1:0:0:0: Direct-Access     ATA      HTS541010G9SA00  C60R PQ: 0 ANSI: 5
[    7.263177] usb 1-1.3: Manufacturer: Verbatim
[    7.269491] usb 1-1.3: SerialNumber: 10V2500000009133
[    7.275997] sd 1:0:0:0: [sdb] 195371568 512-byte logical blocks: (100 GB/93.2 GiB)
[    7.283890] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    7.290275] sd 1:0:0:0: [sdb] Write Protect is off
[    7.290369] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.305565] scsi host2: usb-storage 1-1.3:1.0
[    7.678310]  sdb: sdb1
[    7.681818] sd 1:0:0:0: [sdb] Attached SCSI disk
[    7.689459] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.122231] usbcore: registered new interface driver uas
[    8.332791] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       1.00 PQ: 0 ANSI: 2
[    8.350622] sd 2:0:0:0: [sdc] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    8.364463] sd 2:0:0:0: [sdc] Write Protect is off
[    8.374365] sd 2:0:0:0: [sdc] No Caching mode page found
[    8.385662] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    8.403460]  sdc: sdc1
[    8.408870] sd 2:0:0:0: [sdc] Attached SCSI removable disk
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.
Warning: fsck not present, so skipping root file[   18.826019] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
 system
[   18.847017] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[ ok [   20.888328] input: gpio_keys as /devices/platform/gpio_keys/input/input0
                                                 done.
[....] Waiting for /dev to be fully populated...[   21.041990] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   21.252740] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.285989] marvell-cesa f1030000.crypto: CESA device successfully registered
[   21.297279] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   21.297460] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   21.377726] random: crng init done
[   21.446724] orion_wdt: Initial timeout 21 sec
done.
[ ok ] Activating swap:.
[   22.594966] EXT4-fs (sdc1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdc1
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14461/489600 files, 219827/1958400 blocks
. ok
[   22.830662] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...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/

Listening on LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[   25.260695] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   86.507423] NET: Registered protocol family 10
[   86.519262] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   86.525957] Segment Routing with IPv6
[ 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...
1327 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1326 (klogd)
. ok
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login:

So my main problem now is, how to solve the error with machid.
Maybe was much more easier to flash with uboot.2016.05-tld-1.environment.img (but i dont know how !!!)

Thx in advance



Edited 3 time(s). Last edit at 10/11/2021 02:34AM by cratsil1979.
Re: NSA325 v2 isn't Boot
October 11, 2021 03:09PM
cratsil1979,

Excellent! Once you are here.

> debian login:

Log in as root/root.

And then flash the default envs image as instructed in the u-boot release thread:

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

Quote

8. Flashing default u-boot envs image (if you are upgrading from 2016.05-tld-1 u-boot, you can skip this step 8).

As described in step 1, u-boot envs must be defined in /etc/fw_env.config as

# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

This default envs image supports booting with multiple disk drives (and hubs) attached. The disk drives could be any type (usb, sata, sd card). The scanning logic and default envs were set to automatically boot the box with the following required configuration:

For whatever reason, if you can't set up your configuration to satisfy the following 4 requirements, then don't flash this defaut envs image. It might not boot properly. In this case, section C below can be used to tailor the envs to your specific configuration.

r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).

So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.

a. Download the default u-boot envs at Dropbox:

uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c

This tarball includes 3 files:

uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 only).

b. Extract the archive to /tmp
cd /tmp
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar

c. Save current envs with fw_printenv, or just copy/paste the listing into a text file.
fw_printenv > current_envs.txt

d. Flash u-boot envs to NAND location 0xC0000.

Be extra careful with the next 2 commands, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.

/usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Expected output:
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done

/usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Expected output:
Writing data to block 6 at offset 0xc0000

e. Modify the following u-boot variables using fw_setenv:

e.1 ArcNumber:

Deprecated. See older u-boot release if interest in the hisorical reason for ArchNumber.

e.2 Box specific envs:

Then for all boxes, restore these 2 envs using the saved envs text in step c (replace xxx with the real saved values)
fw_setenv mtdparts 'xxxxxxxxx'
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'

e.3 uEnv.txt envs correction (optional):

These envs are important to be set if you plan to use uEnv.txt (see section C).

fw_setenv uenv_init_devices 'echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done'
fw_setenv uenv_read 'echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi'
fw_setenv uenv_load 'run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;'
fw_setenv uenv_read_disk

And for boxes that boot with SATA as rootfs. Please make this adjustment if your boot drive is SATA. This will help the "ide reset" to work properly. There seems to be a bug in u-boot that if you do "ide reset" too quickly in succession, the SATA drive might have problem spinning up).
fw_setenv bootcmd_uenv 'run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3'


f. Adjust the DTB name to boot with a rootfs that has FDT kernel 3.17+ (this is the normal case):

Find your box DTB file in the rootfs /boot/dts directory and adjust the env to it. For example, if the box is the Dockstar
fw_setenv dtb_file '/boot/dts/kirkwood-dockstar.dtb'

In the special case when you are booting with a non-FDT kernel 3.16 or earlier, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.
fw_setenv dtb_file

h. For sanity check, list you envs again
fw_printenv

If there is error in listing u-boot envs, stop here and post your problem so we can help.

Remember to save away your old envs text file created in step c for future reference in case more need to be restored.

i. Done step 8.

It seems like a lot, but it is a general insruction. The essence is Step 8.d and then Step 8.f. That will be enough for booting, but the other extra stuff also need to be done now or later.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 v2 isn't Boot
October 14, 2021 01:11AM
Thx. Everything now flow smoothly...

I'm in progress to install openemiadiavault on Debian 10.
I found exactrly the steps that needed from
OMV 5

but it reterns
root@debian:~# wget -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key
--2021-10-13 23:09:40--  https://packages.openmediavault.org/public/archive.key
Resolving packages.openmediavault.org (packages.openmediavault.org)... 178.254.11.33
Connecting to packages.openmediavault.org (packages.openmediavault.org)|178.254.11.33|:443... connected.
ERROR: The certificate of ‘packages.openmediavault.org’ is not trusted.
ERROR: The certificate of ‘packages.openmediavault.org’ has expired.

What should i do with expired key?



Edited 2 time(s). Last edit at 10/14/2021 01:18AM by cratsil1979.
Re: NSA325 v2 isn't Boot
October 14, 2021 02:39AM
@cratsil1979, I'm not going to claim to fully understand it, but it's because of the LetsEncrypt certificates that had a change on the first of the month. The easiest thing to do is to tell wget not to check certificates:
wget --no-check-certificate -O "/etc/apt/trusted.gpg.d/openmediavault-archive-keyring.asc" https://packages.openmediavault.org/public/archive.key
You might want to try to update your ca-certificates:
apt-get update
apt-get install ca-certificates
I'm the first to say that I don't know if that's all it takes.
Re: NSA325 v2 isn't Boot
October 17, 2021 10:12AM
Thanx renojim. After your suggestion i had a successfull installation with OMV 5.
Now I face another problem. The tranfer rate over my new OMV box is very limited (about 10MB/s). The original stock had much more (70-80MB/s)

I suspect the ethernet card of my NSA325v2.
It has the default MAC (52:3b:20:9c:11:51) that included in uboot.2016.05-tld-1.environment.img
My real MAC adress is 4c:9e:ff:XX:XX:XX

When use
setenv ethaddr 4c:9e:ff:XX:XX:XX 
saveenv
the new MAC stored but the ethernet card is disabled. When come back to default (52:3b:20:9c:11:51) my card plays again.
After that i tried with uEnv.txt boot method. I had same results.

Is there any possible the wrong MAC adreess limits the tranfer rate?
Thx in advance



Edited 2 time(s). Last edit at 10/17/2021 10:16AM by cratsil1979.
Re: NSA325 v2 isn't Boot
October 17, 2021 03:24PM
cratsil1979,

> the new MAC stored but the ethernet card is
> disabled. When come back to default
> (52:3b:20:9c:11:51) my card plays again.

For certain router, the MAC address change takes sometime to work (the old MAC is still in the router table). If you can log into the router, clear it manually to make it accept the new MAC address faster.

And to make sure that it works no matter what the router thinks, use static IP address.

> Is there any possible the wrong MAC adreess limits
> the tranfer rate?

No, it should not affect the transfer rate. You can run iperf to test the network performance to see the network transfer rate without anything else involved (i.e. OMV).

For example,

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

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 v2 isn't Boot
October 18, 2021 02:08AM
My boot env variables, with original MAC (4c:9e:ff:XX:XX:XX) inside

\NSA325> printenv
arcNumber=4495
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=4c:9e:ff:XX:XX:XX
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2843/131068 bytes

Here what i get, when boot and type ifconfig
root@OMV:~# ifconfig
163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ine-bash: root@OMV:~#: command not found
t 192.168.100.250  netmask 255.255.255.0  broadcast 192.168.100.255
        ether 52:3b:20:9c:11:51  txqueuelen 1000  (Ethernet)
        RX packets 24  bytes 3064 (2.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 53  bytes 12192 (11.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 35

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 6  bytes 300 (300.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6  bytes 300 (300.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@OMV:~#

Again my ethcard recognized as 52:3b:20:9c:11:51, even if restart my router



Edited 1 time(s). Last edit at 10/18/2021 02:10AM by cratsil1979.
Re: NSA325 v2 isn't Boot
October 18, 2021 03:10PM
cratsil1979,

Looks like OMV did somthing to that MAC address.

Please post the entire bootlog here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 v2 isn't Boot
October 23, 2021 09:43AM
You were right for another time bodhi.

The installation of OMV was the problem.
I installed from the scratch and my problem was solved

Thx again for your support...
Re: NSA325 v2 isn't Boot
October 23, 2021 02:42PM
Cool! glad to hear.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA325 v2 isn't Boot
October 25, 2021 07:39AM
Could this be the same problem? Apart from that I've reset the uBoot envs to default (no change), upgraded the kernel from 5.13.6 a few times (it does not see eth0; I'm beginning to think that my eth0 is gone due to a hard poweroff event).

SoC:   Kirkwood 88F6282_??
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0 [PRIME]
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
5472984 bytes read in 593 ms (8.8 MiB/s)
9710148 bytes read in 772 ms (12 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.14.9-kirkwood-tld-1
   Created:      1970-01-01   0:44:14 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5472920 Bytes = 5.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.14.9-kirkwood-tld-1
   Created:      1970-01-01   0:44:31 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9710084 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: invalid dtb and unrecognized/unsupported machine ID
  r1=0x0000118f, r2=0x00000100
  r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00
Available machine support:

ID (hex)	NAME
ffffffff	Generic DT based system
ffffffff	Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.


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: