Welcome! Log In Create A New Profile

Advanced

Debian on QiZhiTong 501mv2

Posted by wacke 
Re: Can this device flash "Bodhi's U-boot"?
November 25, 2015 12:32AM
wacke Wrote:
-------------------------------------------------------
> I attached the photo of these two chips,you can
> see my attached files.
> The sata port I will get a try later.Thanks.


Does the ethernet LED light lit up at all?

I've noticed that

1. a different ethernet driver is used in your dmesg (probably because the stock kernel is too old).

2. And these messages in serial console indicate that there is a script or module that ran before the ethernet probe occured:
Setting network parameters:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Setting 802.1Q VLAN parameters:  [  OK  ]
Bringing up interface ath0:  [  OK  ]
Bringing up interface bridge:  [  OK  ]
Bringing up interface eth0:  [  OK  ]
Bringing up interface eth1:  [  OK  ]
Bringing up interface eth2:  [  OK  ]
Bringing up interface eth3:  [  OK  ]
Bringing up interface eth4:  [  OK  ]
Bringing up interface eth5:  [  OK  ]
Bringing up interface eth6:  [  OK  ]
Bringing up interface eth7:  [  OK  ]
Bringing up interface eth8:  [  OK  ]

In kernel 3.18.5, what is the output of

ethtool eth0

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Can this device flash "Bodhi's U-boot"?
November 25, 2015 06:22AM
I've retried my modifed dts file to make the uimage.
With the sheevaplug dtb file,the ethernet LED light was not up at all(88E6161),and the 88E1116 pot LED light is up,but can't ping,ant the SATA port not working.
With my modified dts file,the network was the same as above,but the SATA port do work.foud my sata drive in the kernel log.
Here is my modifed dts file:
/*
 * Marvell RD88F6181 A Board descrition
 *
 * Andrew Lunn <andrew@lunn.ch>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 *
 * This file contains the definitions for the board with the A0 or
 * higher stepping of the SoC. The ethernet switch does not have a
 * "wan" port.
 */

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

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

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

	mbus {
		pcie-controller {
			status = "okay";

			pcie@1,0 {
				status = "okay";
			};

			pcie@2,0 {
				status = "okay";
			};
		};
	};

	ocp@f1000000 {
		pinctrl: pin-controller@10000 {
			pmx_led_white_health: pmx-led-white-health {
				marvell,pins = "mpp7";
				marvell,function = "gpo";
			};
			pmx_led_white_pulse: pmx-led-white-pulse {
				marvell,pins = "mpp14";
				marvell,function = "gpio";
			};
			pmx_btn_wps: pmx-btn-wps {
				marvell,pins = "mpp47";
				marvell,function = "gpio";
			};
			pmx_btn_reset: pmx-btn-reset {
				marvell,pins = "mpp48";
				marvell,function = "gpio";
			};
		};

		rtc@10300 {
			status = "okay";
		};

		serial@12000 {
			status = "okay";
		};

	};
	
	mvsw61xx {
		compatible = "marvell,88e6161";
		status = "okay";
		reg = <0x10>;

		mii-bus = <&mdio>;
		cpu-port-0 = <5>;
		is-indirect;
	};
};

&mdio {
	status = "okay";

	ethphy1: ethernet-phy@11 {
		 reg = <11>;
		 speed = <1000>;
		 duplex = <1>;
	};
};

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

&eth1 {
	status = "okay";

	ethernet1-port@0 {
		 phy-handle = <&ethphy1>;
		 speed = <1000>;
		 duplex = <1>;
	};
};

the uboot output(can't ping):
U-Boot 2015.10-tld-1 (Nov 17 2015 - 23:01:16 -0800)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Sheevaplug> 
  base bdinfo boot bootd bootm bootp bootz chpart cmp coninfo cp crc32 date
  dhcp dns echo editenv env ...
Sheevaplug> pri
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 1430/131068 bytes
Sheevaplug> setenv ipaddr 192.168.1.200
Sheevaplug> setenv serverip 192.168.1.3
Sheevaplug> ping 192.168.1.3
Using egiga0 device
ping failed; host 192.168.1.3 is not alive

ant the kernle log with my dts file:
U-Boot 2015.10-tld-1 (Nov 17 2015 - 23:01:16 -0800)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Sheevaplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            3966976         00017378-01     83
loading envs from usb 0 ...
Unknown command 'load' - try 'help'
2876032 bytes read in 536 ms (5.1 MiB/s)
6535284 bytes read in 825 ms (7.6 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.18.5-kirkwood-tld-1
   Created:      2015-11-25  12:47:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2875968 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.18.5-kirkwood-tld-1
   Created:      2015-02-19   1:49:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6535220 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.5-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 PREEMPT Thu Feb 5 17:58:07 PST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 504784K/524288K available (5640K kernel code, 365K rwdata, 1920K rodata, 268K init, 305K bss, 19504K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc076a240   (7561 kB)
[    0.000000]       .init : 0xc076b000 - 0xc07ae000   ( 268 kB)
[    0.000000]       .data : 0xc07ae000 - 0xc08096fc   ( 366 kB)
[    0.000000]        .bss : 0xc08096fc - 0xc0855d84   ( 306 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000017] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    0.000423] Console: colour dummy device 80x30
[    0.000455] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090125] pid_max: default: 32768 minimum: 301
[    0.090275] Security Framework initialized
[    0.090384] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090405] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091155] Initializing cgroup subsys devices
[    0.091189] Initializing cgroup subsys freezer
[    0.091222] Initializing cgroup subsys net_cls
[    0.091246] Initializing cgroup subsys blkio
[    0.091354] CPU: Testing write buffer coherency: ok
[    0.091808] Setting up static identity map for 0x557418 - 0x557470
[    0.092116] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.094607] devtmpfs: initialized
[    0.097296] prandom: seed boundary self test passed
[    0.101368] prandom: 100 self tests passed
[    0.101396] pinctrl core: initialized pinctrl subsystem
[    0.101900] regulator-dummy: no parameters
[    0.106139] NET: Registered protocol family 16
[    0.106619] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130124] cpuidle: using governor ladder
[    0.160123] cpuidle: using governor menu
[    0.160560] Feroceon L2: Enabling L2
[    0.160608] Feroceon L2: Cache support initialised.
[    0.160996] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161095] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.165760] No ATAGs?
[    0.201827] vgaarb: loaded
[    0.202207] usbcore: registered new interface driver usbfs
[    0.202289] usbcore: registered new interface driver hub
[    0.202356] usbcore: registered new device driver usb
[    0.203445] Switched to clocksource orion_clocksource
[    0.241947] NET: Registered protocol family 2
[    0.242704] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.242762] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.242815] TCP: Hash tables configured (established 4096 bind 4096)
[    0.242882] TCP: reno registered
[    0.242896] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.242918] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.243122] NET: Registered protocol family 1
[    0.243530] RPC: Registered named UNIX socket transport module.
[    0.243543] RPC: Registered udp transport module.
[    0.243550] RPC: Registered tcp transport module.
[    0.243557] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.243830] Unpacking initramfs...
[    0.798411] Freeing initrd memory: 6384K (c1100000 - c173c000)
[    0.798544] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.799921] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.799956] Initialise system trusted keyring
[    0.800056] audit: initializing netlink subsys (disabled)
[    0.800111] audit: type=2000 audit(0.790:1): initialized
[    0.800919] zpool: loaded
[    0.800936] zbud: loaded
[    0.801242] VFS: Disk quotas dquot_6.5.2
[    0.801303] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.801905] NFS: Registering the id_resolver key type
[    0.801949] Key type id_resolver registered
[    0.801958] Key type id_legacy registered
[    0.801985] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.802001] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.802223] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.802561] msgmni has been set to 998
[    0.802726] Key type big_key registered
[    0.805785] alg: No test for stdrng (krng)
[    0.805831] Key type asymmetric registered
[    0.805848] Asymmetric key parser 'x509' registered
[    0.805940] bounce: pool size: 64 pages
[    0.806035] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.806058] io scheduler noop registered
[    0.806075] io scheduler deadline registered
[    0.806133] io scheduler cfq registered (default)
[    0.807467] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.808135] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.808539] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.809023] mvebu-pcie mbus:pcie-controller: ignoring PCIe DT node, missing pcie-port property
[    0.809407] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.809426] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.809440] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.809453] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.809778] PCI: bus0: Fast back to back transfers disabled
[    0.809795] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.809969] PCI: bus1: Fast back to back transfers enabled
[    0.810020] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.810308] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.843525] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.883513] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.883701] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.923511] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.963510] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.963952] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.965361] console [ttyS0] disabled
[    0.965425] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.636399] console [ttyS0] enabled
[    1.641282] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[    1.647699] nand: ST Micro NAND 64MiB 3,3V 8-bit
[    1.652337] nand: 64MiB, SLC, page size: 512, OOB size: 16
[    1.657880] Scanning device for bad blocks
[    1.886580] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.892878] Creating 4 MTD partitions on "orion_nand":
[    1.898065] 0x000000000000-0x000000100000 : "u-boot"
[    1.903504] 0x000000100000-0x000000500000 : "uImage"
[    1.908933] 0x000000500000-0x000002500000 : "rootfs"
[    1.914726] 0x000002500000-0x000004000000 : "data"
[    1.921140] libphy: Fixed MDIO Bus: probed
[    1.925596] libphy: orion_mdio_bus: probed
[    1.930062] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.938301] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    1.947161] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    1.955566] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.962130] ehci-pci: EHCI PCI platform driver
[    1.966712] ehci-orion: EHCI orion driver
[    1.970903] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.976492] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.984373] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.003487] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.009721] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.016566] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.023839] usb usb1: Product: EHCI Host Controller
[    2.028739] usb usb1: Manufacturer: Linux 3.18.5-kirkwood-tld-1 ehci_hcd
[    2.035488] usb usb1: SerialNumber: f1050000.ehci
[    2.040948] hub 1-0:1.0: USB hub found
[    2.044875] hub 1-0:1.0: 1 port detected
[    2.049724] mousedev: PS/2 mouse device common for all mice
[    2.056006] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.063083] i2c /dev entries driver
[    2.067546] hidraw: raw HID events driver (C) Jiri Kosina
[    2.073342] drop_monitor: Initializing network drop monitor service
[    2.079922] TCP: cubic registered
[    2.083263] NET: Registered protocol family 17
[    2.087887] Key type dns_resolver registered
[    2.092979] Loading compiled-in X.509 certificates
[    2.097850] registered taskstats version 1
[    2.102942] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    2.111486] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 16:38:45 UTC (946744725)
[    2.122205] Freeing unused kernel memory: 268K (c076b000 - c07ae000)
Loading, please wait...
[    2.198501] systemd-udevd[55]: starting version 215
[    2.215751] random: systemd-udevd urandom read with 3 bits of entropy available
[    2.287468] Distributed Switch Architecture driver version 0.1
[    2.293376] eth0[0]: could not detect attached switch
[    2.335034] eth0[0]: couldn't create dsa switch instance (error -22)
[    2.341645] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    2.363620] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.393287] SCSI subsystem initialized
[    2.420402] mvsdio f1090000.mvsdio: Got CD GPIO
[    2.491178] sata_mv f1080000.sata: slots 32 ports 2
[    2.496430] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    2.531170] scsi host0: sata_mv
[    2.534903] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[    2.541659] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.567434] hub 1-1:1.0: USB hub found
[    2.573581] scsi host1: sata_mv
[    2.577087] ata1: SATA max UDMA/133 irq 32
[    2.581222] ata2: SATA max UDMA/133 irq 32
[    2.585447] hub 1-1:1.0: 2 ports detected
[    2.590723] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    2.642202] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    2.863763] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    2.976129] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=0109
[    2.983052] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.990459] ata1: SATA link down (SStatus 0 SControl F300)
[    2.995999] usb 1-1.1: Product: USB2.0-CRW
[    3.000112] usb 1-1.1: Manufacturer: Generic
[    3.004484] usb 1-1.1: SerialNumber: 20090815198100000
[    3.028637] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    3.038262] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    3.045070] scsi host2: usb-storage 1-1.1:1.0
[    3.050403] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    3.059572] usbcore: registered new interface driver usb-storage
[    3.068747] usbcore: registered new interface driver uas
[    3.373494] ata2: SATA link down (SStatus 0 SControl F300)
[    4.044741] scsi 2:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[    4.061472] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[    4.725679] sd 2:0:0:0: [sda] 3970048 512-byte logical blocks: (2.03 GB/1.89 GiB)
[    4.733911] sd 2:0:0:0: [sda] Write Protect is off
[    4.739410] sd 2:0:0:0: [sda] No Caching mode page found
[    4.744781] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.758529]  sda: sda1
[    4.764665] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    4.774501] sd 2:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   15.104368] systemd-udevd[260]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   15.701077] orion_wdt: Initial timeout 21 sec
[   15.713353] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[   15.764118] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
done.
[ ok ] Activating swap...done.
[   17.074438] random: nonblocking pool is initialized
[....] Checking root file system...fsck from util-linux 2.25.2
/run/rootdev: clean, 14305/124160 files, 139205/495872 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files....
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.074622] NET: Registered protocol family 10
[   20.195546] 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.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 192.168.0.13
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

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

bound: renewal in 478006122 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1204 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1202 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Sat Jan  1 08:28:01 PST 2000 on ttyS0
Linux debian 3.18.5-kirkwood-tld-1 #1 PREEMPT Thu Feb 5 17:58:07 PST 2015 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
eth0      Link encap:Ethernet  HWaddr b6:d0:5e:0f:a1:17  
          inet6 addr: fe80::b4d0:5eff:fe0f:a117/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:6395 (6.2 KiB)
          Interrupt:88 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:112 (112.0 B)  TX bytes:112 (112.0 B)

root@debian:~# [  665.059499] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen
[  665.066965] ata1: edma_err_cause=00000010 pp_flags=00000000, dev connect
[  665.074045] ata1: SError: { PHYRdyChg DevExch }
[  665.078627] ata1: hard resetting link
[  667.363492] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[  667.403529] ata1.00: ATA-8: Hitachi HTS545025B9A300, PB2OC64G, max UDMA/133
[  667.410533] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[  667.473523] ata1.00: configured for UDMA/133
[  667.477828] ata1: EH complete
[  667.481174] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54502 C64G PQ: 0 ANSI: 5
[  667.494279] sd 0:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[  667.504228] sd 0:0:0:0: Attached scsi generic sg1 type 0
[  667.509861] platform mv643xx_eth_port.1: Driver mv643xx_eth_port requests probe deferral
[  667.523195] sd 0:0:0:0: [sdb] Write Protect is off
[  667.533969] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  667.723997]  sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 sdb8 sdb9 sdb10 sdb11 >
[  667.740788] sd 0:0:0:0: [sdb] Attached SCSI disk

All these above,I think the 88E6161 chip driver mabe cause the problem,or maybe need the right dts file to get that chip working.Thanks.
Re: Can this device flash "Bodhi's U-boot"?
November 25, 2015 01:54PM
> mabe cause the problem,or maybe need the right dts
> file to get that chip working.Thanks.

It could be the case. Currently we don't have any DSA driver in the kernel. So the switch will not work at all. I'll have to rebuild a new kernel that includes DSA, and this switch in particular.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 11/25/2015 05:33PM by bodhi.
Re: Can this device flash "Bodhi's U-boot"?
November 26, 2015 04:07PM
Re: Can this device flash "Bodhi's U-boot"?
November 27, 2015 02:56AM
The new kernel boot log:
Sheevaplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            3966976         00017378-01     83
loading envs from usb 0 ...
Unknown command 'load' - try 'help'
3147600 bytes read in 539 ms (5.6 MiB/s)
6720252 bytes read in 820 ms (7.8 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-2-test
   Created:      2000-01-01   0:28:56 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3147536 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-2-t
   Created:      2000-01-01   0:30:59 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6720188 Bytes = 6.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-2-test (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 PREEMPT Thu Nov 26 13:00:03 PST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503956K/524288K available (5999K kernel code, 571K rwdata, 1980K rodata, 280K init, 312K bss, 20332K 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 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d3004   (7981 kB)
[    0.000000]       .init : 0xc07d4000 - 0xc081a000   ( 280 kB)
[    0.000000]       .data : 0xc081a000 - 0xc08a8e2c   ( 572 kB)
[    0.000000]        .bss : 0xc08a8e2c - 0xc08f71a8   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000461] Console: colour dummy device 80x30
[    0.000494] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090110] pid_max: default: 32768 minimum: 301
[    0.090245] Security Framework initialized
[    0.090335] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090359] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091162] Initializing cgroup subsys blkio
[    0.091195] Initializing cgroup subsys devices
[    0.091222] Initializing cgroup subsys freezer
[    0.091257] Initializing cgroup subsys net_cls
[    0.091352] CPU: Testing write buffer coherency: ok
[    0.091793] Setting up static identity map for 0x8200 - 0x8258
[    0.092109] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095978] devtmpfs: initialized
[    0.101364] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101858] prandom: seed boundary self test passed
[    0.105618] prandom: 100 self tests passed
[    0.105648] pinctrl core: initialized pinctrl subsystem
[    0.107128] NET: Registered protocol family 16
[    0.107605] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130111] cpuidle: using governor ladder
[    0.160106] cpuidle: using governor menu
[    0.160560] Feroceon L2: Enabling L2
[    0.160608] Feroceon L2: Cache support initialised.
[    0.161018] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161128] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.166286] No ATAGs?
[    0.201638] vgaarb: loaded
[    0.202011] usbcore: registered new interface driver usbfs
[    0.202096] usbcore: registered new interface driver hub
[    0.202172] usbcore: registered new device driver usb
[    0.203311] clocksource: Switched to clocksource orion_clocksource
[    0.260633] NET: Registered protocol family 2
[    0.261295] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.261357] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.261409] TCP: Hash tables configured (established 4096 bind 4096)
[    0.261477] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261501] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.261705] NET: Registered protocol family 1
[    0.262110] RPC: Registered named UNIX socket transport module.
[    0.262123] RPC: Registered udp transport module.
[    0.262131] RPC: Registered tcp transport module.
[    0.262138] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.262411] Unpacking initramfs...
[    0.866398] Freeing initrd memory: 6564K (c1100000 - c1769000)
[    0.866538] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.867651] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.867683] Initialise system trusted keyring
[    0.867791] audit: initializing netlink subsys (disabled)
[    0.867842] audit: type=2000 audit(0.860:1): initialized
[    0.868495] zpool: loaded
[    0.868511] zbud: loaded
[    0.868818] VFS: Disk quotas dquot_6.6.0
[    0.868878] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.869504] NFS: Registering the id_resolver key type
[    0.869544] Key type id_resolver registered
[    0.869554] Key type id_legacy registered
[    0.869580] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.869594] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.869821] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.870353] Key type big_key registered
[    0.891154] Key type asymmetric registered
[    0.891179] Asymmetric key parser 'x509' registered
[    0.891275] bounce: pool size: 64 pages
[    0.891360] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.891382] io scheduler noop registered
[    0.891398] io scheduler deadline registered
[    0.891463] io scheduler cfq registered (default)
[    0.892851] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.893746] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.894181] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.894676] mvebu-pcie mbus:pcie-controller: ignoring PCIe DT node, missing pcie-port property
[    0.895081] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.895101] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.895115] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.895129] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.895520] PCI: bus0: Fast back to back transfers disabled
[    0.895548] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.895758] PCI: bus1: Fast back to back transfers enabled
[    0.895853] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.896154] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.934012] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.973992] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.974215] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013990] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.054001] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.054490] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.055989] console [ttyS0] disabled
[    1.056056] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.746287] console [ttyS0] enabled
[    1.751027] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[    1.757447] nand: ST Micro NAND 64MiB 3,3V 8-bit
[    1.762086] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    1.769458] Scanning device for bad blocks
[    1.998782] 4 cmdlinepart partitions found on MTD device orion_nand
[    2.005098] Creating 4 MTD partitions on "orion_nand":
[    2.010261] 0x000000000000-0x000000100000 : "u-boot"
[    2.016374] 0x000000100000-0x000000500000 : "uImage"
[    2.022437] 0x000000500000-0x000002500000 : "rootfs"
[    2.028928] 0x000002500000-0x000004000000 : "data"
[    2.036221] libphy: Fixed MDIO Bus: probed
[    2.040688] libphy: orion_mdio_bus: probed
[    2.045252] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.053632] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    2.062687] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.069339] ehci-pci: EHCI PCI platform driver
[    2.073930] ehci-orion: EHCI orion driver
[    2.078132] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.083721] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.091574] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.113347] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.119637] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.126490] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.133761] usb usb1: Product: EHCI Host Controller
[    2.138661] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-2-test ehci_hcd
[    2.145759] usb usb1: SerialNumber: f1050000.ehci
[    2.151244] hub 1-0:1.0: USB hub found
[    2.155102] hub 1-0:1.0: 1 port detected
[    2.159994] mousedev: PS/2 mouse device common for all mice
[    2.166344] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.173489] i2c /dev entries driver
[    2.177865] hidraw: raw HID events driver (C) Jiri Kosina
[    2.183706] drop_monitor: Initializing network drop monitor service
[    2.190240] NET: Registered protocol family 17
[    2.194879] Distributed Switch Architecture driver version 0.1
[    2.200767] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: could not detect attached switch
[    2.209192] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -22)
[    2.219076] Key type dns_resolver registered
[    2.224251] Loading compiled-in X.509 certificates
[    2.229092] registered taskstats version 1
[    2.233277] zswap: loading zswap
[    2.236559] zswap: using zbud pool
[    2.239983] zswap: using lzo compressor
[    2.252850] Key type encrypted registered
[    2.257907] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:52:41 UTC (946687961)
[    2.268716] Freeing unused kernel memory: 280K (c07d4000 - c081a000)
Loading, please wait...
[    2.343734] systemd-udevd[81]: starting version 215
[    2.350683] random: systemd-udevd urandom read with 3 bits of entropy available
[    2.473421] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.510969] SCSI subsystem initialized
[    2.538973] mvsdio f1090000.mvsdio: Got CD GPIO
[    2.611103] sata_mv f1080000.sata: slots 32 ports 2
[    2.633975] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[    2.640733] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.661811] scsi host0: sata_mv
[    2.667107] hub 1-1:1.0: USB hub found
[    2.673430] hub 1-1:1.0: 2 ports detected
[    2.693603] scsi host1: sata_mv
[    2.697177] ata1: SATA max UDMA/133 irq 32
[    2.701293] ata2: SATA max UDMA/133 irq 32
[    2.953346] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    3.065956] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=0109
[    3.072884] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.080282] usb 1-1.1: Product: USB2.0-CRW
[    3.084415] usb 1-1.1: Manufacturer: Generic
[    3.088704] usb 1-1.1: SerialNumber: 20090815198100000
[    3.093913] ata1: SATA link down (SStatus 0 SControl F300)
[    3.120495] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    3.127286] scsi host2: usb-storage 1-1.1:1.0
[    3.133868] usbcore: registered new interface driver usb-storage
[    3.143050] usbcore: registered new interface driver uas
[    3.463378] ata2: SATA link down (SStatus 0 SControl F300)
[    4.124691] scsi 2:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[    4.805635] sd 2:0:0:0: [sda] 3970048 512-byte logical blocks: (2.03 GB/1.89 GiB)
[    4.813865] sd 2:0:0:0: [sda] Write Protect is off
[    4.819363] sd 2:0:0:0: [sda] No Caching mode page found
[    4.824737] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.838748]  sda: sda1
[    4.844743] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    4.854641] sd 2:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   15.164256] systemd-udevd[285]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   15.670054] orion_wdt: Initial timeout 21 sec
done.
[....] Activating swap.[   16.973136] random: nonblocking pool is initialized
[ done.
[....] Checking root file system...fsck from util-linux 2.25.2
/run/rootdev: clean, 16851/124160 files, 166791/495872 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files....
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.062352] NET: Registered protocol family 10
[   20.176858] 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.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1225 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ 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...
1223 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login:

switch not working at all(no led light).
Re: Can this device flash "Bodhi's U-boot"?
November 27, 2015 05:16AM
wacke,

So Ethernet is working now

[ 20.176858] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled

But the switch is not yet. Did you modprobe the module as I suggested above?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Can this device flash "Bodhi's U-boot"?
November 30, 2015 05:12AM
Hi,bodhi
I've got this done with this dts file:
/*
* Marvell RD88F6181 A Board descrition
*
* Andrew Lunn <[email]andrew@lunn.ch[/email]>
*
* This file is licensed under the terms of the GNU General Public
* License version 2.  This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*
* This file contains the definitions for the board with the A0 or
* higher stepping of the SoC. The ethernet switch does not have a
* "wan" port.
*/

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

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

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

        mbus {
                pcie-controller {
                        status = "okay";

                        pcie@1,0 {
                                status = "okay";
                        };

                        pcie@2,0 {
                                status = "okay";
                        };
                };
        };

        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@0 {
                compatible = "marvell,dsa";
                #address-cells = <2>;
                #size-cells = <0>;
               
                interrupts = <10>;
                dsa,ethernet = <&eth0port>;
                dsa,mii-bus = <&mdio>;

                switch@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "okay";
                        reg = <10 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";
                        };
                };
        };
};

&mdio {
        status = "okay";
};

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

&eth1 {
        status = "okay";
        
        ethernet1-port@0 {
                 compatible = "marvell,88e1116r";
                 speed = <1000>;
                 duplex = <1>;
        };
};

both 88e6161 and 88e1116 working,and there is no need to upgrade to new uboot.

Thank you very much for all of your works.
Re: Can this device flash "Bodhi's U-boot"?
November 30, 2015 11:36AM
wacke,

>
> both 88e6161 and 88e1116 working,and there is no
> need to upgrade to new uboot.

Cool! now I would suggest some enhancement to this DTS:

model = "QiZhiTong 501M V2";
        compatible = "marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";
The compatible field needs some specific id for the QiZiTong, so that it can be identified later (Model is not enough). You can look at the Zyxel kirkwood-nsa32x.dts for example.

And is there only one SATA usable?
sata@80000 {
                        status = "okay";
                        nr-ports = <1>;
                };

If you could, post the serial bootlog where we can see all the peripherals work (SD card, SATA, Ethernet, Switch,... ). After that I'll include the DTS in the patch for next build.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 11/30/2015 11:53AM by bodhi.
Re: Can this device flash "Bodhi's U-boot"?
November 30, 2015 05:50PM
the boot log of openwrt build:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: MB-302 v1.0

U-Boot 1.1.4 (Nov 11 2010 - 16:09:33) Marvell version: 3.4.27 T06

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

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

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:64 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled

Module 0 is RGMII

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit 'Tab' key to switch the boot entry:  0

SD found. Card desciption is:
Manufacturer:       0x1c, OEM "SV"
Product name:       "USD  ", revision 1.0
Serial number:      21367872
Manufacturing date: 6/2008
CRC:                0x00, b0 = 0

1894174 bytes read
## Booting image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-4.3
   Created:      2015-11-29  13:35:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1894110 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.3.0 (Wacke@HOME-Server) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47397) ) #44 Sun Nov 29 21:35:02 CST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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/mmcblk0p1 noinitrd 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: 514224K/524288K available (3882K kernel code, 133K rwdata, 1072K rodata, 164K init, 192K bss, 10064K 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 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04dedc4   (4956 kB)
[    0.000000]       .init : 0xc04df000 - 0xc0508000   ( 164 kB)
[    0.000000]       .data : 0xc0508000 - 0xc05295f0   ( 134 kB)
[    0.000000]        .bss : 0xc05295f0 - 0xc0559888   ( 193 kB)
[    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.000135] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090081] pid_max: default: 32768 minimum: 301
[    0.090201] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090217] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090706] CPU: Testing write buffer coherency: ok
[    0.091016] Setting up static identity map for 0x81e0 - 0x821c
[    0.091279] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095448] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.095569] pinctrl core: initialized pinctrl subsystem
[    0.096593] NET: Registered protocol family 16
[    0.096949] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.097755] cpuidle: using governor ladder
[    0.098096] Feroceon L2: Enabling L2
[    0.098136] Feroceon L2: Cache support initialised.
[    0.098394] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.114022] SCSI subsystem initialized
[    0.114345] usbcore: registered new interface driver usbfs
[    0.114419] usbcore: registered new interface driver hub
[    0.114487] usbcore: registered new device driver usb
[    0.115374] clocksource: Switched to clocksource orion_clocksource
[    0.116324] NET: Registered protocol family 2
[    0.116843] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.116899] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.116949] TCP: Hash tables configured (established 4096 bind 4096)
[    0.117003] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.117025] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.117176] NET: Registered protocol family 1
[    0.118006] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.121426] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.121446] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.122468] io scheduler noop registered
[    0.122487] io scheduler deadline registered (default)
[    0.123579] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.124133] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.124472] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.124743] mvebu-pcie mbus:pcie-controller: ignoring PCIe DT node, missing pcie-port property
[    0.125031] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.125048] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.125059] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.125071] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.125317] PCI: bus0: Fast back to back transfers disabled
[    0.125331] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.125491] PCI: bus1: Fast back to back transfers enabled
[    0.125535] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.157228] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.158198] console [ttyS0] disabled
[    0.158264] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.542548] console [ttyS0] enabled
[    5.585398] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[    5.661500] nand: ST Micro NAND 64MiB 3,3V 8-bit
[    5.716808] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    5.804409] Scanning device for bad blocks
[    6.069653] 3 ofpart partitions found on MTD device orion_nand
[    6.139489] Creating 3 MTD partitions on "orion_nand":
[    6.201049] 0x000000000000-0x000000100000 : "u-boot"
[    6.298879] 0x000000100000-0x000000300000 : "uImage"
[    6.359487] 0x000000300000-0x000000800000 : "rootfs"
[    6.420088] mtd: device 2 (rootfs) set to be root filesystem
[    6.488006] mtdsplit: squashfs has invalid size in "rootfs"
[    6.555804] libphy: Fixed MDIO Bus: probed
[    6.605134] libphy: orion_mdio_bus: probed
[    6.654296] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.736889] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:1d:38:44
[    6.841700] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:1d:38:45
[    6.946023] sky2: driver version 1.30
[    6.989917] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.068084] ehci-pci: EHCI PCI platform driver
[    7.121365] ehci-platform: EHCI generic platform driver
[    7.184041] ehci-orion: EHCI orion driver
[    7.232167] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.297884] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.389736] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.475396] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.547945] hub 1-0:1.0: USB hub found
[    7.593020] hub 1-0:1.0: 1 port detected
[    7.640434] usbcore: registered new interface driver usb-storage
[    7.712919] mvsdio f1090000.mvsdio: Got CD GPIO
[    7.806046] NET: Registered protocol family 10
[    7.860614] NET: Registered protocol family 17
[    7.913912] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    8.065125] Distributed Switch Architecture driver version 0.1
[    8.138410] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 (A2) switch
[    8.272733] mmc0: host does not support reading read-only switch, assuming write-enable
[    8.368652] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.449006] mmc0: new high speed SD card at address b368
[    8.513135] mmcblk0: mmc0:b368 USD   1.87 GiB 
[    8.567656]  mmcblk0: p1
[    8.656407] hub 1-1:1.0: USB hub found
[    8.701788] hub 1-1:1.0: 2 ports detected
[    8.752492] libphy: dsa slave smi: probed
[    8.807448] 8021q: 802.1Q VLAN Support v1.8
[    8.859445] hctosys: unable to open rtc device (rtc0)
[    8.921321] Waiting 1 sec before mounting root device...
[    9.985437] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
[   10.062128] EXT4-fs (mmcblk0p1): couldn't mount as ext3 due to feature incompatibilities
[   10.161716] EXT4-fs (mmcblk0p1): mounting ext2 file system using the ext4 subsystem
[   10.264191] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null)
[   10.353851] VFS: Mounted root (ext2 filesystem) readonly on device 179:1.
[   10.435640] Freeing unused kernel memory: 164K (c04df000 - c0508000)
[   10.708063] init: Console is alive
[   10.883786] sata_mv f1080000.sata: slots 32 ports 1
[   10.943870] scsi host0: sata_mv
[   10.981727] ata1: SATA max UDMA/133 irq 32
[   11.375394] ata1: SATA link down (SStatus 0 SControl F300)
[   11.749364] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   14.911926] mount_root: mounting /dev/root
[   14.961297] EXT4-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
[   15.068170] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[   15.138444] procd: - early -
[   16.147855] procd: - ubus -
[   17.186555] random: ubusd urandom read with 39 bits of entropy available
[   18.276341] procd: - init -
Please press Enter to activate this console.
[   19.957191] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.030055] Netfilter messages via NETLINK v0.30.
[   20.088316] ip_set: protocol 6
[   20.145433] i2c /dev entries driver
[   20.201591] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.271621] nf_conntrack version 0.5.0 (8037 buckets, 32148 max)
[   20.365110] xt_time: kernel timezone is -0000
[   20.424406] PPP generic driver version 2.4.2
[   20.477235] NET: Registered protocol family 24
[   22.991832] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   23.283284] dsa dsa@0 lan1: failed to reflect master change
[   23.350093] device lan1 entered promiscuous mode
[   23.405380] device eth0 entered promiscuous mode
[   23.471301] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   23.574603] dsa dsa@0 lan2: failed to reflect master change
[   23.641496] device lan2 entered promiscuous mode
[   23.732705] dsa dsa@0 lan3: failed to reflect master change
[   23.799449] device lan3 entered promiscuous mode
[   24.070903] dsa dsa@0 lan4: failed to reflect master change
[   24.137649] device lan4 entered promiscuous mode
[   24.261774] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   24.857551] dsa dsa@0 lan3: Link is Down
[   24.906678] dsa dsa@0 lan1: Link is Down
[   24.955718] dsa dsa@0 lan2: Link is Down
[   25.847481] dsa dsa@0 lan4: Link is Down
[   26.947819] dsa dsa@0 lan1: Link is Up - 1Gbps/Full - flow control off
[   27.028191] br-lan: port 1(lan1) entered forwarding state
[   27.092869] br-lan: port 1(lan1) entered forwarding state
[   27.158560] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   29.085384] br-lan: port 1(lan1) entered forwarding state
[   39.643523] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   41.237310] random: nonblocking pool is initialized
[   54.904799] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   70.168611] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   85.428171] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[  100.688366] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[  115.949138] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled

I booted from SD card,and there is only one SATA port on the board,tested working.

The 88e6161 switch working but there was only one led light working(there is two led on every port).

The 88e1116 chip working only at 1000M full duplex,can't compatible with 100M and 10M.
Re: Can this device flash "Bodhi's U-boot"?
November 30, 2015 07:07PM
Re: Can this device flash "Bodhi's U-boot"?
December 01, 2015 05:48AM
boot log of debian:
U-Boot 2015.10-tld-1 (Nov 17 2015 - 23:01:16 -0800)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Sheevaplug> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            3966976         00017378-01     83
loading envs from usb 0 ...
Unknown command 'load' - try 'help'
3147130 bytes read in 544 ms (5.5 MiB/s)
6720252 bytes read in 826 ms (7.8 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-2-test
   Created:      2000-01-01   0:10:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3147066 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-2-t
   Created:      2000-01-01   0:10:30 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6720188 Bytes = 6.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-2-test (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 PREEMPT Thu Nov 26 13:00:03 PST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 503956K/524288K available (5999K kernel code, 571K rwdata, 1980K rodata, 280K init, 312K bss, 20332K 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 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07d3004   (7981 kB)
[    0.000000]       .init : 0xc07d4000 - 0xc081a000   ( 280 kB)
[    0.000000]       .data : 0xc081a000 - 0xc08a8e2c   ( 572 kB)
[    0.000000]        .bss : 0xc08a8e2c - 0xc08f71a8   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000458] Console: colour dummy device 80x30
[    0.000491] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090110] pid_max: default: 32768 minimum: 301
[    0.090245] Security Framework initialized
[    0.090334] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090355] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091160] Initializing cgroup subsys blkio
[    0.091195] Initializing cgroup subsys devices
[    0.091219] Initializing cgroup subsys freezer
[    0.091256] Initializing cgroup subsys net_cls
[    0.091353] CPU: Testing write buffer coherency: ok
[    0.091794] Setting up static identity map for 0x8200 - 0x8258
[    0.092107] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095980] devtmpfs: initialized
[    0.101098] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101598] prandom: seed boundary self test passed
[    0.105358] prandom: 100 self tests passed
[    0.105387] pinctrl core: initialized pinctrl subsystem
[    0.106862] NET: Registered protocol family 16
[    0.107344] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130109] cpuidle: using governor ladder
[    0.160106] cpuidle: using governor menu
[    0.160556] Feroceon L2: Enabling L2
[    0.160605] Feroceon L2: Cache support initialised.
[    0.160998] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161106] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.166163] No ATAGs?
[    0.201631] vgaarb: loaded
[    0.202004] usbcore: registered new interface driver usbfs
[    0.202096] usbcore: registered new interface driver hub
[    0.202163] usbcore: registered new device driver usb
[    0.203286] clocksource: Switched to clocksource orion_clocksource
[    0.260464] NET: Registered protocol family 2
[    0.261122] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.261184] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.261236] TCP: Hash tables configured (established 4096 bind 4096)
[    0.261304] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.261329] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.261531] NET: Registered protocol family 1
[    0.261938] RPC: Registered named UNIX socket transport module.
[    0.261950] RPC: Registered udp transport module.
[    0.261958] RPC: Registered tcp transport module.
[    0.261966] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.262238] Unpacking initramfs...
[    0.866197] Freeing initrd memory: 6564K (c1100000 - c1769000)
[    0.866338] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.867449] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.867482] Initialise system trusted keyring
[    0.867597] audit: initializing netlink subsys (disabled)
[    0.867655] audit: type=2000 audit(0.860:1): initialized
[    0.868305] zpool: loaded
[    0.868322] zbud: loaded
[    0.868625] VFS: Disk quotas dquot_6.6.0
[    0.868685] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.869306] NFS: Registering the id_resolver key type
[    0.869344] Key type id_resolver registered
[    0.869354] Key type id_legacy registered
[    0.869380] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.869394] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.869623] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.870160] Key type big_key registered
[    0.890960] Key type asymmetric registered
[    0.890986] Asymmetric key parser 'x509' registered
[    0.891081] bounce: pool size: 64 pages
[    0.891166] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.891188] io scheduler noop registered
[    0.891203] io scheduler deadline registered
[    0.891268] io scheduler cfq registered (default)
[    0.892645] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.893528] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.893981] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.894480] mvebu-pcie mbus:pcie-controller: ignoring PCIe DT node, missing pcie-port property
[    0.894861] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.894880] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.894894] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.894909] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.895298] PCI: bus0: Fast back to back transfers disabled
[    0.895325] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.895536] PCI: bus1: Fast back to back transfers enabled
[    0.895630] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.895927] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.933984] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.973962] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.974186] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013970] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.053979] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.054472] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.055960] console [ttyS0] disabled
[    1.056026] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.746260] console [ttyS0] enabled
[    1.750996] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[    1.757420] nand: ST Micro NAND 64MiB 3,3V 8-bit
[    1.762059] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    1.769430] Scanning device for bad blocks
[    1.998758] 4 cmdlinepart partitions found on MTD device orion_nand
[    2.005078] Creating 4 MTD partitions on "orion_nand":
[    2.010242] 0x000000000000-0x000000100000 : "u-boot"
[    2.016355] 0x000000100000-0x000000500000 : "uImage"
[    2.022402] 0x000000500000-0x000002500000 : "rootfs"
[    2.028896] 0x000002500000-0x000004000000 : "data"
[    2.036182] libphy: Fixed MDIO Bus: probed
[    2.040637] libphy: orion_mdio_bus: probed
[    2.045029] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.053388] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    2.062798] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:00:00:00:00:00
[    2.071785] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.078392] ehci-pci: EHCI PCI platform driver
[    2.082928] ehci-orion: EHCI orion driver
[    2.087155] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.092694] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.100576] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.123326] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.129620] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.136473] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.143753] usb usb1: Product: EHCI Host Controller
[    2.148651] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-2-test ehci_hcd
[    2.155750] usb usb1: SerialNumber: f1050000.ehci
[    2.161248] hub 1-0:1.0: USB hub found
[    2.165107] hub 1-0:1.0: 1 port detected
[    2.169984] mousedev: PS/2 mouse device common for all mice
[    2.176332] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.183469] i2c /dev entries driver
[    2.187828] hidraw: raw HID events driver (C) Jiri Kosina
[    2.193683] drop_monitor: Initializing network drop monitor service
[    2.200237] NET: Registered protocol family 17
[    2.204881] Distributed Switch Architecture driver version 0.1
[    2.210793] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: could not detect attached switch
[    2.219220] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -22)
[    2.229105] Key type dns_resolver registered
[    2.234290] Loading compiled-in X.509 certificates
[    2.239126] registered taskstats version 1
[    2.243345] zswap: loading zswap
[    2.246597] zswap: using zbud pool
[    2.250018] zswap: using lzo compressor
[    2.262912] Key type encrypted registered
[    2.267753] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:22:06 UTC (946686126)
[    2.278569] Freeing unused kernel memory: 280K (c07d4000 - c081a000)
Loading, please wait...
[    2.353499] systemd-udevd[81]: starting version 215
[    2.360447] random: systemd-udevd urandom read with 3 bits of entropy available
[    2.483401] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.542999] mvsdio f1090000.mvsdio: Got CD GPIO
[    2.550348] SCSI subsystem initialized
[    2.620456] sata_mv f1080000.sata: slots 32 ports 1
[    2.643854] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[    2.656158] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.664809] scsi host0: sata_mv
[    2.668347] ata1: SATA max UDMA/133 irq 32
[    2.673524] hub 1-1:1.0: USB hub found
[    2.680247] hub 1-1:1.0: 2 ports detected
[    2.790822] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.801063] mmc0: new high speed SD card at address b368
[    2.811184] mmcblk0: mmc0:b368 USD   1.87 GiB 
[    2.820570]  mmcblk0: p1 p3
[    2.963338] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    3.013377] ata1: SATA link down (SStatus 0 SControl F300)
[    3.076108] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=0109
[    3.083052] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.091521] usb 1-1.1: Product: USB2.0-CRW
[    3.095713] usb 1-1.1: Manufacturer: Generic
[    3.100004] usb 1-1.1: SerialNumber: 20090815198100000
[    3.125576] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    3.132218] scsi host1: usb-storage 1-1.1:1.0
[    3.138476] usbcore: registered new interface driver usb-storage
[    3.147693] usbcore: registered new interface driver uas
[    4.134570] scsi 1:0:0:0: Direct-Access     Generic- SD/MMC           1.00 PQ: 0 ANSI: 0 CCS
[    4.815388] sd 1:0:0:0: [sda] 3970048 512-byte logical blocks: (2.03 GB/1.89 GiB)
[    4.823619] sd 1:0:0:0: [sda] Write Protect is off
[    4.829115] sd 1:0:0:0: [sda] No Caching mode page found
[    4.834493] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    4.848113]  sda: sda1
[    4.854121] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.864031] sd 1:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   14.734883] systemd-udevd[284]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   15.261419] orion_wdt: Initial timeout 21 sec
done.
[....] Activating swap.[   16.268888] random: nonblocking pool is initialized
[ done.
[....] Checking root file system...fsck from util-linux 2.25.2
/run/rootdev: clean, 16852/124160 files, 166800/495872 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files....
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   19.353472] NET: Registered protocol family 10
[   19.468382] 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.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b6:d0:5e:0f:a1:17
Sending on   LPF/eth0/b6:d0:5e:0f:a1:17
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 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1226 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1229 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 8 debian ttyS0

debian login:

It seems that the switch still not working,and is there anyway to boot your debian build from SD slot with original uboot?

The switch on openwrt build do working,maybe the uboot cause this?

The modified dts file:
/*
 * Marvell RD88F6181 A Board descrition
 *
 * Andrew Lunn <andrew@lunn.ch>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 *
 * This file contains the definitions for the board with the A0 or
 * higher stepping of the SoC. The ethernet switch does not have a
 * "wan" port.
 */

/dts-v1/;
#include "kirkwood-rd88f6281.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";
	};

	mbus {
		pcie-controller {
			status = "okay";

			pcie@1,0 {
				status = "okay";
			};

			pcie@2,0 {
				status = "okay";
			};
		};
	};

	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@0 {
		compatible = "marvell,dsa";
		#address-cells = <2>;
		#size-cells = <0>;
		
		interrupts = <10>;
		dsa,ethernet = <&eth0port>;
		dsa,mii-bus = <&mdio>;

		switch@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			reg = <10 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";
			};
		};
	};
};

&mdio {
	status = "okay";
};

&eth0 {
	status = "okay";
	
	ethernet0-port@0 {
	};
};

&eth1 {
	status = "okay";
	
	ethernet1-port@0 {
                 speed = <1000>;
                 duplex = <1>;
	};
};
Re: Can this device flash "Bodhi's U-boot"?
December 02, 2015 12:01AM
wacke,

openWRT has this driver compiled into the kernel, that's why it works during boot. I've configured the switch driver as a module in the kernel (the Debian way). You'll need to modprobe it as I said above.

And the DTS names should be in lowercase:
compatible = "qizhitong,501m_v2","marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Can this device flash "Bodhi's U-boot"?
December 02, 2015 04:50AM
I've retried to modprobe the switch driver,but nothing happend at all.
Re: Can this device flash "Bodhi's U-boot"?
December 02, 2015 01:53PM
wacke,

Yes, let's try with stock u-boot. Concat the DTB into uImage as described in section 4b in the kernel thread (save your original uImage so it can be restored to boot with separte DTB later):

Quote

4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD)

With only the USB rootfs mounted on the box. Power up and interrupt serial console:

usb start
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
setenv bootcmd 'ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb $0:1 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000'

You might need to adjust the serial speed 115200 to 9600 if needed.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Can this device flash "Bodhi's U-boot"?
December 02, 2015 09:19PM
Re: Can this device flash "Bodhi's U-boot"?
December 03, 2015 09:15AM
boot log of the new kernel with stock u-boot:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: MB-302 v1.0

U-Boot 1.1.4 (Nov 11 2010 - 16:09:33) Marvell version: 3.4.27 T06

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

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

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:64 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled

Module 0 is RGMII

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit 'Tab' key to switch the boot entry:  0
bootm: Go To U-Boot                    
MB302>> usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
MB302>> setenv bootargs 'console=ttyS0,9600 root=/dev/sda1 rootdelay=10'
MB302>> setenv bootcmd 'ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000'
MB302>> run bootcmd
....
....................................................................................................................................................................................................................

3163089 bytes read
....
....................................................................................................................................................................................................................
....................................................................................................................................................................................................................

6696887 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.4.0-rc3-kirkwood-tld-1
   Created:      2000-01-01  18:48:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3163025 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.4.0-rc3-kirkwood-tld
   Created:      2000-01-01  18:48:55 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6696823 Bytes =  6.4 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] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.0-rc3-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Wed Dec 2 14:33:42 PST 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: console=ttyS0,9600 root=/dev/sda1 rootdelay=10
[    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: 503944K/524288K available (6011K kernel code, 573K rwdata, 1992K rodata, 292K init, 312K bss, 20344K 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 - 0xc07d8e7c   (8004 kB)
[    0.000000]       .init : 0xc07d9000 - 0xc0822000   ( 292 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b1634   ( 574 kB)
[    0.000000]        .bss : 0xc08b1634 - 0xc08ff970   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000299] Console: colour dummy device 80x30
[    0.000327] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090100] pid_max: default: 32768 minimum: 301
[    0.090217] Security Framework initialized
[    0.090292] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090311] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091058] Initializing cgroup subsys io
[    0.091090] Initializing cgroup subsys devices
[    0.091112] Initializing cgroup subsys freezer
[    0.091145] Initializing cgroup subsys net_cls
[    0.091221] CPU: Testing write buffer coherency: ok
[    0.091623] Setting up static identity map for 0x8200 - 0x8258
[    0.091899] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095337] devtmpfs: initialized
[    0.099511] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.099950] prandom: seed boundary self test passed
[    0.103749] prandom: 100 self tests passed
[    0.103782] pinctrl core: initialized pinctrl subsystem
[    0.105057] NET: Registered protocol family 16
[    0.105439] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130095] cpuidle: using governor ladder
[    0.160095] cpuidle: using governor menu
[    0.160470] Feroceon L2: Enabling L2
[    0.160513] Feroceon L2: Cache support initialised.
[    0.160867] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.160970] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.165968] No ATAGs?
[    0.201506] vgaarb: loaded
[    0.201863] usbcore: registered new interface driver usbfs
[    0.201943] usbcore: registered new interface driver hub
[    0.202003] usbcore: registered new device driver usb
[    0.203039] clocksource: Switched to clocksource orion_clocksource
[    0.257481] NET: Registered protocol family 2
[    0.258248] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.258309] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.258361] TCP: Hash tables configured (established 4096 bind 4096)
[    0.258422] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.258446] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.258636] NET: Registered protocol family 1
[    0.259026] RPC: Registered named UNIX socket transport module.
[    0.259039] RPC: Registered udp transport module.
[    0.259047] RPC: Registered tcp transport module.
[    0.259054] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.259322] Unpacking initramfs...
[    0.851353] Freeing initrd memory: 6540K (c1100000 - c1763000)
[    0.851457] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.852529] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.852598] audit: initializing netlink subsys (disabled)
[    0.852644] audit: type=2000 audit(0.840:1): initialized
[    0.852989] Initialise system trusted keyring
[    0.853456] zbud: loaded
[    0.853745] VFS: Disk quotas dquot_6.6.0
[    0.853804] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.854339] NFS: Registering the id_resolver key type
[    0.854394] Key type id_resolver registered
[    0.854404] Key type id_legacy registered
[    0.854430] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.854444] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.854670] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.855194] Key type big_key registered
[    0.874898] Key type asymmetric registered
[    0.874920] Asymmetric key parser 'x509' registered
[    0.875011] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.875033] io scheduler noop registered
[    0.875049] io scheduler deadline registered
[    0.875108] io scheduler cfq registered (default)
[    0.876426] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.877094] irq: Cannot allocate irq_descs @ IRQ35, assuming pre-allocated
[    0.877512] irq: Cannot allocate irq_descs @ IRQ67, assuming pre-allocated
[    0.877928] mvebu-pcie mbus:pcie-controller: ignoring /mbus/pcie-controller/pcie@2,0, missing pcie-port property
[    0.877941] ------------[ cut here ]------------
[    0.877964] WARNING: CPU: 0 PID: 1 at drivers/base/devres.c:888 mvebu_pcie_probe+0x224/0x6d8()
[    0.877972] Modules linked in:
[    0.877987] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-rc3-kirkwood-tld-1 #1
[    0.877995] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    0.878027] [<c0016810>] (unwind_backtrace) from [<c0012a64>] (show_stack+0x10/0x14)
[    0.878047] [<c0012a64>] (show_stack) from [<c001eafc>] (warn_slowpath_common+0x88/0xb0)
[    0.878064] [<c001eafc>] (warn_slowpath_common) from [<c001ebb4>] (warn_slowpath_null+0x18/0x20)
[    0.878084] [<c001ebb4>] (warn_slowpath_null) from [<c03b0450>] (mvebu_pcie_probe+0x224/0x6d8)
[    0.878104] [<c03b0450>] (mvebu_pcie_probe) from [<c03eea4c>] (platform_drv_probe+0x50/0xa0)
[    0.878121] [<c03eea4c>] (platform_drv_probe) from [<c03ecc30>] (driver_probe_device+0x18c/0x410)
[    0.878136] [<c03ecc30>] (driver_probe_device) from [<c03ecf1c>] (__driver_attach+0x68/0x8c)
[    0.878156] [<c03ecf1c>] (__driver_attach) from [<c03eb0b0>] (bus_for_each_dev+0x6c/0x90)
[    0.878175] [<c03eb0b0>] (bus_for_each_dev) from [<c03ec204>] (bus_add_driver+0x114/0x240)
[    0.878192] [<c03ec204>] (bus_add_driver) from [<c03ed9d4>] (driver_register+0x9c/0xe0)
[    0.878207] [<c03ed9d4>] (driver_register) from [<c00097a0>] (do_one_initcall+0x114/0x1d8)
[    0.878225] [<c00097a0>] (do_one_initcall) from [<c07d9e20>] (kernel_init_freeable+0x18c/0x258)
[    0.878246] [<c07d9e20>] (kernel_init_freeable) from [<c05b1f5c>] (kernel_init+0x8/0xe4)
[    0.878264] [<c05b1f5c>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    0.878292] ---[ end trace 63e4d38e533ec31b ]---
[    0.878302] ------------[ cut here ]------------
[    0.878319] WARNING: CPU: 0 PID: 1 at drivers/base/devres.c:888 mvebu_pcie_probe+0x234/0x6d8()
[    0.878326] Modules linked in:
[    0.878339] CPU: 0 PID: 1 Comm: swapper Tainted: G        W       4.4.0-rc3-kirkwood-tld-1 #1
[    0.878347] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    0.878368] [<c0016810>] (unwind_backtrace) from [<c0012a64>] (show_stack+0x10/0x14)
[    0.878387] [<c0012a64>] (show_stack) from [<c001eafc>] (warn_slowpath_common+0x88/0xb0)
[    0.878404] [<c001eafc>] (warn_slowpath_common) from [<c001ebb4>] (warn_slowpath_null+0x18/0x20)
[    0.878422] [<c001ebb4>] (warn_slowpath_null) from [<c03b0460>] (mvebu_pcie_probe+0x234/0x6d8)
[    0.878441] [<c03b0460>] (mvebu_pcie_probe) from [<c03eea4c>] (platform_drv_probe+0x50/0xa0)
[    0.878457] [<c03eea4c>] (platform_drv_probe) from [<c03ecc30>] (driver_probe_device+0x18c/0x410)
[    0.878472] [<c03ecc30>] (driver_probe_device) from [<c03ecf1c>] (__driver_attach+0x68/0x8c)
[    0.878489] [<c03ecf1c>] (__driver_attach) from [<c03eb0b0>] (bus_for_each_dev+0x6c/0x90)
[    0.878507] [<c03eb0b0>] (bus_for_each_dev) from [<c03ec204>] (bus_add_driver+0x114/0x240)
[    0.878523] [<c03ec204>] (bus_add_driver) from [<c03ed9d4>] (driver_register+0x9c/0xe0)
[    0.878539] [<c03ed9d4>] (driver_register) from [<c00097a0>] (do_one_initcall+0x114/0x1d8)
[    0.878555] [<c00097a0>] (do_one_initcall) from [<c07d9e20>] (kernel_init_freeable+0x18c/0x258)
[    0.878573] [<c07d9e20>] (kernel_init_freeable) from [<c05b1f5c>] (kernel_init+0x8/0xe4)
[    0.878590] [<c05b1f5c>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[    0.878599] ---[ end trace 63e4d38e533ec31c ]---
[    0.879022] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.879041] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.879055] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.879069] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.879454] PCI: bus0: Fast back to back transfers disabled
[    0.879481] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.879678] PCI: bus1: Fast back to back transfers enabled
[    0.879767] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.880087] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.913731] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.913966] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.953734] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.954200] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.955605] console [ttyS0] disabled
[    0.955665] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.505646] console [ttyS0] enabled
[   12.548625] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   12.624800] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   12.680096] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   12.767698] Scanning device for bad blocks
[   13.040052] libphy: Fixed MDIO Bus: probed
[   13.089524] libphy: orion_mdio_bus: probed
[   13.138655] mdio_bus f1072004.mdio-bu: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1 has invalid PHY address
[   13.254392] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 0
[   13.335856] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 1
[   13.421532] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 2
[   13.503106] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 3
[   13.584616] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 4
[   13.666171] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 5
[   13.747728] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 6
[   13.829288] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 7
[   13.910802] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 8
[   13.992271] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 9
[   14.073786] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 10
[   14.156342] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 11
[   14.238899] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 12
[   14.321413] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 13
[   14.403927] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 14
[   14.486528] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 15
[   14.569129] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 16
[   14.651687] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 17
[   14.734200] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 18
[   14.816714] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 19
[   14.899315] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 20
[   14.981873] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 21
[   15.064386] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 22
[   15.146900] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 23
[   15.229501] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 24
[   15.312059] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 25
[   15.394573] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 26
[   15.477086] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 27
[   15.559688] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 28
[   15.642288] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 29
[   15.724846] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 30
[   15.807359] mdio_bus f1072004.mdio-bu: scan phy ethernet-phy at address 31
[   15.890057] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   15.972770] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:1d:38:44
[   17.153658] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:1d:38:45
[   17.258073] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   17.336284] ehci-pci: EHCI PCI platform driver
[   17.389554] ehci-orion: EHCI orion driver
[   17.437672] orion-ehci f1050000.ehci: EHCI Host Controller
[   17.503363] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   17.595256] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   17.683072] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   17.755225] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   17.836546] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   17.923095] usb usb1: Product: EHCI Host Controller
[   17.981529] usb usb1: Manufacturer: Linux 4.4.0-rc3-kirkwood-tld-1 ehci_hcd
[   18.065035] usb usb1: SerialNumber: f1050000.ehci
[   18.122059] hub 1-0:1.0: USB hub found
[   18.167017] hub 1-0:1.0: 1 port detected
[   18.214988] mousedev: PS/2 mouse device common for all mice
[   18.282391] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   18.365025] i2c /dev entries driver
[   18.407699] hidraw: raw HID events driver (C) Jiri Kosina
[   18.472829] drop_monitor: Initializing network drop monitor service
[   18.548400] NET: Registered protocol family 17
[   18.601794] Distributed Switch Architecture driver version 0.1
[   18.671718] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   18.752402] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 (A2) switch
[   18.943517] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[   19.023781] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   19.110324] hub 1-1:1.0: USB hub found
[   19.155388] hub 1-1:1.0: 2 ports detected
[   19.281242] libphy: dsa slave smi: probed
[   19.336245] Key type dns_resolver registered
[   19.388226] registered taskstats version 1
[   19.437433] Loading compiled-in X.509 certificates
[   19.494918] zswap: loaded using pool lzo/zbud
[   19.555499] Key type encrypted registered
[   19.604257] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 18:51:03 UTC (946752663)
[   19.705445] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   19.790207] Freeing unused kernel memory: 292K (c07d9000 - c0822000)
Loading, please wait...
[   19.932046] systemd-udevd[85]: starting version 215
[   20.004148] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5571
[   20.124899] random: systemd-udevd urandom read with 45 bits of entropy available
[   20.213623] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   20.340892] usb 1-1.1: Product: Cruzer Fit
[   20.438742] usb 1-1.1: Manufacturer: SanDisk
[   20.502927] SCSI subsystem initialized
[   20.547943] usb 1-1.1: SerialNumber: 4C530009410427106475
[   20.637791] mvsdio f1090000.mvsdio: Got CD GPIO
[   20.833571] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   20.918459] scsi host0: usb-storage 1-1.1:1.0
[   20.972497] usbcore: registered new interface driver usb-storage
[   21.047579] usbcore: registered new interface driver uas
[   21.112058] sata_mv f1080000.sata: slots 32 ports 1
[   21.181544] scsi host1: sata_mv
[   21.219908] ata1: SATA max UDMA/133 irq 32
[   21.613081] ata1: SATA link down (SStatus 0 SControl F300)
[   21.964108] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.27 PQ: 0 ANSI: 6
[   22.069954] sd 0:0:0:0: [sda] 61056064 512-byte logical blocks: (31.2 GB/29.1 GiB)
[   22.161924] sd 0:0:0:0: [sda] Write Protect is off
[   22.220046] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   22.336147]  sda: sda1
[   22.367921] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   22.437716] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.                                                                                             
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.                                                            
Begin: Running /scripts/local-premount ... done.                                                                                            
Begin: Running /scripts/local-bottom ... done.                                                                                              
done.                                                                                                                                       
Begin: Running /scripts/init-bottom ... done.                                                                                               
INIT: version 2.88 booting                                                                                                                  
[info] Using makefile-style concurrent boot in runlevel S.                                                                                  
[....] Starting the hotplug events disp[   31.721001] systemd-udevd[286]: starting version 215                                              
atcher: udevd[   31.874445] random: nonblocking pool is initialized                                                                         
.                                                                                                                                           
[....] Synthesizing the initial hotplug events...done.                                                                                      
[....] Waiting for /dev to be fully populated...[   32.316946] MV-CESA:Could not register sha1 driver                                       
[   32.505918] orion_wdt: Initial timeout 21 sec                                                                                            
[   32.874301] MV-CESA:Could not register hmac-sha1 driver                                                                                  
done.                                                                                                                                       
[....] Activating swap...done.                                                                                                              
[....] Checking root file system...fsck from util-linux 2.25.2                                                                              
/run/rootdev: clean, 16860/1908736 files, 290334/7632004 blocks                                                                             
done.
[....] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[....] Loading kernel modules...done.
[....] Cleaning up temporary files.... ok 
[....] Mounting local filesystems...done.
[....] Activating swapfile swap...done.
[....] Cleaning up temporary files.... ok 
[....] Setting kernel variables ...done.
[   36.285120] NET: Registered protocol family 10
[   36.422685] 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.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:90:0b:1d:38:44
Sending on   LPF/eth0/00:90:0b:1d:38:44
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
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 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[....] Starting rpcbind daemon.... ok 
[....] Starting NFS common utilities: statd idmapd. ok 
INIT: Entering runlevel: 2ry files...[ ok 
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1240 (syslogd)
. ok 
[....] Starting system message bus: dbus. ok 
[....] Starting NFS common utilities: statd idmapd. ok 
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. ok 
[....] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting NTP server: ntpd. ok 
[....] Starting OpenBSD Secure Shell server: sshd. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1238 (klogd)
. ok 
debian login: root
Password: 
Last login: Sat Jan  1 10:36:03 PST 2000 on ttyS0
Linux debian 4.4.0-rc3-kirkwood-tld-1 #1 PREEMPT Wed Dec 2 14:33:42 PST 2015 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       Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          inet6 addr: fe80::290:bff:fe1d:3844/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:6183 (6.0 KiB)
          Interrupt:87 

eth1      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:45  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:88 

lan1      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan2      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr 00:90:0b:1d:38:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@debian:~# ifconfig lan1 192.168.1.40 netmask 255.255.255.0                                                                                                                                                     
[  287.289712] IPv6: ADDRCONF(NETDEV_UP): lan1: link is not ready
root@debian:~# [  288.685171] dsa dsa@0 lan1: Link is Down

root@debian:~# 
root@debian:~# [  322.685529] dsa dsa@0 lan1: Link is Up - 1Gbps/Full - flow control off
[  322.692114] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready

root@debian:~# 
root@debian:~# ping 192.168.1.9
PING 192.168.1.9 (192.168.1.9) 56(84) bytes of data.
64 bytes from 192.168.1.9: icmp_seq=1 ttl=128 time=0.689 ms
64 bytes from 192.168.1.9: icmp_seq=2 ttl=128 time=0.364 ms
64 bytes from 192.168.1.9: icmp_seq=3 ttl=128 time=0.341 ms
64 bytes from 192.168.1.9: icmp_seq=4 ttl=128 time=0.329 ms
64 bytes from 192.168.1.9: icmp_seq=5 ttl=128 time=0.388 ms
^C
--- 192.168.1.9 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.329/0.422/0.689/0.135 ms
root@debian:~#

It's working,but there is only one led light working(all the ports from 88e6161).
And new dts file,fixed 88e1116 prot speed problem(both 1000M and 100M tested working):
/*
 * Marvell RD88F6181 A Board descrition
 *
 * Andrew Lunn <andrew@lunn.ch>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 *
 * This file contains the definitions for the board with the A0 or
 * higher stepping of the SoC. The ethernet switch does not have a
 * "wan" port.
 */

/dts-v1/;
#include "kirkwood-rd88f6281.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";
	};

	mbus {
		pcie-controller {
			status = "okay";

			pcie@1,0 {
				status = "okay";
			};

			pcie@2,0 {
				status = "okay";
			};
		};
	};

	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@0 {
		compatible = "marvell,dsa";
		#address-cells = <2>;
		#size-cells = <0>;
		
		interrupts = <10>;
		dsa,ethernet = <&eth0port>;
		dsa,mii-bus = <&mdio>;

		switch@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			reg = <10 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";
			};
		};
	};
};

&mdio {
	status = "okay";
	ethphy1: ethernet-phy@1 {
		device_type = "ethernet-phy";
        /* overwrite reg property in board file */
	};
};

&eth0 {
	status = "okay";	
	ethernet0-port@0 {
	};
};

&eth1 {
	status = "okay";	
	ethernet1-port@0 {
		phy-handle = <&ethphy1>;
	};
};



Edited 3 time(s). Last edit at 12/03/2015 09:27AM by wacke.
Re: Can this device flash "Bodhi's U-boot"?
December 03, 2015 01:16PM
Cool! the reason it did not work before was because the driver module was not loaded early enough. That could have been corrected by putting the module name in the list of modules to be loaded during kernel start.

The PCI error might just be bug in this rc3 release.

The LED light is a minor problem. I think we can find out why later (some of the Zyxel boxes also have this problem with ethernet LED). As of right now, I think it is working well enough :) Thanks for for your contribution!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 12/03/2015 01:18PM by bodhi.
Re: Can this device flash "Bodhi's U-boot"?
December 03, 2015 10:34PM
Re: Can this device flash "Bodhi's U-boot"?
December 07, 2015 01:50AM
I've modified the dts file,thank you very much.
Re: Can this device flash "Bodhi's U-boot"?
January 30, 2016 10:51AM
@wacke,

Please change the subject of the first post to: "Debian on QiZhiTong 501m v2".

Moved to Debian section.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 01/30/2016 03:40PM by bodhi.
Re: Can this device flash "Bodhi's U-boot"?
February 01, 2016 06:28AM
I've changed the subject of the first post to: "Debian on QiZhiTong 501m v2" to make easier for people to find while searching the net.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on QiZhiTong 501mv2
April 11, 2017 09:33PM
helpful!!! perfect!!!收藏.



Edited 1 time(s). Last edit at 04/11/2017 10:20PM by youxiaojie.
Re: Debian on QiZhiTong 501mv2
April 15, 2017 11:13AM
想要使用 fw_printenv 命令的同学 可以新建一个/etc/fw_env.config文件,内容如下:
this is the fw_env.config for fw_printenv :

# MTD_device_name Device_offset Env._size Flash_sector_size Number_of_sectors
/dev/mtd0 0xbc000 0x20000 0x4000 0x8

from 0xbc000 to 0xdbfff 128k Byte



Edited 2 time(s). Last edit at 04/18/2017 10:25PM by youxiaojie.
Re: Debian on QiZhiTong 501mv2
April 15, 2017 02:08PM
youxiaojie,

> 想要使用 fw_printenv 命令的同学 可以新建一个/etc/fw_env.config文件,
> 内容如下:
> # MTD_device_name Device_offset Env._size Flash_se
> ctor_size Number_of_sectors
> /dev/mtd0 0xbc000 0x20000 0x4000 0x8
>
> from 0xbc000 to 0xdbfff 128k Byte

Is there a question you want to ask?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on QiZhiTong 501mv2
April 18, 2017 07:57PM
this is the configure files I try, from 1M decrease 64K by 64K, and determine the start address. to be convenient for others.

this machine support uart boot finally.I boot it using sheevaplug,but got an error,can you help to work it out?
could not ping ,maybe phy init time out. I have interesting on new u boot. can you help me?

U-Boot 2016.05-tld-1 (Jun 12 2016 - 14:02:47 -0700)
Marvell-Sheevaplug

SoC: Kirkwood 88F6281_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
Sheevaplug>

arch_number = 0x00000831
boot_params = 0x00000100
DRAM bank = 0x00000000
-> start = 0x00000000
-> size = 0x10000000
DRAM bank = 0x00000001
-> start = 0x10000000
-> size = 0x10000000
eth0name = egiga0
ethaddr = 00:90:0b:1f:bb:6c
current eth = egiga0
ip_addr = 192.168.1.1
baudrate = 115200 bps
TLB addr = 0x1FFF0000
relocaddr = 0x1FF36000
reloc off = 0x1F936000
irq_sp = 0x1FB15EF0
sp start = 0x1FB15EE0

Sheevaplug> mii device
MII devices: 'egiga0'
Current device: 'egiga0'
Sheevaplug> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX

since I have uart boot,I test all the uboot, result as follows:
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:34:27 -0700)
Seagate FreeAgent DockStar

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX
DockStar> setenv ipaddr 192.168.1.1
DockStar> ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive
DockStar>

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:38:04 -0700)
Iomega iConnect

SoC: Kirkwood 88F6281_A1
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0
iconnect => mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX
iconnect => setenv ipaddr 192.168.1.1
iconnect => ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 -0700)
Netgear-MS2110

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0 // no time out,but no link
Hit any key to stop autoboot: 0
Netgear Stora> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX
Netgear Stora> setenv ipaddr 192.168.1.1
Netgear Stora> ping 192.168.1.1
No link on egiga0
ping failed; host 192.168.1.1 is not alive

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:59:20 -0700)
ZyXEL NSA310 1-Bay Power Media Server


SoC: Kirkwood 88F6281_A1
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 0
NSA310> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 1000baseT, FDX
NSA310> mii info

NSA310> setenv ipaddr 192.168.1.1
NSA310> ping 192.168.1.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.1 is not alive
NSA310> ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:52:06 -0700)
ZyXEL NSA320 2-Bay Power Media Server

SoC: Kirkwood 88F6281_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 0
NSA320> setenv ipaddr 192.168.1.1
NSA320> ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive

NSA320> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 1000baseT, FDX

-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC: Kirkwood 88F6281_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 0

NSA325> ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700)
Pogo E02

SoC: Kirkwood 88F6281_A1
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
PHY reset timed out
Hit any key to stop autoboot: 0
PogoE02> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX
PogoE02> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX
PogoE02> setenv 192.168.1.1
PogoE02> setenv ipaddr 192.168.1.1
PogoE02> ping 192.168.1.88
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive


summery, some of uboot init 88e1318 and got 1000M speed most got arp problem
88e1116 most got Arp problem one(net gear) show not connect. (only 100Mbps).

budhi, can you help me to solve net work problem?



Edited 4 time(s). Last edit at 04/19/2017 08:19AM by youxiaojie.
Re: Debian on QiZhiTong 501mv2
April 19, 2017 07:45PM
youxiaojie,

This box uses a different ethernet chip, unlike other Kirkwood boxes. I did not have time to look into building new uboot for it. It would be time quite consuming for me to start this project.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 04/19/2017 07:46PM by bodhi.
Re: Debian on QiZhiTong 501mv2
April 20, 2017 01:44AM
but I saw there is only a 1116r between cpu and rj45 plug.
Re: Debian on QiZhiTong 501mv2
April 20, 2017 02:02AM
Re: Debian on QiZhiTong 501mv2
April 20, 2017 02:32AM
I check the circuit, lan1~4 and aux are connected with 6161, wan is connected with 1116 then to cpu

skip 88e6161, I hope we can let wan work, I test all your uboot with wan plugged with an cat6 cable conncting 1Gb NIC. one led light always one led twinkle.

It seems 88e1318 driver have 1000Mbps connection but ping is not ok. could you help me to solve this ?

what maybe cause these two errors?

MV88E1318 PHY initialized on egiga0 

ARP Retry count exceeded; starting again
ping failed; host 192.168.1.88 is not alive

NSA320> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 1000baseT, FDX // this time ok



U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:45:22 -0700)
Netgear-MS2110

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0 // no time out,but no link
Hit any key to stop autoboot: 0
Netgear Stora> mii info
PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00, 100baseT, FDX //only 100baseT not correct
Netgear Stora> setenv ipaddr 192.168.1.1
Netgear Stora> ping 192.168.1.1
No link on egiga0
ping failed; host 192.168.1.1 is not alive


this is another error

and the most common error is

PHY reset time out.

any idea, bodhi? give some direction? which part of u-boot' source maybe concern this question?

I saw the source of uboot 201703,the board/Marvell/sheevaplug/sheevaplug.c has the /* Multi-Purpose Pins Functionality configuration */, and I got the 6281's datasheet,found section " Gigabit Ethernet (GbE) Pins Multiplexing on MPP" ,are these two things connected? should I change /* Multi-Purpose Pins Functionality configuration */ part to definition one ge1 to 88e1116 another to 88e6161?

how to determine archnumber?



Edited 8 time(s). Last edit at 04/22/2017 06:57AM by youxiaojie.
Attachments:
open | download - ok.jpg (929.5 KB)
open | download - Screenshot from 2017-04-22 00-38-27.png (163.5 KB)
Re: Debian on QiZhiTong 501mv2
April 20, 2017 06:40AM
bodhi Wrote:
-------------------------------------------------------
> This is the chip:
>
>
Quote

Network:88E6161 Switch chip with 5 gigabit
> port,88E1116 with 1 gigabit aux port

Hi,bodhi

I found the barebox project,is there anyway to get the marvell sdk?I want to get the armada 370 soc with 88e6171 switch working on barebox.
I also found this project: https://github.com/MarvellEmbeddedProcessors/u-boot-marvell,is there have the switch driver?



Edited 1 time(s). Last edit at 04/20/2017 07:59AM by wacke.
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: