Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs

Posted by bodhi 
Re: Linux Kernel 4.12.4 MVEBU package and Debian armhf rootfs
August 06, 2017 01:41AM
Thanks ottok,

I've corrected the sums. It was a copy/paste error from the Kirkwood kernel post :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.12.4 MVEBU package and Debian armhf rootfs
August 23, 2017 10:20PM
This Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.13.2 MVEBU package and Debian armhf rootfs
September 29, 2017 04:54AM
Kernel linux-4.13.2-mvebu-tld-1 package has been uploaded. Please 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.13.2 MVEBU package and Debian armhf rootfs
November 12, 2017 03:31PM
Last post moved here:
https://forum.doozan.com/read.php?2,41874

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.13.2 MVEBU package and Debian armhf rootfs
November 21, 2017 05:22PM
I have updated the first post to note the issue of booting the NAS326 with rootfs on HDD.

Quote

========================================================================
Updated 21 Nov 2017:

Zyxel NAS326 HDD booting issue


Note: you don't have to worry about this issue if you are booting with USB rootfs.


Here is what I found from reading the GPL source to trouble shoot the issue of booting the NAS326 with 2 HDDs, with the rootfs is on one HDD.

NAS326 stock u-boot uses an old AHCI driver. This old version set the link detection timeou to a very small value of 4 ms. This interval is apparently too small. In the latest version of this AHCI driver, it is set to 200 ms.

Since I have not started building new u-boot (because of UART booting issue with this box), we cannot update this u-boot, or replace it with a better one.

So at the moment, we can only work around it.

I will do some testing to see if we can pick a good work around to enable the SATA link up before we try to initialize the SATA port for booting the kernel on HDD.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 11/21/2017 05:23PM by bodhi.
Re: Linux Kernel 4.13.2 MVEBU package and Debian armhf rootfs
November 24, 2017 04:05PM
I have updated the first post to add a work around for the issue of booting the NAS326 with rootfs on HDD.

Quote

Updated 21 Nov 2017:

Zyxel NAS326 HDD booting issue


Note: you don't have to worry about this issue if you are booting with USB rootfs.


Here is what I found from reading the GPL source to trouble shoot the issue of booting the NAS326 with 2 HDDs, with the rootfs is on one HDD.

NAS326 stock u-boot uses an old AHCI driver. This old version set the link detection timeou to a very small value of 4 ms. This interval is apparently too small. In the latest version of this AHCI driver, it is set to 200 ms.

Since I have not started building new u-boot (because of UART booting issue with this box), we cannot update this u-boot, or replace it with a better one.

So at the moment, we can only work around it.

I will do some testing to see if we can pick a good work around to enable the SATA link up before we try to initialize the SATA port for booting the kernel on HDD.

Update:

- Here is a work around that seems to do the trick consistently for me and heiko: Whenever the box needs to be rebooted, just shutdown and power up again. Then both HDDs will be initialized OK.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs
November 26, 2017 07:56PM
Kernel linux-4.14.1-mvebu-tld-1 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs
December 04, 2017 01:39AM
The mentioned patch for "mvneta" seems to be in mainline now:


commit a59e386c4f4fce346161c0a62a5e1fbc1f435d6f
Author: Simon Guinot <simon.guinot@sequanux.org>
Date:   Mon Nov 13 16:27:02 2017 +0100

    net: mvneta: fix handling of the Tx descriptor counter
    
    commit 0d63785c6b94b5d2f095f90755825f90eea791f5 upstream.
    
    The mvneta controller provides a 8-bit register to update the pending
    Tx descriptor counter. Then, a maximum of 255 Tx descriptors can be
    added at once. In the current code the mvneta_txq_pend_desc_add function
    assumes the caller takes care of this limit. But it is not the case. In
    some situations (xmit_more flag), more than 255 descriptors are added.
    When this happens, the Tx descriptor counter register is updated with a
    wrong value, which breaks the whole Tx queue management.
    
    This patch fixes the issue by allowing the mvneta_txq_pend_desc_add
    function to process more than 255 Tx descriptors.
    
    Fixes: 2a90f7e1d5d0 ("net: mvneta: add xmit_more support")
    Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

...
[Mo Dez  4 08:43:52 2017] Linux version 4.14.3 (root@WDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 SMP Sun Dec 3 22:56:15 CET 2017
[Mo Dez  4 08:43:52 2017] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[Mo Dez  4 08:43:52 2017] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[Mo Dez  4 08:43:52 2017] OF: fdt: Machine model: WD My Cloud EX2100
..
Re: Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs
January 08, 2018 01:26AM
An important reminder: this MVEBU series is affected by the Spectre bug.

So be careful until I can release new kernel:
https://forum.doozan.com/read.php?2,18483,47114#msg-47114

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 01/21/2018 03:51PM by bodhi.
Re: Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs
January 21, 2018 03:58PM
bodhi Wrote:
-------------------------------------------------------
> An important reminder: this MVEBU series is
> affected by the Spectre bug (variant 1 and 2).
>
> So be careful until I can release new kernel:
> https://forum.doozan.com/read.php?2,18483,47114#msg-47114

Looks like the Spectre patch will be slow coming. So in the mean time, take the usual precaution.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.14.1 MVEBU package and Debian armhf rootfs
February 12, 2018 01:17AM
I've updated the 1st post:

Quote

WD My Cloud EX2100 Installation
Updated 12 Feb 2018

Please see the installation instruction written by hmartin here:
https://forum.doozan.com/read.php?2,50769

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.15.4 MVEBU package and Debian armhf rootfs
February 20, 2018 10:05PM
Kernel linux-4.15.4-mvebu-tld-1 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.15.4 MVEBU package and Debian armhf rootfs
April 06, 2018 03:22PM
Last post moved here:
https://forum.doozan.com/read.php?2,56284

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 05, 2018 03:55AM
Kernel linux-4.16.7-mvebu-tld-1 package has been uploaded. Please see 1st post for download link and credit.

Quote

New in this release:

- Add Thecus N2350 supports. Installation instruction for this box will be available in the near future.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 05, 2018 06:52AM
The EX2100 NAND partition layout is wrong. Please see attached file for the correct one.

I hope that the network issues with unpatched kernel 4.16 were fixed ...


[Edit]

the values were taken from the EX4100 firmware SDK
no network issues but now NAND issues ...

[    5.211797] marvell-nfc f10d0000.flash: too many NAND chips: 8 (max = 4 CS)
[    5.218816] marvell-nfc: probe of f10d0000.flash failed with error -22

seems that this is caused by a "fix", see snipped from the 4.16 changelog



Edited 2 time(s). Last edit at 05/05/2018 03:59PM by pengu.
Attachments:
open | download - armada-385-wd-ex2100.dts (5.3 KB)
open | download - chip_select_dt_parsing.txt (3.7 KB)
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 05, 2018 04:22PM
Thanks pengu!

However, regarding mtd layout you know that we don't care much about the layout in the DTS if we pass the mtdparts in the kernel bootargs. Have you tried to do that?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 05, 2018 04:46PM
@pengu,

The chip select in the DTS seems OK. You are not using the latest DTB?

cat linux-4.16.7-mvebu/arch/arm/boot/dts/armada-385-wd-ex2100.dts | grep -5 num-cs
status = "okay";
			};

			flash@d0000 {
				status = "okay";
				num-cs = <1>;
				marvell,nand-keep-config;
				marvell,nand-enable-arbiter;
				nand-on-flash-bbt;
				nand-ecc-strength = <4>;
				nand-ecc-step-size = <512>;

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 05/05/2018 04:47PM by bodhi.
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 07, 2018 05:00AM
yes .. same here except the flash partitions taken from the EX4100 firmware SDK
It's working fine in 4.14x and 4.15x kernel and perhaps 4.16 RC kernels.
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 07, 2018 03:56PM
pengu Wrote:
-------------------------------------------------------
> yes .. same here except the flash partitions taken
> from the EX4100 firmware SDK
> It's working fine in 4.14x and 4.15x kernel and
> perhaps 4.16 RC kernels.


I did not quite understand your response. Which is working, and which is not?

- NAND chip select
- mtd layout.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 10, 2018 07:15AM
sorry for the confusion.
mtd layout is working with the provided DTB, chip select isn't working (kernel 4.16) with both.
Now, I'm running kernel 4.16.8 with the provided DTB by your patch.

[    0.000000] Linux version 4.16.8 (root@WDebian) (gcc version 7.3.0 (Debian 7.3.0-17)) #1 SMP Thu May 10 13:40:53 CEST 2018
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: WD My Cloud EX2100
...
...
[    5.200202] marvell-nfc f10d0000.flash: too many NAND chips: 8 (max = 4 CS)
[    5.207235] marvell-nfc: probe of f10d0000.flash failed with error -22


this results in the following:

cat /proc/mtd
dev:    size   erasesize  name
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 10, 2018 04:32PM
Ah! that makes sense. Thanks pengu.

We have seen this chip-select problem while working on the Thecus box, and fixed the info from the reference DTS.

I'll notify hmartin to fix and test this EX2100 DTS. Unless you have a patch and would like to post the patch and the bootlog to show that you've fixed it (Please do that in a new thread).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 10, 2018 10:45PM
Quote
bodhi
I'll notify hmartin to fix and test this EX2100 DTS. Unless you have a patch and would like to post the patch and the bootlog to show that you've fixed it (Please do that in a new thread).

Thanks for notifying me bodhi.

I don't have access to my EX2100 at the moment, I moved recently and it's still packed in a box... somewhere.

If someone else with an EX2100 has time to fix this, please go ahead. Otherwise I can probably work on this in a few weeks.
I've a ZyXEL NAS326. With V5.20(AAZF.1) firmware. Your procedure allowed me to boot from USB. But I could NOT boot directly from HDD. Until I changed/fixed one line in U-Boot environment.

replace:
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init

with:
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi reset

It seems that "scsi init" is not a valid command. But "scsi reset" is.

Now it boots directly from HDD0, no USB needed.

Thanks for everyone's efforts. This box is fast & cheap (< $100 US on sale).
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 24, 2018 02:45AM
wha,

Thanks for reporting this. Probably they have've changed that in u-boot.

It would be great if you have serial console and can post the bootlog.

-bodhi
===========================
Forum Wiki
bodhi's corner
Greetings,

Additional info. At powerup, if I do your original command, I get this:

Marvell>> mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST9500325AS Rev: 0001
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Found 1 device(s).
Marvell>>


But when I change it to "reset" :

Marvell>> mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi reset

Reset SCSI
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST9500325AS Rev: 0001
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Found 1 device(s).
Marvell>>

No error(s) about SCSI controller. And it boots.


OK, here's U-BOOT parms and booting of kernel:



Marvell>> 
Marvell>> version

U-Boot 2013.01-svn48206 (Dec 03 2015 - 02:50:37) Marvell version: 2014_T3.0p6
arm-marvell-linux-gnueabihf-gcc (crosstool-NG 1.21.0) 4.8.5 20150209 (prerelease)
GNU ld (crosstool-NG 1.21.0) Linaro 2014.11-2 2.24.0.20141017
Marvell>>  


Marvell>> ?
?       - alias for 'help'
Creset  - Creset	- Run 'reset' or boot command in a loop, while counting.

SatR    - Sample At Reset sub-system
active_units- print active units on board
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
boot_menu- command allows to select boot script from boot device
	example: boot_menu
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
bubt    - bubt	- Burn an image on the Boot Nand Flash.

chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
date    - get/set/reset date & time
ddrPhyRead- ddrPhyRead - Read DDR PHY register

ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- diskboot- boot from IDE device

dma     - dma	- Perform DMA using the XOR engine

echo    - echo args to console
editenv - edit environment variable
eeprom  - EEPROM sub-system
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
ide     - ide     - IDE sub-system

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ir      - ir	- reading and changing MV internal register values.

itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - map	- Display address decode windows

md      - memory display
me      - me	- PCIe master enable

mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mp      - mp	- map PCIe BAR

mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
pciePhyRead- phyRead	- Read PCI-E Phy register

pciePhyWrite- pciePhyWrite	- Write PCI-E Phy register

phyRead - phyRead	- Read Phy register

phyWrite- phyWrite	- Write Phy register

ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
rcvr    - rcvr	- Start recovery process (with TFTP server)

reset   - Perform RESET of the CPU
resetenv- resetenv	- Erase environment sector to reset all variables to default.

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
scsi    - SCSI sub-system
scsiboot- boot from SCSI device
se      - se	- PCIe Slave enable

setenv  - set environment variables
sf      - SPI flash sub-system
sg      - sg	- scanning the PHYs status

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sp      - scan and detect all devices on PCI-e interface
sspi    - SPI utility command
stage_boot- command to load script/image from different devices
	example: stage_boot hd_img pxe
sys_restore- sys_restore	- Search for install script on USB DOK and start installation of linux kernel and rootfs.

sysboot - command to get and boot from syslinux files
temp    - temp	- Display the device temperature.

tempCmd0- tempCmd - This command allocated for monitor extinction

tempCmd1- tempCmd - This command allocated for monitor extinction

tempCmd2- tempCmd - This command allocated for monitor extinction

tempCmd3- tempCmd - This command allocated for monitor extinction

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
training- training	- prints the results of the DDR3 Training.

trainingStability- training	- prints the results of the DDR3 Training.

true    - do nothing, successfully
ts_report- ts_report	- report touch screen coordinate

ts_test - ts_test	- test touch screen

ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
whoAmI  - - reading CPU ID



Marvell>> 
Marvell>> scsi
  scsi scsiboot
Marvell>> help scsi
scsi - SCSI sub-system

Usage:
scsi reset - reset SCSI controller
scsi info  - show available SCSI devices
scsi scan  - (re-)scan SCSI bus
scsi device [dev] - show or set current device
scsi part [dev] - print partition table of one or all SCSI devices
scsi read addr blk# cnt - read `cnt' blocks starting at block `blk#'
     to memory address `addr'
scsi write addr blk# cnt - write `cnt' blocks starting at block
     `blk#' from memory address `addr'

Marvell>> 
Marvell>> scsi info
please run 'scsi init' first!!!
SCSI dev. 0:  device type unknown
SCSI dev. 1:  device type unknown
SCSI dev. 2:  device type unknown
SCSI dev. 3:  device type unknown
SCSI dev. 4:  device type unknown
SCSI dev. 5:  device type unknown
SCSI dev. 6:  device type unknown
SCSI dev. 7:  device type unknown
SCSI dev. 8:  device type unknown
SCSI dev. 9:  device type unknown
SCSI dev. 10:  device type unknown
SCSI dev. 11:  device type unknown
SCSI dev. 12:  device type unknown
SCSI dev. 13:  device type unknown
SCSI dev. 14:  device type unknown
SCSI dev. 15:  device type unknown
SCSI dev. 16:  device type unknown
SCSI dev. 17:  device type unknown
SCSI dev. 18:  device type unknown
SCSI dev. 19:  device type unknown
SCSI dev. 20:  device type unknown
SCSI dev. 21:  device type unknown
SCSI dev. 22:  device type unknown
SCSI dev. 23:  device type unknown
Marvell>>  
Marvell>> 
Marvell>> scsi reset

Reset SCSI
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST9500325AS Rev: 0001
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Found 1 device(s).


Marvell>> 
Marvell>> scsi info
SCSI dev. 0:  (0:0) Vendor: ATA Prod.: ST9500325AS Rev: 0001
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Marvell>>  


Marvell>> printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=yes
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootHD rootdelay=6 earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x00000000; run bootcmd_custom;  0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=run bootcmd_custom_sata
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=10
cacheShare=no
change_boot_part=0
console=console=ttyS0,115200
core_checksum_1=868590f39fdf3fe14e07e5824a550dd7
core_checksum_2=868590f39fdf3fe14e07e5824a550dd7
curr_bootfrom=1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:xx:xx
eth1mtu=1500
eth2addr=00:50:43:38:xx:xx
eth2mtu=1500
eth3addr=00:50:43:32:xx:xx
eth3mtu=1500
ethact=egiga0
ethaddr=8C:59:73:15:xx:xx
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
fwversion_1=V5.20(AAZF.1)
fwversion_2=V5.20(AAZF.1)
ide_path=/
image_name=uImage
img_checksum_1=596153a55a196698e2f816f42d2dae47
img_checksum_2=596153a55a196698e2f816f42d2dae47
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb_addr=0x1000000
load_image_addr=0x02000000
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=1
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=50729
revision_2=50729
romfile_checksum_1=9D0A
romfile_checksum_2=9D0A
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi reset
sata_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootHD rootdelay=10 earlyprintk=serial
script_addr_r=3000000
script_name=boot.scr
scsidevs=1
serial_number=S180Y04059xxx
serverip=10.4.50.38
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootHD rootdelay=6 earlyprintk=serial
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=845ace22f5de7ac51fbd2ed1338bd28d
zld_checksum_2=845ace22f5de7ac51fbd2ed1338bd28d

Environment size: 5704/524284 bytes
Marvell>>  


Marvell>> boot

NAND read: device 0 whole chip
Attempt to read outside the flash area
 0 bytes read: ERROR
Booting from SATA ...

Reset SCSI
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: ST9500325AS Rev: 0001
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Found 1 device(s).
4329432 bytes read in 184 ms (22.4 MiB/s)
18772 bytes read in 126 ms (144.5 KiB/s)
7005198 bytes read in 210 ms (31.8 MiB/s)
*  kernel: cmdline image address = 0x02000000
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.16.7-mvebu-tld-1
   Created:      2018-05-19   4:11:34 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7005134 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f320000, end 1f9ce3ce ... OK
   Loading Device Tree to 00ff8000, end 00fff953 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.16.7-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Fri May 4 21:09:30 PDT 2018
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Zyxel NAS326
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x80/0x404 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s40972 r8192 d24564 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootHD rootdelay=10 earlyprintk=serial
[    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: 498348K/524288K available (9216K kernel code, 762K rwdata, 2236K rodata, 1024K init, 335K bss, 25940K reserved, 0K cma-reserved, 0K highmem)
[    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]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 763 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 336 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000007] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.007986] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.018995] Switching to timer-based delay loop, resolution 1ns
[    0.025086] Ignoring duplicate/late registration of read_current_timer delay
[    0.032109] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043375] Console: colour dummy device 80x30
[    0.047819] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.058395] pid_max: default: 32768 minimum: 301
[    0.063086] Security Framework initialized
[    0.067220] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.073809] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081250] CPU: Testing write buffer coherency: ok
[    0.086262] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.124974] Setting up static identity map for 0x100000 - 0x100060
[    0.131214] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.136451] mvebu-pmsu: Initializing Power Management Service Unit
[    0.142679] Hierarchical SRCU implementation.
[    0.184949] smp: Bringing up secondary CPUs ...
[    0.189462] smp: Brought up 1 node, 1 CPU
[    0.193455] SMP: Total of 1 processors activated (1332.00 BogoMIPS).
[    0.199796] CPU: All CPU(s) started in SVC mode.
[    0.204873] devtmpfs: initialized
[    0.215034] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.222895] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.232814] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.239047] prandom: seed boundary self test passed
[    0.245931] prandom: 100 self tests passed
[    0.250010] pinctrl core: initialized pinctrl subsystem
[    0.255946] NET: Registered protocol family 16
[    0.260900] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.268379] audit: initializing netlink subsys (disabled)
[    0.273877] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[    0.284989] cpuidle: using governor ladder
[    0.289085] cpuidle: using governor menu
[    0.293090] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.301187] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.307147] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.315243] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.386267] vgaarb: loaded
[    0.389135] SCSI subsystem initialized
[    0.395259] usbcore: registered new interface driver usbfs
[    0.400746] usbcore: registered new interface driver hub
[    0.406534] usbcore: registered new device driver usb
[    0.411974] media: Linux media interface: v0.10
[    0.416771] Linux video capture interface: v2.00
[    0.421577] rc_core: IR Remote Control driver registered, major 250
[    0.428999] clocksource: Switched to clocksource arm_global_timer
[    0.478217] VFS: Disk quotas dquot_6.6.0
[    0.482214] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.498494] NET: Registered protocol family 2
[    0.503767] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.511448] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.518489] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.525339] TCP: Hash tables configured (established 4096 bind 4096)
[    0.531738] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.537559] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.543971] NET: Registered protocol family 1
[    0.578671] RPC: Registered named UNIX socket transport module.
[    0.584604] RPC: Registered udp transport module.
[    0.589307] RPC: Registered tcp transport module.
[    0.593991] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.600521] Unpacking initramfs...
[    0.871938] Freeing initrd memory: 6844K
[    0.875932] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.882785] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.892342] Initialise system trusted keyrings
[    0.896789] Key type blacklist registered
[    0.901409] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.907890] zbud: loaded
[    0.920992] NFS: Registering the id_resolver key type
[    0.926031] Key type id_resolver registered
[    0.930305] Key type id_legacy registered
[    0.934305] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.941008] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.947468] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.954823] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.961387] orangefs_init: module version upstream loaded
[    0.969816] Key type asymmetric registered
[    0.973898] Asymmetric key parser 'x509' registered
[    0.978880] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.986278] io scheduler noop registered
[    0.990309] io scheduler deadline registered
[    0.994633] io scheduler cfq registered (default)
[    1.000955] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.010786] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.069516] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.077105] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.139506] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.210171] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.218382] console [ttyS0] disabled
[    1.243012] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.252063] console [ttyS0] enabled
[    1.252063] console [ttyS0] enabled
[    1.259096] bootconsole [earlycon0] disabled
[    1.259096] bootconsole [earlycon0] disabled
[    1.268733] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.278154] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.297918] scsi host0: ahci-mvebu
[    1.311806] scsi host1: ahci-mvebu
[    1.315413] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323496] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.332115] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.340094] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    1.346483] nand: Macronix MX30LF2G18AC
[    1.350467] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.358112] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.365338] Bad block table found at page 131008, version 0x01
[    1.371729] Bad block table found at page 130944, version 0x01
[    1.377922] 7 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.384079] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.389533] 0x000000000000-0x000000200000 : "U-Boot"
[    1.395249] 0x000000200000-0x000000400000 : "U-Boot env"
[    1.401449] 0x000000400000-0x000000e00000 : "Config"
[    1.407223] 0x000000e00000-0x000001d00000 : "Kernel-1"
[    1.413249] 0x000001d00000-0x000008700000 : "RootFS-1"
[    1.419696] 0x000008700000-0x000009600000 : "Kernel-2"
[    1.425703] 0x000009600000-0x000010000000 : "RootFS-2"
[    1.433696] libphy: Fixed MDIO Bus: probed
[    1.439664] libphy: orion_mdio_bus: probed
[    1.448219] mvneta f1070000.ethernet eth0: Using device tree mac address 8c:59:73:15:74:51
[    1.458265] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.465122] ehci-pci: EHCI PCI platform driver
[    1.469818] ehci-orion: EHCI orion driver
[    1.473979] orion-ehci f1058000.usb: EHCI Host Controller
[    1.479549] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.487224] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.519016] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.525095] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.531946] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.539218] usb usb1: Product: EHCI Host Controller
[    1.544122] usb usb1: Manufacturer: Linux 4.16.7-mvebu-tld-1 ehci_hcd
[    1.550606] usb usb1: SerialNumber: f1058000.usb
[    1.555617] hub 1-0:1.0: USB hub found
[    1.559524] hub 1-0:1.0: 1 port detected
[    1.564179] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.569747] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.577362] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.586006] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.592021] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.598869] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.606167] usb usb2: Product: xHCI Host Controller
[    1.611094] usb usb2: Manufacturer: Linux 4.16.7-mvebu-tld-1 xhci-hcd
[    1.617588] usb usb2: SerialNumber: f10f0000.usb3
[    1.622691] hub 2-0:1.0: USB hub found
[    1.626554] hub 2-0:1.0: 1 port detected
[    1.630799] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.636241] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.643857] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.652145] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.658991] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.666293] usb usb3: Product: xHCI Host Controller
[    1.671286] usb usb3: Manufacturer: Linux 4.16.7-mvebu-tld-1 xhci-hcd
[    1.677793] usb usb3: SerialNumber: f10f0000.usb3
[    1.682882] ata2: SATA link down (SStatus 0 SControl 300)
[    1.688343] hub 3-0:1.0: USB hub found
[    1.692267] hub 3-0:1.0: 1 port detected
[    1.696598] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.702085] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.709709] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.718306] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.724311] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.731165] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.738427] usb usb4: Product: xHCI Host Controller
[    1.743408] usb usb4: Manufacturer: Linux 4.16.7-mvebu-tld-1 xhci-hcd
[    1.749894] usb usb4: SerialNumber: f10f8000.usb3
[    1.754966] hub 4-0:1.0: USB hub found
[    1.758827] hub 4-0:1.0: 1 port detected
[    1.763058] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.768406] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.776075] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.784329] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.791202] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798463] usb usb5: Product: xHCI Host Controller
[    1.803456] usb usb5: Manufacturer: Linux 4.16.7-mvebu-tld-1 xhci-hcd
[    1.809955] usb usb5: SerialNumber: f10f8000.usb3
[    1.815010] hub 5-0:1.0: USB hub found
[    1.818868] hub 5-0:1.0: 1 port detected
[    1.823305] usbcore: registered new interface driver usblp
[    1.829152] usbcore: registered new interface driver usb-storage
[    1.835399] mousedev: PS/2 mouse device common for all mice
[    1.841901] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.849981] i2c /dev entries driver
[    1.856875] orion_wdt: Initial timeout 171 sec
[    1.861400] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.871612] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.879160] hidraw: raw HID events driver (C) Jiri Kosina
[    1.884973] usbcore: registered new interface driver usbhid
[    1.890872] usbhid: USB HID core driver
[    1.895074] drop_monitor: Initializing network drop monitor service
[    1.901827] NET: Registered protocol family 10
[    1.914078] ata1.00: ATA-8: ST9500325AS, 0001SDM1, max UDMA/133
[    1.920304] Segment Routing with IPv6
[    1.924030] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.930150] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    1.937905] NET: Registered protocol family 17
[    1.942672] 8021q: 802.1Q VLAN Support v1.8
[    1.946906] ata1.00: configured for UDMA/133
[    1.951256] Key type dns_resolver registered
[    1.955634] ThumbEE CPU extension supported.
[    1.959985] Registering SWP/SWPB emulation handler
[    1.965239] registered taskstats version 1
[    1.969573] Loading compiled-in X.509 certificates
[    1.974714] scsi 0:0:0:0: Direct-Access     ATA      ST9500325AS      SDM1 PQ: 0 ANSI: 5
[    1.982924] zswap: loaded using pool lzo/zbud
[    1.988369] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    2.000160] sd 0:0:0:0: [sda] Write Protect is off
[    2.008294] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.018018] Key type big_key registered
[    2.026506] Key type encrypted registered
[    2.032120] v5.0-sata0: supplied by pwr_en_sata0
[    2.036795] v12.0-sata0: supplied by pwr_en_sata0
[    2.041774]  sda: sda1 sda2 sda3
[    2.045908] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.052537] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.060041] armada38x-rtc f10a3800.rtc: setting system clock to 2018-05-26 07:19:46 UTC (1527319186)
[    2.069557] v5.0-sata1: supplied by pwr_en_sata1
[    2.074236] v12.0-sata1: supplied by pwr_en_sata1
[    2.078987] v5.0-sata0: disabling
[    2.082435] v12.0-sata0: disabling
[    2.085856] v5.0-sata1: disabling
[    2.089243] v12.0-sata1: disabling
[    2.093700] Freeing unused kernel memory: 1024K
[    2.098589] Checked W+X mappings: passed, no W+X pages found
Loading, please wait...
[    2.139666] systemd-udevd[1415]: starting version 215
[    2.145647] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.286270] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begi[   12.964347] random: fast init done
n: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   18.616910] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 238
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[ ok 8[?25h[?0cdone.
[   23.920258] mvneta f1070000.ethernet eth0: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510]
[   23.936068] mvneta f1070000.ethernet eth0: configuring for phy/rgmii-id link mode
[   23.951458] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Activating swap...[   24.216221] Adding 1952764k swap on /dev/sda2.  Priority:-2 extents:1 across:1952764k FS
[?25l[?1c7[ ok 8[?25h[?0cdone.
[   24.296329] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.32
rootHD: clean, 92117/1222992 files, 582478/4882432 blocks
[?25l[?1c7[ ok 8[?25h[?0cdone.
[   24.452352] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Activating lvm and md swap...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking file systems...fsck from util-linux 2.32
Data1: clean, 11/29188096 files, 1882606/116725510 blocks
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files... /tmp[?25l[?1c7[ ok 8[?25h[?0c.
[   25.693138] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[....] Mounting local filesystems...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swapfile swap...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[   26.090449] random: dd: uninitialized urandom read (512 bytes read)
[....] Starting Setting kernel variables: sysctl[?25l[?1c7[ ok 8[?25h[?0c.
[   26.415708] random: crng init done
[   27.149794] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   27.157856] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...ifup: waiting for lock on /run/network/ifstate.eth0
ifup: interface eth0 already configured
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.

INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2598 (syslogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting cgroup management daemon: cgmanager[....] Starting cgroup management proxy daemon: cgproxy[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2596 (klogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting MTA: exim4[?25l[?1c7[ ok 8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[warn8[?25h[?0c (warning).
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[ ok 8[?25h[?0c.

Debian GNU/Linux buster/sid nas326 ttyS0

nas326 login:


(better too much data than not enough :)


Thanks.
(I know, bad form, replying to my own message).

bodhi, looks like you'd already found the "scsi init" vs "scsi reset" issue, in: ZyXEL nas326 installation problem, (Nov 21, 2017 post) . Too many topics/threads to dig through! :)

Anyway, using "scsi reset", allows booting HDD from both power-up AND from "reboot" in Linux.

Thanks.
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
May 26, 2018 02:29AM
Quote


bodhi, looks like you'd already found the "scsi init" vs "scsi reset" issue, in: ZyXEL nas326 installation problem, (Nov 21, 2017 post) . Too many topics/threads to dig through! :)

Thanks wha! I'm glad you've found the confirmation :) I forgot about it completely after many posts and exchanges on different devices in the forum for almost a year. I guess the braincells must work that way :)

Quote

> (better too much data than not enough :)

And thanks for posting the completed log! very helpful :)

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 05/26/2018 02:35AM by bodhi.
Re: Linux Kernel 4.16.7 MVEBU package and Debian armhf rootfs
August 09, 2018 07:32AM
Please create a new Debian ttread for question or problem with installation.

-bodhi
===========================
Forum Wiki
bodhi's corner
Sorry, you can't reply to this topic. It has been closed.