Welcome! Log In Create A New Profile

Advanced

Problem booting NSA325V2

Posted by kraftwerk 
Problem booting NSA325V2
September 06, 2017 01:43AM
Hello, sorry for mi english.

I installed the last rootfs in hdd in NSA325v2 with DTB in boot etc.
When boot is freeze in:

Starting kernel ...

Uncompressing Linux... done, booting the kernel

I can not pass from there
Why?

Thank´s



Edited 2 time(s). Last edit at 09/06/2017 02:19AM by bodhi.
Re: Problem booting NSA325V2
September 06, 2017 02:22AM
kraftwerk Wrote:
-------------------------------------------------------
> Hello, sorry for mi english.
>
> I installed the last rootfs in hdd in NSA325v2 wit
> h DTB in boot etc.
> When boot is freeze in:
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel
>
> I can not pass from there
> Why?
>

> Thank´s

Usually because the roots was not created correctly. Please post what you did while creating rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 06, 2017 07:04AM
If I do it as the tutorial I can only

** Unable to read "/ uImage" from ide 0: 1 **

** Unable to read "/ uInitrd" from ide 0: 1 **
## Booting image at 02000000 ...
Bad Magic Number

Then I take the boot files and move it to the root of the hdd and it stops in booting kernel.
I have also tried to make a boot partition and other partition rootfs with the same result.
I do it the same way for rootfs with jessie 4.4.0 kernel and it works

Thank's
Re: Problem booting NSA325V2
September 06, 2017 03:43PM
I installed rootfs 4.4 and working, after, dist-upgrade to stretch and update initframs with kernel 4.12.1 with
the same result.

Booting kernel.


Thank´s
Re: Problem booting NSA325V2
September 06, 2017 04:47PM
kraftwerk,

** Unable to read "/ uImage" from ide 0: 1 ** 

** Unable to read "/ uInitrd" from ide 0: 1 **

Those errors meant the u-boot envs are set up incorrectly for this rootfs. The envs should load the images from
/boot/uImage
/boot/uInitrd
What you did by copying the files to / works fine. But not a correct set up.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 07, 2017 01:37AM
In all possible ways it always freezes in bootin kernel.
What else can I do?

Thank´s
Re: Problem booting NSA325V2
September 07, 2017 02:04AM
kraftwerk,

Don't worry about your English :) just execute the commands I ask you to run and post the log.

Starting kernel ... 

Uncompressing Linux... done, booting the kernel

This indicated that you have serial console connected. So

1. Power up, interrupt serial console, and execute

printenv
boot


2. And post the entire serial console log here. The log should be the entire screen that you have (from u-boot banner until it stops booting). I need to see the entire picture of what you have installed, how the envs were set up, and the error message when it stops booting.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 07, 2017 09:21AM
Marvell>> printenv
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AE03
PRODUCT_NAME=NSA-325v2
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethaddr=00:50:43:00:02:02
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
arcNumber=4495
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
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
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; ext2load ide 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
bootcmd='run bootcmd_linux'
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
pcieTune1=no
bootargs=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

Environment size: 2475/131068 bytes




BOOT:
▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8
DRAM CS[0] base 0x00000000   size 512MB
DRAM Total size 512MB  16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0x4640000.

Streaming disabled
Write allocate disabled


USB 0: host mode
        [BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
        [BlueDBG] reseting SoC Pex[1]  0 ...
        [BlueDBG] reseting SoC Pex[1]  1 ...
        [BlueDBG] reseting SoC Pex[1]  2 ...
        [BlueDBG] reseting SoC Pex[1]  3 ...
        [BlueDBG] reseting SoC Pex[1]  4 ...
        [BlueDBG] reseting SoC Pex[1]  5 ...
        [BlueDBG] reseting SoC Pex[1]  6 ...
        [BlueDBG] reseting SoC Pex[1]  7 ...
        [BlueDBG] reseting SoC Pex[1]  8 ...
        [BlueDBG] reseting SoC Pex[1]  9 ...
        [BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: TOSHIBA MK2565GSXN                       Firm: GH101M   Ser#:            Z0SLD1G8B
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)


** Unable to read "/uImage" from ide 0:1 **

** Unable to read "/uInitrd" from ide 0:1 **
## Booting image at 02000000 ...
Bad Magic Number


-------
Moderator edit: add code tags to make it easier to read



Edited 1 time(s). Last edit at 09/07/2017 03:39PM by bodhi.
Re: Problem booting NSA325V2
September 07, 2017 03:43PM
kraftwerk,

Power up, interrupt serial console and,

setenv 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 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm $(loadaddr) 0x01100000'
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 07, 2017 10:34PM
Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: TOSHIBA MK2565GSXN                       Firm: GH101M   Ser#:            Z0SLD1G8B
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - ide 0:1 **
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - ide 0:1 **
## Booting image at 02000000 ...
Bad Magic Number

Re: Problem booting NSA325V2
September 07, 2017 10:57PM
kraftwerk,

> Reset IDE:
> Marvell Serial ATA Adapter
> Integrated Sata device found
> [0 0 0]: Enable DMA mode (5)
> Device 0 @ 0 0:
> Model: TOSHIBA MK2565GSXN Fi
> rm: GH101M Ser#: Z0SLD1G8B
> Type: Hard Disk
> Supports 48-bit addressing
> Capacity: 238475.1 MB = 232.8 GB (4883
> 97168 x 512)
>

The above looks good.

> Failed to mount ext2 filesystem...
> ** Bad ext2 partition or disk - ide 0:1 **

The error above means this command failed to read the disk
ext2load ide 0:1 $(loadaddr) /boot/uImage

> Failed to mount ext2 filesystem...
> ** Bad ext2 partition or disk - ide 0:1 **

The error above means this command failed to read the disk
ext2load ide 0:1 0x01100000 /boot/uInitrd

> ## Booting image at 02000000 ...
> Bad Magic Number

Bad Magic Number means there was nothing to boot with.

-----------

It seems the disk partition was not good. You need to make sure the rootfs was created correctly. Take this Toshiba disk to another Linux box, and mount it. Assuming it was mount at /media/sdb1 (substitute sdb1 below the real drive letter if it was assigned a different one)

Please get the output of the following commands and post here.

fdisk -l
e2label /dev/sdb1
mount
ls -l /media/sdb1
ls -lart /media/sdb1/boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 07, 2017 11:16PM
Sorry. it was my mistake
I prepared everything as your tutorial, an ext3 partition with the rootfs.
I'll leave it with an ext2 partition and an ext3 partition in order to execute your commands.

Thank's
Re: Problem booting NSA325V2
September 07, 2017 11:25PM
kraftwerk,

> I'll leave it with an ext2 partition and an ext3 p
> artition in order to execute your commands.
>

I am not sure what you meant above.

If there are 2 disk partitions on the disk, Ext2 and Ext3 then that would make booting a little bit more complicate (more envs neededto be defined).

So make sure there is only one Ext3 partition on the disk.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 08, 2017 10:59AM
With commands
setenv 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 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm $(loadaddr) 0x01100000'
boot
Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: TOSHIBA MK2565GSXN                       Firm: GH101M   Ser#:            Z0SLD1G8B
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)


3836140 bytes read

7245696 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-09-08  16:42:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk 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 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... 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] bootconsole [earlycon0] enabled
[    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 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 earlyprintk=serial
[    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: 499276K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25012K 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.007903] Switching to timer-based delay loop, resolution 5ns
[    0.014240] Console: colour dummy device 80x30
[    0.018798] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029393] pid_max: default: 32768 minimum: 301
[    0.034227] Security Framework initialized
[    0.038513] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045189] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.052992] CPU: Testing write buffer coherency: ok
[    0.058762] Setting up static identity map for 0x100000 - 0x100058
[    0.065207] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.072918] devtmpfs: initialized
[    0.080465] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.090400] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.096849] prandom: seed boundary self test passed
[    0.104622] prandom: 100 self tests passed
[    0.108813] pinctrl core: initialized pinctrl subsystem
[    0.115017] NET: Registered protocol family 16
[    0.119915] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.128179] cpuidle: using governor ladder
[    0.132394] cpuidle: using governor menu
[    0.136735] Feroceon L2: Enabling L2
[    0.140436] Feroceon L2: Cache support initialised.
[    0.145646] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.160303] No ATAGs?
[    0.167518] vgaarb: loaded
[    0.172918] SCSI subsystem initialized
[    0.176885] libata version 3.00 loaded.
[    0.181059] usbcore: registered new interface driver usbfs
[    0.186644] usbcore: registered new interface driver hub
[    0.192085] usbcore: registered new device driver usb
[    0.197980] clocksource: Switched to clocksource orion_clocksource
[    0.273270] VFS: Disk quotas dquot_6.6.0
[    0.277320] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.292515] NET: Registered protocol family 2
[    0.297530] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.304715] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.311269] TCP: Hash tables configured (established 4096 bind 4096)
[    0.317736] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.323659] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.330133] NET: Registered protocol family 1
[    0.334887] RPC: Registered named UNIX socket transport module.
[    0.340921] RPC: Registered udp transport module.
[    0.345682] RPC: Registered tcp transport module.
[    0.350468] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.356961] PCI: CLS 0 bytes, default 32
[    0.361146] Unpacking initramfs...
[    0.364616] Initramfs unpacking failed: junk in compressed archive
[    0.390961] Freeing initrd memory: 7076K
[    0.395063] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.402341] audit: initializing netlink subsys (disabled)
[    0.408158] Initialise system trusted keyrings
[    0.412702] Key type blacklist registered
[    0.416837] audit: type=2000 audit(0.399:1): state=initialized audit_enabled=0 res=1
[    0.424741] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.424790] zbud: loaded
[    0.432090] NFS: Registering the id_resolver key type
[    0.432104] Key type id_resolver registered
[    0.432107] Key type id_legacy registered
[    0.432122] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.432126] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.432282] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.432424] fuse init (API version 7.26)
[    0.432684] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.432848] orangefs_init: module version upstream loaded
[    0.432852] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.557987] random: fast init done
[    4.847128] Key type asymmetric registered
[    4.851393] Asymmetric key parser 'x509' registered
[    4.856381] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.864020] io scheduler noop registered
[    4.868054] io scheduler deadline registered
[    4.872452] io scheduler cfq registered (default)
[    4.878169] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.891557] loop: module loaded
[    4.895947] libphy: Fixed MDIO Bus: probed
[    4.900745] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.907339] ehci-pci: EHCI PCI platform driver
[    4.911927] ehci-orion: EHCI orion driver
[    4.916166] usbcore: registered new interface driver usb-storage
[    4.922510] mousedev: PS/2 mouse device common for all mice
[    4.928419] i2c /dev entries driver
[    4.932267] kirkwood-cpufreq kirkwood-cpufreq: Unable to get cpuclk
[    4.938655] kirkwood-cpufreq: probe of kirkwood-cpufreq failed with error -22
[    4.946168] hidraw: raw HID events driver (C) Jiri Kosina
[    4.951945] drop_monitor: Initializing network drop monitor service
[    4.958469] NET: Registered protocol family 17
[    4.963046] Key type dns_resolver registered
[    4.968018] registered taskstats version 1
[    4.972178] Loading compiled-in X.509 certificates
[    4.977070] zswap: loaded using pool lzo/zbud
[    4.983325] Key type big_key registered
[    4.988712] Key type encrypted registered
[    4.993787] hctosys: unable to open rtc device (rtc0)
[    8.072474] Unable to handle kernel paging request at virtual address e0000000
[    8.079754] pgd = c0004000
[    8.082525] [e0000000] *pgd=00000000
[    8.086168] Internal error: Oops: 5 [#1] PREEMPT ARM
[    8.091192] Modules linked in:
[    8.094314] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    8.101412] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    8.107729] task: df484e00 task.stack: df486000
[    8.112324] PC is at crc32_be+0x6c/0x160
[    8.116308] LR is at 0xc0950bd0
[    8.119516] pc : [<c0584814>]    lr : [<c0950bd0>]    psr: 20000053
[    8.119516] sp : df487ef0  ip : c0952244  fp : 00000000
[    8.131109] r10: c0db9ba0  r9 : c0c4b838  r8 : 3edd8cd4
[    8.136388] r7 : 00000000  r6 : dffffffc  r5 : 1a3e9e27  r4 : 00000007
[    8.142963] r3 : bca342bd  r2 : 1e1bdfbc  r1 : c115f354  r0 : e21504f7
[    8.149539] Flags: nzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    8.156804] Control: 0005397f  Table: 00004000  DAC: 00000053
[    8.162601] Process swapper (pid: 1, stack limit = 0xdf486190)
[    8.168485] Stack: (0xdf487ef0 to 0xdf488000)
[    8.172903] 7ee0:                                     c115f358 f0defde7 b997cd99 c0c59544
[    8.181130] 7f00: 00000000 c0c3f8f0 00000007 c0c3f8bc 000000b8 c010178c 00000000 c01334d0
[    8.189355] 7f20: 00000000 c0299eec 00000000 c0aeb5e0 000000b8 00000007 00000007 c0aec440
[    8.197581] 7f40: 000000b7 c0aec440 dfffcdc2 dfffcdce c0d0bc24 00000007 c0c4b830 000000b8
[    8.205806] 7f60: 00000007 c0c4b834 000000b8 c0c59544 c0db9ba0 c0c00e18 00000007 00000007
[    8.214031] 7f80: 00000000 c0c005ac 00000000 c08331f8 00000000 00000000 00000000 00000000
[    8.222256] 7fa0: 00000000 c0833200 00000000 c01070f0 00000000 00000000 00000000 00000000
[    8.230481] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.238706] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    8.246943] [<c0584814>] (crc32_be) from [<c0c3f8f0>] (of_fdt_raw_init+0x34/0x78)
[    8.254479] [<c0c3f8f0>] (of_fdt_raw_init) from [<c010178c>] (do_one_initcall+0xa8/0x158)
[    8.262704] [<c010178c>] (do_one_initcall) from [<c0c00e18>] (kernel_init_freeable+0x198/0x260)
[    8.271448] [<c0c00e18>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    8.279673] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    8.287290] Code: e1a05002 e59fe0f4 e3550000 0a00002b (e5963004)
[    8.293441] ---[ end trace 207d1a7d01ca838a ]---
[    8.298284] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    8.298284]
[    8.307552] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    8.307552]
[  133.848026] random: crng init done

stop in this line
Re: Problem booting NSA325V2
September 08, 2017 03:19PM
kraftwerk,

I see :) It is stock u-boot limitation that is causing the problem booting. But you are very close to get it working.

Let's adjust the envs a bit to move uInitrd load address out further. It should boot with the new address 0x02100000.

Please try again:

setenv 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 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x02100000 /boot/uInitrd; bootm $(loadaddr) 0x02100000'
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 08, 2017 03:38PM
7245696 bytes read
## Booting image at 02000000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-09-08  16:42:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC

Re: Problem booting NSA325V2
September 08, 2017 04:02PM
kraftwerk,

Ah. I was mistaken about the stock load address for uImage (I thought it was the same as in the new u-boot).

Let's move it 0x02900000:


setenv 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 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x02900000 /boot/uInitrd; bootm $(loadaddr) 0x02900000'
boot

(If this additional 9M is not enough, then we will need to move it further out some more.)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting NSA325V2
September 08, 2017 04:16PM
wwoooow incredible, worked
you are the king
Now how do I make it work after rebooting?


Thank´s very very much
Re: Problem booting NSA325V2
September 08, 2017 08:00PM
kraftwerk,

> wwoooow incredible, worked

Cool :) so now you should make it persistent.


Repeat the envs:
setenv 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 earlyprintk=serial'
setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x02900000 /boot/uInitrd; bootm $(loadaddr) 0x02900000'

And save them:
saveenv

and boot
boot

After you've booted OK to the new Debian rootfs, and made sure that everything works, you can then consider installing new u-boot:
http://forum.doozan.com/read.php?3,12381

-bodhi
===========================
Forum Wiki
bodhi's corner
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: