Welcome! Log In Create A New Profile

Advanced

Debian on Zyxel NSA310 - another example

Posted by eine 
eine
Debian on Zyxel NSA310 - another example
March 20, 2016 02:29PM
vcheche,

Thank you for answer, indeed 4.4 exist, I've just quick follow up, I was able to generate uInitrd like this:
in /mnt/sdh2 I've extracted
Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
and did chroot:
apt-get install qemu-user-static
cp /usr/bin/qemu-arm-static /mnt/sdh2/usr/bin/
chroot /mnt/sdh2/ qemu-arm-static /bin/bash
Qemu-arm-static is needed to do chroot for diffrent architecture.
Then I've extracted to /mnt/sdh2/boot:
linux-4.4.0-kirkwood-tld-1-bodhi.tar.bz2
Then I've installed two debs from tar:
linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb 
linux-image-4.4.0-kirkwood-tld-1_1.0_armel.deb
This operation generated initramfs. Then I've converted uImage and uInitrd. I've modified uboot to support systemd.
Debian booted successfully, but this kernel:
- NSA310 lacks support of LEDs, there's no: /sys/class/leds/nsa310
- fw_printenv is broken, lack of partitions in /proc/mtd, no info in dmsg.
- power button is not working, there's no: `gpio-keys as /devices/platform/gpio-keys/input/input0`
- WOL works.
- device start/reboots without any noise in boot/shutdown logs.

Does this kernel miss something? Is it not compiled or not patched?

-----
Moderator edit: these questions are more general so made it its own topic.



Edited 3 time(s). Last edit at 03/21/2016 11:54AM by bodhi.
Re: Question about kirkwood kernel and rootfs
March 20, 2016 03:09PM
eine,

From your questions, I assume you've installed this kernel on NSA310.

> and did chroot:
> apt-get install qemu-user-static
> cp /usr/bin/qemu-arm-static /mnt/sdh2/usr/bin/
> chroot /mnt/sdh2/ qemu-arm-static /bin/bash

No need to do chroot when you create rootfs Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar. All you need is a Linux box. The architecture does not come in to play when you tar the rootfs into an Ext3 partition on a new USB drive.

> - NSA310 lacks support of LEDs, there's no:
> /sys/class/leds/nsa310

You probably need to use the correct version of the NSA310 DTB (there are 3 versions):

/boot/dts/kirkwood-nsa310.dtb
/boot/dts/kirkwood-nsa310a.dtb
/boot/dts/kirkwood-nsa310b-lmsensor-redusbled.dtb


> - fw_printenv is broken, lack of partitions in
> /proc/mtd, no info in dmsg.

You need to use the correct mtdparts in kernel bootargs.

> - power button is not working, there's no:
> `gpio-keys as
> /devices/platform/gpio-keys/input/input0`

This should work with the correct DTB.

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



Edited 1 time(s). Last edit at 03/20/2016 03:11PM by bodhi.
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 03:19PM
bodhi Wrote:
-------------------------------------------------------
> eine,
>
> From your questions, I assume you've installed
> this kernel on NSA310.

That's correct.

> > and did chroot:
> > apt-get install qemu-user-static
> > cp /usr/bin/qemu-arm-static /mnt/sdh2/usr/bin/
> > chroot /mnt/sdh2/ qemu-arm-static /bin/bash
>
> No need to do chroot when you create rootfs
> Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar. All
> you need is a Linux box. The architecture does not
> come in to play when you tar the rootfs into an
> Ext3 partition on a new USB drive.

I did this, because I wanted to install your root fs directly on HDD. I needed it (chroot) to generate initramfs.

> > - NSA310 lacks support of LEDs, there's no:
> > /sys/class/leds/nsa310
>
> You probably need to use the correct version of
> the NSA310 DTB (there are 3 versions):
>
>
> /boot/dts/kirkwood-nsa310.dtb
> /boot/dts/kirkwood-nsa310a.dtb
> /boot/dts/kirkwood-nsa310b-lmsensor-redusbled.dtb
>

I've used first one: kirkwood-nsa310.dtb .

> > - fw_printenv is broken, lack of partitions in
> > /proc/mtd, no info in dmsg.
>
> You need to use the correct mtdparts in kernel
> bootargs.
>
> > - power button is not working, there's no:
> > `gpio-keys as
> > /devices/platform/gpio-keys/input/input0`
>
> This should work with the correct DTB.

I'll let u know right away.
Re: Question about kirkwood kernel and rootfs
March 20, 2016 03:33PM
eine,

The initramfs is already in the rootfs.

-rw-r--r--  1 root root 7466909 Jan 28 15:00 initrd.img-4.4.0-kirkwood-tld-1
-rw-r--r--  1 root root 7466973 Jan 28 15:17 uInitrd.4.4.0-kirkwood-tld-1

-bodhi
===========================
Forum Wiki
bodhi's corner
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 03:47PM
Thank you for help.

I've regenerated again uImage and uInitrd, led works, I mean that:
/sys/class/leds/nsa310 appered, but how do you configure hdd led? I mean its activity?

I am testing now (which also appeared):
/devices/platform/gpio_keys/input/input0

Apparently bad /proc/mtd is also my fault, I am debugging it now.
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 04:32PM
bodhi, everything works as expected. WOW, nice job. :)
Re: Question about kirkwood kernel and rootfs
March 20, 2016 04:32PM
Ah. Thanks for the question! I forgot to add the LED activities for NSA310 in the new rootfs. These are the relevant trigger names:

nsa310:green:sys
nsa310:green:hdd

Look for the activity settings in the rootfs /etc/rc.local and /etc/init.d/halt, and replace the ones in there with

normal
if [ -d /sys/class/leds/nsa310:green:sys ]; then
   echo default-on > /sys/class/leds/nsa310:green:sys/trigger
fi
hdd
if [ -d /sys/class/leds/nsa310:green:hdd ]; then
   echo ide-disk1  > /sys/class/leds/nsa310:green:hdd/trigger 
fi
halt
if [ -d /sys/class/leds/nsa310:green:sys ]; then
   echo none > /sys/class/leds/nsa310:green:sys/trigger
fi

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



Edited 1 time(s). Last edit at 03/20/2016 05:34PM by bodhi.
Re: Question about kirkwood kernel and rootfs
March 20, 2016 04:32PM
eine Wrote:
-------------------------------------------------------
> bodhi, everything works as expected. WOW, nice
> job. :)


Cool:)

-bodhi
===========================
Forum Wiki
bodhi's corner
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 05:41PM
Correct u-boot variable to support fw_printenv:
bootargs=console=ttyS0,115200 root=/dev/sda2 init=/bin/systemd mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
root@nsa310:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1               0x0000          0x20000         0x20000                 4
Example output of fw_printenv:
root@nsa310:~# fw_printenv 
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=50:67:F0:69:AB:58
MODEL_ID=A203
arcNumber=4022
console=100000
=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
CASset=min
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
MALLOC_len=3
bootcmd=ide reset;ext2load ide 0:1 0x800000 /uImage;ext2load ide 0:1 0xd00000 /uInitrd;bootm 0x800000 0xd00000
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=100000
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
ethact=egiga1
bootargs=console=ttyS0,115200 root=/dev/sda2 init=/bin/systemd mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)

Led support:
root@nsa310:~# cat /etc/rc.local  
#!/bin/sh -e
#
# rc.local

# turn on LED

echo default-on >  /sys/class/leds/nsa310\:green\:sys/trigger 
echo ide-disk1 > /sys/class/leds/nsa310\:green\:hdd/trigger 
exit 0

Fix power button:
apt-get install esekeyd
Enable deamon in:
root@nsa310:~# cat /etc/default/esekeyd 
# Defaults for esekeyd initscript

# Start esekeyd on boot (set it to "true" to enable)
START_ESEKEYD=true

# Daemon options, at last config location must be present
DAEMON_OPTS=/etc/esekeyd.conf
Create config file:
root@nsa310:~# cat /etc/esekeyd.conf 
#
# ESE Key Deamon 1.2.7 config file
#

#
# example 1: to run mutt in xterm we must set DISPLAY
#            so the command line will be as follows:
#MAIL:/bin/sh -c "DISPLAY=:0 xterm -e mutt"
#
# example 2: turn on/off GPS reciever when lid is open/closed
#RADIO(press):echo 1 >/sys/device/platform/gps/gps_power
#RADIO(release):echo 0 >/sys/device/platform/gps/gps_power
#
# example 3: run nautilus when both left meta and e keys are press
#LEFTMETA+E:nautilus
#

#POWER(press): /usr/bin/logger -s -i "POWER button pushed"
POWER:/sbin/shutdown -h now
Fix missing realtek firmware during updating initramfs (non-free repo):
apt-get install firmware-realtek
Creating zImage.fdt
cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-nsa310.dtb >> zImage.fdt
Generating and converting uImage and uInitrd:
update-initramfs -u
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.4.0-kirkwood-tld-1 -d initrd.img-4.4.0-kirkwood-tld-1 uInitrd
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 05:45PM
Tags: zyxel NSA310, LEDs, power button, mtdparts, kirkwood, debian, jessie
eine
Re: Question about kirkwood kernel and rootfs
March 20, 2016 05:52PM
Fix wrong MAC addres:
root@nsa310:~# fw_printenv ethaddr | /bin/grep -E -o '[[:xdigit:]]{2}(:[[:xdigit:]]{2}){5}'
50:67:F0:69:AB:58
root@nsa310:~# cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
    hwaddress ether 50:67:F0:69:AB:58
Re: Question about kirkwood kernel and rootfs
March 21, 2016 03:05AM
@eine,

If you don't mind: change the title of your first post to:

Debian on Zyxel NSA310 - another example

I think you've posted a real good write up of how to install new kernel on this box:
http://forum.doozan.com/read.php?2,26826,26840#msg-26840

-bodhi
===========================
Forum Wiki
bodhi's corner
eine
Re: Question about kirkwood kernel and rootfs
March 21, 2016 06:20AM
Sure, you are the moderator here and it's just my little contribution for your help. :)
eine
Re: Question about kirkwood kernel and rootfs
March 21, 2016 07:20AM
PS. I cannot edit it. ;)
Re: Question about kirkwood kernel and rootfs
November 22, 2017 09:05AM
Hello Bodhi,

reporting success for nsa-310 and kernel 4.13.5. I didn't test new filesystem, just a new kernel. Root FS is an updated version of Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 to:
root@nsa310:~# cat /etc/debian_version 
9.2

I've tested:
- 2TB/4TB HDD with GPT (I guess 8TB and 10TB should be supported too, but the unit may require better power supply - like 4A/12V)
- Wake On Lan
- LEDs
- fan control
- mtdparts
- powerbutton
- both USB ports
- S.M.A.R.T.
- unclear shutdown rootfs fsck test and repair

u-boot configuration:
root@nsa310:~# fw_printenv 
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=50:67:F0:69:56:9B
MODEL_ID=A203
arcNumber=4022
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
mainlineLinux=yes
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga1
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
disaMvPnp=no
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
hddPowerCtrl=no
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
enaAutoRecovery=yes
kernel_addr=0xc80000
pcieTune=no
ethact=egiga1
bootargs=console=ttyS0,115200 root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
bootcmd=ide reset; ide read 0x800000 0x5000 0x2000; ide read 0xd00000 0xA000 0x5000; bootm 0x800000 0xd00000

root@nsa310:~# ls -l /boot/ /boot/4.13.5-kirkwood-tld1-bodhi/
/boot/:
total 72552
drwxr-xr-x 3 root root     4096 Nov 22 16:29 4.13.5-kirkwood-tld1-bodhi
-rw-r--r-- 1 root root   154699 Oct  7 10:53 config-4.13.5-kirkwood-tld-1
-rw-r--r-- 1 root root   140949 Jan 26  2016 config-4.4.0-kirkwood-tld-1
drwxr-xr-x 2 root root     4096 Jan 26  2016 dts
-rw-r--r-- 1 root root  8510569 Nov 22 16:21 initrd.img-4.13.5-kirkwood-tld-1
-rw-r--r-- 1 root root  8867114 Nov 22 15:09 initrd.img-4.4.0-kirkwood-tld-1
-rw-r--r-- 1 root root   114393 Jan 30  2016 linux-4.4.0-kirkwood-tld-1.patch
-rw-r--r-- 1 root root  1116160 Jan 30  2016 linux-dtb-4.4.0-kirkwood-tld-1.tar
-rw-r--r-- 1 root root  7511582 Jan 26  2016 linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root 17561216 Jan 26  2016 linux-image-4.4.0-kirkwood-tld-1_1.0_armel.deb
drwx------ 2 root root     4096 Mar 20  2016 lost+found
-rw------- 1 root root  2546047 Oct  7 13:26 System.map-4.13.5-kirkwood-tld-1
-rw------- 1 root root  2240040 Jan 26  2016 System.map-4.4.0-kirkwood-tld-1
-rw-r--r-- 1 root root  3167962 Nov 22 15:09 uImage
-rw-r--r-- 1 root root  8867178 Nov 22 15:09 uInitrd
-rw------- 1 root root  3848000 Oct  7 13:26 vmlinuz-4.13.5-kirkwood-tld-1
-rw------- 1 root root  3154832 Jan 26  2016 vmlinuz-4.4.0-kirkwood-tld-1
-rwxr-xr-x 1 root root  3154832 Jan 26  2016 zImage-4.4.0-kirkwood-tld-1
-rwxr-xr-x 1 root root  3167898 Nov 22 15:09 zImage.fdt

/boot/4.13.5-kirkwood-tld1-bodhi/:
total 47952
-rw-r--r-- 1 root root   154699 Oct  7 10:53 config-4.13.5-kirkwood-tld-1
drwxr-xr-x 2 root root     4096 Sep 20 10:13 dts
-rw-r--r-- 1 root root   142721 Oct  9 10:05 linux-4.13.5-kirkwood-tld-1.patch
-rw-r--r-- 1 root root  1300480 Oct  8 00:55 linux-dtb-4.13.5-kirkwood-tld-1.tar
-rw-r--r-- 1 root root  8653960 Oct  7 13:49 linux-headers-4.13.5-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root 18669874 Oct  7 13:32 linux-image-4.13.5-kirkwood-tld-1_1.0_armel.deb
-rw-r--r-- 1 root root  3860522 Nov 22 16:26 uImage
-rw-r--r-- 1 root root  8510633 Nov 22 16:25 uInitrd
-rwxr-xr-x 1 root root  3848000 Oct  7 08:56 zImage-4.13.5-kirkwood-tld-1
-rwxr-xr-x 1 root root  3860458 Nov 22 16:21 zImage.fdt

root@nsa310:~# parted /dev/sda unit MiB print
Model: ATA WDC WD20EFRX-68E (scsi)
Disk /dev/sda: 1907729MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start     End         Size        File system     Name  Flags
 1      1000MiB   5096MiB     4096MiB     linux-swap(v1)
 2      5096MiB   46056MiB    40960MiB    ext2
 3      46056MiB  1907729MiB  1861673MiB  btrfs

root@nsa310:~# free -h
              total        used        free      shared  buff/cache   available
Mem:           241M         25M        185M        1.8M         31M        206M
Swap:          4.0G          0B        4.0G

root@nsa310:~# uname -a
Linux nsa310 4.13.5-kirkwood-tld-1 #1 PREEMPT Fri Oct 6 23:54:39 PDT 2017 armv5tel GNU/Linux

Kernel installation:
cd /boot/4.13.5-kirkwood-tld1-bodhi/
cp -a zImage-4.13.5-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-nsa310a.dtb >> zImage.fdt
update-initramfs -uv
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.13.5-kirkwood-tld-1 -d /boot/initrd.img-4.13.5-kirkwood-tld-1 /boot/4.13.5-kirkwood-tld1-bodhi/uInitrd
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.13.4-kirkwood-tld-1 -d /boot/4.13.5-kirkwood-tld1-bodhi/zImage.fdt /boot/4.13.5-kirkwood-tld1-bodhi/uImage
dd if=/boot/4.13.5-kirkwood-tld1-bodhi/uImage of=/dev/sda bs=1MiB seek=10
dd if=/boot/4.13.5-kirkwood-tld1-bodhi/uInitrd of=/dev/sda bs=1MiB seek=20

Boot/shutdown console logs:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Feb 22 2011 - 10:31:35) Marvell version: 3.4.19

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

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM 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

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD20EFRX-68EUZN0                     Firm: 80.00A80 Ser#:      WD-WMC4M2857576
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 20480 ... 20480 blocks read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-4.13.4-kirkwood-tld-1
   Created:      2017-11-22  15:26:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3860458 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00d00000 ...
   Image Name:   initramfs-4.13.5-kirkwood-tld-1
   Created:      2017-11-22  15:25:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8510569 Bytes =  8.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.5-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 PREEMPT Fri Oct 6 23:54:39 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA310
[    0.000000] Memory policy: Data cache writeback
[    0.000000] INITRD: 0x00d00000+0x0081e000 overlaps in-use memory region - disabling initrd
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 246448K/262144K available (8192K kernel code, 713K rwdata, 2008K rodata, 1024K init, 284K bss, 15696K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2744   ( 714 kB)
[    0.000000]        .bss : 0xc0db91bc - 0xc0e001d4   ( 285 kB)
[    0.000000] random: get_random_u32 called from cache_alloc_refill+0x378/0x8dc with crng_init=0
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039] Switching to timer-based delay loop, resolution 5ns
[    0.000487] Console: colour dummy device 80x30
[    0.000519] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000539] pid_max: default: 32768 minimum: 301
[    0.000721] Security Framework initialized
[    0.000855] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000877] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001680] CPU: Testing write buffer coherency: ok
[    0.002637] Setting up static identity map for 0x100000 - 0x100058
[    0.002906] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.003137] Hierarchical SRCU implementation.
[    0.006308] devtmpfs: initialized
[    0.010594] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010621] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010984] prandom: seed boundary self test passed
[    0.015165] prandom: 100 self tests passed
[    0.015177] pinctrl core: initialized pinctrl subsystem
[    0.016194] NET: Registered protocol family 16
[    0.016678] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018096] cpuidle: using governor ladder
[    0.018160] cpuidle: using governor menu
[    0.018682] Feroceon L2: Enabling L2
[    0.018725] Feroceon L2: Cache support initialised.
[    0.023951] No ATAGs?
[    0.033473] vgaarb: loaded
[    0.033788] SCSI subsystem initialized
[    0.034283] usbcore: registered new interface driver usbfs
[    0.034360] usbcore: registered new interface driver hub
[    0.034435] usbcore: registered new device driver usb
[    0.035644] clocksource: Switched to clocksource orion_clocksource
[    0.125340] VFS: Disk quotas dquot_6.6.0
[    0.125424] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135829] NET: Registered protocol family 2
[    0.136558] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.136597] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.136628] TCP: Hash tables configured (established 2048 bind 2048)
[    0.136708] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136732] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136909] NET: Registered protocol family 1
[    0.137322] RPC: Registered named UNIX socket transport module.
[    0.137335] RPC: Registered udp transport module.
[    0.137342] RPC: Registered tcp transport module.
[    0.137349] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137783] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.138670] audit: initializing netlink subsys (disabled)
[    0.139127] Initialise system trusted keyrings
[    0.139177] Key type blacklist registered
[    0.139275] audit: type=2000 audit(0.133:1): state=initialized audit_enabled=0 res=1
[    0.139352] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.139436] zbud: loaded
[    0.140301] NFS: Registering the id_resolver key type
[    0.140327] Key type id_resolver registered
[    0.140336] Key type id_legacy registered
[    0.140354] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.140364] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.140574] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.140772] fuse init (API version 7.26)
[    0.141118] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.141318] orangefs_init: module version upstream loaded
[    0.141329] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555657] random: fast init done
[    6.056644] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    6.057472] Key type asymmetric registered
[    6.057485] Asymmetric key parser 'x509' registered
[    6.057546] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.057558] io scheduler noop registered
[    6.057566] io scheduler deadline registered
[    6.057642] io scheduler cfq registered (default)
[    6.058869] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.060854] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.060876] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.060890] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.060904] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.061253] PCI: bus0: Fast back to back transfers disabled
[    6.061277] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.085761] PCI: bus1: Fast back to back transfers disabled
[    6.085830] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.085847] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.085867] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    6.085884] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    6.085909] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    6.085931] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    6.085947] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.085960] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.085975] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.086083] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.086604] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.146413] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.146646] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.206410] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.206867] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.208233] console [ttyS0] disabled
[    6.208302] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    6.951481] console [ttyS0] enabled
[    6.962405] loop: module loaded
[    6.966186] sata_mv f1080000.sata: slots 32 ports 2
[    6.973802] scsi host0: sata_mv
[    6.977447] scsi host1: sata_mv
[    6.980836] ata1: SATA max UDMA/133 irq 32
[    6.984954] ata2: SATA max UDMA/133 irq 32
[    6.989854] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    6.996337] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.000982] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.008616] Scanning device for bad blocks
[    7.014515] Bad eraseblock 18 at 0x000000240000
[    7.039585] Bad eraseblock 232 at 0x000001d00000
[    7.046291] Bad eraseblock 254 at 0x000001fc0000
[    7.072951] Bad eraseblock 484 at 0x000003c80000
[    7.129425] 9 cmdlinepart partitions found on MTD device orion_nand
[    7.135745] Creating 9 MTD partitions on "orion_nand":
[    7.140916] 0x000000000000-0x000000100000 : "uboot"
[    7.147020] 0x000000100000-0x000000180000 : "uboot_env"
[    7.153400] 0x000000180000-0x000000200000 : "key_store"
[    7.159884] 0x000000200000-0x000000280000 : "info"
[    7.165772] 0x000000280000-0x000000c80000 : "etc"
[    7.171542] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.177792] 0x000001680000-0x000004640000 : "rootfs1"
[    7.184209] 0x000004640000-0x000005040000 : "kernel_2"
[    7.190567] 0x000005040000-0x000008000000 : "rootfs2"
[    7.198352] libphy: Fixed MDIO Bus: probed
[    7.203354] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.209964] ehci-pci: EHCI PCI platform driver
[    7.214497] ehci-orion: EHCI orion driver
[    7.218794] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.224373] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.232282] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.265670] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.271952] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.278821] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.286113] usb usb1: Product: EHCI Host Controller
[    7.291018] usb usb1: Manufacturer: Linux 4.13.5-kirkwood-tld-1 ehci_hcd
[    7.297788] usb usb1: SerialNumber: f1050000.ehci
[    7.303164] hub 1-0:1.0: USB hub found
[    7.307025] hub 1-0:1.0: 1 port detected
[    7.311596] usbcore: registered new interface driver usb-storage
[    7.318013] mousedev: PS/2 mouse device common for all mice
[    7.324179] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.331337] i2c /dev entries driver
[    7.337764] hidraw: raw HID events driver (C) Jiri Kosina
[    7.343552] drop_monitor: Initializing network drop monitor service
[    7.350180] NET: Registered protocol family 17
[    7.354724] Key type dns_resolver registered
[    7.359874] registered taskstats version 1
[    7.363993] Loading compiled-in X.509 certificates
[    7.368894] zswap: loaded using pool lzo/zbud
[    7.379531] Key type big_key registered
[    7.385236] Key type encrypted registered
[    7.390677] rtc-mv f1010300.rtc: setting system clock to 2017-11-22 15:17:30 UTC (1511363850)
[    7.495695] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.504446] ata1.00: ATA-9: WDC WD20EFRX-68EUZN0, 80.00A80, max UDMA/133
[    7.511209] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.520591] ata1.00: configured for UDMA/133
[    7.535331] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68E 0A80 PQ: 0 ANSI: 5
[    7.544722] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    7.553023] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    7.558419] sd 0:0:0:0: [sda] Write Protect is off
[    7.563360] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.621253]  sda: sda1 sda2 sda3
[    7.626578] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.665685] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    7.857414] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    7.864181] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.871407] usb 1-1: Product: USB2.0 Hub
[    7.876258] hub 1-1:1.0: USB hub found
[    7.880415] hub 1-1:1.0: 4 ports detected
[    7.890211] ata2: SATA link down (SStatus 0 SControl F300)
[    7.934181] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[    7.954835] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    7.962051] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    7.981769] devtmpfs: mounted
[    7.987649] Freeing unused kernel memory: 1024K
[    8.628369] systemd[1]: Module 'ipv6' is blacklisted
[    8.673955] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.728264] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    8.746963] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    8.786154] systemd[1]: Set hostname to <nsa310>.
[    9.644537] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    9.676099] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    9.716179] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    9.749316] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    9.809140] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    9.861534] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[    9.916197] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Control Socket.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
         Mounting Debug File System...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
         Starting Create list of required st…ce nodes for the current kernel...
         Starting Nameserver information manager...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
         Starting Journal Service...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started File System Check Daemon to report status.
         Starting Create Static Device Nodes in /dev...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...)
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Journal Service.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.e)
[   19.831485] random: crng init done complete)
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[   76.685812] EXT4-fs (sda2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted /tmp.
[   77.109608] systemd-journald[116]: Received request to flush runtime journal from PID 1
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[   77.890496] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[  OK  ] Found device /dev/ttyS0.
[   78.202758] hwmon_vid: Unknown VRM version of your CPU
[   78.256841] lm85 0-002e: Starting monitoring
[   78.268227] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[   78.269218] r8169 0000:01:00.0 eth0: RTL8168d/8111d at 0xd1949000, 00:00:00:00:00:30, XID 083000c0 IRQ 38
[   78.269227] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   78.353429] marvell-cesa f1030000.crypto: CESA device successfully registered
[   78.354694] orion_wdt: Initial timeout 21 sec
[   78.419063] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 1.
[  OK  ] Found device WDC_WD20EFRX-68EUZN0 1.
         Activating swap Swap Partition...
[   79.014223] Adding 4194300k swap on /dev/sda1.  Priority:-1 extents:1 across:4194300k FS
[  OK  ] Activated swap Swap Partition.
[  OK  ] Activated swap /dev/disk/by-uuid/1789cdaa-6fa3-4909-b7d9-7d3e459a0140.
[  OK  ] Reached target Swap.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Basic System.
         Starting Initialize hardware monitoring sensors...
         Starting Login Service...
         Starting System Logging Service...
         Starting LSB: Starts syslogd...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting LSB: ESE Key Daemon...
         Starting LSB: Starts the Name Service Cache Daemon...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started LSB: Starts the Name Service Cache Daemon.
[  OK  ] Started Initialize hardware monitoring sensors.
         Starting LSB: Starts klogd...
[  OK  ] Started LSB: Starts klogd.
[  OK  ] Started Login Service.
[  OK  ] Started LSB: ESE Key Daemon.
[   81.157046] r8169 0000:01:00.0 eth0: link down
[   81.161534] r8169 0000:01:00.0 eth0: link down
[   83.977326] r8169 0000:01:00.0 eth0: link up
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenVPN service...
         Starting Permit User Sessions...
         Starting Simple Network Management Protocol (SNMP) Daemon....
         Starting OpenBSD Secure Shell server...
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         Starting LSB: LDAP connection daemon...
         Starting LSB: start Samba daemons for the AD DC...
[  OK  ] Started OpenVPN service.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: LDAP connection daemon.
[  OK  ] Started LSB: start Samba daemons for the AD DC.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
         Mounting Arbitrary Executable File Formats File System...
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 nsa310 ttyS0

nsa310 login:


[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped target Graphical Interfac         Stopping Serial Getty on ttyS0...
[  OK  ] Stopped OpenVPN service.
[  OK  ] Stopped Initialize hardware monitoring sensors.
         Stopping D-Bus System Message Bus...
         Stopping Simple Network Management Protocol (SNMP) Daemon....
         Stopping LSB: ESE Key Daemon...
         Stopping LSB: start Samba daemons for the AD DC...
         Stopping LSB: Starts the Name Service Cache Daemon...
         Stopping LSB: Starts klogd...
         Stopping Getty on tty1...
         Stopping Login Service...
         Stopping Self Monitoring and Reporting Technology (SMART) Daemon...
         Stopping OpenBSD Secure Shell server...
         Stopping System Logging Service...
[  OK  ] Stopped Login Service.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Self Monitoring and Reporting Technology (SMART) Daemon.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped OpenBSD Secure Shell server.
[  OK  ] Stopped Simple Network Management Protocol (SNMP) Daemon..
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Stopped LSB: start Samba daemons for the AD DC.
[  OK  ] Stopped LSB: Starts the Name Service Cache Daemon.
[  OK  ] Stopped LSB: Starts klogd.
         Stopping LSB: Starts syslogd...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
         Stopping Permit User Sessions...
[  OK  ] Stopped /etc/rc.local Compatibility.
[  OK  ] Removed slice system-getty.slice.
         Stopping LSB: LDAP connection daemon...
[  OK  ] Stopped LSB: ESE Key Daemon.
[  OK  ] Stopped LSB: Starts syslogd.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped LSB: LDAP connection daemon.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target Network.
         Stopping Raise network interfaces...
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped target Swap.
         Deactivating swap Swap Partition...
         Deactivating swap /dev/disk/by-id/wwn-0x50014ee0ae6ff021-part1...
         Stopping Load/Save Random Seed...
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Deactivated swap /dev/disk/by-path/platform-f1080000.sata-ata-1-part1.
[  OK  ] Deactivated swap /dev/disk/by-partu…da65d-18f8-4ee7-9d87-2f86cc555d84.
[  OK  ] Deactivated swap /dev/disk/by-id/wwn-0x50014ee0ae6ff021-part1.
[  OK  ] Deactivated swap /dev/disk/by-id/at…FRX-68EUZN0_WD-WMC4M2857576-part1.
[  OK  ] Deactivated swap Swap Partition.
[  OK  ] Deactivated swap /dev/disk/by-uuid/…9cdaa-6fa3-4909-b7d9-7d3e459a0140.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped Raise network interfaces.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped target Local File Systems.
         Unmounting /tmp...
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Unmounted /tmp.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[  306.762421] systemd-shutdow: 32 output lines suppressed due to ratelimiting
[  306.945848] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  306.963714] systemd-journald[116]: Received SIGTERM from PID 1 (systemd-shutdow).
[  307.006562] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  307.022576] systemd-shutdown[1]: Unmounting file systems.
[  307.029132] systemd-shutdown[1]: Remounting '/' read-only with options 'block_validity,delalloc,barrier,user_xattr,acl'.
[  307.105762] EXT4-fs (sda2): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
[  307.325470] systemd-shutdown[1]: Remounting '/' read-only with options 'block_validity,delalloc,barrier,user_xattr,acl'.
[  307.336931] EXT4-fs (sda2): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
[  307.345448] systemd-shutdown[1]: All filesystems unmounted.
[  307.351207] systemd-shutdown[1]: Deactivating swaps.
[  307.356458] systemd-shutdown[1]: All swaps deactivated.
[  307.361732] systemd-shutdown[1]: Detaching loop devices.
[  307.393747] systemd-shutdown[1]: All loop devices detached.
[  307.445794] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  307.451179] sd 0:0:0:0: [sda] Stopping disk
[  307.876067] reboot: Power down

Just one thing you may want to know about:
[  112.169306] ------------[ cut here ]------------
[  112.173962] WARNING: CPU: 0 PID: 522 at fs/filesystems.c:281 get_fs_type+0xa0/0xe4
[  112.183271] request_module fs-btrfs succeeded, but still no fs?
[  112.190216] Modules linked in: binfmt_misc evdev fixed sg uas lm85 hwmon_vid orion_wdt marvell_cesa r8169 gpio_keys uio_pdrv_genirq uio ip_tables x_tables autofs4
[  112.205856] CPU: 0 PID: 522 Comm: mount Not tainted 4.13.5-kirkwood-tld-1 #1
[  112.212933] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  112.220646] [<c010ea24>] (unwind_backtrace) from [<c010ab28>] (show_stack+0x10/0x14)
[  112.229373] [<c010ab28>] (show_stack) from [<c011812c>] (__warn+0xe0/0xfc)
[  112.237236] [<c011812c>] (__warn) from [<c011817c>] (warn_slowpath_fmt+0x34/0x44)
[  112.244764] [<c011817c>] (warn_slowpath_fmt) from [<c0250f38>] (get_fs_type+0xa0/0xe4)
[  112.254113] [<c0250f38>] (get_fs_type) from [<c02549d4>] (do_mount+0x664/0xb30)
[  112.262359] [<c02549d4>] (do_mount) from [<c02550e4>] (SyS_mount+0x70/0x98)
[  112.270262] [<c02550e4>] (SyS_mount) from [<c0106ec0>] (ret_fast_syscall+0x0/0x38)
[  112.278767] ---[ end trace 8fb1adfba3d8f851 ]---

It happened during:
mount -t btrfs /dev/sda3 /srv/backup/ -o defaults,autodefrag,compress
Btrfs module somehow didn't load, I had to do it manually. It's not a big deal for me. Great work, congrats.



Edited 10 time(s). Last edit at 11/22/2017 09:42AM by eine.
Re: Question about kirkwood kernel and rootfs
November 22, 2017 03:41PM
eine,

Thanks for reporting! great job :)

> Btrfs module somehow didn't load, I had to do it
> manually. It's not a big deal for me. Great work,
> congrats.

Since btrfs is a module, you need to load it early enough in the boot process to make sure it is running before mounting. In sysvinit, we modify the modules file like this:

http://forum.doozan.com/read.php?2,9522

The above might still work in systemd.

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

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 2 plus 18?
Message: