NSA325 - How to boot with systemd January 09, 2018 05:54AM |
Registered: 6 years ago Posts: 47 |
NSA325> version U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 NSA325>
Re: NSA325 - How to boot with ststemd January 09, 2018 06:58AM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 09, 2018 08:17AM |
Registered: 6 years ago Posts: 47 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 NSA325>
NSA325> printenv arch=sandbox baudrate=115200 board=sandbox board_name=sandbox boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf boot_net_pci_enum=pci enum boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_targets=host1 host0 bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootdelay=2 bootm_size=0x10000000 cpu=sandbox distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=00:00:11:22:33:44 fdt_addr_r=0xc00000 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot _part; fi ipaddr=1.2.3.4 kernel_addr_r=0x1000000 pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b oot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scriptaddr=0x1000 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd stderr=serial stdin=serial stdout=serial usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_ for_boot_part; fi Environment size: 2210/131068 bytes NSA325>
Re: NSA325 - How to boot with ststemd January 09, 2018 09:39AM |
Admin Registered: 13 years ago Posts: 18,495 |
> U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 > -0700) > ZyXEL NSA325 2-Bay Power Media Server > > SoC: Kirkwood 88F6282_A1 > DRAM: 512 MiB > WARNING: Caches not enabled > NAND: 128 MiB > In: serial > Out: serial > Err: serial > Net: egiga0 > MV88E1318 PHY initialized on egiga0 > NSA325> > >>
> NSA325> printenv > arch=sandbox > baudrate=115200 > board=sandbox > board_name=sandbox > boot_a_script=load ${devtype} > ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi > > > > x}${script}; source ${scriptaddr} > boot_extlinux=sysboot ${devtype} > ${devnum}:${distro_bootpart} any ${scriptaddr} > > > > ${prefix}extlinux/extlinux.conf > boot_net_pci_enum=pci enum > boot_net_usb_start=usb start > boot_prefixes=/ /boot/ > boot_script_dhcp=boot.scr.uimg > boot_scripts=boot.scr.uimg boot.scr > boot_targets=host1 host0 > bootcmd_host0=setenv devnum 0; run host_boot > bootcmd_host1=setenv devnum 1; run host_boot > bootdelay=2 > bootm_size=0x10000000 > cpu=sandbox > distro_bootcmd=for target in ${boot_targets}; do > run bootcmd_${target}; done > eth1addr=00:00:11:22:33:45 > eth3addr=00:00:11:22:33:46 > eth5addr=00:00:11:22:33:47 > ethact=egiga0 > ethaddr=00:00:11:22:33:44 > fdt_addr_r=0xc00000 > host_boot=if host dev ${devnum}; then setenv > devtype host; run scan_dev_for_boot > > > _part; fi > ipaddr=1.2.3.4 > kernel_addr_r=0x1000000 > pxefile_addr_r=0x2000 > ramdisk_addr_r=0x2000000 > scan_dev_for_boot=echo Scanning ${devtype} > ${devnum}:${distro_bootpart}...; for > > > prefix in > ${boot_prefixes}; do run scan_dev_for_extlinux; > run scan_dev_for_scrip > > > ts; done; > scan_dev_for_boot_part=part list ${devtype} > ${devnum} -bootable devplist; env ex > > > ists > devplist || setenv devplist 1; for distro_bootpart > in ${devplist}; do if fs > > > type ${devtype} > ${devnum}:${distro_bootpart} bootfstype; then run > scan_dev_for_b > > > oot; fi; done > scan_dev_for_extlinux=if test -e ${devtype} > ${devnum}:${distro_bootpart} ${prefi > > > > x}extlinux/extlinux.conf; then echo Found > ${prefix}extlinux/extlinux.conf; run b > > > > oot_extlinux; echo SCRIPT FAILED: continuing...; > fi > scan_dev_for_scripts=for script in > ${boot_scripts}; do if test -e ${devtype} ${d > > > > evnum}:${distro_bootpart} ${prefix}${script}; then > echo Found U-Boot script ${pr > > > efix}${script}; > run boot_a_script; echo SCRIPT FAILED: > continuing...; fi; done > scriptaddr=0x1000 > set_bootargs=setenv bootargs console=ttyS0,115200 > root=LABEL=rootfs rootdelay=10 > > > $mtdparts > init=/bin/systemd > stderr=serial > stdin=serial > stdout=serial > usb_boot=usb start; if usb dev ${devnum}; then > setenv devtype usb; run scan_dev_ > > > > for_boot_part; fi > > Environment size: 2210/131068 bytes > NSA325> >
Re: NSA325 - How to boot with ststemd January 09, 2018 09:40AM |
Registered: 6 years ago Posts: 47 |
Re: NSA325 - How to boot with ststemd January 09, 2018 11:46AM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
You can set the bootargs env to boot with systemd perrmanently, It is best to do this in netconsole/serial console.
Quote
> fw_setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 $mtdparts init=/bin/systemd'
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 NSA325>
Re: NSA325 - How to boot with ststemd January 09, 2018 12:02PM |
Registered: 6 years ago Posts: 47 |
Re: NSA325 - How to boot with ststemd January 09, 2018 12:03PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 09, 2018 12:05PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 09, 2018 01:43PM |
Registered: 6 years ago Posts: 47 |
> cp -a uboot.2016.05-tld-1.environment.scr > /media/sdb1/boot/ >>
> usb start > ext2load usb 0:1 0x800000 > /boot/uboot.2016.05-tld-1.environment.scr > source 0x800000 > printenv >>
> setenv devices 'usb ide' > setenv ethaddr xx:xx:xx:xx:xx:xx > setenv dtb_file > '/boot/dts/kirkwood-goflexnet.dtb' > boot >>
Re: NSA325 - How to boot with ststemd January 09, 2018 11:49PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 09, 2018 11:52PM |
Registered: 6 years ago Posts: 47 |
Re: NSA325 - How to boot with ststemd January 10, 2018 02:47AM |
Registered: 6 years ago Posts: 47 |
Re: NSA325 - How to boot with ststemd January 10, 2018 05:11AM |
Admin Registered: 13 years ago Posts: 18,495 |
printenv
boot
cat /proc/mtd cat /etc/fw_env.config fw_printenv
Re: NSA325 - How to boot with ststemd January 10, 2018 06:30AM |
Registered: 6 years ago Posts: 47 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 NSA325> usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found NSA325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr 3232 bytes read in 308 ms (9.8 KiB/s) NSA325> source 0x800000 ## Executing script at 00800000 Warning: egiga0 MAC addresses don't match: Address in SROM is 52:3b:20:9c:11:51 Address in environment is 00:00:11:22:33:44 NSA325> printenv arcNumber=2097 arch=sandbox baudrate=115200 board=sandbox board_name=sandbox boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf boot_net_pci_enum=pci enum boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_targets=host1 host0 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a ddr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb bootm_size=0x10000000 cpu=sandbox device=0:1 devices=usb ide mmc disks=0 1 2 3 distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done dtb_file=/boot/dts/kirkwood-pogo_e02.dtb eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 fdt_addr_r=0xc00000 fileaddr=800000 filesize=ca0 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot _part; fi if_netconsole=ping $serverip ipaddr=192.168.0.231 kernel_addr_r=0x1000000 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d tb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b oot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo ot/uImage load_uimage_addr=0x800000 machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b oot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done scriptaddr=0x1000 serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; se tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu m:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re ad; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_ for_boot_part; fi usb_ready_retry=15 Environment size: 4869/131068 bytes NSA325> setenv devices 'usb ide' NSA325> setenv ethaddr 00:00:11:22:33:44 Warning: egiga0 MAC addresses don't match: Address in SROM is 00:00:11:22:33:44 Address in environment is 52:3b:20:9c:11:51 NSA325> setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb' NSA325> boot Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: SSD Firm: 4002_3.4 Ser#: 1234356789 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 30717952 0f08ca33-01 83 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 31275184 cc74c377-01 83 running scan_disk ... Scan device usb device usb 0:1 ** File not found /boot/uImage ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: SSD Firm: 4002_0.4 Ser#: 123456789 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) device ide 0:1 1 bytes read in 7 ms (0 Bytes/s) Found bootable drive on ide 0 loading uImage ... 3821592 bytes read in 574 ms (6.3 MiB/s) loading uInitrd ... 7245696 bytes read in 1082 ms (6.4 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14548 bytes read in 17 ms (835 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 0f917000, end 0fffff40 ... OK Loading Device Tree to 0f910000, end 0f9168d3 ... OK Using machid 0x831 from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397 f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootd elay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata , 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xff ffffff, max_idle_ns: 9556302233 ns [ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737 418237ns [ 0.000034] Switching to timer-based delay loop, resolution 5ns [ 0.000422] Console: colour dummy device 80x30 [ 0.000451] Calibrating delay loop (skipped), value calculated using timer fr equency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000470] pid_max: default: 32768 minimum: 301 [ 0.000634] Security Framework initialized [ 0.000731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000747] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001459] CPU: Testing write buffer coherency: ok [ 0.002327] Setting up static identity map for 0x100000 - 0x100058 [ 0.002563] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.005220] devtmpfs: initialized [ 0.009361] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns [ 0.009384] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.009707] prandom: seed boundary self test passed [ 0.012565] prandom: 100 self tests passed [ 0.012579] pinctrl core: initialized pinctrl subsystem [ 0.013559] NET: Registered protocol family 16 [ 0.013902] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015268] cpuidle: using governor ladder [ 0.015329] cpuidle: using governor menu [ 0.015687] Feroceon L2: Enabling L2 [ 0.015725] Feroceon L2: Cache support initialised. [ 0.016025] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet 0-port@0: local-mac-address is not set [ 0.020240] No ATAGs? [ 0.027478] vgaarb: loaded [ 0.027730] SCSI subsystem initialized [ 0.028116] usbcore: registered new interface driver usbfs [ 0.028165] usbcore: registered new interface driver hub [ 0.028206] usbcore: registered new device driver usb [ 0.028971] clocksource: Switched to clocksource orion_clocksource [ 0.098066] VFS: Disk quotas dquot_6.6.0 [ 0.098139] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.106322] NET: Registered protocol family 2 [ 0.106927] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.106985] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107036] TCP: Hash tables configured (established 4096 bind 4096) [ 0.107104] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.107126] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.107274] NET: Registered protocol family 1 [ 0.107619] RPC: Registered named UNIX socket transport module. [ 0.107630] RPC: Registered udp transport module. [ 0.107635] RPC: Registered tcp transport module. [ 0.107641] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.107829] Unpacking initramfs... [ 0.608487] Freeing initrd memory: 7076K [ 0.608599] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.609390] audit: initializing netlink subsys (disabled) [ 0.609757] Initialise system trusted keyrings [ 0.609808] Key type blacklist registered [ 0.609884] audit: type=2000 audit(0.600:1): state=initialized audit_enabled= 0 res=1 [ 0.609962] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.610016] zbud: loaded [ 0.610781] NFS: Registering the id_resolver key type [ 0.610813] Key type id_resolver registered [ 0.610820] Key type id_legacy registered [ 0.610839] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.610847] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.611008] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.611160] fuse init (API version 7.26) [ 0.611433] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.611598] orangefs_init: module version upstream loaded [ 0.611607] SGI XFS with ACLs, security attributes, realtime, no debug enable d [ 2.558976] random: fast init done [ 4.970072] Key type asymmetric registered [ 4.970087] Asymmetric key parser 'x509' registered [ 4.970143] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 49) [ 4.970152] io scheduler noop registered [ 4.970158] io scheduler deadline registered [ 4.970229] io scheduler cfq registered (default) [ 4.971229] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driv er [ 4.972709] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridg e to bus 0000:00 [ 4.972726] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.972736] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 4.972747] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.973004] PCI: bus0: Fast back to back transfers disabled [ 4.973023] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), rec onfiguring [ 4.999069] PCI: bus1: Fast back to back transfers disabled [ 4.999237] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff] [ 4.999253] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bi t] [ 4.999273] pci 0000:00:01.0: PCI bridge to [bus 01] [ 4.999286] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 4.999361] pcieport 0000:00:01.0: enabling device (0140 -> 0142) [ 4.999438] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 4.999866] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.059540] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg i ntr ) [ 5.059731] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.119538] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg i ntr ) [ 5.119921] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.121013] console [ttyS0] disabled [ 5.121071] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 5.804394] console [ttyS0] enabled [ 5.814394] loop: module loaded [ 5.818047] sata_mv f1080000.sata: slots 32 ports 2 [ 5.825130] scsi host0: sata_mv [ 5.828639] scsi host1: sata_mv [ 5.832039] ata1: SATA max UDMA/133 irq 32 [ 5.836150] ata2: SATA max UDMA/133 irq 32 [ 5.840928] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 5.847376] nand: Eon NAND 128MiB 3,3V 8-bit [ 5.851693] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz e: 64 [ 5.859312] Scanning device for bad blocks [ 5.868250] Bad eraseblock 100 at 0x000000c80000 [ 5.876815] Bad eraseblock 182 at 0x0000016c0000 [ 5.882324] Bad eraseblock 200 at 0x000001900000 [ 5.926266] 4 cmdlinepart partitions found on MTD device orion_nand [ 5.932571] Creating 4 MTD partitions on "orion_nand": [ 5.937742] 0x000000000000-0x000000100000 : "u-boot" [ 5.943792] 0x000000100000-0x000000500000 : "uImage" [ 5.949858] 0x000000500000-0x000002500000 : "rootfs" [ 5.955940] 0x000002500000-0x000008000000 : "data" [ 5.962906] libphy: Fixed MDIO Bus: probed [ 5.967618] libphy: orion_mdio_bus: probed [ 5.975820] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.079443] mv643xx_eth: Set the PHY to fix link down [ 6.080069] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51 [ 6.094109] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.100718] ehci-pci: EHCI PCI platform driver [ 6.105227] ehci-orion: EHCI orion driver [ 6.109455] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.115010] orion-ehci f1050000.ehci: new USB bus registered, assigned bus nu mber 1 [ 6.122859] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.148991] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.155236] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.162088] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber= 1 [ 6.169421] usb usb1: Product: EHCI Host Controller [ 6.174320] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 6.181068] usb usb1: SerialNumber: f1050000.ehci [ 6.186357] hub 1-0:1.0: USB hub found [ 6.190196] hub 1-0:1.0: 1 port detected [ 6.194612] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.199928] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus numbe r 2 [ 6.207684] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 qui rks 0x00000004 [ 6.216299] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.223139] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber= 1 [ 6.230405] usb usb2: Product: xHCI Host Controller [ 6.235299] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.242044] usb usb2: SerialNumber: 0000:01:00.0 [ 6.247203] hub 2-0:1.0: USB hub found [ 6.251047] hub 2-0:1.0: 2 ports detected [ 6.255499] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.260798] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus numbe r 3 [ 6.268306] usb usb3: We don't know the algorithms for LPM for this host, dis abling LPM. [ 6.276570] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [ 6.283410] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber= 1 [ 6.290680] usb usb3: Product: xHCI Host Controller [ 6.295580] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.302402] usb usb3: SerialNumber: 0000:01:00.0 [ 6.307576] hub 3-0:1.0: USB hub found [ 6.311416] hub 3-0:1.0: 2 ports detected [ 6.316066] usbcore: registered new interface driver usb-storage [ 6.322427] mousedev: PS/2 mouse device common for all mice [ 6.328285] i2c /dev entries driver [ 6.338211] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 6.345004] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.351678] ata1.00: ATA-8:SSD, 4002_0.4, max UDMA/133 [ 6.351683] ata1.00: 31277232 sectors, multi 1: LBA48 NCQ (depth 31/32) [ 6.365736] ata1.00: configured for UDMA/133 [ 6.370473] scsi 0:0:0:0: Direct-Access ATA SSDI _0.4 PQ : 0 ANSI: 5 [ 6.371614] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 6.371672] sd 0:0:0:0: [sda] Write Protect is off [ 6.371776] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doe sn't support DPO or FUA [ 6.381384] sda: sda1 [ 6.382637] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.414132] hidraw: raw HID events driver (C) Jiri Kosina [ 6.420104] drop_monitor: Initializing network drop monitor service [ 6.426582] NET: Registered protocol family 17 [ 6.431140] Key type dns_resolver registered [ 6.436017] registered taskstats version 1 [ 6.440163] Loading compiled-in X.509 certificates [ 6.445025] zswap: loaded using pool lzo/zbud [ 6.457309] Key type big_key registered [ 6.468716] Key type encrypted registered [ 6.475176] rtc-pcf8563 0-0051: setting system clock to 2018-01-10 11:54:26 U TC (1515585266) [ 6.548997] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.710419] ata2: SATA link down (SStatus 0 SControl F300) [ 6.728963] Freeing unused kernel memory: 1024K [ 6.741261] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 6.748022] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.765529] usb 1-1: Product: USB2.0 Hub [ 6.776074] hub 1-1:1.0: USB hub found Loading, please wait... [ 6.784144] hub 1-1:1.0: 4 ports detected starting version 232 [ 7.109059] usb 1-1.2: new high-speed USB device number 3 using orion-ehci [ 7.285526] usb 1-1.2: New USB device found, idVendor=0951, idProduct=1666 [ 7.297570] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber =3 [ 7.312797] usb 1-1.2: Product: DataTraveler 3.0 [ 7.317465] usb 1-1.2: Manufacturer: Kingston [ 7.330327] usb 1-1.2: SerialNumber: 08606E6D3FDEBE6077070E25 [ 7.343847] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 7.361908] scsi host2: usb-storage 1-1.2:1.0 [ 7.494244] usbcore: registered new interface driver uas Begin: Loading essential drivers ... done. [ 8.473197] scsi 2:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ : 0 ANSI: 6 [ 9.007156] sd 2:0:0:0: [sdb] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB) [ 9.017012] sd 2:0:0:0: [sdb] Write Protect is off [ 9.024012] sd 2:0:0:0: [sdb] No Caching mode page found [ 9.029368] sd 2:0:0:0: [sdb] Assuming drive cache: write through [ 9.084986] sdb: sdb1 [ 9.096163] sd 2:0:0:0: [sdb] Attached SCSI removable disk Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 17.604889] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'nws'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ 18.886473] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ ok done. [....] Waiting for /dev to be fully populated...[ 19.063966] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_de vice_register_with_info(). [ 19.184170] orion_wdt: Initial timeout 21 sec [ 19.277069] marvell-cesa f1030000.crypto: CESA device successfully registered [ 19.312600] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 19.313941] sd 2:0:0:0: Attached scsi generic sg1 type 0 done. [ ok ] Activating swap:. [ 20.502710] EXT4-fs (sda1): re-mounted. Opts: (null) [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /dev/sda1 e2fsck 1.43.4 (31-Jan-2017) rootfs: clean, 14499/979200 files, 276863/3909398 blocks . ok [ 20.683179] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ 20.779053] random: crng init done [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs [ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [ 22.851050] mv643xx_eth: Set the PHY back to auto-negotiation mode [ 25.656792] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, ful l duplex, flow control disabled [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/52:3b:20:9c:11:51 Sending on LPF/eth0/52:3b:20:9c:11:51 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 [ 27.007912] NET: Registered protocol family 10 [ 27.013730] Segment Routing with IPv6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPREQUEST of 10.2.0.96 on eth0 to 255.255.255.255 port 67 DHCPOFFER of 10.2.0.96 from 10.2.0.173 DHCPACK of 10.2.0.96 from 10.2.0.173 bound to 10.2.0.96 -- renewal in 41098 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd. .. 1338 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1341 (klogd) . ok [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 nws ttyS0 nws login: root Password: Last login: Tue Jan 9 04:19:13 PST 2018 from 10.2.0.26 on pts/0 Linux nws 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@nws:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 05b00000 00020000 "data" root@nws:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size N umber of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@nws:~# fw_printenv bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot _part; fi boot_net_pci_enum=pci enum boot_net_usb_start=usb start usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_ for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b oot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd root@nws:~# root@nws:~#
root@xyz:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 05b00000 00020000 "data" root@xyz:~#
root@xyz:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@xyz:~#
root@xyz:~# fw_printenv bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi boot_net_pci_enum=pci enum boot_net_usb_start=usb start usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd root@xyz:~#
Re: NSA325 - How to boot with ststemd January 10, 2018 12:17PM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
SoC: Kirkwood 88F6282_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
NSA325> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
NSA325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr
3232 bytes read in 308 ms (9.8 KiB/s)
NSA325> source 0x800000
## Executing script at 00800000
Warning: egiga0 MAC addresses don't match:
Address in SROM is 52:3b:20:9c:11:51
Address in environment is 00:00:11:22:33:44
NSA325> printenv
arcNumber=2097
arch=sandbox
baudrate=115200
board=sandbox
board_name=sandbox
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=host1 host0
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a ddr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
bootm_size=0x10000000
cpu=sandbox
device=0:1
devices=usb ide mmc
disks=0 1 2 3
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fdt_addr_r=0xc00000
fileaddr=800000
filesize=ca0
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot _part; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
kernel_addr_r=0x1000000
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d tb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b oot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo ot/uImage
load_uimage_addr=0x800000
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b oot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scriptaddr=0x1000
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; se tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu m:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re ad; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_ for_boot_part; fi
usb_ready_retry=15
Quote
NSA325> setenv devices 'usb ide'
NSA325> setenv ethaddr 00:00:11:22:33:44
NSA325> setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb'
NSA325> boot
Quote
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: SSD Firm: 4002_3.4 Ser#: 1234356789
Type: Hard Disk
Supports 48-bit addressing
Capacity: 15272.0 MB = 14.9 GB (31277232 x 512)
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 30717952 0f08ca33-01 83
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
Partition Map for IDE device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 31275184 cc74c377-01 83
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: SSD Firm: 4002_0.4 Ser#: 123456789
Type: Hard Disk
Supports 48-bit addressing
Capacity: 15272.0 MB = 14.9 GB (31277232 x 512)
device ide 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 574 ms (6.3 MiB/s)
loading uInitrd ...
7245696 bytes read in 1082 ms (6.4 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
14548 bytes read in 17 ms (835 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: 2017-07-20 8:11:24 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821528 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.12.1-kirkwood-tld-1
Created: 2017-07-24 0:18:23 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7245632 Bytes = 6.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image ... OK
Loading Ramdisk to 0f917000, end 0fffff40 ... OK
Loading Device Tree to 0f910000, end 0f9168d3 ... OK
Using machid 0x831 from environment
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397 f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt: Machine model: ZyXEL NSA325
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 130048
Quote
[ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootd elay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
Quote
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata , 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB)
[ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB)
[ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB)
[ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xff ffffff, max_idle_ns: 9556302233 ns
[ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737 418237ns
[ 0.000034] Switching to timer-based delay loop, resolution 5ns
[ 0.000422] Console: colour dummy device 80x30
[ 0.000451] Calibrating delay loop (skipped), value calculated using timer fr equency.. 400.00 BogoMIPS (lpj=2000000)
[ 0.000470] pid_max: default: 32768 minimum: 301
[ 0.000634] Security Framework initialized
[ 0.000731] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000747] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001459] CPU: Testing write buffer coherency: ok
[ 0.002327] Setting up static identity map for 0x100000 - 0x100058
[ 0.002563] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[ 0.005220] devtmpfs: initialized
[ 0.009361] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.009384] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.009707] prandom: seed boundary self test passed
[ 0.012565] prandom: 100 self tests passed
[ 0.012579] pinctrl core: initialized pinctrl subsystem
[ 0.013559] NET: Registered protocol family 16
[ 0.013902] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.015268] cpuidle: using governor ladder
[ 0.015329] cpuidle: using governor menu
[ 0.015687] Feroceon L2: Enabling L2
[ 0.015725] Feroceon L2: Cache support initialised.
[ 0.016025] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet 0-port@0: local-mac-address is not set
[ 0.020240] No ATAGs?
[ 0.027478] vgaarb: loaded
[ 0.027730] SCSI subsystem initialized
[ 0.028116] usbcore: registered new interface driver usbfs
[ 0.028165] usbcore: registered new interface driver hub
[ 0.028206] usbcore: registered new device driver usb
[ 0.028971] clocksource: Switched to clocksource orion_clocksource
[ 0.098066] VFS: Disk quotas dquot_6.6.0
[ 0.098139] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.106322] NET: Registered protocol family 2
[ 0.106927] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.106985] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.107036] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.107104] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.107126] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.107274] NET: Registered protocol family 1
[ 0.107619] RPC: Registered named UNIX socket transport module.
[ 0.107630] RPC: Registered udp transport module.
[ 0.107635] RPC: Registered tcp transport module.
[ 0.107641] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.107829] Unpacking initramfs...
[ 0.608487] Freeing initrd memory: 7076K
[ 0.608599] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.609390] audit: initializing netlink subsys (disabled)
[ 0.609757] Initialise system trusted keyrings
[ 0.609808] Key type blacklist registered
[ 0.609884] audit: type=2000 audit(0.600:1): state=initialized audit_enabled= 0 res=1
[ 0.609962] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.610016] zbud: loaded
[ 0.610781] NFS: Registering the id_resolver key type
[ 0.610813] Key type id_resolver registered
[ 0.610820] Key type id_legacy registered
[ 0.610839] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.610847] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.611008] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.611160] fuse init (API version 7.26)
[ 0.611433] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 0.611598] orangefs_init: module version upstream loaded
[ 0.611607] SGI XFS with ACLs, security attributes, realtime, no debug enable d
[ 2.558976] random: fast init done
[ 4.970072] Key type asymmetric registered
[ 4.970087] Asymmetric key parser 'x509' registered
[ 4.970143] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 49)
[ 4.970152] io scheduler noop registered
[ 4.970158] io scheduler deadline registered
[ 4.970229] io scheduler cfq registered (default)
[ 4.971229] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driv er
[ 4.972709] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridg e to bus 0000:00
[ 4.972726] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 4.972736] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[ 4.972747] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 4.973004] PCI: bus0: Fast back to back transfers disabled
[ 4.973023] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), rec onfiguring
[ 4.999069] PCI: bus1: Fast back to back transfers disabled
[ 4.999237] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[ 4.999253] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bi t]
[ 4.999273] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 4.999286] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff]
[ 4.999361] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[ 4.999438] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 4.999866] mv_xor f1060800.xor: Marvell shared XOR driver
[ 5.059540] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg i ntr )
[ 5.059731] mv_xor f1060900.xor: Marvell shared XOR driver
[ 5.119538] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg i ntr )
[ 5.119921] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 5.121013] console [ttyS0] disabled
[ 5.121071] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[ 5.804394] console [ttyS0] enabled
[ 5.814394] loop: module loaded
[ 5.818047] sata_mv f1080000.sata: slots 32 ports 2
[ 5.825130] scsi host0: sata_mv
[ 5.828639] scsi host1: sata_mv
[ 5.832039] ata1: SATA max UDMA/133 irq 32
[ 5.836150] ata2: SATA max UDMA/133 irq 32
[ 5.840928] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[ 5.847376] nand: Eon NAND 128MiB 3,3V 8-bit
[ 5.851693] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz e: 64
Quote
[ 5.926266] 4 cmdlinepart partitions found on MTD device orion_nand
[ 5.932571] Creating 4 MTD partitions on "orion_nand":
[ 5.937742] 0x000000000000-0x000000100000 : "u-boot"
[ 5.943792] 0x000000100000-0x000000500000 : "uImage"
[ 5.949858] 0x000000500000-0x000002500000 : "rootfs"
[ 5.955940] 0x000002500000-0x000008000000 : "data"
Quote
root@nws:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 05b00000 00020000 "data"
Quote
root@nws:~# cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size N umber of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
Re: NSA325 - How to boot with ststemd January 10, 2018 12:28PM |
Admin Registered: 13 years ago Posts: 18,495 |
setenv devices 'usb ide' setenv ethaddr 00:00:11:22:33:44 setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb' setenv mtdparts '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)' printenv
boot
cat /proc/mtd cat /etc/fw_env.config fw_printenv
Quote
8. Flashing default u-boot envs image (if you are upgrading from 2016.05-tld-1 u-boot, you can skip this step 8).
As described in step 1, u-boot envs must be defined in /etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
This default envs image supports booting with multiple disk drives (and hubs) attached. The disk drives could be any type (usb, sata, sd card). The scanning logic and default envs were set to automatically boot the box with the following required configuration:
For whatever reason, if you can't set up your configuration to satisfy the following 4 requirements, then don't flash this defaut envs image. It might not boot properly. In this case, section C below can be used to tailor the envs to your specific configuration.
r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.
a. Download the default u-boot envs at Dropbox:
uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c
This tarball includes 3 files:
uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 only).
b. Extract the archive to /tmp
cd /tmp
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar
c. Save current envs with fw_printenv, or just copy/paste the listing into a text file.
fw_printenv > current_envs.txt
d. Flash u-boot envs to NAND location 0xC0000.
Be extra careful with the next 2 commands, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.
/usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Expected output:
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
/usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Expected output:
Writing data to block 6 at offset 0xc0000
e. Modify the following u-boot variables using fw_setenv:
Note that arcNumber and machid are not necessary if you are booting with FDT kernel 3.17+ in the latest kernel and rootfs thread. But it does not hurt to set them anyway.
archNumber and machid are required for non-FDT kernel (3.16.x or earlier)
Also note that only some boxes need machid, some don't (so the command fw_setenv machid below clears them).
for Pogo V4/Mobile:
fw_setenv arcNumber 3960
fw_setenv machid f78
for iConnect:
fw_setenv arcNumber 2870
fw_setenv machid
for Stora:
fw_setenv arcNumber 2743
fw_setenv machid
for Dockstar:
fw_setenv arcNumber 2998
fw_setenv machid
for Pogo E02:
fw_setenv arcNumber 3542
fw_setenv machid dd6
for GoFlex Home:
fw_setenv arcNumber 3338
fw_setenv machid
for GoFlex Net:
fw_setenv arcNumber 3089
fw_setenv machid
for Sheevaplug:
fw_setenv arcNumber 2097
fw_setenv machid
for NSA325:
fw_setenv arcNumber 4495
fw_setenv machid
for NSA320:
fw_setenv arcNumber 3956
fw_setenv machid
for NSA310S/320S:
fw_setenv arcNumber 4931
fw_setenv machid
for NSA310:
fw_setenv arcNumber 4022
fw_setenv machid
Then for all boxes, restore these 2 envs using the saved envs text in step c (replace xxx with the real saved values)
fw_setenv mtdparts 'xxxxxxxxx'
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
Note: for boxes that boot with SATA as rootfs. Please make this adjustment if your boot drive is SATA:
fw_setenv bootcmd_uenv 'run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3'
(This will help the "ide reset" to work properly. There seems to be a bug in u-boot that if you do "ide reset" too quickly in succession, the SATA drive might have problem spinning up).
f. Adjust the DTB name to boot with a rootfs that has FDT kernel 3.17+ (this is the normal case):
Find your box DTB file in the rootfs /boot/dts directory and adjust the env to it. For example, if the box is the Dockstar
fw_setenv dtb_file '/boot/dts/kirkwood-dockstar.dtb'
In the special case when you are booting with a non-FDT kernel 3.16 or earlier, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.
fw_setenv dtb_file
h. For sanity check, list you envs again
fw_printenv
If there is error in listing u-boot envs, stop here and post your problem so we can help.
Remember to save away your old envs text file created in step c for future reference in case more need to be restored.
i. Done step 8.
9. For sanity check, print out uBoot envs to see if they look OK.
fw_printenv
and then double check the ethaddr env again to be sure. Don't reboot if there is error while listing U-Boot envs.
Re: NSA325 - How to boot with ststemd January 11, 2018 01:59AM |
Registered: 6 years ago Posts: 47 |
root@xyz:~# 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" root@xyz:~#
root@nws:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@nws:~#
root@nws:~# fw_printenv bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot _part; fi boot_net_pci_enum=pci enum boot_net_usb_start=usb start usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_ for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefi x}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run b oot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi x}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${d evnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${pr efix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scrip ts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env ex ists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fs type ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_b oot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd root@nws:~#
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 NSA325> usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found NSA325> ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr 3232 bytes read in 307 ms (9.8 KiB/s) NSA325> source 0x800000 ## Executing script at 00800000 Warning: egiga0 MAC addresses don't match: Address in SROM is 52:3b:20:9c:11:51 Address in environment is 00:00:11:22:33:44 NSA325> printenv arcNumber=2097 arch=sandbox baudrate=115200 board=sandbox board_name=sandbox boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf boot_net_pci_enum=pci enum boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_targets=host1 host0 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb bootm_size=0x10000000 cpu=sandbox device=0:1 devices=usb ide mmc disks=0 1 2 3 distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done dtb_file=/boot/dts/kirkwood-pogo_e02.dtb eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 fdt_addr_r=0xc00000 fileaddr=800000 filesize=ca0 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi if_netconsole=ping $serverip ipaddr=192.168.0.231 kernel_addr_r=0x1000000 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done scriptaddr=0x1000 serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi usb_ready_retry=15 Environment size: 4869/131068 bytes NSA325> setenv devices 'usb ide' NSA325> setenv ethaddr 52:3b:20:9c:11:51 NSA325> setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb' NSA325> setenv mtdparts '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)' NSA325> printenv arcNumber=2097 arch=sandbox baudrate=115200 board=sandbox board_name=sandbox boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf boot_net_pci_enum=pci enum boot_net_usb_start=usb start boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_targets=host1 host0 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb bootm_size=0x10000000 cpu=sandbox device=0:1 devices=usb ide disks=0 1 2 3 distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done dtb_file=/boot/dts/kirkwood-nsa325.dtb eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 fdt_addr_r=0xc00000 fileaddr=800000 filesize=ca0 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi if_netconsole=ping $serverip ipaddr=192.168.0.231 kernel_addr_r=0x1000000 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=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) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done scriptaddr=0x1000 serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi usb_ready_retry=15 Environment size: 4979/131068 bytes NSA325> boot Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900025 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 30717952 0f08ca33-01 83 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 31275184 cc74c377-01 83 running scan_disk ... Scan device usb device usb 0:1 ** File not found /boot/uImage ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900025 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) device ide 0:1 1 bytes read in 6 ms (0 Bytes/s) Found bootable drive on ide 0 loading uImage ... 3821592 bytes read in 578 ms (6.3 MiB/s) loading uInitrd ... 7245696 bytes read in 1086 ms (6.4 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14548 bytes read in 17 ms (835 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 0f917000, end 0fffff40 ... OK Loading Device Tree to 0f910000, end 0f9168d3 ... OK Using machid 0x831 from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand: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: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000036] Switching to timer-based delay loop, resolution 5ns [ 0.000419] Console: colour dummy device 80x30 [ 0.000447] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000466] pid_max: default: 32768 minimum: 301 [ 0.000630] Security Framework initialized [ 0.000727] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000742] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001457] CPU: Testing write buffer coherency: ok [ 0.002328] Setting up static identity map for 0x100000 - 0x100058 [ 0.002564] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.005229] devtmpfs: initialized [ 0.009381] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009403] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.009722] prandom: seed boundary self test passed [ 0.012580] prandom: 100 self tests passed [ 0.012594] pinctrl core: initialized pinctrl subsystem [ 0.013571] NET: Registered protocol family 16 [ 0.013919] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015297] cpuidle: using governor ladder [ 0.015359] cpuidle: using governor menu [ 0.015719] Feroceon L2: Enabling L2 [ 0.015757] Feroceon L2: Cache support initialised. [ 0.016056] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.020279] No ATAGs? [ 0.027514] vgaarb: loaded [ 0.027767] SCSI subsystem initialized [ 0.028152] usbcore: registered new interface driver usbfs [ 0.028201] usbcore: registered new interface driver hub [ 0.028242] usbcore: registered new device driver usb [ 0.029015] clocksource: Switched to clocksource orion_clocksource [ 0.098107] VFS: Disk quotas dquot_6.6.0 [ 0.098181] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.106354] NET: Registered protocol family 2 [ 0.106964] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107019] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107071] TCP: Hash tables configured (established 4096 bind 4096) [ 0.107140] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.107163] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.107308] NET: Registered protocol family 1 [ 0.107654] RPC: Registered named UNIX socket transport module. [ 0.107664] RPC: Registered udp transport module. [ 0.107670] RPC: Registered tcp transport module. [ 0.107675] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.107869] Unpacking initramfs... [ 0.608552] Freeing initrd memory: 7076K [ 0.608669] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.609462] audit: initializing netlink subsys (disabled) [ 0.609830] Initialise system trusted keyrings [ 0.609875] Key type blacklist registered [ 0.609950] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1 [ 0.610029] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.610084] zbud: loaded [ 0.610852] NFS: Registering the id_resolver key type [ 0.610879] Key type id_resolver registered [ 0.610886] Key type id_legacy registered [ 0.610904] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.610913] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.611074] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.611226] fuse init (API version 7.26) [ 0.611499] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.611666] orangefs_init: module version upstream loaded [ 0.611674] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.559021] random: fast init done [ 4.970067] Key type asymmetric registered [ 4.970082] Asymmetric key parser 'x509' registered [ 4.970139] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 4.970148] io scheduler noop registered [ 4.970154] io scheduler deadline registered [ 4.970226] io scheduler cfq registered (default) [ 4.971218] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 4.972697] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00 [ 4.972715] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.972725] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 4.972736] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.972992] PCI: bus0: Fast back to back transfers disabled [ 4.973011] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.999113] PCI: bus1: Fast back to back transfers disabled [ 4.999279] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff] [ 4.999295] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit] [ 4.999315] pci 0000:00:01.0: PCI bridge to [bus 01] [ 4.999328] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 4.999404] pcieport 0000:00:01.0: enabling device (0140 -> 0142) [ 4.999482] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 4.999909] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.059582] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.059771] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.119588] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.119972] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.121068] console [ttyS0] disabled [ 5.121126] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 5.814554] console [ttyS0] enabled [ 5.824546] loop: module loaded [ 5.828196] sata_mv f1080000.sata: slots 32 ports 2 [ 5.835281] scsi host0: sata_mv [ 5.838794] scsi host1: sata_mv [ 5.842190] ata1: SATA max UDMA/133 irq 32 [ 5.846301] ata2: SATA max UDMA/133 irq 32 [ 5.851078] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 5.857527] nand: Eon NAND 128MiB 3,3V 8-bit [ 5.861845] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.869465] Scanning device for bad blocks [ 5.878401] Bad eraseblock 100 at 0x000000c80000 [ 5.886966] Bad eraseblock 182 at 0x0000016c0000 [ 5.892475] Bad eraseblock 200 at 0x000001900000 [ 5.936426] 9 cmdlinepart partitions found on MTD device orion_nand [ 5.942732] Creating 9 MTD partitions on "orion_nand": [ 5.947896] 0x000000000000-0x000000100000 : "uboot" [ 5.953853] 0x000000100000-0x000000180000 : "uboot_env" [ 5.960173] 0x000000180000-0x000000200000 : "key_store" [ 5.966357] 0x000000200000-0x000000280000 : "info" [ 5.972057] 0x000000280000-0x000000c80000 : "etc" [ 5.977696] 0x000000c80000-0x000001680000 : "kernel_1" [ 5.983838] 0x000001680000-0x000004640000 : "rootfs1" [ 5.990121] 0x000004640000-0x000005040000 : "kernel_2" [ 5.996295] 0x000005040000-0x000008000000 : "rootfs2" [ 6.003531] libphy: Fixed MDIO Bus: probed [ 6.008237] libphy: orion_mdio_bus: probed [ 6.016404] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.119481] mv643xx_eth: Set the PHY to fix link down [ 6.120077] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51 [ 6.134034] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.140646] ehci-pci: EHCI PCI platform driver [ 6.145155] ehci-orion: EHCI orion driver [ 6.149383] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.154940] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.162787] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.189036] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.195251] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.202092] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.209356] usb usb1: Product: EHCI Host Controller [ 6.214250] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 6.220996] usb usb1: SerialNumber: f1050000.ehci [ 6.226225] hub 1-0:1.0: USB hub found [ 6.230062] hub 1-0:1.0: 1 port detected [ 6.234472] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.239789] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 6.247530] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004 [ 6.256152] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.262991] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.270256] usb usb2: Product: xHCI Host Controller [ 6.275151] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.281897] usb usb2: SerialNumber: 0000:01:00.0 [ 6.287033] hub 2-0:1.0: USB hub found [ 6.290875] hub 2-0:1.0: 2 ports detected [ 6.295301] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.300605] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3 [ 6.308112] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 6.316384] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [ 6.323218] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.330485] usb usb3: Product: xHCI Host Controller [ 6.335379] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.342202] usb usb3: SerialNumber: 0000:01:00.0 [ 6.347342] hub 3-0:1.0: USB hub found [ 6.351165] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.357809] ata1.00: ATA-8: ATP Velocity SII SSD, 1002_0.4, max UDMA/133 [ 6.357814] ata1.00: 31277232 sectors, multi 1: LBA48 NCQ (depth 31/32) [ 6.371709] ata1.00: configured for UDMA/133 [ 6.376454] scsi 0:0:0:0: Direct-Access ATA ATP Velocity SII _0.4 PQ: 0 ANSI: 5 [ 6.384629] hub 3-0:1.0: 2 ports detected [ 6.389668] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 6.398307] usbcore: registered new interface driver usb-storage [ 6.404535] sd 0:0:0:0: [sda] Write Protect is off [ 6.404655] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 6.410708] sda: sda1 [ 6.412049] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.428571] mousedev: PS/2 mouse device common for all mice [ 6.434473] i2c /dev entries driver [ 6.444409] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 6.453885] hidraw: raw HID events driver (C) Jiri Kosina [ 6.459642] drop_monitor: Initializing network drop monitor service [ 6.466116] NET: Registered protocol family 17 [ 6.470676] Key type dns_resolver registered [ 6.475544] registered taskstats version 1 [ 6.479686] Loading compiled-in X.509 certificates [ 6.484545] zswap: loaded using pool lzo/zbud [ 6.496732] Key type big_key registered [ 6.508374] Key type encrypted registered [ 6.514831] rtc-pcf8563 0-0051: setting system clock to 2018-01-11 09:08:57 UTC (1515661737) [ 6.589043] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.730468] ata2: SATA link down (SStatus 0 SControl F300) [ 6.749007] Freeing unused kernel memory: 1024K Loading, please wait... [ 6.781064] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 6.787820] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.803961] usb 1-1: Product: USB2.0 Hub [ 6.816359] hub 1-1:1.0: USB hub found [ 6.824297] hub 1-1:1.0: 4 ports detected starting version 232 [ 7.149105] usb 1-1.2: new high-speed USB device number 3 using orion-ehci [ 7.325706] usb 1-1.2: New USB device found, idVendor=0951, idProduct=1666 [ 7.338336] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.352997] usb 1-1.2: Product: DataTraveler 3.0 [ 7.357669] usb 1-1.2: Manufacturer: Kingston [ 7.371135] usb 1-1.2: SerialNumber: 08606E6D3FDEBE6077070E25 [ 7.384266] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 7.402128] scsi host2: usb-storage 1-1.2:1.0 [ 7.562515] usbcore: registered new interface driver uas Begin: Loading essential drivers ... done. [ 8.553127] scsi 2:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6 [ 9.085211] sd 2:0:0:0: [sdb] 30720000 512-byte logical blocks: (15.7 GB/14.6 GiB) [ 9.095066] sd 2:0:0:0: [sdb] Write Protect is off [ 9.102068] sd 2:0:0:0: [sdb] No Caching mode page found [ 9.107418] sd 2:0:0:0: [sdb] Assuming drive cache: write through [ 9.163661] sdb: sdb1 [ 9.186960] sd 2:0:0:0: [sdb] Attached SCSI removable disk Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 17.674909] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'nws'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok ] Synthesizing the initial hotplug events...done. [ 18.997238] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [....] Waiting for /dev to be fully populated...[ 19.204221] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 19.383070] marvell-cesa f1030000.crypto: CESA device successfully registered [ 19.410756] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 19.411108] sd 2:0:0:0: Attached scsi generic sg1 type 0 [ 19.496643] orion_wdt: Initial timeout 21 sec [ 20.140579] random: crng init done done. [ ok ] Activating swap:. [ 20.662062] EXT4-fs (sda1): re-mounted. Opts: (null) [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /dev/sda1 e2fsck 1.43.4 (31-Jan-2017) rootfs: clean, 14503/979200 files, 276873/3909398 blocks . ok [ 20.843242] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [ 23.001094] mv643xx_eth: Set the PHY back to auto-negotiation mode [ 25.811712] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/52:3b:20:9c:11:51 Sending on LPF/eth0/52:3b:20:9c:11:51 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4 [ 30.697599] NET: Registered protocol family 10 [ 30.703395] Segment Routing with IPv6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPREQUEST of 10.2.0.96 on eth0 to 255.255.255.255 port 67 DHCPOFFER of 10.2.0.96 from 10.2.0.173 DHCPACK of 10.2.0.96 from 10.2.0.173 bound to 10.2.0.96 -- renewal in 35205 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1355 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1352 (klogd) . ok [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 nws ttyS0 nws login: root Password: Last login: Wed Jan 10 23:55:06 PST 2018 on ttyS0 Linux nws 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@nws:~# 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" root@nws:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@nws:~# fw_printenv bootargs= bootcmd= bootdelay=2 baudrate=115200 arch=sandbox cpu=sandbox board=sandbox board_name=sandbox stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi boot_net_pci_enum=pci enum boot_net_usb_start=usb start usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd root@nws:~#
Re: NSA325 - How to boot with ststemd January 11, 2018 03:13AM |
Admin Registered: 13 years ago Posts: 18,495 |
> root@nws:~# fw_printenv > bootargs= > bootcmd= > bootdelay=2 > baudrate=115200 > arch=sandbox > cpu=sandbox > board=sandbox > board_name=sandbox > stdin=serial,cros-ec-keyb,usbkbd > stdout=serial,vidconsole > stderr=serial,vidconsole > ethaddr=00:00:11:22:33:44 > eth1addr=00:00:11:22:33:45 > eth3addr=00:00:11:22:33:46 > eth5addr=00:00:11:22:33:47 > ipaddr=1.2.3.4 > host_boot=if host dev ${devnum}; then setenv > devtype host; run scan_dev_for_boot > > > _part; fi > boot_net_pci_enum=pci enum > boot_net_usb_start=usb start > usb_boot=usb start; if usb dev ${devnum}; then > setenv devtype usb; run scan_dev_ > > > > for_boot_part; fi > boot_prefixes=/ /boot/ > boot_scripts=boot.scr.uimg boot.scr > boot_script_dhcp=boot.scr.uimg > boot_targets=host1 host0 > boot_extlinux=sysboot ${devtype} > ${devnum}:${distro_bootpart} any ${scriptaddr} > > > > ${prefix}extlinux/extlinux.conf > scan_dev_for_extlinux=if test -e ${devtype} > ${devnum}:${distro_bootpart} ${prefi > > > > x}extlinux/extlinux.conf; then echo Found > ${prefix}extlinux/extlinux.conf; run b > > > > oot_extlinux; echo SCRIPT FAILED: continuing...; > fi > boot_a_script=load ${devtype} > ${devnum}:${distro_bootpart} ${scriptaddr} ${prefi > > > > x}${script}; source ${scriptaddr} > scan_dev_for_scripts=for script in > ${boot_scripts}; do if test -e ${devtype} ${d > > > > evnum}:${distro_bootpart} ${prefix}${script}; then > echo Found U-Boot script ${pr > > > efix}${script}; > run boot_a_script; echo SCRIPT FAILED: > continuing...; fi; done > scan_dev_for_boot=echo Scanning ${devtype} > ${devnum}:${distro_bootpart}...; for > > > prefix in > ${boot_prefixes}; do run scan_dev_for_extlinux; > run scan_dev_for_scrip > > > ts; done; > scan_dev_for_boot_part=part list ${devtype} > ${devnum} -bootable devplist; env ex > > > ists > devplist || setenv devplist 1; for distro_bootpart > in ${devplist}; do if fs > > > type ${devtype} > ${devnum}:${distro_bootpart} bootfstype; then run > scan_dev_for_b > > > oot; fi; done > bootcmd_host1=setenv devnum 1; run host_boot > bootcmd_host0=setenv devnum 0; run host_boot > distro_bootcmd=for target in ${boot_targets}; do > run bootcmd_${target}; done > bootm_size=0x10000000 > kernel_addr_r=0x1000000 > fdt_addr_r=0xc00000 > ramdisk_addr_r=0x2000000 > scriptaddr=0x1000 > pxefile_addr_r=0x2000 > set_bootargs=setenv bootargs console=ttyS0,115200 > root=LABEL=rootfs rootdelay=10 > > > $mtdparts > init=/bin/systemd > root@nws:~# > >
Re: NSA325 - How to boot with ststemd January 11, 2018 07:32AM |
Registered: 6 years ago Posts: 47 |
root@xyz:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a ddr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d tb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b oot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo ot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; se tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_re ad; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknu m:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=4495 mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_stor e),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ke rnel_2),0x2FC0000(rootfs2) ethaddr=52:3b:20:9c:11:51 bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi ; sleep 3 dtb_file=/boot/dts/kirkwood-nsa325.dtb root@xyz:/tmp#
Re: NSA325 - How to boot with ststemd January 11, 2018 08:32AM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
> bootcmd_exec=run load_uimage; if run load_initrd;
> then if run load_dtb; then boo
>
>
> tm
> $load_uimage_addr $load_initrd_addr
> $load_dtb_addr; else bootm $load_uimage_a
>
>
> ddr
> $load_initrd_addr; fi; else if run load_dtb; then
> bootm $load_uimage_addr -
>
>
> $load_dtb_addr; else
> bootm $load_uimage_addr; fi; fi
Re: NSA325 - How to boot with ststemd January 11, 2018 08:46AM |
Registered: 6 years ago Posts: 47 |
root@nws:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=4495 mtdparts=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) ethaddr=52:3b:20:9c:11:51 bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3 dtb_file=/boot/dts/kirkwood-nsa325.dtb root@nws:/tmp#
Re: NSA325 - How to boot with ststemd January 11, 2018 08:49AM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 12, 2018 03:28AM |
Registered: 6 years ago Posts: 47 |
[Fri Jan 12 01:18:36 2018] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
root@xyz:~# cat /etc/network/interfaces auto lo eth0 iface lo inet loopback iface eth0 inet dhcp root@xyz:~#
root@xyz:~# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 52:3b:20:9c:11:51 brd ff:ff:ff:ff:ff:ff inet 10.2.0.96/24 brd 10.2.0.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::503b:20ff:fe9c:1151/64 scope link valid_lft forever preferred_lft forever root@xyz:~#
Re: NSA325 - How to boot with ststemd January 12, 2018 03:59AM |
Admin Registered: 13 years ago Posts: 18,495 |
ifconfig -a ethtool eth0
Re: NSA325 - How to boot with ststemd January 12, 2018 04:05AM |
Registered: 6 years ago Posts: 47 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900025 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) Unknown command 'mmc' - try 'help' ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** Bad device usb 0 ** Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 31275184 cc74c377-01 83 Unknown command 'mmc' - try 'help' running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900025 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) device ide 0:1 1 bytes read in 7 ms (0 Bytes/s) Found bootable drive on ide 0 loading uImage ... 3821592 bytes read in 577 ms (6.3 MiB/s) loading uInitrd ... 7245696 bytes read in 1085 ms (6.4 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14548 bytes read in 17 ms (835 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 1f424000, end 1fb0cf40 ... OK Loading Device Tree to 1f41d000, end 1f4238d3 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand: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: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000035] Switching to timer-based delay loop, resolution 5ns [ 0.000418] Console: colour dummy device 80x30 [ 0.000446] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000465] pid_max: default: 32768 minimum: 301 [ 0.000629] Security Framework initialized [ 0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000741] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001455] CPU: Testing write buffer coherency: ok [ 0.002325] Setting up static identity map for 0x100000 - 0x100058 [ 0.002560] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.005224] devtmpfs: initialized [ 0.009372] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009394] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.009715] prandom: seed boundary self test passed [ 0.012572] prandom: 100 self tests passed [ 0.012587] pinctrl core: initialized pinctrl subsystem [ 0.013564] NET: Registered protocol family 16 [ 0.013909] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015273] cpuidle: using governor ladder [ 0.015333] cpuidle: using governor menu [ 0.015694] Feroceon L2: Enabling L2 [ 0.015732] Feroceon L2: Cache support initialised. [ 0.016031] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.020258] No ATAGs? [ 0.027494] vgaarb: loaded [ 0.027746] SCSI subsystem initialized [ 0.028131] usbcore: registered new interface driver usbfs [ 0.028179] usbcore: registered new interface driver hub [ 0.028220] usbcore: registered new device driver usb [ 0.028997] clocksource: Switched to clocksource orion_clocksource [ 0.098084] VFS: Disk quotas dquot_6.6.0 [ 0.098159] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.106343] NET: Registered protocol family 2 [ 0.106951] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107007] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107059] TCP: Hash tables configured (established 4096 bind 4096) [ 0.107127] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.107149] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.107296] NET: Registered protocol family 1 [ 0.107643] RPC: Registered named UNIX socket transport module. [ 0.107653] RPC: Registered udp transport module. [ 0.107659] RPC: Registered tcp transport module. [ 0.107664] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.107859] Unpacking initramfs... [ 0.608603] Freeing initrd memory: 7076K [ 0.608719] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.609502] audit: initializing netlink subsys (disabled) [ 0.609865] Initialise system trusted keyrings [ 0.609908] Key type blacklist registered [ 0.609984] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1 [ 0.610063] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.610119] zbud: loaded [ 0.610882] NFS: Registering the id_resolver key type [ 0.610904] Key type id_resolver registered [ 0.610910] Key type id_legacy registered [ 0.610929] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.610937] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.611097] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.611249] fuse init (API version 7.26) [ 0.611519] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.611685] orangefs_init: module version upstream loaded [ 0.611693] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.559001] random: fast init done [ 4.970232] Key type asymmetric registered [ 4.970247] Asymmetric key parser 'x509' registered [ 4.970303] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 4.970311] io scheduler noop registered [ 4.970317] io scheduler deadline registered [ 4.970388] io scheduler cfq registered (default) [ 4.971389] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 4.972864] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00 [ 4.972882] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.972892] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 4.972903] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.973161] PCI: bus0: Fast back to back transfers disabled [ 4.973179] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.999095] PCI: bus1: Fast back to back transfers disabled [ 4.999265] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff] [ 4.999280] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit] [ 4.999301] pci 0000:00:01.0: PCI bridge to [bus 01] [ 4.999313] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 4.999388] pcieport 0000:00:01.0: enabling device (0140 -> 0142) [ 4.999464] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 4.999892] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.059561] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.059753] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.119563] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.119948] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.121044] console [ttyS0] disabled [ 5.121103] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 5.814543] console [ttyS0] enabled [ 5.824555] loop: module loaded [ 5.828199] sata_mv f1080000.sata: slots 32 ports 2 [ 5.835279] scsi host0: sata_mv [ 5.838794] scsi host1: sata_mv [ 5.842186] ata1: SATA max UDMA/133 irq 32 [ 5.846298] ata2: SATA max UDMA/133 irq 32 [ 5.851080] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 5.857532] nand: Eon NAND 128MiB 3,3V 8-bit [ 5.861849] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.869469] Scanning device for bad blocks [ 5.878407] Bad eraseblock 100 at 0x000000c80000 [ 5.886971] Bad eraseblock 182 at 0x0000016c0000 [ 5.892480] Bad eraseblock 200 at 0x000001900000 [ 5.936436] 9 cmdlinepart partitions found on MTD device orion_nand [ 5.942747] Creating 9 MTD partitions on "orion_nand": [ 5.947910] 0x000000000000-0x000000100000 : "uboot" [ 5.953866] 0x000000100000-0x000000180000 : "uboot_env" [ 5.960186] 0x000000180000-0x000000200000 : "key_store" [ 5.966376] 0x000000200000-0x000000280000 : "info" [ 5.972071] 0x000000280000-0x000000c80000 : "etc" [ 5.977716] 0x000000c80000-0x000001680000 : "kernel_1" [ 5.983866] 0x000001680000-0x000004640000 : "rootfs1" [ 5.990145] 0x000004640000-0x000005040000 : "kernel_2" [ 5.996314] 0x000005040000-0x000008000000 : "rootfs2" [ 6.003554] libphy: Fixed MDIO Bus: probed [ 6.008263] libphy: orion_mdio_bus: probed [ 6.016421] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.119460] mv643xx_eth: Set the PHY to fix link down [ 6.120060] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51 [ 6.134033] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.140641] ehci-pci: EHCI PCI platform driver [ 6.145151] ehci-orion: EHCI orion driver [ 6.149382] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.154938] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.162783] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.189017] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.195229] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.202072] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.209335] usb usb1: Product: EHCI Host Controller [ 6.214230] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 6.220976] usb usb1: SerialNumber: f1050000.ehci [ 6.226203] hub 1-0:1.0: USB hub found [ 6.230043] hub 1-0:1.0: 1 port detected [ 6.234458] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.239777] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 6.247519] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004 [ 6.256140] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.262981] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.270245] usb usb2: Product: xHCI Host Controller [ 6.275139] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.281886] usb usb2: SerialNumber: 0000:01:00.0 [ 6.287021] hub 2-0:1.0: USB hub found [ 6.290864] hub 2-0:1.0: 2 ports detected [ 6.295289] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.300594] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3 [ 6.308101] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 6.316370] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [ 6.323207] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.330473] usb usb3: Product: xHCI Host Controller [ 6.335368] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.342190] usb usb3: SerialNumber: 0000:01:00.0 [ 6.347329] hub 3-0:1.0: USB hub found [ 6.351155] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.357799] ata1.00: ATA-8: ATP Velocity SII SSD, 1002_0.4, max UDMA/133 [ 6.357805] ata1.00: 31277232 sectors, multi 1: LBA48 NCQ (depth 31/32) [ 6.371696] ata1.00: configured for UDMA/133 [ 6.376443] scsi 0:0:0:0: Direct-Access ATA ATP Velocity SII _0.4 PQ: 0 ANSI: 5 [ 6.384618] hub 3-0:1.0: 2 ports detected [ 6.389660] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 6.398295] usbcore: registered new interface driver usb-storage [ 6.404522] sd 0:0:0:0: [sda] Write Protect is off [ 6.404641] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 6.410686] sda: sda1 [ 6.412016] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.428528] mousedev: PS/2 mouse device common for all mice [ 6.434430] i2c /dev entries driver [ 6.444358] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 6.453832] hidraw: raw HID events driver (C) Jiri Kosina [ 6.459592] drop_monitor: Initializing network drop monitor service [ 6.466071] NET: Registered protocol family 17 [ 6.470630] Key type dns_resolver registered [ 6.475496] registered taskstats version 1 [ 6.479641] Loading compiled-in X.509 certificates [ 6.484499] zswap: loaded using pool lzo/zbud [ 6.496714] Key type big_key registered [ 6.508426] Key type encrypted registered [ 6.514893] rtc-pcf8563 0-0051: setting system clock to 2018-01-12 10:03:15 UTC (1515751395) [ 6.589023] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.730450] ata2: SATA link down (SStatus 0 SControl F300) [ 6.748987] Freeing unused kernel memory: 1024K Loading, please wait... [ 6.780981] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 6.787741] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.804269] usb 1-1: Product: USB2.0 Hub [ 6.816724] hub 1-1:1.0: USB hub found [ 6.824617] hub 1-1:1.0: 4 ports detected starting version 232 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 17.585166] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'nws'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok ] Synthesizing the initial hotplug events...[ 18.894758] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 19.102797] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 19.289618] marvell-cesa f1030000.crypto: CESA device successfully registered [ 19.321294] orion_wdt: Initial timeout 21 sec [ 19.330513] sd 0:0:0:0: Attached scsi generic sg0 type 0 done. [ ok ] Activating swap:. [ 20.731191] EXT4-fs (sda1): re-mounted. Opts: (null) [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /dev/sda1 e2fsck 1.43.4 (31-Jan-2017) rootfs: clean, 14500/979200 files, 276867/3909398 blocks . ok [ 20.911817] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ ok ] Will now activate lvm and md swap:done. [info 21.559912] random: crng init done 9m] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [ 23.081065] mv643xx_eth: Set the PHY back to auto-negotiation mode [ 25.894032] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/52:3b:20:9c:11:51 Sending on LPF/eth0/52:3b:20:9c:11:51 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 [ 29.297837] NET: Registered protocol family 10 [ 29.303646] Segment Routing with IPv6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 DHCPREQUEST of 10.2.0.96 on eth0 to 255.255.255.255 port 67 DHCPOFFER of 10.2.0.96 from 10.2.0.173 DHCPACK of 10.2.0.96 from 10.2.0.173 bound to 10.2.0.96 -- renewal in 39632 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1342 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1340 (klogd) . ok [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 nws ttyS0 nws login: root Password: Last login: Fri Jan 12 01:19:34 PST 2018 on ttyS0 Linux nws 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@nws:~# ifconfig -a eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.2.0.96 netmask 255.255.255.0 broadcast 10.2.0.255 inet6 fe80::503b:20ff:fe9c:1151 prefixlen 64 scopeid 0x20<link> ether 52:3b:20:9c:11:51 txqueuelen 1000 (Ethernet) RX packets 165 bytes 16466 (16.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 39 bytes 5221 (5.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 36 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 4 bytes 218 (218.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 218 (218.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@nws:~# ethtool eth0 Settings for eth[ 93.936856] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down 0: Supported p[ 93.943989] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled orts: [ TP MII ][ 93.955081] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Link partner advertised pause frame use: Symmetric Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: g Link detected: yes root@nws:~#
Re: NSA325 - How to boot with ststemd January 12, 2018 04:31AM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 12, 2018 06:00AM |
Registered: 6 years ago Posts: 47 |
Re: NSA325 - How to boot with ststemd January 12, 2018 07:31AM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA325 - How to boot with ststemd January 17, 2018 01:22AM |
Registered: 6 years ago Posts: 47 |
root@nws:~# cat /boot/uEnv.txt custom_params=init=/bin/systemd
root@nws:~# ps --no-headers -o comm 1 init
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900023 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) Unknown command 'mmc' - try 'help' ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** Bad device usb 0 ** Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 31275184 cc74c377-01 83 Unknown command 'mmc' - try 'help' running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900023 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) device ide 0:1 1 bytes read in 7 ms (0 Bytes/s) Found bootable drive on ide 0 loading uImage ... 3821592 bytes read in 577 ms (6.3 MiB/s) loading uInitrd ... 7245696 bytes read in 1085 ms (6.4 MiB/s) loading DTB /boot/dts/kirkwood-nsa325.dtb ... 14548 bytes read in 17 ms (835 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 1f424000, end 1fb0cf40 ... OK Loading Device Tree to 1f41d000, end 1f4238d3 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: ZyXEL NSA325 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand: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: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 499256K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25032K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000036] Switching to timer-based delay loop, resolution 5ns [ 0.000418] Console: colour dummy device 80x30 [ 0.000447] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000) [ 0.000466] pid_max: default: 32768 minimum: 301 [ 0.000629] Security Framework initialized [ 0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000741] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001456] CPU: Testing write buffer coherency: ok [ 0.002326] Setting up static identity map for 0x100000 - 0x100058 [ 0.002561] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1 [ 0.005226] devtmpfs: initialized [ 0.009393] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.009415] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.009738] prandom: seed boundary self test passed [ 0.012596] prandom: 100 self tests passed [ 0.012610] pinctrl core: initialized pinctrl subsystem [ 0.013582] NET: Registered protocol family 16 [ 0.013930] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.015299] cpuidle: using governor ladder [ 0.015357] cpuidle: using governor menu [ 0.015718] Feroceon L2: Enabling L2 [ 0.015756] Feroceon L2: Cache support initialised. [ 0.016056] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.020279] No ATAGs? [ 0.027508] vgaarb: loaded [ 0.027763] SCSI subsystem initialized [ 0.028146] usbcore: registered new interface driver usbfs [ 0.028195] usbcore: registered new interface driver hub [ 0.028236] usbcore: registered new device driver usb [ 0.029010] clocksource: Switched to clocksource orion_clocksource [ 0.098080] VFS: Disk quotas dquot_6.6.0 [ 0.098153] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.106326] NET: Registered protocol family 2 [ 0.106927] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.106984] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.107036] TCP: Hash tables configured (established 4096 bind 4096) [ 0.107103] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.107124] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.107270] NET: Registered protocol family 1 [ 0.107618] RPC: Registered named UNIX socket transport module. [ 0.107628] RPC: Registered udp transport module. [ 0.107634] RPC: Registered tcp transport module. [ 0.107639] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.107831] Unpacking initramfs... [ 0.608504] Freeing initrd memory: 7076K [ 0.608619] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.609407] audit: initializing netlink subsys (disabled) [ 0.609765] Initialise system trusted keyrings [ 0.609806] Key type blacklist registered [ 0.609882] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1 [ 0.609960] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.610016] zbud: loaded [ 0.610781] NFS: Registering the id_resolver key type [ 0.610805] Key type id_resolver registered [ 0.610811] Key type id_legacy registered [ 0.610830] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.610839] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.611000] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.611154] fuse init (API version 7.26) [ 0.611427] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.611591] orangefs_init: module version upstream loaded [ 0.611599] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.559015] random: fast init done [ 4.970038] Key type asymmetric registered [ 4.970052] Asymmetric key parser 'x509' registered [ 4.970109] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 4.970117] io scheduler noop registered [ 4.970124] io scheduler deadline registered [ 4.970195] io scheduler cfq registered (default) [ 4.971195] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 4.972671] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00 [ 4.972689] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] [ 4.972699] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff] [ 4.972710] pci_bus 0000:00: root bus resource [bus 00-ff] [ 4.972967] PCI: bus0: Fast back to back transfers disabled [ 4.972986] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 4.999107] PCI: bus1: Fast back to back transfers disabled [ 4.999275] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff] [ 4.999290] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit] [ 4.999311] pci 0000:00:01.0: PCI bridge to [bus 01] [ 4.999324] pci 0000:00:01.0: bridge window [mem 0xe0000000-0xe00fffff] [ 4.999399] pcieport 0000:00:01.0: enabling device (0140 -> 0142) [ 4.999478] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 4.999908] mv_xor f1060800.xor: Marvell shared XOR driver [ 5.059577] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.059769] mv_xor f1060900.xor: Marvell shared XOR driver [ 5.119575] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 5.119956] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 5.121048] console [ttyS0] disabled [ 5.121105] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 5.814551] console [ttyS0] enabled [ 5.824548] loop: module loaded [ 5.828190] sata_mv f1080000.sata: slots 32 ports 2 [ 5.835280] scsi host0: sata_mv [ 5.838801] scsi host1: sata_mv [ 5.842193] ata1: SATA max UDMA/133 irq 32 [ 5.846305] ata2: SATA max UDMA/133 irq 32 [ 5.851078] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1 [ 5.857522] nand: Eon NAND 128MiB 3,3V 8-bit [ 5.861839] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.869459] Scanning device for bad blocks [ 5.878396] Bad eraseblock 100 at 0x000000c80000 [ 5.886961] Bad eraseblock 182 at 0x0000016c0000 [ 5.892470] Bad eraseblock 200 at 0x000001900000 [ 5.936419] 9 cmdlinepart partitions found on MTD device orion_nand [ 5.942728] Creating 9 MTD partitions on "orion_nand": [ 5.947891] 0x000000000000-0x000000100000 : "uboot" [ 5.953848] 0x000000100000-0x000000180000 : "uboot_env" [ 5.960161] 0x000000180000-0x000000200000 : "key_store" [ 5.966351] 0x000000200000-0x000000280000 : "info" [ 5.972056] 0x000000280000-0x000000c80000 : "etc" [ 5.977696] 0x000000c80000-0x000001680000 : "kernel_1" [ 5.983846] 0x000001680000-0x000004640000 : "rootfs1" [ 5.990124] 0x000004640000-0x000005040000 : "kernel_2" [ 5.996300] 0x000005040000-0x000008000000 : "rootfs2" [ 6.003534] libphy: Fixed MDIO Bus: probed [ 6.008244] libphy: orion_mdio_bus: probed [ 6.016406] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 6.119495] mv643xx_eth: Set the PHY to fix link down [ 6.120087] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51 [ 6.134047] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 6.140659] ehci-pci: EHCI PCI platform driver [ 6.145167] ehci-orion: EHCI orion driver [ 6.149397] orion-ehci f1050000.ehci: EHCI Host Controller [ 6.154953] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 6.162802] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 6.189030] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 6.195246] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.202086] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.209351] usb usb1: Product: EHCI Host Controller [ 6.214245] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 6.220992] usb usb1: SerialNumber: f1050000.ehci [ 6.226218] hub 1-0:1.0: USB hub found [ 6.230061] hub 1-0:1.0: 1 port detected [ 6.234469] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.239784] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 6.247520] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004 [ 6.256145] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 6.262987] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.270252] usb usb2: Product: xHCI Host Controller [ 6.275146] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.281893] usb usb2: SerialNumber: 0000:01:00.0 [ 6.287024] hub 2-0:1.0: USB hub found [ 6.290861] hub 2-0:1.0: 2 ports detected [ 6.295286] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 6.300592] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3 [ 6.308096] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 6.316361] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003 [ 6.323197] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 6.330463] usb usb3: Product: xHCI Host Controller [ 6.335358] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd [ 6.342179] usb usb3: SerialNumber: 0000:01:00.0 [ 6.347317] hub 3-0:1.0: USB hub found [ 6.351133] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 6.357779] ata1.00: ATA-8: ATP Velocity SII SSD, 1002_0.4, max UDMA/133 [ 6.357785] ata1.00: 31277232 sectors, multi 1: LBA48 NCQ (depth 31/32) [ 6.371677] ata1.00: configured for UDMA/133 [ 6.376420] scsi 0:0:0:0: Direct-Access ATA ATP Velocity SII _0.4 PQ: 0 ANSI: 5 [ 6.384596] hub 3-0:1.0: 2 ports detected [ 6.389631] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB) [ 6.398270] usbcore: registered new interface driver usb-storage [ 6.404504] sd 0:0:0:0: [sda] Write Protect is off [ 6.404623] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.410669] sda: sda1 [ 6.412003] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.428430] mousedev: PS/2 mouse device common for all mice [ 6.434329] i2c /dev entries driver [ 6.444258] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0 [ 6.453729] hidraw: raw HID events driver (C) Jiri Kosina [ 6.459490] drop_monitor: Initializing network drop monitor service [ 6.465966] NET: Registered protocol family 17 [ 6.470525] Key type dns_resolver registered [ 6.475390] registered taskstats version 1 [ 6.479533] Loading compiled-in X.509 certificates [ 6.484392] zswap: loaded using pool lzo/zbud [ 6.496666] Key type big_key registered [ 6.508414] Key type encrypted registered [ 6.514872] rtc-pcf8563 0-0051: setting system clock to 2018-01-17 07:12:48 UTC (1516173168) [ 6.589037] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.730464] ata2: SATA link down (SStatus 0 SControl F300) [ 6.749002] Freeing unused kernel memory: 1024K Loading, please wait... [ 6.781203] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 6.787955] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.804224] usb 1-1: Product: USB2.0 Hub [ 6.816754] hub 1-1:1.0: USB hub found [ 6.824564] hub 1-1:1.0: 4 ports detected starting version 232 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 17.594690] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'nws'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok ] Synthesizing the initial hotplug events...[ 18.917078] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 19.143414] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info(). [ 19.394852] marvell-cesa f1030000.crypto: CESA device successfully registered [ 19.424931] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 19.483004] orion_wdt: Initial timeout 21 sec done. [ ok ] Activating swap:. [ 20.415914] EXT4-fs (sda1): re-mounted. Opts: (null) [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /] fsck.ext4 -y -C0 /dev/sda1 e2fsck 1.43.4 (31-Jan-2017) rootfs: clean, 15213/979200 files, 231021/3909398 blocks . ok [ 20.629134] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/52:3b:20:9c:11:51 Sending on LPF/eth0/52:3b:20:9c:11:51 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 [ 22.830689] mv643xx_eth: Set the PHY back to auto-negotiation mode [ 65.324061] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 75.310530] NET: Registered protocol family 10 [ 75.317256] Segment Routing with IPv6 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 DHCPREQUEST of 10.2.0.27 on eth0 to 255.255.255.255 port 67 DHCPOFFER of 10.2.0.27 from 10.2.0.173 DHCPACK of 10.2.0.27 from 10.2.0.173 bound to 10.2.0.27 -- renewal in 35848 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1362 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1366 (klogd) . ok [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 nws ttyS0 nws login: root Password: Last login: Tue Jan 16 12:25:25 PST 2018 on ttyS0 Linux nws 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@nws:~# cat /boot/uEnv.txt custom_params=init=/bin/systemd root@nws:~# ps --no-headers -o comm 1 init root@nws:~# [ 149.689065] random: crng init done root@nws:~# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=4495 mtdparts=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) ethaddr=52:3b:20:9c:11:51 bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3 dtb_file=/boot/dts/kirkwood-nsa325.dtb root@nws:~#