Welcome! Log In Create A New Profile

Advanced

Debian on QiZhiTong 501mv2

Posted by wacke 
Re: Debian on QiZhiTong 501mv2
August 17, 2017 12:40AM
Hi wacke,

I'd suggest that you do your testing on the Debian rootfs only. Do not run DSA test on your LEDE kernel 4.9.x. It is too old, and so you are chasing the patches that were already mainlined in 4.12.1.

Besides, if we are not running the same kernel, anything you post is not usable for me.

The phy_read and phy_write patch was already in
[    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
And somehow the statistics snaphot patch was not merged into mainline 4.12.1, but it was ACK in the patch series. Perhaps it is not relevant, and just given out the wrong info.

--------

Please run Debian rootfs with the switch address 10 and register 10 in the DTS.

Ignore the errors you see in dmesg. But check the ifconfig output
ifconfig -a
Do you see any of the switch ports? if they are there, can you ifup the port that the ethernet cable is plugged in? (lan1,2,3, or 4).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on QiZhiTong 501mv2
August 17, 2017 01:23AM
Hi bodhi,
I've tried the switch@16 with reg=<16>
output:

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: QiZhiTong 501M V2
[    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: rootdelay=10 root=/dev/sda1 console=ttyS0,9600
[    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: 506352K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 17936K 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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000038] Switching to timer-based delay loop, resolution 5ns
[    0.000480] Console: colour dummy device 80x30
[    0.000511] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000532] pid_max: default: 32768 minimum: 301
[    0.000724] Security Framework initialized
[    0.000842] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000860] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001666] CPU: Testing write buffer coherency: ok
[    0.002557] Setting up static identity map for 0x100000 - 0x100058
[    0.002794] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.005853] devtmpfs: initialized
[    0.009661] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009686] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010105] prandom: seed boundary self test passed
[    0.013857] prandom: 100 self tests passed
[    0.013868] pinctrl core: initialized pinctrl subsystem
[    0.014928] NET: Registered protocol family 16
[    0.015320] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.016810] cpuidle: using governor ladder
[    0.016875] cpuidle: using governor menu
[    0.017250] Feroceon L2: Enabling L2
[    0.017292] Feroceon L2: Cache support initialised.
[    0.017638] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.017745] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.022417] No ATAGs?
[    0.031363] vgaarb: loaded
[    0.031668] SCSI subsystem initialized
[    0.032135] usbcore: registered new interface driver usbfs
[    0.032211] usbcore: registered new interface driver hub
[    0.032297] usbcore: registered new device driver usb
[    0.033336] clocksource: Switched to clocksource orion_clocksource
[    0.121534] VFS: Disk quotas dquot_6.6.0
[    0.121611] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.132087] NET: Registered protocol family 2
[    0.132808] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.132868] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.132920] TCP: Hash tables configured (established 4096 bind 4096)
[    0.133001] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133026] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.133196] NET: Registered protocol family 1
[    0.133641] RPC: Registered named UNIX socket transport module.
[    0.133653] RPC: Registered udp transport module.
[    0.133660] RPC: Registered tcp transport module.
[    0.133667] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.133985] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.134872] audit: initializing netlink subsys (disabled)
[    0.135314] Initialise system trusted keyrings
[    0.135369] Key type blacklist registered
[    0.135465] audit: type=2000 audit(0.131:1): state=initialized audit_enabled=0 res=1
[    0.135548] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.135613] zbud: loaded
[    0.136577] NFS: Registering the id_resolver key type
[    0.136604] Key type id_resolver registered
[    0.136612] Key type id_legacy registered
[    0.136629] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.136639] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.136847] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.137031] fuse init (API version 7.26)
[    0.137389] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.137647] orangefs_init: module version upstream loaded
[    0.137658] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.553346] random: fast init done
[    6.002881] Key type asymmetric registered
[    6.002896] Asymmetric key parser 'x509' registered
[    6.002958] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.002968] io scheduler noop registered
[    6.002977] io scheduler deadline registered
[    6.003045] io scheduler cfq registered (default)
[    6.004359] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.006109] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.064077] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.064290] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.124067] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.124460] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.125672] console [ttyS0] disabled
[    6.125736] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   13.245571] console [ttyS0] enabled
[   13.295768] loop: module loaded
[   13.333890] sata_mv f1080000.sata: slots 32 ports 1
[   13.393824] scsi host0: sata_mv
[   13.431625] ata1: SATA max UDMA/133 irq 32
[   13.481262] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   13.557443] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   13.612715] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   13.700316] Scanning device for bad blocks
[   13.878857] Bad eraseblock 2455 at 0x00000265c000
[   14.021486] 3 ofpart partitions found on MTD device orion_nand
[   14.091332] Creating 3 MTD partitions on "orion_nand":
[   14.152909] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   14.228202] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[   14.228209] ata1.00: 7856128 sectors, multi 1: LBA48 
[   14.293197] ata1.00: configured for UDMA/133
[   14.354240] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[   14.355649] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[   14.355716] sd 0:0:0:0: [sda] Write Protect is off
[   14.355838] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.505407]  sda: sda1 sda2
[   14.507081] sd 0:0:0:0: [sda] Attached SCSI disk
[   14.852326] 0x000000000000-0x000000100000 : "u-boot"
[   14.913093] 0x000000100000-0x000000500000 : "kernel"
[   14.974029] 0x000000500000-0x000004000000 : "ubi"
[   15.035906] libphy: Fixed MDIO Bus: probed
[   15.085794] libphy: orion_mdio_bus: probed
[   15.135172] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   15.217857] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[   15.322656] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[   15.426991] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.505219] ehci-pci: EHCI PCI platform driver
[   15.558477] ehci-orion: EHCI orion driver
[   15.606622] orion-ehci f1050000.ehci: EHCI Host Controller
[   15.672410] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   15.764301] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   15.863373] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   15.935506] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   16.016869] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   16.103392] usb usb1: Product: EHCI Host Controller
[   16.161827] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[   16.242130] usb usb1: SerialNumber: f1050000.ehci
[   16.299105] hub 1-0:1.0: USB hub found
[   16.344070] hub 1-0:1.0: 1 port detected
[   16.391608] usbcore: registered new interface driver usb-storage
[   16.463935] mousedev: PS/2 mouse device common for all mice
[   16.531335] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   16.613833] i2c /dev entries driver
[   16.656622] hidraw: raw HID events driver (C) Jiri Kosina
[   16.721740] drop_monitor: Initializing network drop monitor service
[   16.797151] NET: Registered protocol family 17
[   16.850406] Key type dns_resolver registered
[   16.901589] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   16.982697] registered taskstats version 1
[   17.031798] Loading compiled-in X.509 certificates
[   17.089327] zswap: loaded using pool lzo/zbud
[   17.143894] Key type big_key registered
[   17.191750] Key type encrypted registered
[   17.241128] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 04:27:56 UTC (946700876)
[   17.342822] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[   17.423254] Waiting 10 sec before mounting root device...
[   17.487943] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   17.574275] hub 1-1:1.0: USB hub found
[   17.619317] hub 1-1:1.0: 2 ports detected
[   17.983365] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   18.215937] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=0109
[   18.298363] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   18.385965] usb 1-1.1: Product: USB2.0-CRW
[   18.435015] usb 1-1.1: Manufacturer: Generic
[   18.486153] usb 1-1.1: SerialNumber: 20090815198100000
[   18.558884] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   18.634278] scsi host1: usb-storage 1-1.1:1.0
[   19.764656] scsi 1:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[   20.409857] sd 1:0:0:0: [sdb] 15261696 512-byte logical blocks: (7.81 GB/7.28 GiB)
[   20.501345] sd 1:0:0:0: [sdb] Write Protect is off
[   20.559468] sd 1:0:0:0: [sdb] No Caching mode page found
[   20.623113] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[   20.700453]  sdb: sdb1
[   20.731467] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   28.003937] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   28.094448] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   28.186249] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   28.268087] devtmpfs: mounted
[   28.306497] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   29.888806] marvell-cesa f1030000.crypto: CESA device successfully registered
[   30.046299] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   30.046929] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   30.065418] usbcore: registered new interface driver uas
[   30.114000] mv88e6085: probe of f1072004.mdio-bus-mii:10 failed with error -110
[   30.853598] orion_wdt: Initial timeout 21 sec
[   30.908660] mvsdio f1090000.mvsdio: Got CD GPIO
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   31.742111] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean,[   31.988590] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
 14459/196608 files, 198302/786432 blocks
. ok 
[ 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ 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.
[   34.414353] mv643xx_eth: no PHY
[   34.414390] 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/00:90:0b:19:ee:25
Sending on   LPF/eth0/00:90:0b:19:ee:25
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDI[   96.336083] NET: Registered protocol family 10
SCOVER on eth0 t[   96.394154] Segment Routing with IPv6
o 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
INIT: Entering runlevel: 2ry files...
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1221 (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...
1219 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).

seems that it is hex in the DTS....
And use "switch@10","reg=<10>" the ifconfig -a output only shows eth0 no lan1,2,3,4....
Re: Debian on QiZhiTong 501mv2
August 17, 2017 03:09AM
I downloaded the linux-4.12.7,and didn't find the phy_read and phy_write patch....

the driver still use

	.phy_read = mv88e6165_phy_read,
	.phy_write = mv88e6165_phy_write,

not

	.phy_read = mv88e6xxx_g2_smi_phy_read,
	.phy_write = mv88e6xxx_g2_smi_phy_write,
Re: Debian on QiZhiTong 501mv2
August 17, 2017 04:33AM
Thanks wacke :)

My mistake! I was browsing the latest code in Linus GitHub, where it was already merged.

In the released kernel 4.12.x, most of other Marvell chips had the correct PHY read/write:
.phy_read = mv88e6xxx_g2_smi_phy_read,
.phy_write = mv88e6xxx_g2_smi_phy_write,

But not the 6161:

static const struct mv88e6xxx_ops mv88e6161_ops = {
        /* MV88E6XXX_FAMILY_6165 */
        .set_switch_mac = mv88e6xxx_g2_set_switch_mac,
        .phy_read = mv88e6165_phy_read,
        .phy_write = mv88e6165_phy_write,

I will release kernel 4.12.8 with this patch. Hope that will fix this problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on QiZhiTong 501mv2
August 18, 2017 04:47PM
Hi wacke,

This new kernel has been tested only on the Linksys EA4500. Please try before I release.

linux-4.12.8-kirkwood-tld-1-bodhi.tar.bz2

md5
1c7ad19acb36a9a77a813e7c27b908e6
sha256
4d59aa4ad925d2e99bfafd5552bae486fcd5e3c2fc6c8e50fb749589972d58c3

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on QiZhiTong 501mv2
August 19, 2017 09:12AM
Hi bodhi
I've tried your 4.12.8 kernel,but didn't find the switch at all...(DTS used the latest with switch@10 and reg=10)
boot log:
MB302>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)


3815077 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2017-08-19  13:59:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3815013 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 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: QiZhiTong 501M V2
[    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: rootdelay=1 root=/dev/sda1 console=ttyS0,9600
[    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: 506352K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 17936K 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 - 0xc0db32d4   ( 717 kB)
[    0.000000]        .bss : 0xc0db9dac - 0xc0e01fc0   ( 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.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000494] Console: colour dummy device 80x30
[    0.000526] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000549] pid_max: default: 32768 minimum: 301
[    0.000740] Security Framework initialized
[    0.000875] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000894] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001732] CPU: Testing write buffer coherency: ok
[    0.002610] Setting up static identity map for 0x100000 - 0x100058
[    0.002851] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.006362] devtmpfs: initialized
[    0.010014] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010091] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010446] prandom: seed boundary self test passed
[    0.014648] prandom: 100 self tests passed
[    0.014659] pinctrl core: initialized pinctrl subsystem
[    0.015702] NET: Registered protocol family 16
[    0.016102] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017531] cpuidle: using governor ladder
[    0.017594] cpuidle: using governor menu
[    0.017983] Feroceon L2: Enabling L2
[    0.018026] Feroceon L2: Cache support initialised.
[    0.018372] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.018479] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.023129] No ATAGs?
[    0.031964] vgaarb: loaded
[    0.032283] SCSI subsystem initialized
[    0.032738] usbcore: registered new interface driver usbfs
[    0.032813] usbcore: registered new interface driver hub
[    0.032892] usbcore: registered new device driver usb
[    0.033943] clocksource: Switched to clocksource orion_clocksource
[    0.122772] VFS: Disk quotas dquot_6.6.0
[    0.122848] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.133190] NET: Registered protocol family 2
[    0.133914] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.134019] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.134072] TCP: Hash tables configured (established 4096 bind 4096)
[    0.134155] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.134178] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134348] NET: Registered protocol family 1
[    0.134733] RPC: Registered named UNIX socket transport module.
[    0.134745] RPC: Registered udp transport module.
[    0.134752] RPC: Registered tcp transport module.
[    0.134759] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.135083] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.135965] audit: initializing netlink subsys (disabled)
[    0.136406] Initialise system trusted keyrings
[    0.136462] Key type blacklist registered
[    0.136560] audit: type=2000 audit(0.132:1): state=initialized audit_enabled=0 res=1
[    0.136643] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.136709] zbud: loaded
[    0.137677] NFS: Registering the id_resolver key type
[    0.137704] Key type id_resolver registered
[    0.137713] Key type id_legacy registered
[    0.137731] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.137740] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.137938] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.138119] fuse init (API version 7.26)
[    0.138510] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.138767] orangefs_init: module version upstream loaded
[    0.138777] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.553951] random: fast init done
[    6.084862] Key type asymmetric registered
[    6.084876] Asymmetric key parser 'x509' registered
[    6.084940] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.084951] io scheduler noop registered
[    6.084960] io scheduler deadline registered
[    6.085030] io scheduler cfq registered (default)
[    6.086274] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.088037] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.144711] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.144922] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.204703] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.205099] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.206306] console [ttyS0] disabled
[    6.206368] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   13.334566] console [ttyS0] enabled
[   13.384658] loop: module loaded
[   13.422751] sata_mv f1080000.sata: slots 32 ports 1
[   13.482644] scsi host0: sata_mv
[   13.520498] ata1: SATA max UDMA/133 irq 32
[   13.570130] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   13.646315] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   13.701589] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   13.789188] Scanning device for bad blocks
[   13.967748] Bad eraseblock 2455 at 0x00000265c000
[   14.110442] 3 ofpart partitions found on MTD device orion_nand
[   14.180309] Creating 3 MTD partitions on "orion_nand":
[   14.241887] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   14.317178] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[   14.317185] ata1.00: 7856128 sectors, multi 1: LBA48 
[   14.382173] ata1.00: configured for UDMA/133
[   14.443117] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[   14.444540] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[   14.444606] sd 0:0:0:0: [sda] Write Protect is off
[   14.444724] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   14.594280]  sda: sda1 sda2
[   14.595936] sd 0:0:0:0: [sda] Attached SCSI disk
[   14.941197] 0x000000000000-0x000000100000 : "u-boot"
[   15.001958] 0x000000100000-0x000000500000 : "kernel"
[   15.062860] 0x000000500000-0x000004000000 : "ubi"
[   15.124871] libphy: Fixed MDIO Bus: probed
[   15.174790] libphy: orion_mdio_bus: probed
[   15.224092] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   15.306832] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[   15.411631] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[   15.515965] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.594194] ehci-pci: EHCI PCI platform driver
[   15.647454] ehci-orion: EHCI orion driver
[   15.695599] orion-ehci f1050000.ehci: EHCI Host Controller
[   15.761387] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   15.853274] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   15.953980] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   16.026179] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   16.107484] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   16.194033] usb usb1: Product: EHCI Host Controller
[   16.252469] usb usb1: Manufacturer: Linux 4.12.8-kirkwood-tld-1 ehci_hcd
[   16.332771] usb usb1: SerialNumber: f1050000.ehci
[   16.389739] hub 1-0:1.0: USB hub found
[   16.434709] hub 1-0:1.0: 1 port detected
[   16.482246] usbcore: registered new interface driver usb-storage
[   16.554574] mousedev: PS/2 mouse device common for all mice
[   16.621980] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   16.704473] i2c /dev entries driver
[   16.747270] hidraw: raw HID events driver (C) Jiri Kosina
[   16.812376] drop_monitor: Initializing network drop monitor service
[   16.887823] NET: Registered protocol family 17
[   16.941157] Key type dns_resolver registered
[   16.992336] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   17.073444] registered taskstats version 1
[   17.122540] Loading compiled-in X.509 certificates
[   17.180152] zswap: loaded using pool lzo/zbud
[   17.234633] Key type big_key registered
[   17.282481] Key type encrypted registered
[   17.331849] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[   17.433547] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[   17.514069] Waiting 1 sec before mounting root device...
[   17.577750] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   17.664174] hub 1-1:1.0: USB hub found
[   17.709167] hub 1-1:1.0: 2 ports detected
[   18.564600] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   18.655264] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.747084] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   18.828928] devtmpfs: mounted
[   18.867326] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   30.841026] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean,[   31.086767] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
 14460/196608 files, 198308/786432 blocks
. ok 
[ 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ 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.
[   33.512501] mv643xx_eth: no PHY
[   33.512538] 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/00:90:0b:19:ee:25
Sending on   LPF/eth0/00:90:0b:19:ee:25
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.128 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.128 from 192.168.1.1
bound to 192.168.1.128 -- renewal in 21124 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1176 (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...
1179 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).
y
Debian GNU/Linux 9 debian ttyS0

debian login: 
Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Mar 11 11:16:01 PST 2000 on ttyS0
Linux debian 4.12.8-kirkwood-tld-1 #1 PREEMPT Thu Aug 17 04:51:51 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@debian:~# 
root@debian:~# 
root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.313 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.225 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.213 ms
^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2088ms
rtt min/avg/max/mdev = 0.213/0.250/0.313/0.046 ms
root@debian:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.128  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 56  bytes 4669 (4.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22  bytes 2171 (2.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3  bytes 169 (169.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 169 (169.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# modprobe mv88e6085
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.12.8-kirkwood-tld-1/modules.dep.bin'
modprobe: FATAL: Module mv88e6085 not found in directory /lib/modules/4.12.8-kirkwood-tld-1
root@debian:~# 
Re: Debian on QiZhiTong 501mv2
August 19, 2017 04:38PM
wacke,

You did not load uInitrd, so there was no switch module, therefore the switch was not detected at all.

Why don't you post your u-boot envs, and I'll suggest what the env bootcmd4 should be set to.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/19/2017 05:27PM by bodhi.
Re: Debian on QiZhiTong 501mv2
August 19, 2017 06:22PM
Hi bodhi,
the uboot env:
MB302>> pri
bootdelay=5
baudrate=9600
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
run_diag=yes
console=console=ttyS0,9600
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=mem=512M root=/dev/ram
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
boottitle1=QiZhiTong Bootup
bootcmd2=ide reset; ext2load ide 0:c 0x2000000 /boot/uImage;setenv bootargs ro root=/dev/sda12 $(console) $(mvNetConfig) quiet;bootm 0x2000000
boottitle2=QiZhiTong Restore
password=$1$F5w1D$nzHGehkXN8JlDdjraKy1n/
bootdefault=1
bootcmd=nand read.e 0x2800000 0x400000 0x700000; nand read.e 0x2000000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root) $(mvNetConfig);bootm 0x2000000 0x2800000
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
ethaddr=00:90:0b:19:ee:25
ethmtu=1500
eth1addr=00:90:0b:19:ee:26
eth1mtu=1500
mvNetConfig=mv_net_config=(00:90:0b:19:ee:26,0:1:2:3)(00:90:0b:19:ee:27,4),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootcmd1=setenv bootargs $(console);nand read.e $(loadaddr) 0x100000 0x400000;bootm $(loadaddr)
ipaddr=192.168.1.200
serverip=192.168.1.3
bootcmd4=ide reset;ext2load ide 0:1 0x00800000 /boot/uImage;setenv bootargs rootdelay=1 root=/dev/sda1 console=ttyS0,9600;bootm 0x800000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=no
pcieTune=no

Environment size: 1656/131068 bytes
Re: Debian on QiZhiTong 501mv2
August 19, 2017 06:32PM
I've add the env to load uInitrd and also set earlyprintk in bootargs, and changed rootdelay to 10, root device to use LABEL.

setenv bootcmd4 'ide reset; ext2load ide 0:1 0x00800000 /boot/uImage; ext2load ide 0:1 0x1100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=LABEL=rootfs console=ttyS0,9600 earlyprintk=serial; bootm 0x800000 0x1100000'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/19/2017 06:51PM by bodhi.
Re: Debian on QiZhiTong 501mv2
August 19, 2017 11:38PM
Hi bodhi
I've tried to boot with uinitrd,but faild:
bootm: BOOTCMD4                        

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)


3815077 bytes read

7680389 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2000-01-01   0:17:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3815013 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.12.8-kirkwood-tld-1
   Created:      2000-01-01   0:18:00 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7680325 Bytes =  7.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 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: QiZhiTong 501M V2
[    0.000000] bootconsole [earlycon0] enabled
[    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: rootdelay=10 root=LABEL=rootfs console=ttyS0,9600 earlyprintk=serial
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 498860K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25428K 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 - 0xc0db32d4   ( 717 kB)
[    0.000000]        .bss : 0xc0db9dac - 0xc0e01fc0   ( 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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.094908] Switching to timer-based delay loop, resolution 5ns
[    0.167347] Console: colour dummy device 80x30
[    0.221599] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.348757] pid_max: default: 32768 minimum: 301
[    0.405283] Security Framework initialized
[    0.455547] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.535837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.622167] CPU: Testing write buffer coherency: ok
[    0.682543] Setting up static identity map for 0x100000 - 0x100058
[    0.757847] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.823902] devtmpfs: initialized
[    0.868462] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.987306] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.061667] prandom: seed boundary self test passed
[    1.125325] prandom: 100 self tests passed
[    1.175365] pinctrl core: initialized pinctrl subsystem
[    1.240049] NET: Registered protocol family 16
[    1.294751] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.379567] cpuidle: using governor ladder
[    1.429703] cpuidle: using governor menu
[    1.478165] Feroceon L2: Enabling L2
[    1.522048] Feroceon L2: Cache support initialised.
[    1.581819] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    1.708022] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    1.838791] No ATAGs?
[    1.847671] vgaarb: loaded
[    1.909583] SCSI subsystem initialized
[    1.955960] usbcore: registered new interface driver usbfs
[    2.022788] usbcore: registered new interface driver hub
[    2.087561] usbcore: registered new device driver usb
[    2.150106] clocksource: Switched to clocksource orion_clocksource
[    2.314053] VFS: Disk quotas dquot_6.6.0
[    2.362144] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.456935] NET: Registered protocol family 2
[    2.510903] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    2.596477] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    2.674682] TCP: Hash tables configured (established 4096 bind 4096)
[    2.751893] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.822774] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.899058] NET: Registered protocol family 1
[    2.952608] RPC: Registered named UNIX socket transport module.
[    3.024562] RPC: Registered udp transport module.
[    3.081935] RPC: Registered tcp transport module.
[    3.139296] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.217760] Unpacking initramfs...
[    3.259533] Initramfs unpacking failed: junk in compressed archive
[    3.355505] Freeing initrd memory: 7504K
[    3.403688] NetWinder Floating Point Emulator V0.97 (double precision)
[    3.483793] audit: initializing netlink subsys (disabled)
[    3.549919] Initialise system trusted keyrings
[    3.604188] audit: type=2000 audit(1.739:1): state=initialized audit_enabled=0 res=1
[    3.698046] Key type blacklist registered
[    3.747241] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    3.825501] zbud: loaded
[    3.857822] NFS: Registering the id_resolver key type
[    3.919398] Key type id_resolver registered
[    3.970516] Key type id_legacy registered
[    4.019564] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.100901] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    4.178279] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.263991] fuse init (API version 7.26)
[    4.312424] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.390933] orangefs_init: module version upstream loaded
[    4.456611] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    6.300115] random: fast init done
[   10.531673] Key type asymmetric registered
[   10.581979] Asymmetric key parser 'x509' registered
[   10.641518] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[   10.731289] io scheduler noop registered
[   10.779350] io scheduler deadline registered
[   10.831595] io scheduler cfq registered (default)
[   10.890140] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.975951] loop: module loaded
[   11.016180] libphy: Fixed MDIO Bus: probed
[   11.067048] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.146306] ehci-pci: EHCI PCI platform driver
[   11.200610] ehci-orion: EHCI orion driver
[   11.249802] usbcore: registered new interface driver usb-storage
[   11.323145] mousedev: PS/2 mouse device common for all mice
[   11.391252] i2c /dev entries driver
[   11.434475] kirkwood-cpufreq kirkwood-cpufreq: Unable to get cpuclk
[   11.510695] kirkwood-cpufreq: probe of kirkwood-cpufreq failed with error -22
[   11.597585] hidraw: raw HID events driver (C) Jiri Kosina
[   11.663665] drop_monitor: Initializing network drop monitor service
[   11.740048] NET: Registered protocol family 17
[   11.794345] Key type dns_resolver registered
[   11.847299] registered taskstats version 1
[   11.897391] Loading compiled-in X.509 certificates
[   11.955864] zswap: loaded using pool lzo/zbud
[   12.011354] Key type big_key registered
[   12.060279] Key type encrypted registered
[   12.110681] hctosys: unable to open rtc device (rtc0)
[   16.528517] Unable to handle kernel paging request at virtual address e0000004
[   16.616120] pgd = c0004000
[   16.649554] [e0000004] *pgd=00000000
[   16.693411] Internal error: Oops: 5 [#1] PREEMPT ARM
[   16.753923] Modules linked in:
[   16.791529] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.8-kirkwood-tld-1 #1
[   16.877039] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   16.953182] task: df484020 task.stack: df486000
[   17.008498] PC is at crc32_be+0xac/0x160
[   17.056508] LR is at 0xe0000000
[   17.095154] pc : [<c057dfa0>]    lr : [<e0000000>]    psr: 80000053
[   17.095154] sp : df487ef0  ip : 00000007  fp : 00000000
[   17.234830] r10: c0c4a838  r9 : c0c57544  r8 : 00000000
[   17.298472] r7 : 00000000  r6 : 02a03bb1  r5 : bc652662  r4 : c115b238
[   17.377738] r3 : c0950af0  r2 : b1f4b018  r1 : f0defde0  r0 : 0cbc7f85
[   17.457005] Flags: Nzcv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment none
[   17.544602] Control: 0005397f  Table: 00004000  DAC: 00000053
[   17.614493] Process swapper (pid: 1, stack limit = 0xdf486190)
[   17.685426] Stack: (0xdf487ef0 to 0xdf488000)
[   17.738656] 7ee0:                                     c115b238 f0defde7 c0dfb790 c0c4a834
[   17.837715] 7f00: 00000000 c0c3ef6c c0c3ef3c ffffe000 c0db9dc0 c0101824 c0a6bc2b c0132f70
[   17.936770] 7f20: 00000000 c02981d0 60000053 c0aec06c 000000b8 00000007 00000007 c0aececc
[   18.035826] 7f40: 000000b7 c0aececc dfffce72 dfffce7e c0d0bbd8 00000007 000000b8 c0db9dc0
[   18.134882] 7f60: 00000008 000000b8 c0db9dc0 c0c4a834 c0db9dc0 c0c00e8c 00000007 00000007
[   18.233938] 7f80: 00000000 c0c005b0 00000000 c0829284 00000000 00000000 00000000 00000000
[   18.332994] 7fa0: 00000000 c082928c 00000000 c0106f70 00000000 00000000 00000000 00000000
[   18.432050] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   18.531106] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 9a1a1000 faeeda50
[   18.630178] [<c057dfa0>] (crc32_be) from [<c0c3ef6c>] (of_fdt_raw_init+0x30/0x74)
[   18.720892] [<c0c3ef6c>] (of_fdt_raw_init) from [<c0101824>] (do_one_initcall+0x12c/0x158)
[   18.820988] [<c0101824>] (do_one_initcall) from [<c0c00e8c>] (kernel_init_freeable+0x208/0x250)
[   18.926296] [<c0c00e8c>] (kernel_init_freeable) from [<c082928c>] (kernel_init+0x8/0x108)
[   19.025352] [<c082928c>] (kernel_init) from [<c0106f70>] (ret_from_fork+0x14/0x24)
[   19.117112] Code: e0230420 1afffff7 ebff8684 e8bd81f0 (e59e6004) 
[   19.191169] ---[ end trace a30bee26ee48793f ]---
[   19.247745] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[   19.247745] 
[   19.359285] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[   19.359285] 
Re: Debian on QiZhiTong 501mv2
August 20, 2017 12:08AM
wacke,

It is stock u-boot booting, so we need to load it at a higher memory location 0x02100000.

setenv bootcmd4 'ide reset; ext2load ide 0:1 0x00800000 /boot/uImage; ext2load ide 0:1 0x02100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=LABEL=rootfs console=ttyS0,9600 earlyprintk=serial; bootm 0x800000 0x02100000'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/20/2017 12:08AM by bodhi.
Re: Debian on QiZhiTong 501mv2
August 20, 2017 12:49AM
Hi bodhi,
It booted finnally:
bootm: BOOTCMD4                        

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)


3815077 bytes read

7680389 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2000-01-01   0:17:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3815013 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.8-kirkwood-tld-1
   Created:      2000-01-01   0:18:00 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7680325 Bytes =  7.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 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: QiZhiTong 501M V2
[    0.000000] bootconsole [earlycon0] enabled
[    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: rootdelay=10 root=LABEL=rootfs console=ttyS0,9600 earlyprintk=serial
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 498848K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25440K 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 - 0xc0db32d4   ( 717 kB)
[    0.000000]        .bss : 0xc0db9dac - 0xc0e01fc0   ( 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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.094908] Switching to timer-based delay loop, resolution 5ns
[    0.167348] Console: colour dummy device 80x30
[    0.221600] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.348758] pid_max: default: 32768 minimum: 301
[    0.405285] Security Framework initialized
[    0.455547] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.535837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.622174] CPU: Testing write buffer coherency: ok
[    0.682543] Setting up static identity map for 0x100000 - 0x100058
[    0.757847] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.823900] devtmpfs: initialized
[    0.868441] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.987305] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.061667] prandom: seed boundary self test passed
[    1.125328] prandom: 100 self tests passed
[    1.175365] pinctrl core: initialized pinctrl subsystem
[    1.240044] NET: Registered protocol family 16
[    1.294752] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.379572] cpuidle: using governor ladder
[    1.429703] cpuidle: using governor menu
[    1.478167] Feroceon L2: Enabling L2
[    1.522048] Feroceon L2: Cache support initialised.
[    1.581819] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    1.708022] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    1.838792] No ATAGs?
[    1.847667] vgaarb: loaded
[    1.909582] SCSI subsystem initialized
[    1.955955] usbcore: registered new interface driver usbfs
[    2.022788] usbcore: registered new interface driver hub
[    2.087562] usbcore: registered new device driver usb
[    2.150106] clocksource: Switched to clocksource orion_clocksource
[    2.314007] VFS: Disk quotas dquot_6.6.0
[    2.362145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.456931] NET: Registered protocol family 2
[    2.510902] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    2.596476] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    2.674681] TCP: Hash tables configured (established 4096 bind 4096)
[    2.751893] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.822774] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.899057] NET: Registered protocol family 1
[    2.952606] RPC: Registered named UNIX socket transport module.
[    3.024562] RPC: Registered udp transport module.
[    3.081934] RPC: Registered tcp transport module.
[    3.139296] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.217759] Unpacking initramfs...
[    3.925441] Freeing initrd memory: 7504K
[    3.973621] NetWinder Floating Point Emulator V0.97 (double precision)
[    4.053796] audit: initializing netlink subsys (disabled)
[    4.120008] Initialise system trusted keyrings
[    4.174255] audit: type=2000 audit(2.309:1): state=initialized audit_enabled=0 res=1
[    4.268116] Key type blacklist registered
[    4.317304] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    4.395567] zbud: loaded
[    4.427877] NFS: Registering the id_resolver key type
[    4.489465] Key type id_resolver registered
[    4.540585] Key type id_legacy registered
[    4.589632] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.670969] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    4.748347] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.834061] fuse init (API version 7.26)
[    4.882494] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.961009] orangefs_init: module version upstream loaded
[    5.026680] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    6.230114] random: fast init done
[   11.110415] Key type asymmetric registered
[   11.160612] Asymmetric key parser 'x509' registered
[   11.220172] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[   11.309853] io scheduler noop registered
[   11.357855] io scheduler deadline registered
[   11.410096] io scheduler cfq registered (default)
[   11.468758] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.559167] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.680874] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   11.772807] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.900873] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   11.992979] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   12.071393] console [ttyS0] disabled
[   12.115267] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   12.223778] console [ttyS0] enabled
[   12.223778] console [ttyS0] enabled
[   12.308216] bootconsole [earlycon0] disabled
[   12.308216] bootconsole [earlycon0] disabled
[   12.419638] loop: module loaded
[   12.457778] sata_mv f1080000.sata: slots 32 ports 1
[   12.517658] scsi host0: sata_mv
[   12.555518] ata1: SATA max UDMA/133 irq 32
[   12.605141] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   12.681333] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   12.736608] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   12.824214] Scanning device for bad blocks
[   13.002439] Bad eraseblock 2455 at 0x00000265c000
[   13.145034] 3 ofpart partitions found on MTD device orion_nand
[   13.214907] Creating 3 MTD partitions on "orion_nand":
[   13.276487] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.351780] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[   13.351787] ata1.00: 7856128 sectors, multi 1: LBA48 
[   13.416775] ata1.00: configured for UDMA/133
[   13.477728] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[   13.479122] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[   13.479188] sd 0:0:0:0: [sda] Write Protect is off
[   13.479307] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.628985]  sda: sda1 sda2
[   13.630689] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.976119] 0x000000000000-0x000000100000 : "u-boot"
[   14.036885] 0x000000100000-0x000000500000 : "kernel"
[   14.097764] 0x000000500000-0x000004000000 : "ubi"
[   14.159661] libphy: Fixed MDIO Bus: probed
[   14.209570] libphy: orion_mdio_bus: probed
[   14.258872] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   14.341640] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[   14.446449] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[   14.550778] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.629005] ehci-pci: EHCI PCI platform driver
[   14.682266] ehci-orion: EHCI orion driver
[   14.730410] orion-ehci f1050000.ehci: EHCI Host Controller
[   14.796195] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   14.888086] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   14.980144] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   15.052312] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   15.133648] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.220197] usb usb1: Product: EHCI Host Controller
[   15.278631] usb usb1: Manufacturer: Linux 4.12.8-kirkwood-tld-1 ehci_hcd
[   15.358936] usb usb1: SerialNumber: f1050000.ehci
[   15.415905] hub 1-0:1.0: USB hub found
[   15.460875] hub 1-0:1.0: 1 port detected
[   15.508420] usbcore: registered new interface driver usb-storage
[   15.580738] mousedev: PS/2 mouse device common for all mice
[   15.648143] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   15.730639] i2c /dev entries driver
[   15.773443] hidraw: raw HID events driver (C) Jiri Kosina
[   15.838530] drop_monitor: Initializing network drop monitor service
[   15.914069] NET: Registered protocol family 17
[   15.967334] Key type dns_resolver registered
[   16.018503] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   16.099647] registered taskstats version 1
[   16.148705] Loading compiled-in X.509 certificates
[   16.206236] zswap: loaded using pool lzo/zbud
[   16.267965] Key type big_key registered
[   16.323103] Key type encrypted registered
[   16.372455] rtc-mv f1010300.rtc: setting system clock to 2000-03-11 19:13:08 UTC (952801988)
[   16.474110] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
Loading, please wait...
[   16.557451] Freeing unused kernel memory: 1024K
starting version 232
[   16.740262] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   16.916995] hub 1-1:1.0: USB hub found
[   17.036876] hub 1-1:1.0: 2 ports detected
[   17.227875] mv88e6085 f1072004.mdio-bus-mii:0a: switch 0x161 detected: Marvell 88E6161, revision 2
[   17.356154] mvsdio f1090000.mvsdio: Got CD GPIO
[   17.911231] libphy: mv88e6xxx SMI: probed
[   17.959245] DSA: switch 0 0 parsed
[   17.999916] DSA: tree 0 parsed
[   19.015532] Marvell 88E1121R mv88e6xxx-0:00: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[   19.267870] Marvell 88E1121R mv88e6xxx-0:01: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[   19.522604] Marvell 88E1121R mv88e6xxx-0:02: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[   19.782606] Marvell 88E1121R mv88e6xxx-0:03: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[   20.042604] Marvell 88E1121R mv88e6xxx-0:04: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
Begin: Loading essential drivers ... done.
[   21.330174] random: crng init done
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done[   30.406679] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
.
Begin: Runnin[   30.500701] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
g /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 34659/196608 files, 264025/786432 blocks
done.
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 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   32.616043] orion_wdt: Initial timeout 21 sec
[   32.787947] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   33.379386] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[ ok ] Activating swap:.
[   34.079257] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ 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.
[   36.514224] mv643xx_eth: no PHY
[   36.514263] 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/00:90:0b:19:ee:25
Sending on   LPF/eth0/00:90:0b:19:ee:25
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4



DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
   98.014860] NET: Registered protocol family 10
[   98.087214] Segment Routing with IPv6
2done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
INIT: Entering runlevel: 2ry files...
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1297 (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...
1301 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).
Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Mar 11 11:04:33 PST 2000 on ttyS0
Linux debian 4.12.8-kirkwood-tld-1 #1 PREEMPT Thu Aug 17 04:51:51 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@debian:~# ping 192.168.1.1
connect: Network is unreachable
root@debian:~# ping 192.168.1.1
connect: Network is unreachable
root@debian:~# ifconfig -a
aux: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee25  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 190  bytes 50742 (49.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 24  bytes 4344 (4.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lan1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 177  bytes 43422 (42.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 2  bytes 140 (140.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 140 (140.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# ifconfig lan2 192.168.1.41 netmask 255.255.255.0
[  156.457739] IPv6: ADDRCONF(NETDEV_UP): lan2: link is not ready
root@debian:~# [  157.587862] mv88e6085 f1072004.mdio-bus-mii:0a lan2: Link is Down
[  159.662246] mv88e6085 f1072004.mdio-bus-mii:0a lan2: Link is Up - 1Gbps/Full - flow control off
[  159.671037] IPv6: ADDRCONF(NETDEV_CHANGE): lan2: link becomes ready

root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.627 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.236 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.264 ms
^C
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2052ms
rtt min/avg/max/mdev = 0.236/0.375/0.627/0.179 ms
seems that the switch is working properly.

but the eth1(wan) working not properly(log after a reboot):
root@debian:~# ifconfig eth1 192.168.1.42 netmask 255.255.255.0
[  222.678710] mv643xx_eth: no PHY
[  222.678749] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 10 Mb/s, half duplex, flow control disabled
root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.42 icmp_seq=1 Destination Host Unreachable
From 192.168.1.42 icmp_seq=2 Destination Host Unreachable
From 192.168.1.42 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4122ms
pipe 4
Re: Debian on QiZhiTong 501mv2
August 20, 2017 01:46AM
wacke,

Congrats :) good works finding that patch!

That's why I said we should count on the mainline code, sooner or later someone will find the bug. This was probably a copy/paste error, given other switches already had the right PHY function calls.

but the eth1(wan) working not properly(log after a reboot): 
root@debian:~# ifconfig eth1 192.168.1.42 netmask 255.255.255.0
[  222.678710] mv643xx_eth: no PHY
[  222.678749] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 10 Mb/s, half duplex, flow control disabled

This does not look right, in that no PHY found for the eth1. It should have a PHY. Let's see if we can find something missing in the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on QiZhiTong 501mv2
August 20, 2017 03:39AM
wacke,

Let's see if the PHY will be initialized this way.

diff -Naur kirkwood-qizhitong_501m_v2.dts kirkwood-qizhitong_501m_v2.dts.update_2
--- kirkwood-qizhitong_501m_v2.dts	2017-08-20 00:01:46.071914874 -0700
+++ kirkwood-qizhitong_501m_v2.dts.update_2	2017-08-20 01:36:48.322023088 -0700
@@ -131,6 +131,10 @@
 &mdio {
 	status = "okay";
 
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+	};
+
 	switch@10 {
 		compatible = "marvell,mv88e6085";
 		#address-cells = <1>;
@@ -189,8 +193,9 @@
 };
 
 &eth1 {
-	status = "okay";	
+	status = "okay";
 	ethernet1-port@0 {
+		phy-handle = <&ethphy1>;
 	};
 };

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/20/2017 03:39AM by bodhi.
Re: Debian on QiZhiTong 501mv2
August 20, 2017 06:35AM
Hi bodhi,
I've treid your dts patch,seems that the eth1 is working properly now.
bootm: BOOTCMD4                        

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)


3815176 bytes read

7680389 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.8-kirkwood-tld-1
   Created:      2017-08-20  11:14:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3815112 Bytes =  3.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.8-kirkwood-tld-1
   Created:      2000-01-01   0:18:00 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7680325 Bytes =  7.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.8-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 PREEMPT Thu Aug 17 04:51:51 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: QiZhiTong 501M V2
[    0.000000] bootconsole [earlycon0] enabled
[    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: rootdelay=10 root=LABEL=rootfs console=ttyS0,9600 earlyprintk=serial
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 498848K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25440K 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 - 0xc0db32d4   ( 717 kB)
[    0.000000]        .bss : 0xc0db9dac - 0xc0e01fc0   ( 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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.094908] Switching to timer-based delay loop, resolution 5ns
[    0.167344] Console: colour dummy device 80x30
[    0.221599] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.348756] pid_max: default: 32768 minimum: 301
[    0.405285] Security Framework initialized
[    0.455546] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.535836] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.622171] CPU: Testing write buffer coherency: ok
[    0.682543] Setting up static identity map for 0x100000 - 0x100058
[    0.757847] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.823905] devtmpfs: initialized
[    0.868451] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.987307] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.061671] prandom: seed boundary self test passed
[    1.125322] prandom: 100 self tests passed
[    1.175365] pinctrl core: initialized pinctrl subsystem
[    1.240043] NET: Registered protocol family 16
[    1.294751] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.379582] cpuidle: using governor ladder
[    1.429702] cpuidle: using governor menu
[    1.478153] Feroceon L2: Enabling L2
[    1.522048] Feroceon L2: Cache support initialised.
[    1.581818] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    1.708023] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    1.838791] No ATAGs?
[    1.847668] vgaarb: loaded
[    1.909581] SCSI subsystem initialized
[    1.955957] usbcore: registered new interface driver usbfs
[    2.022788] usbcore: registered new interface driver hub
[    2.087562] usbcore: registered new device driver usb
[    2.150103] clocksource: Switched to clocksource orion_clocksource
[    2.313998] VFS: Disk quotas dquot_6.6.0
[    2.362041] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.456839] NET: Registered protocol family 2
[    2.510824] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    2.596372] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    2.674577] TCP: Hash tables configured (established 4096 bind 4096)
[    2.751789] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.822669] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.898950] NET: Registered protocol family 1
[    2.952502] RPC: Registered named UNIX socket transport module.
[    3.024458] RPC: Registered udp transport module.
[    3.081830] RPC: Registered tcp transport module.
[    3.139192] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.217659] Unpacking initramfs...
[    3.925520] Freeing initrd memory: 7504K
[    3.973727] NetWinder Floating Point Emulator V0.97 (double precision)
[    4.053900] audit: initializing netlink subsys (disabled)
[    4.120147] Initialise system trusted keyrings
[    4.174454] audit: type=2000 audit(2.309:1): state=initialized audit_enabled=0 res=1
[    4.268327] Key type blacklist registered
[    4.317511] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    4.395775] zbud: loaded
[    4.428093] NFS: Registering the id_resolver key type
[    4.489676] Key type id_resolver registered
[    4.540792] Key type id_legacy registered
[    4.589840] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.671177] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    4.748556] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    4.834271] fuse init (API version 7.26)
[    4.882692] orangefs_debugfs_init: called with debug mask: :none: :0:
[    4.961118] orangefs_init: module version upstream loaded
[    5.026785] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    6.210111] random: fast init done
[   11.110877] Key type asymmetric registered
[   11.161134] Asymmetric key parser 'x509' registered
[   11.220643] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[   11.310370] io scheduler noop registered
[   11.358388] io scheduler deadline registered
[   11.410621] io scheduler cfq registered (default)
[   11.469312] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.559689] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.680870] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   11.772803] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.900876] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[   11.992985] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   12.071391] console [ttyS0] disabled
[   12.115268] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   12.223778] console [ttyS0] enabled
[   12.223778] console [ttyS0] enabled
[   12.308216] bootconsole [earlycon0] disabled
[   12.308216] bootconsole [earlycon0] disabled
[   12.419667] loop: module loaded
[   12.457759] sata_mv f1080000.sata: slots 32 ports 1
[   12.517663] scsi host0: sata_mv
[   12.555511] ata1: SATA max UDMA/133 irq 32
[   12.605141] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   12.681332] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   12.736608] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   12.824223] Scanning device for bad blocks
[   13.002440] Bad eraseblock 2455 at 0x00000265c000
[   13.144965] 3 ofpart partitions found on MTD device orion_nand
[   13.214803] Creating 3 MTD partitions on "orion_nand":
[   13.276384] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   13.351678] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[   13.351685] ata1.00: 7856128 sectors, multi 1: LBA48 
[   13.416672] ata1.00: configured for UDMA/133
[   13.477612] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[   13.479003] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[   13.479068] sd 0:0:0:0: [sda] Write Protect is off
[   13.479187] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.628881]  sda: sda1 sda2
[   13.630633] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.976016] 0x000000000000-0x000000100000 : "u-boot"
[   14.036783] 0x000000100000-0x000000500000 : "kernel"
[   14.097670] 0x000000500000-0x000004000000 : "ubi"
[   14.159562] libphy: Fixed MDIO Bus: probed
[   14.209451] libphy: orion_mdio_bus: probed
[   14.263242] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   14.346004] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[   15.551719] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[   15.656115] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.734351] ehci-pci: EHCI PCI platform driver
[   15.787611] ehci-orion: EHCI orion driver
[   15.835760] orion-ehci f1050000.ehci: EHCI Host Controller
[   15.901644] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   15.993548] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   16.090136] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   16.162345] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   16.243680] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   16.330230] usb usb1: Product: EHCI Host Controller
[   16.388663] usb usb1: Manufacturer: Linux 4.12.8-kirkwood-tld-1 ehci_hcd
[   16.468973] usb usb1: SerialNumber: f1050000.ehci
[   16.525959] hub 1-0:1.0: USB hub found
[   16.570909] hub 1-0:1.0: 1 port detected
[   16.618475] usbcore: registered new interface driver usb-storage
[   16.690764] mousedev: PS/2 mouse device common for all mice
[   16.758175] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   16.840675] i2c /dev entries driver
[   16.883477] hidraw: raw HID events driver (C) Jiri Kosina
[   16.948558] drop_monitor: Initializing network drop monitor service
[   17.024022] NET: Registered protocol family 17
[   17.077352] Key type dns_resolver registered
[   17.128534] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   17.209678] registered taskstats version 1
[   17.258739] Loading compiled-in X.509 certificates
[   17.316270] zswap: loaded using pool lzo/zbud
[   17.377926] Key type big_key registered
[   17.433117] Key type encrypted registered
[   17.482497] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[   17.584197] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
Loading, please wait...
[   17.667544] Freeing unused kernel memory: 1024K
starting version 232
[   17.850257] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   18.026945] hub 1-1:1.0: USB hub found
[   18.147585] hub 1-1:1.0: 2 ports detected
[   18.350503] mv88e6085 f1072004.mdio-bus-mii:0a: switch 0x161 detected: Marvell 88E6161, revision 2
[   18.478328] mvsdio f1090000.mvsdio: Got CD GPIO
[   19.107069] libphy: mv88e6xxx SMI: probed
[   19.155110] DSA: switch 0 0 parsed
[   19.195782] DSA: tree 0 parsed
[   20.205539] Marvell 88E1121R mv88e6xxx-0:00: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[   20.455526] Marvell 88E1121R mv88e6xxx-0:01: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[   20.705520] Marvell 88E1121R mv88e6xxx-0:02: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[   20.957906] Marvell 88E1121R mv88e6xxx-0:03: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[   21.100175] random: crng init done
[   21.203199] Marvell 88E1121R mv88e6xxx-0:04: attached PHY driver [Marvell 88E1121R] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
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 ... do[   31.602289] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
ne.
Begin: Will[   31.710666] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
 now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: recovering journal
rootfs: clean, 34659/196608 files, 264028/786432 blocks
done.
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 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   33.794067] orion_wdt: Initial timeout 21 sec
[   34.107944] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   34.547440] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
[ ok ] Activating swap:.
[   44.520751] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ 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.
[   46.945923] mv643xx_eth: no PHY
[   46.945964] 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/00:90:0b:19:ee:25
Sending on   LPF/eth0/00:90:0b:19:ee:25
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.128 on eth0 to 255.255.255.255 port 67



[  127.828800] NET: Registered protocol family 10
[  127.885678] Segment Routing with IPv6
DHCPREQUEST of 192.168.1.128 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
Trying recorded lease 192.168.1.128
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
NIT: Entering runlevel: 2mapper daemon: rpcbind
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1308 (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...
1307 (klogd)
. ok 
[ ok ] Running local boot scripts (/etc/rc.local).
7GDebian GNU/Linux 9 debian ttyS0

debian login: 
Debian GNU/Linux 9 debian ttyS0

debian login: 
Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Mar 11 11:21:13 PST 2000 on ttyS0
Linux debian 4.12.8-kirkwood-tld-1 #1 PREEMPT Thu Aug 17 04:51:51 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@debian:~# ifconfig -a
aux: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee25  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 17  bytes 3964 (3.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28  bytes 4772 (4.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lan1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 3  bytes 252 (252.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 252 (252.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# ifconfig -a
aux: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee25  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 17  bytes 3964 (3.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 29  bytes 4842 (4.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lan1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 3  bytes 252 (252.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 252 (252.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# ifconfig -a
aux: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee25  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 17  bytes 3964 (3.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 29  bytes 4842 (4.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lan1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 3  bytes 252 (252.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 252 (252.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# ifconfig eth1 192.168.1.43 netmask 255.255.255.0
[  185.482243] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
root@debian:~# [  187.900721] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[  187.910649] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

root@debian:~# 
root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.76 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.814 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.804 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.834 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3102ms
rtt min/avg/max/mdev = 0.804/1.055/1.768/0.411 ms
root@debian:~# ip addr del 192.168.1.43 dev eth1
Warning: Executing wildcard deletion to stay compatible with old scripts.
         Explicitly specify the prefix length (192.168.1.43/32) to avoid this warning.
         This special behaviour is likely to disappear in further releases,
         fix your scripts!
root@debian:~# ip addr del 192.168.1.43/24 dev eth1
RTNETLINK answers: Cannot assign requested address
root@debian:~# ifconfig -a
aux: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee25  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 17  bytes 3964 (3.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 32  bytes 5052 (4.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 36  

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::290:bff:fe19:ee26  prefixlen 64  scopeid 0x20<link>
        ether 00:90:0b:19:ee:26  txqueuelen 1000  (Ethernet)
        RX packets 353  bytes 26579 (25.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 61  bytes 8997 (8.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lan1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lan4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:90:0b:19:ee:25  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 3  bytes 252 (252.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 252 (252.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# [  541.496758] mv643xx_eth_port mv643xx_eth_port.1 eth1: link down

root@debian:~# route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
root@debian:~# ifconfig lan1 192.168.1.43 netmask 255.255.255.0    
[  560.717524] IPv6: ADDRCONF(NETDEV_UP): lan1: link is not ready
root@debian:~# [  561.830243] mv88e6085 f1072004.mdio-bus-mii:0a lan1: Link is Down
[  563.902234] mv88e6085 f1072004.mdio-bus-mii:0a lan1: Link is Up - 1Gbps/Full - flow control off
[  563.911020] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready

root@debian:~# 
root@debian:~# 
root@debian:~# ping 192.168.1.1                    
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.40 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.801 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.867 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.816 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.959 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.843 ms
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5103ms
rtt min/avg/max/mdev = 0.801/0.947/1.401/0.212 ms
root@debian:~# ip addr del 192.168.1.43/24 dev lan1
root@debian:~# [  599.267888] mv88e6085 f1072004.mdio-bus-mii:0a lan1: Link is Down

root@debian:~# 
root@debian:~# 
root@debian:~# ifconfig lan2 192.168.1.43 netmask 255.255.255.0 
[  607.987479] IPv6: ADDRCONF(NETDEV_UP): lan2: link is not ready
root@debian:~# [  609.110243] mv88e6085 f1072004.mdio-bus-mii:0a lan2: Link is Down
[  611.189282] mv88e6085 f1072004.mdio-bus-mii:0a lan2: Link is Up - 1Gbps/Full - flow control off
[  611.198071] IPv6: ADDRCONF(NETDEV_CHANGE): lan2: link becomes ready

root@debian:~# ping 192.168.1.1                                
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.820 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.828 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.818 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.865 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3042ms
rtt min/avg/max/mdev = 0.818/0.832/0.865/0.040 ms
root@debian:~# ip addr del 192.168.1.43/24 dev lan2            
root@debian:~# [  628.870239] mv88e6085 f1072004.mdio-bus-mii:0a lan2: Link is Down
root@debian:~# ifconfig lan3 192.168.1.43 netmask 255.255.255.0 
[  641.997624] IPv6: ADDRCONF(NETDEV_UP): lan3: link is not ready
root@debian:~# [  643.108395] mv88e6085 f1072004.mdio-bus-mii:0a lan3: Link is Down
[  645.182737] mv88e6085 f1072004.mdio-bus-mii:0a lan3: Link is Up - 1Gbps/Full - flow control off
[  645.191525] IPv6: ADDRCONF(NETDEV_CHANGE): lan3: link becomes ready

root@debian:~# 
root@debian:~# 
root@debian:~# ping 192.168.1.1                                
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.68 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.830 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.825 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.819 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3092ms
rtt min/avg/max/mdev = 0.819/1.039/1.683/0.372 ms
root@debian:~# ip addr del 192.168.1.43/24 dev lan3            
root@debian:~# [  664.950740] mv88e6085 f1072004.mdio-bus-mii:0a lan3: Link is Down

root@debian:~# ifconfig lan4 192.168.1.43 netmask 255.255.255.0 
[  674.207557] IPv6: ADDRCONF(NETDEV_UP): lan4: link is not ready
root@debian:~# [  675.270211] mv88e6085 f1072004.mdio-bus-mii:0a lan4: Link is Down
[  677.342199] mv88e6085 f1072004.mdio-bus-mii:0a lan4: Link is Up - 1Gbps/Full - flow control off
[  677.350990] IPv6: ADDRCONF(NETDEV_CHANGE): lan4: link becomes ready

root@debian:~# 
root@debian:~# 
root@debian:~# ping 192.168.1.1                                
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.67 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.831 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.821 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.828 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3062ms
rtt min/avg/max/mdev = 0.821/1.038/1.673/0.367 ms
root@debian:~# ip addr del 192.168.1.43/24 dev lan4            
root@debian:~# [  697.110246] mv88e6085 f1072004.mdio-bus-mii:0a lan4: Link is Down

root@debian:~# 
root@debian:~# ifconfig aux 192.168.1.43 netmask 255.255.255.0     
[  708.077606] IPv6: ADDRCONF(NETDEV_UP): aux: link is not ready
root@debian:~# [  709.187888] mv88e6085 f1072004.mdio-bus-mii:0a aux: Link is Down
[  711.264579] mv88e6085 f1072004.mdio-bus-mii:0a aux: Link is Up - 1Gbps/Full - flow control off
[  711.273281] IPv6: ADDRCONF(NETDEV_CHANGE): aux: link becomes ready

root@debian:~# ping 192.168.1.1                               
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.752 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.829 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.826 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.821 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.828 ms
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4122ms
rtt min/avg/max/mdev = 0.752/0.811/0.829/0.034 ms
root@debian:~# [  797.590219] mv88e6085 f1072004.mdio-bus-mii:0a aux: Link is Down
[  833.984571] mv88e6085 f1072004.mdio-bus-mii:0a aux: Link is Up - 100Mbps/Full - flow control rx/tx

root@debian:~# 
root@debian:~# 
root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.995 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.447 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.861 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.870 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.697 ms
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4082ms
rtt min/avg/max/mdev = 0.447/0.774/0.995/0.188 ms
root@debian:~# [  850.630229] mv88e6085 f1072004.mdio-bus-mii:0a aux: Link is Down

root@debian:~# 
root@debian:~# ip addr del 192.168.1.43/24 dev aux            
root@debian:~# ifconfig eth1 192.168.1.43 netmask 255.255.255.0
root@debian:~# [  891.781435] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 100 Mb/s, full duplex, flow control disabled

root@debian:~# 
root@debian:~# ping 192.168.1.1                                
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.38 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.848 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.432 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.844 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.845 ms
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4062ms
rtt min/avg/max/mdev = 0.432/0.869/1.380/0.303 ms
root@debian:~# ip addr del 192.168.1.43/24 dev eth1            
root@debian:~# 
root@debian:~# 
root@debian:~# [  925.109400] mv643xx_eth_port mv643xx_eth_port.1 eth1: link down

And all the switch port tested working ok(including 100M linkspeed),I want to use LEDE,I'll try to port the LEDE kernel to 4.12.x....

Thanks for all your works!!!



Edited 1 time(s). Last edit at 08/20/2017 06:38AM by wacke.
Re: Debian on QiZhiTong 501mv2
August 20, 2017 04:07PM
wacke,

Awesome! I will release kernel 4.12.8-kirkwood-tld-1.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on QiZhiTong 501mv2
September 04, 2017 10:34AM
Hi bodhi,
The DTS need to update,or the pcie controller won't work properly,my latest working DTS:

/* Device tree file for the QiZhiTong 501M V2 box.
 *
 * Copyright (c) 2015-2017  bodhi <mibodhi@gmail.com>
 *                          wacke <cao88yu@gmail.com>
 *
 * Based on
 * Marvell RD88F6181 A Board descrition
 * Andrew Lunn <andrew@lunn.ch>
*/


/dts-v1/;
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
	model = "QiZhiTong 501M V2";
	compatible = "qizhitong,501m_v2","marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";

	chosen {
		bootargs = "console=ttyS0,9600n8 earlyprintk";
	};

	ocp@f1000000 {
		pinctrl: pin-controller@10000 {
			pinctrl-names = "default";

			pmx_sdio_cd: pmx-sdio-cd {
				marvell,pins = "mpp28";
				marvell,function = "gpio";
			};
		};

		serial@12000 {
			status = "okay";

		};

		sata@80000 {
			status = "okay";
			nr-ports = <1>;
		};

		mvsdio@90000 {
			pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
			pinctrl-names = "default";
			status = "okay";
			cd-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
			/* No WP GPIO */
		};
	};

	dsa {
		status = "disabled";

		compatible = "marvell,dsa";
		#address-cells = <2>;
		#size-cells = <0>;
		
		dsa,ethernet = <&eth0port>;
		dsa,mii-bus = <&mdio>;

		switch@10,0 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <10 0>;	/* MDIO address 16, switch 0 in tree */
			
			port@0 {
				reg = <0>;
				label = "lan1";
			};

			port@1 {
			       reg = <1>;
			       label = "lan2";
			};

			port@2 {
			       reg = <2>;
			       label = "lan3";
			};

			port@3 {
			       reg = <3>;
			       label = "lan4";
			};

			port@4 {
				reg = <4>;
				label = "aux";
			};

			port@5 {
			       reg = <5>;
			       label = "cpu";
			};
		};
	};

};

&nand {
	status = "okay";

	partition@0 {
		label = "u-boot";
		reg = <0x0000000 0x100000>;
		read-only;
	};

	partition@100000 {
		label = "kernel";
		reg = <0x0100000 0x400000>;
	};

	partition@500000 {
		label = "ubi";
		reg = <0x0500000 0x3b00000>;
	};
};

&mdio {
	status = "okay";
	
	ethphy1: ethernet-phy@1 {
		reg = <1>;
	};

	switch@10{
		compatible = "marvell,mv88e6085";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <10>;

		ports {

            #address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;
				label = "lan1";
			};

			port@1 {
				reg = <1>;
				label = "lan2";
			};

			port@2 {
				reg = <2>;
				label = "lan3";
			};

			port@3 {
				reg = <3>;
				label = "lan4";
			};

			port@4 {
				reg = <4>;
				label = "aux";
			};

			port@5 {
				reg = <5>;
				label = "cpu";
				ethernet = <&eth0port>;
				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
		};
	};
};

&pciec {
	status = "okay";
};

&pcie0 {
	status = "okay";
};

&eth0 {
	status = "okay";	
	ethernet0-port@0 {
		speed = <1000>;
		duplex = <1>;
	};
};

&eth1 {
	status = "okay";	
	ethernet1-port@0 {
    	phy-handle = <&ethphy1>;
	};
};
Re: Debian on QiZhiTong 501mv2
September 04, 2017 05:59PM
Thanks wacke!

I will update it in the next kernel release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: