Welcome! Log In Create A New Profile

Advanced

NSA325v2 u-boot installation problem

Posted by krono 
krono
NSA325v2 u-boot installation problem
November 29, 2017 08:53AM
Hi guys!
Yesterday night I tried to update u-boot on my NSA325v2 with stock firmware.
I followed all of the instructions until the step 8.b and I forgot to do the step 8.c:
fw_printenv > current_envs.txt
I went on until:

Quote
bodhi
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'

Luckily I saved my mtd0 and the environment at step 3:

Quote
bodhi
Dumping NAND mtd0:
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
Save envs:
fw_printenv > current_envs.txt

The problem is that I stored the last files in the hard drive of the NAS (configured in RAID 1).
Finally at step 8.f, thinking to still reboot with the stock firmware, I used
fw_setenv dtb_file
and rebooted the NAS.

Now, the NAS doesn't boot, but I have an active serial console.
How can I boot the stock firmware (preserving the new u-boot to install debian in future)?
If I boot the stock firmware I will be able to access to the environment file stored on it and set the right mtdparts and ethaddr.

Thank you for help!

Ivan



Edited 1 time(s). Last edit at 11/29/2017 01:38PM by bodhi.
Re: NSA325v2 u-boot installation problem
November 29, 2017 01:42PM
krono,

You cannot boot stock FW after flashing new u-boot (at least not yet, it is on my TODO list).

Power up, interrupt serial console, and

printenv
boot

Please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
November 29, 2017 02:49PM
Thanks for hel bodhi!
In the meantime I tried some environment settings suggested here to run Debian, without success.

NSA325> printenv
arcNumber=4495
bootargs=$(bootargs_stock)
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd='run bootcmd_stock'
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_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
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=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.1.254
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
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
partition=nand0,2
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
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
to_linux=setenv mainlineLinux yes; setenv bootcmd \\'run bootcmd_linux\\'; saveenv; reset
to_stock=setenv mainlineLinux no; setenv bootcmd \\'run bootcmd_stock\\'; saveenv; reset
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: 3774/131068 bytes

NSA325> boot
Unknown command 'run bootcmd_stock' - try 'help'
krono
Re: NSA325v2 u-boot installation problem
November 29, 2017 03:19PM
I manually restored yout environment...

NSA325> printenv
arcNumber=4495
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
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=52:3b:20:9c:11:51
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.254
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
mtddevname=rootfs
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.100
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_loaded=0
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: 3159/131068 bytes

NSA325> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
CACHE: Misaligned operation at range [1ffba2c4, 1ffbaae0]
CACHE: Misaligned operation at range [1ffba2c4, 1ffbaae0]
** First descriptor is NOT a primary desc on 0:1 **
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** No partition table - usb 0 **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** No partition table - usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** No partition table - usb 0 **
loading uInitrd ...
** No partition table - usb 0 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** No partition table - usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
Re: NSA325v2 u-boot installation problem
November 29, 2017 05:46PM
krono,

Your USB partition is not good.

USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
CACHE: Misaligned operation at range [1ffba2c4, 1ffbaae0]
CACHE: Misaligned operation at range [1ffba2c4, 1ffbaae0]
** First descriptor is NOT a primary desc on 0:1 **
1 Storage Device(s) found

<snip>

loading envs from usb 0 ...
** No partition table - usb 0 **

<snip>

Scan device usb
device usb 0:1
** No partition table - usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1


Mount this USB drive on anther Linux box and use fdisk to remove all partitions, create one new partition for the whole disk, reformat it as Ext3.

And then follow the instruction to create the new rootfs using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

And boot with it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
November 30, 2017 04:07AM
Hi bodhi!
Finally Debian booted on my NAS!
I had to change the usb drive partition table (from GUID to MBR).
To day, I will recover my old RAID 1 configuration where I saved my u-boot environment.
Thanks a lot.

Ivan
Re: NSA325v2 u-boot installation problem
November 30, 2017 04:09AM
Hi Ivan,

Quote

I had to change the usb drive partition table (from GUID to MBR).


That's strange. New u-boot supports both GPT and MBR patition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
November 30, 2017 08:40AM
I don't know why, but in my file current_envs.txt I only see:

bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200

No information about ethaddr and mtdparts. What's wrong?
Can I recover the information from my nand dump?

Ivan
Re: NSA325v2 u-boot installation problem
November 30, 2017 04:27PM
Ivan,

There is no need to use nanddump. It is just some configuration issue. The released Debian rootfs does not have NSA325 setting for fw_printenv/setenv out of the box.

Please post the output of:

cat /etc/fw_env.config
cat /proc/mtd
cat /proc/cmdline
And while we are at it also post either the serial bootlog or
dmesg

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
December 01, 2017 04:49AM
Ok, I will give the information when I will return home.
I have to specify that current_envs.txt is the file that I created at step 8.c of the u-boot update procedure.

Ivan
krono
Re: NSA325v2 u-boot installation problem
December 04, 2017 11:26AM
root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 05b00000 00020000 "data"
root@debian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) init=/bin/systemd


root@debian:~# dmesg
[    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] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map dfbf9000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    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) init=/bin/systemd
[    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: 498152K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 26136K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
                      .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.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000421] Console: colour dummy device 80x30
[    0.000450] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000469] pid_max: default: 32768 minimum: 301
[    0.000632] Security Framework initialized
[    0.000731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000748] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001463] CPU: Testing write buffer coherency: ok
[    0.002338] Setting up static identity map for 0x100000 - 0x100058
[    0.002575] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005241] devtmpfs: initialized
[    0.009424] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009447] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009769] prandom: seed boundary self test passed
[    0.012626] prandom: 100 self tests passed
[    0.012640] pinctrl core: initialized pinctrl subsystem
[    0.013614] NET: Registered protocol family 16
[    0.013973] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015331] cpuidle: using governor ladder
[    0.015391] cpuidle: using governor menu
[    0.015769] Feroceon L2: Enabling L2
[    0.015807] Feroceon L2: Cache support initialised.
[    0.016108] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020332] No ATAGs?
[    0.027579] vgaarb: loaded
[    0.027831] SCSI subsystem initialized
[    0.027977] libata version 3.00 loaded.
[    0.028215] usbcore: registered new interface driver usbfs
[    0.028264] usbcore: registered new interface driver hub
[    0.028305] usbcore: registered new device driver usb
[    0.029088] clocksource: Switched to clocksource orion_clocksource
[    0.098152] VFS: Disk quotas dquot_6.6.0
[    0.098227] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.106417] NET: Registered protocol family 2
[    0.107020] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107077] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.107129] TCP: Hash tables configured (established 4096 bind 4096)
[    0.107196] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.107218] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.107365] NET: Registered protocol family 1
[    0.107710] RPC: Registered named UNIX socket transport module.
[    0.107720] RPC: Registered udp transport module.
[    0.107726] RPC: Registered tcp transport module.
[    0.107731] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107742] PCI: CLS 0 bytes, default 32
[    0.107925] Unpacking initramfs...
[    0.675395] Freeing initrd memory: 8180K
[    0.675522] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.676223] audit: initializing netlink subsys (disabled)
[    0.676606] Initialise system trusted keyrings
[    0.676662] Key type blacklist registered
[    0.676741] audit: type=2000 audit(0.667:1): state=initialized audit_enabled=0 res=1
[    0.676801] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.676858] zbud: loaded
[    0.677624] NFS: Registering the id_resolver key type
[    0.677646] Key type id_resolver registered
[    0.677653] Key type id_legacy registered
[    0.677672] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.677680] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.677844] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.677997] fuse init (API version 7.26)
[    0.678267] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.678433] orangefs_init: module version upstream loaded
[    0.678442] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559094] random: fast init done
[    5.037207] Key type asymmetric registered
[    5.037222] Asymmetric key parser 'x509' registered
[    5.037276] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.037285] io scheduler noop registered
[    5.037291] io scheduler deadline registered
[    5.037363] io scheduler cfq registered (default)
[    5.038354] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.040090] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    5.040109] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.040120] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.040131] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.040140] pci_bus 0000:00: scanning bus
[    5.040165] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    5.040198] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    5.040375] pci_bus 0000:00: fixups for bus
[    5.040386] PCI: bus0: Fast back to back transfers disabled
[    5.040398] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    5.040405] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.040418] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    5.040524] pci_bus 0000:01: scanning bus
[    5.040560] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[    5.040596] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[    5.040649] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x40
[    5.040728] pci 0000:01:00.0: PME# supported from D0 D3hot
[    5.040738] pci 0000:01:00.0: PME# disabled
[    5.069144] pci_bus 0000:01: fixups for bus
[    5.069156] PCI: bus1: Fast back to back transfers disabled
[    5.069167] pci_bus 0000:01: bus scan returning with max=01
[    5.069176] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    5.069186] pci_bus 0000:00: bus scan returning with max=01
[    5.069197] pci 0000:00:01.0: fixup irq: got 0
[    5.069202] pci 0000:00:01.0: assigning IRQ 00
[    5.069288] pci 0000:01:00.0: fixup irq: got 33
[    5.069295] pci 0000:01:00.0: assigning IRQ 33
[    5.069324] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    5.069339] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    5.069360] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.069373] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    5.069447] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    5.069468] pcieport 0000:00:01.0: enabling bus mastering
[    5.069503] pci 0000:01:00.0: calling quirk_usb_early_handoff+0x0/0x64c
[    5.069515] pci 0000:00:01.0: enabling bus mastering
[    5.069524] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    5.069951] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.129659] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.129851] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.189647] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.190035] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.191129] console [ttyS0] disabled
[    5.191187] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.876076] console [ttyS0] enabled
[    5.886078] loop: module loaded
[    5.889536] sata_mv f1080000.sata: version 1.28
[    5.889788] sata_mv f1080000.sata: slots 32 ports 2
[    5.896805] scsi host0: sata_mv
[    5.900366] scsi host1: sata_mv
[    5.903720] ata1: SATA max UDMA/133 irq 32
[    5.907831] ata2: SATA max UDMA/133 irq 32
[    5.912616] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.919063] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.923378] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.931003] Scanning device for bad blocks
[    5.939960] Bad eraseblock 100 at 0x000000c80000
[    5.949382] Bad eraseblock 200 at 0x000001900000
[    5.993316] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.999622] Creating 4 MTD partitions on "orion_nand":
[    6.004793] 0x000000000000-0x000000100000 : "u-boot"
[    6.010842] 0x000000100000-0x000000500000 : "uImage"
[    6.016870] 0x000000500000-0x000002500000 : "rootfs"
[    6.022993] 0x000002500000-0x000008000000 : "data"
[    6.029948] libphy: Fixed MDIO Bus: probed
[    6.034660] libphy: orion_mdio_bus: probed
[    6.042888] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.149538] mv643xx_eth: Set the PHY to fix link down
[    6.150170] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    6.164133] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.170738] ehci-pci: EHCI PCI platform driver
[    6.175251] ehci-orion: EHCI orion driver
[    6.179482] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.185045] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.192893] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.219115] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.225358] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.232209] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.239543] usb usb1: Product: EHCI Host Controller
[    6.244441] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.251189] usb usb1: SerialNumber: f1050000.ehci
[    6.256478] hub 1-0:1.0: USB hub found
[    6.260316] hub 1-0:1.0: 1 port detected
[    6.264724] xhci_hcd 0000:01:00.0: enabling bus mastering
[    6.264735] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.270051] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.277808] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.286246] xhci_hcd 0000:01:00.0: enabling Mem-Wr-Inval
[    6.286429] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.293269] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.300534] usb usb2: Product: xHCI Host Controller
[    6.305429] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.312175] usb usb2: SerialNumber: 0000:01:00.0
[    6.317333] hub 2-0:1.0: USB hub found
[    6.321174] hub 2-0:1.0: 2 ports detected
[    6.325633] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.330936] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.338444] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.346709] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.353547] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.360815] usb usb3: Product: xHCI Host Controller
[    6.365710] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.372533] usb usb3: SerialNumber: 0000:01:00.0
[    6.377704] hub 3-0:1.0: USB hub found
[    6.381537] hub 3-0:1.0: 2 ports detected
[    6.386187] usbcore: registered new interface driver usb-storage
[    6.392538] mousedev: PS/2 mouse device common for all mice
[    6.398394] i2c /dev entries driver
[    6.408323] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.415114] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.421834] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 82.00A82, max UDMA/133
[    6.421841] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.429047] ata1.00: configured for UDMA/133
[    6.440749] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5
[    6.441801] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    6.441808] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    6.441866] sd 0:0:0:0: [sda] Write Protect is off
[    6.441873] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    6.441971] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.481664] hidraw: raw HID events driver (C) Jiri Kosina
[    6.487401] drop_monitor: Initializing network drop monitor service
[    6.494023] NET: Registered protocol family 17
[    6.498551] Key type dns_resolver registered
[    6.503886] registered taskstats version 1
[    6.508002] Loading compiled-in X.509 certificates
[    6.513013] zswap: loaded using pool lzo/zbud
[    6.517939]  sda: sda1 sda2
[    6.522686] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.534873] Key type big_key registered
[    6.546370] Key type encrypted registered
[    6.553002] rtc-pcf8563 0-0051: setting system clock to 2017-12-04 17:15:59 UTC (1512407759)
[    6.561770] PM: Hibernation image not present or could not be loaded.
[    6.619115] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.810647] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.817392] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.824593] usb 1-1: Product: USB2.0 Hub
[    6.829313] hub 1-1:1.0: USB hub found
[    6.833400] hub 1-1:1.0: 4 ports detected
[    6.949126] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.959954] ata2.00: supports DRM functions and may not be fully accessible
[    6.966958] ata2.00: ATA-9: ST1000DM003-1ER162, CC43, max UDMA/133
[    6.973199] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.988911] ata2.00: supports DRM functions and may not be fully accessible
[    6.995933] ata2.00: configured for UDMA/133
[    7.010711] scsi 1:0:0:0: Direct-Access     ATA      ST1000DM003-1ER1 CC43 PQ: 0 ANSI: 5
[    7.019765] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    7.027456] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    7.033081] sd 1:0:0:0: [sdb] Write Protect is off
[    7.037894] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    7.037985] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.072640]  sdb: sdb1 sdb2
[    7.076817] sd 1:0:0:0: [sdb] Attached SCSI disk
[    7.084499] Freeing unused kernel memory: 1024K
[    7.159182] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    7.327057] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
[    7.343238] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.366853] usb 1-1.2: Product: Mass Storage
[    7.375256] usb 1-1.2: Manufacturer: Generic
[    7.387964] usb 1-1.2: SerialNumber: 5130C9F736E16BD1
[    7.395491] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.414023] scsi host2: usb-storage 1-1.2:1.0
[    7.957906] usbcore: registered new interface driver uas
[    7.987979] md/raid1:md0: active with 1 out of 2 mirrors
[    7.993582] md0: detected capacity change from 0 to 999674667008
[    8.389652] raid6: int32x1  gen()   112 MB/s
[    8.559202] raid6: int32x1  xor()    73 MB/s
[    8.729479] raid6: int32x2  gen()   157 MB/s
[    8.899263] raid6: int32x2  xor()   104 MB/s
[    8.903665] scsi 2:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    8.916458] sd 2:0:0:0: [sdc] 16338944 512-byte logical blocks: (8.37 GB/7.79 GiB)
[    8.917325] sd 2:0:0:0: [sdc] Write Protect is off
[    8.917333] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00
[    8.918190] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.922923]  sdc: sdc1
[    8.933912] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[    9.139548] raid6: int32x4  gen()   162 MB/s
[    9.309304] raid6: int32x4  xor()   115 MB/s
[    9.479670] raid6: int32x8  gen()   156 MB/s
[    9.649268] raid6: int32x8  xor()   105 MB/s
[    9.653760] raid6: using algorithm int32x4 gen() 162 MB/s
[    9.659251] raid6: .... xor() 115 MB/s, rmw enabled
[    9.664184] raid6: using intx1 recovery algorithm
[    9.671401] xor: measuring software checksum speed
[    9.769138]    arm4regs  :  1452.800 MB/sec
[    9.869135]    8regs     :   872.400 MB/sec
[    9.969185]    32regs    :  1207.600 MB/sec
[    9.973419] xor: using function: arm4regs (1452.800 MB/sec)
[    9.985761] async_tx: api initialized (async)
[   20.247716] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   20.266595] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   21.017024] NET: Registered protocol family 10
[   21.022409] Segment Routing with IPv6
[   21.036723] ip_tables: (C) 2000-2006 Netfilter Core Team
[   21.063201] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   21.081864] systemd[1]: Detected architecture arm.
[   21.120780] systemd[1]: Set hostname to <debian>.
[   21.748302] systemd[1]: Created slice System Slice.
[   21.779554] systemd[1]: Listening on Journal Socket (/dev/log).
[   21.819337] systemd[1]: dev-hugepages.mount: Couldn't determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory
[   21.833848] systemd[1]: Listening on udev Control Socket.
[   21.869314] systemd[1]: Reached target Swap.
[   21.902202] systemd[1]: Mounting POSIX Message Queue File System...
[   21.940243] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   22.608233] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[   23.314279] random: crng init done
[   23.432671] systemd-journald[243]: Received request to flush runtime journal from PID 1
[   24.506989] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   24.703065] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.843851] orion_wdt: Initial timeout 21 sec
[   24.937807] marvell-cesa f1030000.crypto: CESA device successfully registered
[   25.003812] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   25.054551] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   25.135505] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   26.491173] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   26.493800] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.584242] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   29.594073] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   43.233252] NFSD: starting 90-second grace period (net c0d94190)

Ivan
Re: NSA325v2 u-boot installation problem
December 04, 2017 04:42PM
Ivan,


You've missed this part of the installation:

Quote

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

<snip>

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'

Both of these values needs to be set to real values.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
December 05, 2017 07:41AM
How could I recover these information? They were not in "current_envs.txt" I created before nand flashing.

Ivan
Re: NSA325v2 u-boot installation problem
December 05, 2017 04:28PM
Ivan,

For mtdparts
fw_setenv 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)'

For ethaddr, look for this on the box case bottom, there should be a sticker that shows the model number and the MAC address of this box. And then whatever that number is, replace xxx below with it.

fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
krono
Re: NSA325v2 u-boot installation problem
December 12, 2017 03:04AM
All right!
Thank you for help!

Ivan
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: