aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#507 - network configuration messed up / not usable #531

Closed aparcar closed 7 years ago

aparcar commented 7 years ago

olze:

Supply the following if possible:

eth2 is now the WAN eth port (should be eth0 as its the first rj45 port of the board). eth1 is probably now the SFP device which was/is eth2 in the image of the vendor (solidrun, https://images.solid-build.xyz/A38X/sr-a38x-cf-lede-20161117.img.gz) and of the (old) prebuild image from lede

config interface 'lan' option type 'bridge' option ifname 'eth0 eth1' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'wan' option ifname 'eth2' option proto 'dhcp'

config interface 'wan6' option ifname 'eth2' option proto 'dhcpv6'

config switch option name 'switch0' option reset '1' option enable_vlan '1'

config switch_vlan option device 'switch0' option vlan '1' option ports '0 1 2 3 4 6 5'

as eth2 is now the first rj45 port of the board, this config makes absolutely no sense anymore. The wan blocks are ok, but the sfp module must now be eth0 or eth1. The SFP module is usually used to connect to an ISP which provides FTTH (fibre). Also, it seems impossible to get the switch working.

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.4.47 (oli@localhost.localdomain) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3143-e967f4d) ) #0 SMP Sun Feb 12 13:27:21 2017 [ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: SolidRun Clearfog A1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 262144 [ 0.000000] free_area_init_node: node 0, pgdat c0697fc0, node_mem_map ef7f9000 [ 0.000000] Normal zone: 1536 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 [ 0.000000] PERCPU: Embedded 12 pages/cpu @ef7ce000 s17984 r8192 d22976 u49152 [ 0.000000] pcpu-alloc: s17984 r8192 d22976 u49152 alloc=12*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608 [ 0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p2 rootfstype=squashfs rootwait overlay=/dev/mmcblk0p3 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 1032164K/1048576K available (4748K kernel code, 189K rwdata, 1672K rodata, 272K init, 302K bss, 16412K reserved, 0K cma-reserved, 262144K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc064d524 (6422 kB) [ 0.000000] .init : 0xc064e000 - 0xc0692000 ( 272 kB) [ 0.000000] .data : 0xc0692000 - 0xc06c1488 ( 190 kB) [ 0.000000] .bss : 0xc06c1488 - 0xc070ce78 ( 303 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 D prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB [ 0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001 [ 0.000000] Switching to timer-based delay loop, resolution 40ns [ 0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns [ 0.000009] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns [ 0.000109] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000) [ 0.000116] pid_max: default: 32768 minimum: 301 [ 0.000154] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000158] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000353] CPU: Testing write buffer coherency: ok [ 0.000453] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.000476] Setting up static identity map for 0x8280 - 0x82d8 [ 0.000557] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4 [ 0.000640] mvebu-pmsu: Initializing Power Management Service Unit [ 0.001043] Booting CPU 1 [ 0.001208] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.001235] Brought up 2 CPUs [ 0.001241] SMP: Total of 2 processors activated (100.00 BogoMIPS). [ 0.001244] CPU: All CPU(s) started in SVC mode. [ 0.003110] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.003183] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.003222] pinctrl core: initialized pinctrl subsystem
[ 0.003617] NET: Registered protocol family 16
[ 0.004104] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.029933] cpuidle: using governor ladder
[ 0.032813] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[ 0.032822] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[ 0.060712] SCSI subsystem initialized
[ 0.060788] libata version 3.00 loaded.
[ 0.060907] usbcore: registered new interface driver usbfs
[ 0.060934] usbcore: registered new interface driver hub
[ 0.060958] usbcore: registered new device driver usb
[ 0.061468] clocksource: Switched to clocksource armada_370_xp_clocksource
[ 0.061894] NET: Registered protocol family 2
[ 0.062137] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.062180] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.062240] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.062273] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.062294] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.062378] NET: Registered protocol family 1
[ 0.062400] PCI: CLS 0 bytes, default 64
[ 0.063540] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.063590] Crashlog allocated RAM at address 0x3f00000
[ 0.066201] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.066210] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.067216] bounce: pool size: 64 pages
[ 0.067224] io scheduler noop registered
[ 0.067229] io scheduler deadline registered (default)
[ 0.067633] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[ 0.067963] irq: Cannot allocate irq_descs @ IRQ50, assuming pre-allocated
[ 0.068103] irq: Cannot allocate irq_descs @ IRQ82, assuming pre-allocated
[ 0.068379] mv_xor f1060800.xor: Marvell shared XOR driver
[ 0.101911] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.102001] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.141890] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[ 0.142041] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.142931] console [ttyS0] disabled
[ 0.163001] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A
[ 0.729477] console [ttyS0] enabled
[ 0.753164] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A [ 0.764279] loop: module loaded
[ 0.767691] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 0.776780] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[ 0.786174] scsi host0: ahci-mvebu
[ 0.789736] scsi host1: ahci-mvebu
[ 0.793247] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 45
[ 0.801183] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 45
[ 0.809227] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 0.818303] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[ 0.827761] scsi host2: ahci-mvebu
[ 0.831318] scsi host3: ahci-mvebu
[ 0.834826] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 46
[ 0.842770] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 46
[ 0.851744] libphy: Fixed MDIO Bus: probed
[ 0.856023] libphy: orion_mdio_bus: probed
[ 0.860774] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[ 0.869592] mvneta f1030000.ethernet eth0: Using random mac address 9a:2d:d6:88:cf:0e
[ 0.878497] mvneta f1034000.ethernet eth1: Using random mac address d2:0c:be:22:ff:23
[ 0.887434] mvneta f1070000.ethernet eth2: Using random mac address 32:75:6d:62:f0:32
[ 0.895351] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.901900] ehci-pci: EHCI PCI platform driver
[ 0.906381] ehci-platform: EHCI generic platform driver
[ 0.911714] ehci-orion: EHCI orion driver
[ 0.915804] orion-ehci f1058000.usb: EHCI Host Controller
[ 0.921222] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[ 0.928872] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
[ 0.951468] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[ 0.957642] hub 1-0:1.0: USB hub found
[ 0.961414] hub 1-0:1.0: 1 port detected
[ 0.965642] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 0.970975] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[ 0.978610] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[ 0.987177] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[ 0.993163] hub 2-0:1.0: USB hub found
[ 0.996932] hub 2-0:1.0: 1 port detected
[ 1.000946] xhci-hcd f10f0000.usb3: xHCI Host Controller
[ 1.006284] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[ 1.013817] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.022129] hub 3-0:1.0: USB hub found
[ 1.025898] hub 3-0:1.0: 1 port detected
[ 1.029952] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 1.035295] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[ 1.042890] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[ 1.051447] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[ 1.057440] hub 4-0:1.0: USB hub found
[ 1.061208] hub 4-0:1.0: 1 port detected
[ 1.065246] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 1.070574] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[ 1.078110] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.086428] hub 5-0:1.0: USB hub found
[ 1.090195] hub 5-0:1.0: 1 port detected
[ 1.094332] usbcore: registered new interface driver usb-storage
[ 1.100500] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[ 1.108152] i2c /dev entries driver
[ 1.113618] GPIO line 496 (pcie1.0-clkreq) hogged as input
[ 1.119726] GPIO line 499 (pcie1.0-w-disable) hogged as output/low
[ 1.126237] GPIO line 500 (pcie2.0-clkreq) hogged as input
[ 1.132350] GPIO line 503 (pcie2.0-w-disable) hogged as output/low
[ 1.138842] GPIO line 501 (usb3-current-limit) hogged as input
[ 1.145303] GPIO line 502 (usb3-power) hogged as output/high
[ 1.151495] ata2: SATA link down (SStatus 0 SControl 300)
[ 1.151584] GPIO line 507 (m.2 devslp) hogged as output/low
[ 1.151620] pca953x 0-0020: interrupt support not compiled in
[ 1.162307] orion_wdt: Initial timeout 171 sec
[ 1.162456] sdhci: Secure Digital Host Controller Interface driver
[ 1.162457] sdhci: Copyright(c) Pierre Ossman
[ 1.162612] sdhci-pxav3 f10d8000.sdhci: Got CD GPIO
[ 1.162652] sdhci-pxav3 f10d8000.sdhci: No vmmc regulator found
[ 1.162654] sdhci-pxav3 f10d8000.sdhci: No vqmmc regulator found
[ 1.191474] ata4: SATA link down (SStatus 0 SControl 300)
[ 1.191496] ata3: SATA link down (SStatus 0 SControl 300)
[ 1.201515] mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
[ 1.201618] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.202418] marvell-cesa f1090000.crypto: CESA device successfully registered
[ 1.202947] NET: Registered protocol family 10
[ 1.206800] NET: Registered protocol family 17
[ 1.206820] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 1.206823] 8021q: 802.1Q VLAN Support v1.8
[ 1.206887] Registering SWP/SWPB emulation handler
[ 1.207530] mvebu-pcie soc:pcie-controller: /soc/pcie-controller/pcie@2,0: reset gpio is active low
[ 1.208170] mvebu-pcie soc:pcie-controller: /soc/pcie-controller/pcie@3,0: reset gpio is active low
[ 1.244191] mmc0: new high speed SDXC card at address aaaa
[ 1.244401] mmcblk0: mmc0:aaaa SP64G 59.5 GiB
[ 1.245102] mmcblk0: p1 p2
[ 1.261550] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[ 1.261555] pci_bus 0000:00: root bus resource [io 0x1000-0xfffff]
[ 1.261558] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[ 1.261561] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.261574] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[ 1.261661] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400
[ 1.261743] PCI: bus0: Fast back to back transfers disabled
[ 1.261747] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.261751] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.261795] PCI: bus1: Fast back to back transfers enabled
[ 1.261799] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 1.261854] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[ 1.261884] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 1.261908] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 1.261957] pci 0000:02:00.0: supports D1 D2
[ 1.262022] PCI: bus2: Fast back to back transfers disabled
[ 1.262026] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 1.262070] pci 0000:00:03.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[ 1.262074] pci 0000:00:02.0: PCI bridge to [bus 01]
[ 1.262082] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[ 1.262091] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[ 1.262094] pci 0000:00:03.0: PCI bridge to [bus 02]
[ 1.262097] pci 0000:00:03.0: bridge window [mem 0xe0000000-0xe02fffff]
[ 1.262212] libphy: SFP I2C Bus: probed
[ 1.267158] mvsw61xx 4.mvsw61xx: Found MV88E6176 at f1072004.mdio-mi:04
[ 1.267161] mvsw61xx 4.mvsw61xx: Using indirect addressing
[ 1.299442] armada38x-rtc f10a3800.rtc: setting system clock to 2105-01-13 09:11:30 UTC (4261281090)
[ 1.320927] sfp sfp: module OEM GLC-BX-U-C rev 1.0 sn 1152216730 dc 02-06-15
[ 1.320931] sfp sfp: LC connector, encoding 8b10b, nominal bitrate 1.3Gbps +0% -0%
[ 1.320935] sfp sfp: 1000BaseSX- 1000BaseLX- 1000BaseCX- 1000BaseT- 100BaseTLX- 1000BaseFX- BaseBX10- BasePX- [ 1.320937] sfp sfp: Wavelength 1310nm, fiber lengths:
[ 1.320940] sfp sfp: 9..m SM : 10000m
[ 1.320942] sfp sfp: 62.5..m MM OM1: unsupported/unspecified
[ 1.320944] sfp sfp: 50..m MM OM2: unsupported/unspecified
[ 1.320946] sfp sfp: 50..m MM OM3: unsupported/unspecified
[ 1.320948] sfp sfp: 50..m MM OM4: unsupported/unspecified
[ 1.320952] sfp sfp: Options: txdisable, txfault, los+
[ 1.320955] sfp sfp: Diagnostics: ddm, intcal, rxpwravg
[ 1.484623] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.494644] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[ 1.501950] Freeing unused kernel memory: 272K (c064e000 - c0692000)
[ 1.707394] init: Console is alive
[ 1.710860] init: - watchdog -
[ 1.915355] init: - preinit -
[ 2.147470] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 2.186619] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 2.279582] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 2.318955] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 2.341129] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[ 2.414423] mvneta f1030000.ethernet eth0: configuring for fixed link mode
[ 2.421723] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 2.427615] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 2.435579] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5.490784] random: procd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 5.815599] F2FS-fs (loop0): recover_inode: ino = 20, name = #3
[ 5.822024] F2FS-fs (loop0): recover_dentry: ino = 20, name = #3, dir = 10, err = 0
[ 5.829711] F2FS-fs (loop0): recover_data: ino = 20, recovered = 0 blocks, err = 0
[ 5.837330] F2FS-fs (loop0): recover_inode: ino = 22, name = #4
[ 5.843283] F2FS-fs (loop0): recover_dentry: ino = 22, name = #4, dir = 10, err = 0
[ 5.850967] F2FS-fs (loop0): recover_data: ino = 22, recovered = 0 blocks, err = 0
[ 5.858569] F2FS-fs (loop0): recover_inode: ino = 23, name = #5
[ 5.864517] F2FS-fs (loop0): recover_dentry: ino = 23, name = #5, dir = 10, err = 0
[ 5.872248] F2FS-fs (loop0): recover_data: ino = 23, recovered = 2 blocks, err = 0
[ 5.879848] F2FS-fs (loop0): recover_inode: ino = 24, name = .network.uci-JoNelB
[ 5.889378] F2FS-fs (loop0): recover_dentry: ino = 24, name = .network.uci-JoNelB, dir = 18, err = 0
[ 5.898551] F2FS-fs (loop0): recover_data: ino = 24, recovered = 0 blocks, err = 0
[ 5.906156] F2FS-fs (loop0): recover_inode: ino = 25, name = .system.uci-iDJGdh
[ 5.913499] F2FS-fs (loop0): recover_dentry: ino = 25, name = .system.uci-iDJGdh, dir = 18, err = 0
[ 5.922581] F2FS-fs (loop0): recover_data: ino = 25, recovered = 0 blocks, err = 0
[ 5.930173] F2FS-fs (loop0): recover_inode: ino = 2b, name = .network.uci-ofOMnD
[ 5.937602] F2FS-fs (loop0): recover_dentry: ino = 2b, name = .network.uci-ofOMnD, dir = 18, err = 0
[ 5.946772] F2FS-fs (loop0): recover_data: ino = 2b, recovered = 0 blocks, err = 0
[ 5.954366] F2FS-fs (loop0): recover_inode: ino = 31, name = .dhcp.uci-MdmDiN
[ 5.961530] F2FS-fs (loop0): recover_dentry: ino = 31, name = .dhcp.uci-MdmDiN, dir = 18, err = 0
[ 5.970432] F2FS-fs (loop0): recover_data: ino = 31, recovered = 0 blocks, err = 0
[ 5.992295] F2FS-fs (loop0): checkpoint: version = 5
[ 5.998407] mount_root: overlay filesystem has not been fully initialized yet
[ 6.010318] mount_root: switching to f2fs overlay
[ 6.036199] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 6.050902] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 6.087556] procd: - early -
[ 6.090467] procd: - watchdog -
[ 6.669627] procd: - ubus -
[ 6.722065] random: ubusd: uninitialized urandom read (4 bytes read, 24 bits of entropy available)
[ 6.731118] random: ubusd: uninitialized urandom read (4 bytes read, 24 bits of entropy available)
[ 6.740123] random: ubusd: uninitialized urandom read (4 bytes read, 24 bits of entropy available)
[ 6.749192] random: ubusd: uninitialized urandom read (4 bytes read, 24 bits of entropy available)
[ 6.758328] procd: - init -
[ 6.875633] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 6.883217] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 6.890805] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 6.908802] pci 0000:00:03.0: enabling device (0140 -> 0142)
[ 6.914515] ath10k_pci 0000:02:00.0: enabling device (0140 -> 0142)
[ 6.920951] ath10k_pci 0000:02:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 7.134647] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2 [ 7.145384] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 7.168286] firmware ath10k!pre-cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
[ 7.177387] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 7.187781] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 7.197416] firmware ath10k!cal-pci-0000:02:00.0.bin: firmware_loading_store: map pages failed
[ 7.243891] ath10k_pci 0000:02:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 7.253163] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 7.262934] ath10k_pci 0000:02:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8 [ 7.313601] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 7.324071] ath10k_pci 0000:02:00.0: Falling back to user helper
[ 7.333910] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 7.370285] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 8.512896] ath10k_pci 0000:02:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
[ 8.622798] ath: EEPROM regdomain: 0x0
[ 8.622804] ath: EEPROM indicates default country code should be used
[ 8.622806] ath: doing EEPROM country->regdmn map search
[ 8.622810] ath: country maps to regdmn code: 0x3a
[ 8.622813] ath: Country alpha2 being used: US
[ 8.622815] ath: Regpair used: 0x3a
[ 8.647918] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.655051] nf_conntrack version 0.5.0 (16131 buckets, 64524 max)
[ 8.845378] xt_time: kernel timezone is -0000
[ 8.851971] PPP generic driver version 2.4.2
[ 8.856585] NET: Registered protocol family 24
[ 10.084704] mvneta f1030000.ethernet eth0: configuring for fixed link mode
[ 10.091685] mvneta f1030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 10.100517] device eth0 entered promiscuous mode
[ 10.107511] br-lan: port 1(eth0) entered forwarding state
[ 10.112953] br-lan: port 1(eth0) entered forwarding state
[ 10.126418] mvneta f1034000.ethernet eth1: configuring for SGMII link mode
[ 10.140624] mvneta f1034000.ethernet eth1: switched to 802.3z link mode
[ 10.151568] device eth1 entered promiscuous mode
[ 10.171490] mvneta f1070000.ethernet eth2: PHY [f1072004.mdio-mi:00] driver [Marvell 88E1510]
[ 10.180055] mvneta f1070000.ethernet eth2: configuring for phy link mode
[ 10.187240] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[ 12.111462] br-lan: port 1(eth0) entered forwarding state
[ 41.902104] random: nonblocking pool is initialized
[ 79.171883] mvneta f1070000.ethernet eth2: Link is Up - 1Gbps/Full - flow control rx/tx
[ 79.179917] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 92.175022] mvneta f1070000.ethernet eth2: Link is Down
[ 885.171883] mvneta f1070000.ethernet eth2: Link is Up - 1Gbps/Full - flow control rx/tx
Linux LEDE 4.4.47 #0 SMP Sun Feb 12 13:27:21 2017 armv7l GNU/Linux

I guess there is something wrong with uboot/kernel/configuration.

aparcar commented 7 years ago

olze:

root@LEDE:~# ifconfig br-lan Link encap:Ethernet HWaddr 9A:2D:D6:88:CF:0E
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fd93:da66:ba5c::1/60 Scope:Global inet6 addr: fe80::982d:d6ff:fe88:cf0e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:1468 (1.4 KiB)

eth0 Link encap:Ethernet HWaddr 9A:2D:D6:88:CF:0E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:0 (0.0 B) TX bytes:3019 (2.9 KiB) Interrupt:38

eth1 Link encap:Ethernet HWaddr D2:0C:BE:22:FF:23
UP 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:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:39

eth2 Link encap:Ethernet HWaddr 32:75:6D:62:F0:32
inet addr:192.168.6.1 Bcast:192.168.6.255 Mask:255.255.255.0 inet6 addr: fe80::3075:6dff:fe62:f032/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:164 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:792 (792.0 B) TX bytes:48255 (47.1 KiB) Interrupt:41

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:1008 errors:0 dropped:0 overruns:0 frame:0 TX packets:1008 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:65632 (64.0 KiB) TX bytes:65632 (64.0 KiB)

-> no lan1, lan2... root@LEDE:~# lsmod ath 16809 1 ath10k_core ath10k_core 238417 1 ath10k_pci ath10k_pci 29898 0 cfg80211 228363 3 ath10k_core,ath,mac80211 compat 11596 3 ath10k_pci,mac80211,cfg80211 crc_ccitt 1131 1 ppp_async fat 46762 1 vfat gpio_button_hotplug 6340 0 ip6_tables 9877 2 ip6table_mangle,ip6table_filter ip6t_REJECT 1196 2 ip6table_filter 830 1 ip6table_mangle 1214 1 ip_tables 10135 3 iptable_nat,iptable_mangle,iptable_filter ipt_MASQUERADE 882 1 ipt_REJECT 1066 2 iptable_filter 892 1 iptable_mangle 1020 1 iptable_nat 1169 1 mac80211 410583 1 ath10k_core nf_conntrack 62671 9 nf_nat_ipv4,nf_conntrack_ipv6,nf_conntrack_ipv4,xt_state,xt_conntrack,xt_CT,nf_nat_masquerade_ipv4,nf_nat,nf_conntrack_rtcache nf_conntrack_ipv4 6373 9 nf_conntrack_ipv6 6820 4 nf_conntrack_rtcache 2834 0 nf_defrag_ipv4 1148 1 nf_conntrack_ipv4 nf_defrag_ipv6 13597 1 nf_conntrack_ipv6 nf_log_common 2575 2 nf_log_ipv4,nf_log_ipv6 nf_log_ipv4 3382 0 nf_log_ipv6 3831 0 nf_nat 10272 4 nf_nat_ipv4,xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4 nf_nat_ipv4 4254 1 iptable_nat nf_nat_masquerade_ipv4 1677 1 ipt_MASQUERADE nf_nat_redirect 1051 1 xt_REDIRECT nf_reject_ipv4 2115 1 ipt_REJECT nf_reject_ipv6 2376 1 ip6t_REJECT nls_cp437 4642 1 nls_iso8859_1 3106 1 nls_utf8 1058 0 ppp_async 6929 0 ppp_generic 20589 3 pppoe,ppp_async,pppox pppoe 8247 0 pppox 1447 1 pppoe slhc 4667 1 ppp_generic vfat 8402 1 x_tables 11003 23 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_CT,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables xt_CT 2965 0 xt_LOG 1027 0 xt_REDIRECT 949 0 xt_TCPMSS 2856 2 xt_comment 651123 xt_conntrack 2648 12 xt_limit 1421 20 xt_mac 775 0 xt_mark 864 0 xt_multiport 1492 0 xt_nat 1501 0 xt_state 969 0 xt_tcpudp 1944 10 xt_time 1830 0

aparcar commented 7 years ago

olze:

I contacted the support of SolidRun about 2 weeks ago. He told me that LEDE had some special kind of driver for the marvel switch. Something self developed.

cite: "kurz gesagt u-boot und kernel. Lede hat nen eigenen switch-treiber geschrieben für deren eher seltsame swconfig api."

translated: "short saying u-boot and kernel. lede wrote a switch driver for them self for their wierd swconfig api"

Maybe thats the problem?

aparcar commented 7 years ago

olze:

Found: switch0 - 4.mvsw61xx Global attributes: enable_vlan: 1 Port 0: mask: 0x0000: (0) qmode: 3 pvid: 1 link: port:0 link:down Port 1: mask: 0x0000: (1) qmode: 3 pvid: 1 link: port:1 link:down Port 2: mask: 0x0000: (2) qmode: 3 pvid: 1 link: port:2 link:down Port 3: mask: 0x0000: (3) qmode: 3 pvid: 1 link: port:3 link:down Port 4: mask: 0x0000: (4) qmode: 3 pvid: 1 link: port:4 link:down Port 5: mask: 0x0000: (5) qmode: 3 pvid: 1 link: port:5 link:up speed:1000baseT full-duplex Port 6: mask: 0x0000: (6) qmode: 3 pvid: 1 link: port:6 link:up speed:1000baseT full-duplex VLAN 1: port_based: 0 vid: 1 ports: 0 1 2 3 4 5 6

Seems like the switch is recognized correctly but the configuration is not working. Would be nice if this works again out of the box. With the old image, i plugged in a ethernet cable in e.g. the first rj45 port of the switch and got a message that the switch is up and i was able to access it with ifconfig

aparcar commented 7 years ago

olze:

-> initial state:

root@lede:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 1A:4F:66:C3:98:6F BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:342 (342.0 B) TX bytes:1551 (1.5 KiB) Interrupt:38

root@lede:/# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 3A:A9:63:F1:78:63 UP 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:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:39

root@lede:/# ifconfig eth2 eth2 Link encap:Ethernet HWaddr 6E:A8:60:A3:41:BE UP 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:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:41

reboot -> entered that in uboot (i require fix mac addresses) => setenv eth0addr 1A:4F:66:C3:98:6F => setenv eth1addr 3A:A9:63:F1:78:63 => setenv eth2addr 6E:A8:60:A3:41:BE

after boot:

root@lede:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 6E:A8:60:A3:41:BE
BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:0 (0.0 B) TX bytes:1551 (1.5 KiB) Interrupt:38

root@lede:/# ifconfig eth1 eth1 Link encap:Ethernet HWaddr 56:63:D3:C8:6A:78
UP 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:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:39

root@lede:/# ifconfig eth2 eth2 Link encap:Ethernet HWaddr 3A:A9:63:F1:78:63
UP 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:532 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:41

aparcar commented 7 years ago

olze:

Can be closed. seems like i misunderstood the behaviour of swconfig vs DSA (lan1...lan6). Need to read more about that.

I dont know what causes the order change of the naming (uboot says eth0 = first rj45 port, the kernel says the first rj45 port = eth2). I simply hope this will stay as it is now.

aparcar commented 7 years ago

olze:

To get the devices with ifconfig, this config can be used (not tested yet, thanks to jow from irc) :

config interface 'lan1' option type 'bridge' option ifname 'eth0.1' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'lan2' option ifname 'eth0.2' option proto 'static' option ipaddr '10.2.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'lan3' option ifname 'eth0.3' option proto 'static' option ipaddr '10.3.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'lan4' option ifname 'eth0.4' option proto 'static' option ipaddr '10.4.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'lan5' option ifname 'eth0.5' option proto 'static' option ipaddr '10.5.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'lan6' option ifname 'eth0.6' option proto 'static' option ipaddr '10.6.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'sfp' option ifname 'eth1' option proto 'static' option ipaddr '10.7.0.1' option netmask '255.255.255.0' option ip6assign '60'

config interface 'wan' option ifname 'eth2' option proto 'dhcp'

config interface 'wan6' option ifname 'eth2' option proto 'dhcpv6'

config switch option name 'switch0' option reset '1' option enable_vlan '1'

config switch_vlan option device 'switch0' option vlan '1' option ports '4 5t'

config switch_vlan option device 'switch0' option vlan '2' option ports '3 5t'

config switch_vlan option device 'switch0' option vlan '3' option ports '2 5t'

config switch_vlan option device 'switch0' option vlan '4' option ports '1 5t'

config switch_vlan option device 'switch0' option vlan '5' option ports '0 5t'

config switch_vlan option device 'switch0' option vlan '6' option ports '6 5t'