Welcome! Log In Create A New Profile

Advanced

[NSA310S] Boot Debian USB + Boot ZyxelOS NAND?

Posted by ianco 
Hello everyone! I have Zyxel NSA310S and I would like to be able to boot Debian from USB and start ZyxelOS when the USB flash drive is not inserted. I have read the 2 guides on Debian and Uboot but I can only boot Debian USB and went back to Uboot Stock. How do you recommend me to set it up? I am connected to the nas via Serial. A big thank you to bodhi!

My envs:
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=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
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
kernel_addr=C80000
MODEL_ID=AD03
PRODUCT_NAME=STG-315
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=28:28:5D:XX:XX:XX
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 23, 2021 10:37PM
Hi ianco,

> Hello everyone! I have Zyxel NSA310S and I would
> like to be able to boot Debian from USB and start
> ZyxelOS when the USB flash drive is not inserted.
> I have read the 2 guides on Debian and Uboot but I
> can only boot Debian USB and went back to Uboot
> Stock. How do you recommend me to set it up? I am
> connected to the nas via Serial. A big thank you
> to bodhi!

I've not tried to make this work, so atm it is not possible to boot stock OS from the new u-boot. If you want to boot both stock OS and Debian on USB then you have to stay with stock u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Quote
bodhi
If you want to boot both stock OS and Debian on USB then you have to stay with stock u-boot
Thanks for your reply. It is fine for me to keep, how to adapt envs for the purpose? I'm ready to take the tests

This is a list of commands available for my stock Uboot:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB6702A-GMtech LE 

U-Boot 1.1.4 (May 28 2013 - 16:07:08) Marvell version: 3.6.0

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

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  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 0xc80000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

Marvell>> help
?       - alias for 'help'
SatR - sample at reset sub-system, relevent for DB only
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name 
bootm   - boot application image from memory
bootp	- boot image via network using BootP/TFTP protocol
bubt	- Burn an image on the Boot Nand Flash.
chpart	- change active partition
cmp     - memory compare
cmpm	- Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk	- Display the MV device CLKs.
dhcp	- invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fi	- Find value in the memory.
flinfo  - print FLASH memory information
fsinfo	- print information about filesystems
fsload	- load binary file from a filesystem image
g	- start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
iminfo  - print header information for application image
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir	- reading and changing MV internal register values.
loop    - infinite loop on address range
ls	- list files in a directory (default /)
map	- Diasplay address decode windows
md      - memory display
me	- PCI master enable
mm      - memory modify (auto-incrementing)
mmcinit - init mmc card
mp	- map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nand                   - NAND sub-system
nboot   - boot from NAND device
nbubt	- Burn a boot loader image on the Boot Nand Flash.
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead	- Read PCI-E Phy register
pciePhyWrite	- Write PCI-E Phy register
phyRead	- Read Phy register
phyWrite	- Write Phy register
ping	- send ICMP ECHO_REQUEST to network host
printenv- print environment variables
printinfo- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
rcvr	- Satrt recovery process (Distress Beacon with TFTP server)
reset   - Perform RESET of the CPU
resetenv	- Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
saveinfo - save environment variables to persistent storage
se	- PCI Slave enable
setenv  - set environment variables
setinfo  - set environment variables
sflash	- read, write or erase the external SPI Flash.
sg	- scanning the PHYs status
sp	- Scan PCI bus.
switchRegRead	- Read switch register
switchRegWrite	- Write switch register
Temp	- read chip Tj temp
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version

cat /etc/fw_env.config:
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1               0x0000          0x20000         0x20000                 4

cat /proc/mtd:
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 24, 2021 03:49PM
ianco,

See this post:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374


And since you are booting from stock u-boot, the Debian rootfs installation Step 4 is applicable.

Quote
https://forum.doozan.com/read.php?2,12096

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-nsa310s.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync

If your Linux box does not have mkimage, then install it

apt-get install u-boot-tools

-bodhi
===========================
Forum Wiki
bodhi's corner
Quote
bodhi
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Thanks for the reply. I had tried this procedure before but it didn't work. I tried again with 2 different usb drives but does not boot from USB, boot from NAND, here are the commands I ran, no terminal errors:

sudo -s
mkfs.ext3 -F -L 'rootfs' '/dev/sdb1'
mkdir /media/sdb1
mount /dev/sdb1 /media/sdb1
tar -xjf /home/ianco/Downloads/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C /media/sdb1/
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-nsa310s.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync

I also wanted to try the usbboot command but nothing ...

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB6702A-GMtech LE 

U-Boot 1.1.4 (May 28 2013 - 16:07:08) Marvell version: 3.6.0

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

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  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 0xc80000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 

Marvell>> usb reset  
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> usbboot

** No boot device **
Marvell>> 
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 24, 2021 07:21PM
ianco,

usboot is not good for this purpose.

> Hit any key to stop autoboot: 0
>
> Marvell>> usb reset
> (Re)start USB...
> USB: scanning bus for devices... 3 USB Device(s)
> found
> Waiting for storage device(s) to settle before
> scanning...
> 1 Storage Device(s) found

At this point, do a check like this to see if the partition is good, and you can see the files on /boot folder:

usb part
ext2ls usb 0:1 /boot

And then if it's all good, go ahead with the setenvs to boot USB rootfs.

Please post the entire serial console log here.

======

Updated: make sure you use the front USB port.

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



Edited 1 time(s). Last edit at 06/24/2021 07:22PM by bodhi.
Quote
bodhi
Please post the entire serial console log here.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB6702A-GMtech LE 

U-Boot 1.1.4 (May 28 2013 - 16:07:08) Marvell version: 3.6.0

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

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  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 0xc80000.

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> usb part
print_part of 0
## Unknown partition table

print_part of 1
## Unknown partition table

print_part of 2
## Unknown partition table

print_part of 3
## Unknown partition table

print_part of 4
## Unknown partition table
Marvell>> ext2ls usb 0:1 /boot
** Bad partition - usb 0:1 **
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> usb part
print_part of 0

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

Partition     Start Sector     Num Sectors     Type
    1                 2048         3946496      83

print_part of 1
## Unknown partition table

print_part of 2
## Unknown partition table

print_part of 3
## Unknown partition table

print_part of 4
## Unknown partition table
Marvell>> ext2ls usb 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
         9713936 uInitrd
         4963616 zImage-5.2.9-kirkwood-tld-1
         4963616 vmlinuz-5.2.9-kirkwood-tld-1
          165790 config-5.2.9-kirkwood-tld-1
<DIR>       4096 dts
         3101889 System.map-5.2.9-kirkwood-tld-1
         9713872 initrd.img-5.2.9-kirkwood-tld-1
         4976446 uImage
         9649570 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
        35354723 linux-5.12.6-kirkwood-tld-1-bodhi.tar.bz2
         4976382 zImage.fdt
         4963680 uImage.orig
Marvell>>

I noticed that using "usb start" or "usb reset" the device is "seen" as if by default it was not initialized. Could this be it?
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 24, 2021 09:57PM
"usb start" or "usb reset" are the same the 1st time we run it.



Marvell>> ext2ls usb 0:1 /boot

<DIR>       4096 .

<DIR>       4096 ..
         9713936 uInitrd
         4963616 zImage-5.2.9-kirkwood-tld-1
         4963616 vmlinuz-5.2.9-kirkwood-tld-1
          165790 config-5.2.9-kirkwood-tld-1
<DIR>       4096 dts
         3101889 System.map-5.2.9-kirkwood-tld-1
         9713872 initrd.img-5.2.9-kirkwood-tld-1
         4976446 uImage
         9649570 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
        35354723 linux-5.12.6-kirkwood-tld-1-bodhi.tar.bz2
         4976382 zImage.fdt
         4963680 uImage.orig
Marvell>>

The above is good. So go ahead and enter all the setenvs.

And then get a listing of envs, and boot

printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Quote
abodhi
Quindi vai avanti e inserisci tutti i setenvs.

Which envs do I need to add? You haven't told me yet
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 25, 2021 04:12PM
In the post above (you said you tried that).

Quote

ianco,

See this post:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374

So,

These are the envs to set (after you tested with 'usb reset' and can list the files on the USB drive with 'ext2ls'):

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; if run load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'

-bodhi
===========================
Forum Wiki
bodhi's corner
Quote
bodhi
These are the envs to set (after you tested with 'usb reset' and can list the files on the USB drive with 'ext2ls')

Hello bodhi
I did the tests as you asked me and I encountered this problem:
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
This command can be used only if enaMonExt is set!
stopping USB..

even setting "setenv enaMonExt yes" I had this problem:
Unknown command 'FSrun' - try 'help'
Unknown command 'FSrun' - try 'help'
Unknown command 'FSrun' - try 'help'
Usage:
fi	- Find value in the memory.
stopping USB..

I did some research. and i found my uboot version of zyxel is incomplete so i changed:
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; if run load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi'

to:
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'

then I had Kernel panic problem "Unable to mount root fs on unknown-block (0,0)" and then I changed:
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'

to:
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1  rootdelay=10 earlyprintk=serial'

and I was finally able to start! keeping this warning during boot: findfs: unable to resolve 'LABEL = rootfs'
But in this way it only starts from USB and not from NAND if I remove the USB pendrive.

so I changed it like this:
setenv nand_set_bootargs 'setenv 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=/dev/nfs rw init=/init'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
setenv usb_boot 'run load_uimage; run load_uinitrd; bootm 0x800000'
setenv nand_boot 'nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv nand_bootcmd 'run nand_set_bootargs; run nand_boot'
setenv bootcmd 'usb start; run usb_bootcmd; run nand_bootcmd'
saveenv
boot

and I can boot from both USB and NAND!
I did further research and found a blog (madadmin) discussing NSA320S and its setenvs working perfectly on your rootfs package with the necessary changes:
setenv bootdelay '3'
setenv ipaddr '192.168.1.214'
setenv netmask 255.255.255.0'
setenv serverip '192.168.1.134'
setenv bootargs_console 'console=ttyS0,115200'
setenv bootargs_mtdpartitions '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)'
setenv init_usb 'mw.l f1010100 1361c000;usb reset'
setenv init_eth 'phyWrite 1 0x16 0x3;phyWrite 1 0x10 0x1017;phyWrite 1 0x11 0x4408;phyWrite 1 0x16 0;phyWrite 1 0x4 0x1e1;phyWrite 1 0x9 0x300;phyWrite 1 0x10 0x3860;phyWrite 1 0x0 0x9140'
setenv init_sata 'mw.l f1010104 c70e0ffd;ide reset'
setenv bootcmd_sata 'setenv bootargs ${bootargs_console} ${bootargs_mtdpartitions} netconsole=6665@${ipaddr}/eth0,6666@${serverip}/ root=/dev/sda1 rootdelay=10 earlyprintk=serial;ext2load ide 0:1 0x800000 /boot/uImage;ext2load ide 0:1 0xf00000 /boot/uInitrd;bootm 0x800000 0xf00000'
setenv bootcmd_usb 'setenv bootargs ${bootargs_console} ${bootargs_mtdpartitions} root=/dev/sda1 rootdelay=10 earlyprintk=serial netconsole=6665@${ipaddr}/eth0,6666@${serverip}/;ext2load usb 0:1 0x800000 /boot/uImage;ext2load usb 0:1 0xf00000 /boot/uInitrd;bootm 0x800000 0xf00000'
setenv bootcmd_nand 'setenv bootargs ${bootargs_console} ${bootargs_mtdpartitions} root=/dev/nfs rw init=/init;nand read.e 0x2000000 ${kernel_addr} 0xa00000; bootm 0x2000000'
setenv bootcmd 'run init_eth;run init_usb;run init_sata;run bootcmd_usb;run bootcmd_sata;run bootcmd_nand'
saveenv
boot

So I am able to boot from USB, SATA and NAND and have even activated a light version of netconsole! ("Unfortunately, the U-Boot provided by Zyxel does not include the netconsole option, so we can only see messages from the Linux kernel. However, with a properly reversed U-Boot, you could even use netconsole instead of a serial console.")
I just have to solve the "LABEL=rootfs" problem which is not found even if the label is correctly set, tested with both USB and SATA:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: DB6702A-GMtech LE 

U-Boot 1.1.4 (May 28 2013 - 16:07:08) Marvell version: 3.6.0

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

Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz
SysClock = 400Mhz , TClock = 166Mhz 

DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  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
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found

....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
................................................................................................................

5394726 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
.....................................................................................................................

9640077 bytes read
## Booting image at 00800000 ...
   Image Name:   5.12.6-kirkwood-tld-1
   Created:      2021-06-26  15:42:51 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5394662 Bytes =  5.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00f00000 ...
   Image Name:   initramfs-5.12.6-kirkwood-tld-1
   Created:      2021-06-26  15:43:06 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9640013 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.12.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat May 22 16:43:11 PDT 2021
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Zyxel NSA310S
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] INITRD: 0x00f00000+0x00932000 overlaps in-use memory region - disabling initrd
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] 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) rootdelay=10 root=LABEL=rootfs earlyprintk=serial netconsole=6665@192.168.1.214/eth0,6666@192.168.1.134/
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 241524K/262144K available (10240K kernel code, 1550K rwdata, 4228K rodata, 1024K init, 307K bss, 20620K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x408/0x7b4 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000002][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.008539][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.016020][    T0] Console: colour dummy device 80x30
[    0.021240][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.032470][    T0] pid_max: default: 32768 minimum: 301
[    0.038194][    T0] LSM: Security Framework initializing
[    0.043711][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051760][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.061691][    T0] CPU: Testing write buffer coherency: ok
[    0.069565][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.076741][    T1] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.082955][    T1] rcu: Hierarchical SRCU implementation.
[    0.089828][    T1] devtmpfs: initialized
[    0.100554][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.111164][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.163517][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.170693][    T1] prandom: seed boundary self test passed
[    0.181311][    T1] prandom: 100 self tests passed
[    0.186098][    T1] pinctrl core: initialized pinctrl subsystem
[    0.193660][    T1] NET: Registered protocol family 16
[    0.199728][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.208266][    T1] audit: initializing netlink subsys (disabled)
[    0.215848][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.216231][   T16] audit: type=2000 audit(0.200:1): state=initialized audit_enabled=0 res=1
[    0.231520][    T1] cpuidle: using governor ladder
[    0.236388][    T1] cpuidle: using governor menu
[    0.241705][    T1] Feroceon L2: Enabling L2
[    0.246003][    T1] Feroceon L2: Cache support initialised.
[    0.263803][    T1] No ATAGs?
[    2.568546][    C0] random: fast init done
[    6.133494][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    6.358813][    T1] raid6: int32x8  gen()    93 MB/s
[    6.528689][    T1] raid6: int32x8  xor()    58 MB/s
[    6.698627][    T1] raid6: int32x4  gen()    95 MB/s
[    6.868663][    T1] raid6: int32x4  xor()    61 MB/s
[    7.038662][    T1] raid6: int32x2  gen()   126 MB/s
[    7.208696][    T1] raid6: int32x2  xor()    75 MB/s
[    7.378746][    T1] raid6: int32x1  gen()    94 MB/s
[    7.548741][    T1] raid6: int32x1  xor()    54 MB/s
[    7.553692][    T1] raid6: using algorithm int32x2 gen() 126 MB/s
[    7.559783][    T1] raid6: .... xor() 75 MB/s, rmw enabled
[    7.565252][    T1] raid6: using intx1 recovery algorithm
[    7.570919][    T1] vgaarb: loaded
[    7.574917][    T1] SCSI subsystem initialized
[    7.579941][    T1] usbcore: registered new interface driver usbfs
[    7.586160][    T1] usbcore: registered new interface driver hub
[    7.592253][    T1] usbcore: registered new device driver usb
[    7.598212][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.603879][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.613712][    T1] PTP clock support registered
[    7.620405][    T1] clocksource: Switched to clocksource orion_clocksource
[    7.731105][    T1] VFS: Disk quotas dquot_6.6.0
[    7.735805][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.770775][    T1] NET: Registered protocol family 2
[    7.775988][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    7.801599][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    7.820464][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    7.828820][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    7.850475][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    7.857765][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.880499][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.887724][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    7.910670][    T1] NET: Registered protocol family 1
[    7.930860][    T1] RPC: Registered named UNIX socket transport module.
[    7.937464][    T1] RPC: Registered udp transport module.
[    7.950431][    T1] RPC: Registered tcp transport module.
[    7.955815][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.970433][    T1] PCI: CLS 0 bytes, default 32
[    7.975614][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.640296][    T1] Initialise system trusted keyrings
[    9.645537][    T1] Key type blacklist registered
[    9.650536][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    9.657769][    T1] zbud: loaded
[    9.662633][    T1] NFS: Registering the id_resolver key type
[    9.668392][    T1] Key type id_resolver registered
[    9.673339][    T1] Key type id_legacy registered
[    9.678066][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.685475][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    9.693557][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.700940][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.709187][    T1] fuse: init (API version 7.33)
[    9.714336][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.721719][    T1] orangefs_init: module version upstream loaded
[    9.727793][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    9.857907][    T1] xor: measuring software checksum speed
[    9.874138][    T1]    arm4regs        :   927 MB/sec
[    9.896928][    T1]    8regs           :   556 MB/sec
[    9.914206][    T1]    32regs          :   809 MB/sec
[    9.919246][    T1] xor: using function: arm4regs (927 MB/sec)
[    9.925118][    T1] async_tx: api initialized (async)
[    9.930158][    T1] Key type asymmetric registered
[    9.934976][    T1] Asymmetric key parser 'x509' registered
[    9.940621][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.948804][    T1] io scheduler bfq registered
[   10.192407][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.202526][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[   10.212441][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[   10.222557][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.233171][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[   10.244096][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   10.252370][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   10.258545][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[   10.269398][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   10.276974][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   10.284065][    T1] pci 0000:00:01.0: [11ab:6702] type 01 class 0x060400
[   10.290797][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   10.299817][    T1] PCI: bus0: Fast back to back transfers disabled
[   10.306126][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   10.316362][    T1] PCI: bus1: Fast back to back transfers enabled
[   10.322568][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   10.330075][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[   10.338006][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   10.344378][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.411686][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.422570][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.491683][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.502841][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.511506][    T1] printk: console [ttyS0] disabled
[   10.516554][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[   10.526324][    T1] printk: console [ttyS0] enabled
[   10.526324][    T1] printk: console [ttyS0] enabled
[   10.536094][    T1] printk: bootconsole [earlycon0] disabled
[   10.536094][    T1] printk: bootconsole [earlycon0] disabled
[   10.556960][    T1] loop: module loaded
[   10.561823][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.571401][    T1] scsi host0: sata_mv
[   10.575947][    T1] scsi host1: sata_mv
[   10.580071][    T1] ata1: SATA max UDMA/133 irq 32
[   10.584959][    T1] ata2: SATA max UDMA/133 irq 32
[   10.591143][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   10.598179][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[   10.603611][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.611936][    T1] Scanning device for bad blocks
[   10.720828][    T1] 9 fixed-partitions partitions found on MTD device orion_nand
[   10.728203][    T1] Creating 9 MTD partitions on "orion_nand":
[   10.734043][    T1] 0x000000000000-0x000000100000 : "uboot"
[   10.741332][    T1] 0x000000100000-0x000000180000 : "uboot_env"
[   10.748819][    T1] 0x000000180000-0x000000200000 : "key_store"
[   10.756376][    T1] 0x000000200000-0x000000280000 : "info"
[   10.763483][    T1] 0x000000280000-0x000000c80000 : "etc"
[   10.770543][    T1] 0x000000c80000-0x000001680000 : "kernel_1"
[   10.778005][    T1] 0x000001680000-0x000004640000 : "rootfs1"
[   10.785582][    T1] 0x000004640000-0x000005040000 : "kernel_2"
[   10.793103][    T1] 0x000005040000-0x000008000000 : "rootfs2"
[   10.801300][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.809799][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.821706][    T1] libphy: Fixed MDIO Bus: probed
[   10.828235][    T1] libphy: orion_mdio_bus: probed
[   10.833103][    T1] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[   10.846340][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.855469][    T1] mv643xx_eth: Set the PHY to fix link down
[   10.856215][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 28:28:5d:xx:xx:xx
[   10.871636][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.878924][    T1] ehci-pci: EHCI PCI platform driver
[   10.884227][    T1] ehci-orion: EHCI orion driver
[   10.889140][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.895412][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.904117][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.920929][   T93] ata1: SATA link down (SStatus 0 SControl F300)
[   10.940438][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.947451][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12
[   10.956416][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.964330][    T1] usb usb1: Product: EHCI Host Controller
[   10.969891][    T1] usb usb1: Manufacturer: Linux 5.12.6-kirkwood-tld-1 ehci_hcd
[   10.977281][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.983439][    T1] hub 1-0:1.0: USB hub found
[   10.987921][    T1] hub 1-0:1.0: 1 port detected
[   10.993450][    T1] usbcore: registered new interface driver usb-storage
[   11.000638][    T1] mousedev: PS/2 mouse device common for all mice
[   11.007230][    T1] i2c /dev entries driver
[   11.014239][    T1] ht1382 0-0068: registered as rtc0
[   11.020357][    T1] ht1382 0-0068: setting system clock to 2021-06-27T19:17:49 UTC (1624821469)
[   11.030377][    T1] device-mapper: uevent: version 1.0.3
[   11.036040][    T1] device-mapper: ioctl: 4.44.0-ioctl (2021-02-01) initialised: dm-devel@redhat.com
[   11.045663][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.052942][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.060230][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.067645][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.074443][    T1] device-mapper: raid: Loading target version 1.15.1
[   11.083785][    T1] hid: raw HID events driver (C) Jiri Kosina
[   11.090001][    T1] drop_monitor: Initializing network drop monitor service
[   11.097516][    T1] NET: Registered protocol family 10
[   11.104238][    T1] Segment Routing with IPv6
[   11.108587][    T1] RPL Segment Routing with IPv6
[   11.113453][    T1] NET: Registered protocol family 17
[   11.118805][    T1] Key type dns_resolver registered
[   11.124496][    T1] registered taskstats version 1
[   11.129286][    T1] Loading compiled-in X.509 certificates
[   11.135329][    T1] zswap: loaded using pool lzo/zbud
[   11.140800][    T1] Key type ._fscrypt registered
[   11.145497][    T1] Key type .fscrypt registered
[   11.150102][    T1] Key type fscrypt-provisioning registered
[   11.157888][    T1] Key type big_key registered
[   11.166852][    T1] Key type encrypted registered
[   11.175127][    T1] Waiting 10 sec before mounting root device...
[   11.262488][   T95] ata2: SATA link down (SStatus 0 SControl F300)
[   11.360444][  T104] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.562254][  T104] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.32
[   11.571141][  T104] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   11.578977][  T104] usb 1-1: Product: USB2.0 Hub
[   11.584620][  T104] hub 1-1:1.0: USB hub found
[   11.589382][  T104] hub 1-1:1.0: 4 ports detected
[   11.910435][  T104] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[   12.092753][  T104] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5581, bcdDevice= 1.00
[   12.101803][  T104] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.109808][  T104] usb 1-1.3: Product: SanDisk Ultra
[   12.114868][  T104] usb 1-1.3: Manufacturer: SanDisk
[   12.119823][  T104] usb 1-1.3: SerialNumber: A200563582653538
[   12.126461][  T104] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   12.134044][  T104] scsi host2: usb-storage 1-1.3:1.0
[   13.211366][   T58] scsi 2:0:0:0: Direct-Access     SanDisk  SanDisk Ultra    PMAP PQ: 0 ANSI: 6
[   13.221933][    T7] sd 2:0:0:0: [sda] 30965760 512-byte logical blocks: (15.9 GB/14.8 GiB)
[   13.231290][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   13.237789][    T7] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.380804][    T7]  sda: sda1
[   13.388174][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   21.610440][    T1] md: Waiting for all devices to be available before autodetect
[   21.617903][    T1] md: If you don't use raid, use raid=noautodetect
[   21.624267][    T1] md: Autodetecting RAID arrays.
[   21.629039][    T1] md: autorun ...
[   21.632534][    T1] md: ... autorun DONE.
[   21.637320][    T1] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   21.646084][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   21.655199][    T1] 1f00            1024 mtdblock0 
[   21.655212][    T1]  (driver?)
[   21.663176][    T1] 1f01             512 mtdblock1 
[   21.663188][    T1]  (driver?)
[   21.671131][    T1] 1f02             512 mtdblock2 
[   21.671144][    T1]  (driver?)
[   21.679045][    T1] 1f03             512 mtdblock3 
[   21.679056][    T1]  (driver?)
[   21.687005][    T1] 1f04           10240 mtdblock4 
[   21.687018][    T1]  (driver?)
[   21.694969][    T1] 1f05           10240 mtdblock5 
[   21.694981][    T1]  (driver?)
[   21.702914][    T1] 1f06           48896 mtdblock6 
[   21.702927][    T1]  (driver?)
[   21.710846][    T1] 1f07           10240 mtdblock7 
[   21.710858][    T1]  (driver?)
[   21.718754][    T1] 1f08           48896 mtdblock8 
[   21.718765][    T1]  (driver?)
[   21.726702][    T1] 0800        15482880 sda 
[   21.726714][    T1]  driver: sd
[   21.734203][    T1]   0801        15481856 sda1 f89e936c-01
[   21.734215][    T1] 
[   21.741960][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   21.750883][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.12.6-kirkwood-tld-1 #1.0
[   21.758777][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   21.765724][    T1] [<8010dfdc>] (unwind_backtrace) from [<8010a7e0>] (show_stack+0x10/0x14)
[   21.774158][    T1] [<8010a7e0>] (show_stack) from [<80ae78bc>] (panic+0xfc/0x328)
[   21.781728][    T1] [<80ae78bc>] (panic) from [<81001a94>] (mount_block_root+0x1e0/0x26c)
[   21.789892][    T1] [<81001a94>] (mount_block_root) from [<81001c10>] (mount_root+0xf0/0x120)
[   21.798393][    T1] [<81001c10>] (mount_root) from [<81001d84>] (prepare_namespace+0x144/0x180)
[   21.807067][    T1] [<81001d84>] (prepare_namespace) from [<810015a8>] (kernel_init_freeable+0x188/0x1ec)
[   21.816624][    T1] [<810015a8>] (kernel_init_freeable) from [<80af30f4>] (kernel_init+0x8/0x118)
[   21.825488][    T1] [<80af30f4>] (kernel_init) from [<80100148>] (ret_from_fork+0x14/0x2c)
[   21.833738][    T1] Exception stack(0x8189ffb0 to 0x8189fff8)
[   21.839470][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[   21.848311][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   21.857148][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   21.864442][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

root@debian:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
tmpfs          /tmp            tmpfs   defaults          0       0

root@debian:~# lsblk -o NAME,LABEL
NAME      LABEL
sda       
`-sda1    rootfs
mtdblock0 
mtdblock1 
mtdblock2 
mtdblock3 
mtdblock4 
mtdblock5 
mtdblock6 
mtdblock7 
mtdblock8

Any ideas to solve the problem?
In the meantime, thank you very much for your precious help
Re: [NSA310S] Boot Debian USB + Boot ZyxelOS NAND?
June 27, 2021 03:29PM
ianco,

>
> setenv usb_boot 'mw 0x800000 0 1; run load_uimage;
> run load_uinitrd; bootm 0x800000 0x2100000'
>

That's good.

Regarding the rootfs, you should keep root=LABEL=rootfs in the bootargs. And make sure your USB parttition was created correctly with the label rootfs. There is no need to use root=/dev/sda1.

The rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 has the root device set to find the LABEL rootfs (in /etc/fstab).

Use the envs set I posted should be enough, don't try any other solution.

-bodhi
===========================
Forum Wiki
bodhi's corner
Quote
bodhi
Use the envs set I posted should be enough, don't try any other solution.

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'

I don't know why it gave me kernel panic before, now it works!
How could I add reading of /boot/uEnv.txt?
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: