[LEDE-DEV] sunxi: bpi-r1 switch configuration missing in latest development trunk for 18.0x

Hauke Mehrtens hauke at hauke-m.de
Thu Mar 8 13:31:56 PST 2018


On 03/08/2018 02:16 AM, TheWerthFam wrote:
> I think that seems reasonable to configure the switch, however the first
> problem to solve is that the B53 driver is not getting loaded.
> Derek

Please do not top post!

Could you please try the master branch of my staging tree from here with
kernel 4.14 on your board:
https://git.openwrt.org/?p=openwrt/staging/hauke.git;a=summary

In reverted this commit liked Florian suggested:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d7b9eaff5f0ca00726336b4c0c3c29decf30412a

Hauke

> 
> On 03/07/2018 07:17 PM, Hartmut Knaack wrote:
>> TheWerthFam schrieb am 08.03.2018 um 00:22:
>>> Rebuilt the latest truck with the 4.9 kernel and the switch behaves the
>>> same as with 4.14.
>>> AT first look this problem seem similar to
>>> http://lists.infradead.org/pipermail/lede-bugs/2018-February/006906.html
>>> problem with the same switch chip BCM53125 and the migration to mdio vs
>>> older swconfig.
>>>
>>>
>>> grep SWCONFIG_B53 config-4.9
>>> CONFIG_SWCONFIG_B53=y
>>> # CONFIG_SWCONFIG_B53_MMAP_DRIVER is not set
>>> CONFIG_SWCONFIG_B53_PHY_DRIVER=y
>>> CONFIG_SWCONFIG_B53_PHY_FIXUP=y
>>> # CONFIG_SWCONFIG_B53_SRAB_DRIVER is not set
>>>
>>> /etc/modules.d doesn't have any b53 items
>>> lsmod doesn't show any b53 items.  Not sure the driver is getting
>>> loaded.
>>>
>>> Found a few other threads dealing with the chip set in other versions of
>>> linux when the 4.9 kernel driver came out. These seem like they are
>>> relevant, though I'm not sure what has been done to the openwrt sunxi
>>> branch of the source to accommodate the b53 driver now in mainline
>>> kernel and move to mdio.  I believe that the EA9500 uses the same switch
>>> chipset.
>>>
>>> Getting the driver working in Arbian with kernel 4.9
>>> https://github.com/armbian/build/issues/511#issuecomment-269622336
>>>
>>> Driver now in mainline 4.9
>>> https://forum.armbian.com/topic/2690-issues-with-lamobo-r1-and-new-distribution/
>>>
>>>
>>> Info on setting up the new driver
>>> https://lwn.net/Articles/634787/
>>>
>>> Anything else I can do to diagnose?
>> Well, we were facing these problems quite some time ago with armbian.
>> Some time around kernel 4.8 or 4.9, the DSA version of a b53 driver got
>> into mainline kernel, so swconfig didn't work any longer. So, how to
>> diagnose? Simple: if swconfig can't detect a switch, but you can
>> configure
>> it using ip and bridge as described in my posts of that armbian issue 511
>> thread, then you are dealing with the DSA driver.
>> Hope that helps
>>
>> Hartmut
>>
>>> Thanks
>>>       Derek
>>>
>>> On 03/04/2018 05:05 PM, Hauke Mehrtens wrote:
>>>> On 03/04/2018 07:44 PM, Florian Fainelli wrote:
>>>>> +Jonas,
>>>>>
>>>>> On 03/04/2018 05:09 AM, TheWerthFam wrote:
>>>>>> Full kernel log below. I remove the 8192cu wifi driver since it
>>>>>> doesn't
>>>>>> work in AP mode and use a rt2800 base usb dongle.. Additionally grep
>>>>>> output of config-4.14 for SWCONFIG
>>>>>> grep SWCONFIG target/linux/sunxi/config-4.14
>>>>>> CONFIG_SWCONFIG=y
>>>>>> CONFIG_SWCONFIG_B53=y
>>>>>> # CONFIG_SWCONFIG_B53_MMAP_DRIVER is not set
>>>>>> CONFIG_SWCONFIG_B53_PHY_DRIVER=y
>>>>>> CONFIG_SWCONFIG_B53_PHY_FIXUP=y
>>>>>> # CONFIG_SWCONFIG_B53_SRAB_DRIVER is not set
>>>>> (please don't top post). I thought somehow that:
>>>>>
>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d7b9eaff5f0ca00726336b4c0c3c29decf30412a
>>>>>
>>>>>
>>>>> could be responsible for what you are seeing, but this was already
>>>>> included in 4.9, so this must be something else.
>>>> lede-17.01 used kernel 4.4, did kernel 4.9 worked for you?
>>>> If you also had the same problem in kernel 4.9 please try to revert the
>>>> commit Florian showed.
>>>>
>>>> Hauke
>>>>
>>>>>> kernel log
>>>>>> [    0.000000] Booting Linux on physical CPU 0x0
>>>>>> [    0.000000] Linux version 4.14.20 (dandv at t420s) (gcc version 5.5.0
>>>>>> (OpenWrt GCC 5.5.0 r6351-694f0bb5af)) #0 SMP PREEMPT Fri Mar 2
>>>>>> 14:58:09
>>>>>> 2018
>>>>>> [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7),
>>>>>> cr=30c5387d
>>>>>> [    0.000000] CPU: div instructions available: patching division
>>>>>> code
>>>>>> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
>>>>>> instruction cache
>>>>>> [    0.000000] OF: fdt: Machine model: Lamobo R1
>>>>>> [    0.000000] Memory policy: Data cache writealloc
>>>>>> [    0.000000] On node 0 totalpages: 262144
>>>>>> [    0.000000] free_area_init_node: node 0, pgdat c0c4f040,
>>>>>> node_mem_map
>>>>>> ef7fa000
>>>>>> [    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] psci: probing for conduit method from DT.
>>>>>> [    0.000000] psci: Using PSCI v0.1 Function IDs from DT
>>>>>> [    0.000000] random: get_random_bytes called from
>>>>>> start_kernel+0x90/0x400 with crng_init=0
>>>>>> [    0.000000] percpu: Embedded 16 pages/cpu @ef7be000 s34188 r8192
>>>>>> d23156 u65536
>>>>>> [    0.000000] pcpu-alloc: s34188 r8192 d23156 u65536 alloc=16*4096
>>>>>> [    0.000000] pcpu-alloc: [0] 0 [0] 1
>>>>>> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages:
>>>>>> 260608
>>>>>> [    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk
>>>>>> root=/dev/mmcblk0p2 rootwait
>>>>>> [    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: 1028452K/1048576K available (4766K kernel
>>>>>> code,
>>>>>> 318K rwdata, 1368K rodata, 2048K init, 245K bss, 20124K 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 - 0xc06a78e0   (6783 kB)
>>>>>> [    0.000000]       .init : 0xc0a00000 - 0xc0c00000   (2048 kB)
>>>>>> [    0.000000]       .data : 0xc0c00000 - 0xc0c4f940   ( 319 kB)
>>>>>> [    0.000000]        .bss : 0xc0c55d7c - 0xc0c9344c   ( 246 kB)
>>>>>> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2,
>>>>>> Nodes=1
>>>>>> [    0.000000] Preemptible hierarchical RCU implementation.
>>>>>> [    0.000000]     RCU restricting CPUs from NR_CPUS=8 to
>>>>>> nr_cpu_ids=2.
>>>>>> [    0.000000]     Tasks RCU enabled.
>>>>>> [    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
>>>>>> nr_cpu_ids=2
>>>>>> [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
>>>>>> [    0.000000] GIC: Using split EOI/Deactivate mode
>>>>>> [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
>>>>>> [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
>>>>>> max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
>>>>>> [    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps
>>>>>> every 4398046511097ns
>>>>>> [    0.000021] Switching to timer-based delay loop, resolution 41ns
>>>>>> [    0.000560] clocksource: timer: mask: 0xffffffff max_cycles:
>>>>>> 0xffffffff, max_idle_ns: 79635851949 ns
>>>>>> [    0.000843] clocksource: hstimer: mask: 0xffffffff max_cycles:
>>>>>> 0xffffffff, max_idle_ns: 12741736309 ns
>>>>>> [    0.001002] Console: colour dummy device 80x30
>>>>>> [    0.001040] Calibrating delay loop (skipped), value calculated
>>>>>> using
>>>>>> timer frequency.. 48.00 BogoMIPS (lpj=240000)
>>>>>> [    0.001057] pid_max: default: 32768 minimum: 301
>>>>>> [    0.001195] Mount-cache hash table entries: 2048 (order: 1,
>>>>>> 8192 bytes)
>>>>>> [    0.001212] Mountpoint-cache hash table entries: 2048 (order:
>>>>>> 1, 8192
>>>>>> bytes)
>>>>>> [    0.001763] CPU: Testing write buffer coherency: ok
>>>>>> [    0.002112] /cpus/cpu at 0 missing clock-frequency property
>>>>>> [    0.002133] /cpus/cpu at 1 missing clock-frequency property
>>>>>> [    0.002149] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
>>>>>> [    0.039933] Setting up static identity map for 0x40200000 -
>>>>>> 0x40200060
>>>>>> [    0.059925] Hierarchical SRCU implementation.
>>>>>> [    0.099986] smp: Bringing up secondary CPUs ...
>>>>>> [    0.180401] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
>>>>>> [    0.180532] smp: Brought up 1 node, 2 CPUs
>>>>>> [    0.180549] SMP: Total of 2 processors activated (96.00 BogoMIPS).
>>>>>> [    0.180557] CPU: All CPU(s) started in HYP mode.
>>>>>> [    0.180563] CPU: Virtualization extensions available.
>>>>>> [    0.188631] VFP support v0.3: implementor 41 architecture 2
>>>>>> part 30
>>>>>> variant 7 rev 4
>>>>>> [    0.189274] random: fast init done
>>>>>> [    0.189313] clocksource: jiffies: mask: 0xffffffff max_cycles:
>>>>>> 0xffffffff, max_idle_ns: 19112604462750000 ns
>>>>>> [    0.189342] futex hash table entries: 512 (order: 3, 32768 bytes)
>>>>>> [    0.189525] pinctrl core: initialized pinctrl subsystem
>>>>>> [    0.191194] NET: Registered protocol family 16
>>>>>> [    0.191549] DMA: preallocated 256 KiB pool for atomic coherent
>>>>>> allocations
>>>>>> [    0.193416] No ATAGs?
>>>>>> [    0.252047] reg-fixed-voltage gmac-3v3: could not find pctldev for
>>>>>> node /soc at 01c00000/pinctrl at 01c20800/gmac_power_pin at 0, deferring probe
>>>>>> [    0.252607] SCSI subsystem initialized
>>>>>> [    0.252692] libata version 3.00 loaded.
>>>>>> [    0.252963] usbcore: registered new interface driver usbfs
>>>>>> [    0.253023] usbcore: registered new interface driver hub
>>>>>> [    0.254023] usbcore: registered new device driver usb
>>>>>> [    0.254189] pps_core: LinuxPPS API ver. 1 registered
>>>>>> [    0.254202] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
>>>>>> Rodolfo Giometti <giometti at linux.it>
>>>>>> [    0.254232] PTP clock support registered
>>>>>> [    0.254603] Advanced Linux Sound Architecture Driver Initialized.
>>>>>> [    0.260853] clocksource: Switched to clocksource arch_sys_counter
>>>>>> [    0.267718] NET: Registered protocol family 2
>>>>>> [    0.268453] TCP established hash table entries: 8192 (order: 3,
>>>>>> 32768
>>>>>> bytes)
>>>>>> [    0.268543] TCP bind hash table entries: 8192 (order: 4, 65536
>>>>>> bytes)
>>>>>> [    0.268672] TCP: Hash tables configured (established 8192 bind
>>>>>> 8192)
>>>>>> [    0.268815] UDP hash table entries: 512 (order: 2, 16384 bytes)
>>>>>> [    0.268887] UDP-Lite hash table entries: 512 (order: 2, 16384
>>>>>> bytes)
>>>>>> [    0.269172] NET: Registered protocol family 1
>>>>>> [    0.269611] kvm [1]: 8-bit VMID
>>>>>> [    0.269626] kvm [1]: IDMAP page: 40201000
>>>>>> [    0.269635] kvm [1]: HYP VA range: c0000000:ffffffff
>>>>>> [    0.270043] kvm [1]: vgic-v2 at 1c84000
>>>>>> [    0.271073] kvm [1]: vgic interrupt IRQ16
>>>>>> [    0.271129] kvm [1]: virtual timer IRQ20
>>>>>> [    0.272028] kvm [1]: Hyp mode initialized successfully
>>>>>> [    0.273338] No memory allocated for crashlog
>>>>>> [    0.273598] workingset: timestamp_bits=30 max_order=18
>>>>>> bucket_order=0
>>>>>> [    0.278601] squashfs: version 4.0 (2009/01/31) Phillip Lougher
>>>>>> [    0.292201] bounce: pool size: 64 pages
>>>>>> [    0.292243] io scheduler noop registered
>>>>>> [    0.292253] io scheduler deadline registered
>>>>>> [    0.292549] io scheduler cfq registered (default)
>>>>>> [    0.293261] sun4i-usb-phy 1c13400.phy: could not find pctldev for
>>>>>> node /soc at 01c00000/pinctrl at 01c20800/usb0_id_detect_pin at 0,
>>>>>> deferring probe
>>>>>> [    0.296725] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi
>>>>>> PIO driver
>>>>>> [    0.389779] Serial: 8250/16550 driver, 8 ports, IRQ sharing
>>>>>> disabled
>>>>>> [    0.393786] console [ttyS0] disabled
>>>>>> [    0.414430] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44,
>>>>>> base_baud = 1500000) is a U6_16550A
>>>>>> [    1.029639] console [ttyS0] enabled
>>>>>> [    1.056914] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 45,
>>>>>> base_baud = 1500000) is a U6_16550A
>>>>>> [    1.089550] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 46,
>>>>>> base_baud = 1500000) is a U6_16550A
>>>>>> [    1.106206] loop: module loaded
>>>>>> [    1.112568] libphy: Fixed MDIO Bus: probed
>>>>>> [    1.117764] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
>>>>>> [    1.123579] sun7i-dwmac 1c50000.ethernet: no reset control found
>>>>>> [    1.131220] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
>>>>>> Driver
>>>>>> [    1.137753] ehci-platform: EHCI generic platform driver
>>>>>> [    1.143604] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
>>>>>> [    1.149814] ohci-platform: OHCI generic platform driver
>>>>>> [    1.155670] usbcore: registered new interface driver usb-storage
>>>>>> [    1.162265] mousedev: PS/2 mouse device common for all mice
>>>>>> [    1.169154] i2c /dev entries driver
>>>>>> [    1.174090] axp20x-i2c 0-0034: AXP20x variant AXP209 found
>>>>>> [    1.187796] axp20x-gpio axp20x-gpio: AXP209 GPIO driver loaded
>>>>>> [    1.202319] input: axp20x-pek as
>>>>>> /devices/platform/soc at 01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
>>>>>>
>>>>>>
>>>>>> [    1.213778] ldo1: supplied by regulator-dummy
>>>>>> [    1.218524] ldo2: supplied by regulator-dummy
>>>>>> [    1.224177] ldo3: supplied by regulator-dummy
>>>>>> [    1.229298] ldo4: supplied by regulator-dummy
>>>>>> [    1.234050] ldo5: supplied by regulator-dummy
>>>>>> [    1.239171] dcdc2: supplied by regulator-dummy
>>>>>> [    1.244443] dcdc3: supplied by regulator-dummy
>>>>>> [    1.251136] axp20x-i2c 0-0034: AXP20X driver loaded
>>>>>> [    1.276192] sunxi-wdt 1c20c90.watchdog: Watchdog enabled
>>>>>> (timeout=16
>>>>>> sec, nowayout=0)
>>>>>> [    1.299873] sunxi-mmc 1c0f000.mmc: Got CD GPIO
>>>>>> [    1.371113] sunxi-mmc 1c0f000.mmc: base:0xf08db000 irq:28
>>>>>> [    1.380813] sun4i-ss 1c15000.crypto-engine: Die ID 0
>>>>>> [    1.391202] NET: Registered protocol family 17
>>>>>> [    1.395836] can: controller area network core (rev 20170425 abi 9)
>>>>>> [    1.402152] NET: Registered protocol family 29
>>>>>> [    1.407683] 8021q: 802.1Q VLAN Support v1.8
>>>>>> [    1.414053] Registering SWP/SWPB emulation handler
>>>>>> [    1.430251] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
>>>>>> [    1.436074] sun7i-dwmac 1c50000.ethernet: no reset control found
>>>>>> [    1.450507] mmc0: host does not support reading read-only switch,
>>>>>> assuming write-enable
>>>>>> [    1.462584] mmc0: new high speed SDHC card at address aaaa
>>>>>> [    1.468564] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
>>>>>> [    1.474496]  mmcblk0: p1 p2
>>>>>> [    1.570927] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
>>>>>> [    1.576513] sun7i-dwmac 1c50000.ethernet: DMA HW capability
>>>>>> register
>>>>>> supported
>>>>>> [    1.583786] sun7i-dwmac 1c50000.ethernet: Normal descriptors
>>>>>> [    1.589642] libphy: stmmac: probed
>>>>>> [    1.594540] ehci-platform 1c14000.usb: EHCI Host Controller
>>>>>> [    1.600161] ehci-platform 1c14000.usb: new USB bus registered,
>>>>>> assigned bus number 1
>>>>>> [    1.608127] ehci-platform 1c14000.usb: irq 30, io mem 0x01c14000
>>>>>> [    1.640868] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
>>>>>> [    1.647162] usb usb1: New USB device found, idVendor=1d6b,
>>>>>> idProduct=0002
>>>>>> [    1.653975] usb usb1: New USB device strings: Mfr=3, Product=2,
>>>>>> SerialNumber=1
>>>>>> [    1.661200] usb usb1: Product: EHCI Host Controller
>>>>>> [    1.666074] usb usb1: Manufacturer: Linux 4.14.20 ehci_hcd
>>>>>> [    1.671567] usb usb1: SerialNumber: 1c14000.usb
>>>>>> [    1.676808] hub 1-0:1.0: USB hub found
>>>>>> [    1.680622] hub 1-0:1.0: 1 port detected
>>>>>> [    1.685689] ehci-platform 1c1c000.usb: EHCI Host Controller
>>>>>> [    1.691340] ehci-platform 1c1c000.usb: new USB bus registered,
>>>>>> assigned bus number 2
>>>>>> [    1.699247] ehci-platform 1c1c000.usb: irq 34, io mem 0x01c1c000
>>>>>> [    1.730870] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
>>>>>> [    1.737159] usb usb2: New USB device found, idVendor=1d6b,
>>>>>> idProduct=0002
>>>>>> [    1.743976] usb usb2: New USB device strings: Mfr=3, Product=2,
>>>>>> SerialNumber=1
>>>>>> [    1.751203] usb usb2: Product: EHCI Host Controller
>>>>>> [    1.756076] usb usb2: Manufacturer: Linux 4.14.20 ehci_hcd
>>>>>> [    1.761570] usb usb2: SerialNumber: 1c1c000.usb
>>>>>> [    1.766781] hub 2-0:1.0: USB hub found
>>>>>> [    1.770577] hub 2-0:1.0: 1 port detected
>>>>>> [    1.775623] ohci-platform 1c14400.usb: Generic Platform OHCI
>>>>>> controller
>>>>>> [    1.782316] ohci-platform 1c14400.usb: new USB bus registered,
>>>>>> assigned bus number 3
>>>>>> [    1.790254] ohci-platform 1c14400.usb: irq 31, io mem 0x01c14400
>>>>>> [    1.865033] usb usb3: New USB device found, idVendor=1d6b,
>>>>>> idProduct=0001
>>>>>> [    1.871855] usb usb3: New USB device strings: Mfr=3, Product=2,
>>>>>> SerialNumber=1
>>>>>> [    1.879069] usb usb3: Product: Generic Platform OHCI controller
>>>>>> [    1.885001] usb usb3: Manufacturer: Linux 4.14.20 ohci_hcd
>>>>>> [    1.890481] usb usb3: SerialNumber: 1c14400.usb
>>>>>> [    1.895715] hub 3-0:1.0: USB hub found
>>>>>> [    1.899511] hub 3-0:1.0: 1 port detected
>>>>>> [    1.904874] vcc3v0: disabling
>>>>>> [    1.907855] vcc5v0: disabling
>>>>>> [    1.911089] ahci-5v: disabling
>>>>>> [    1.914152] usb0-vbus: disabling
>>>>>> [    1.917380] ALSA device list:
>>>>>> [    1.920343]   No soundcards found.
>>>>>> [    1.935814] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to
>>>>>> feature incompatibilities
>>>>>> [    1.944601] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to
>>>>>> feature incompatibilities
>>>>>> [    1.966554] EXT4-fs (mmcblk0p2): mounted filesystem without
>>>>>> journal.
>>>>>> Opts: (null)
>>>>>> [    1.974152] VFS: Mounted root (ext4 filesystem) readonly on device
>>>>>> 179:2.
>>>>>> [    1.983177] Freeing unused kernel memory: 2048K
>>>>>> [    2.061011] usb 1-1: new high-speed USB device number 2 using
>>>>>> ehci-platform
>>>>>> [    2.074884] init: Console is alive
>>>>>> [    2.078583] init: - watchdog -
>>>>>> [    2.180909] usb 2-1: new high-speed USB device number 2 using
>>>>>> ehci-platform
>>>>>> [    2.230219] kmodloader: loading kernel modules from
>>>>>> /etc/modules-boot.d/*
>>>>>> [    2.240950] kmodloader: done loading kernel modules from
>>>>>> /etc/modules-boot.d/*
>>>>>> [    2.248879] init: - preinit -
>>>>>> [    2.298988] usb 1-1: New USB device found, idVendor=148f,
>>>>>> idProduct=5370
>>>>>> [    2.305780] usb 1-1: New USB device strings: Mfr=1, Product=2,
>>>>>> SerialNumber=3
>>>>>> [    2.312994] usb 1-1: Product: 802.11 n WLAN
>>>>>> [    2.317182] usb 1-1: Manufacturer: Ralink
>>>>>> [    2.321288] usb 1-1: SerialNumber: 1.0
>>>>>> [    2.347814] Generic PHY fixed-0:00: attached PHY driver
>>>>>> [Generic PHY]
>>>>>> (mii_bus:phy_addr=fixed-0:00, irq=POLL)
>>>>>> [    2.359427] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum
>>>>>> Offload disabled
>>>>>> [    2.366819] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management
>>>>>> Counters available
>>>>>> [    2.374518] sun7i-dwmac 1c50000.ethernet eth0: PTP not
>>>>>> supported by HW
>>>>>> [    2.383237] usb 2-1: New USB device found, idVendor=0bda,
>>>>>> idProduct=8178
>>>>>> [    2.389949] usb 2-1: New USB device strings: Mfr=1, Product=2,
>>>>>> SerialNumber=3
>>>>>> [    2.397195] usb 2-1: Product: 802.11n WLAN Adapter
>>>>>> [    2.402029] usb 2-1: Manufacturer: Realtek
>>>>>> [    2.406123] usb 2-1: SerialNumber: 00e04c000001
>>>>>> [    3.440975] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control off
>>>>>> [    6.740644] mount_root: mounting /dev/root
>>>>>> [    6.745454] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs,
>>>>>> running e2fsck is recommended
>>>>>> [    6.756661] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
>>>>>> [    6.788801] FAT-fs (mmcblk0p1): Volume was not properly unmounted.
>>>>>> Some data may be corrupt. Please run fsck.
>>>>>> [    6.852687] urandom-seed: Seeding with /etc/urandom.seed
>>>>>> [    6.966076] procd: - early -
>>>>>> [    6.969054] procd: - watchdog -
>>>>>> [    7.755781] procd: - watchdog -
>>>>>> [    7.759218] procd: - ubus -
>>>>>> [    7.814726] procd: - init -
>>>>>> [    8.003666] kmodloader: loading kernel modules from
>>>>>> /etc/modules.d/*
>>>>>> [    8.013466] NET: Registered protocol family 8
>>>>>> [    8.017837] NET: Registered protocol family 20
>>>>>> [    8.033442] PPP generic driver version 2.4.2
>>>>>> [    8.042178] Netfilter messages via NETLINK v0.30.
>>>>>> [    8.048466] ip_set: protocol 6
>>>>>> [    8.084300] u32 classifier
>>>>>> [    8.087034]     input device check on
>>>>>> [    8.090714]     Actions configured
>>>>>> [    8.096318] Mirror/redirect action on
>>>>>> [    8.106498] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
>>>>>> [    8.130181] Loading modules backported from Linux version
>>>>>> wt-2017-11-01-0-gfe248fc2c180
>>>>>> [    8.138895] Backport generated by backports.git
>>>>>> v4.14-rc2-1-31-g86cf0e5d
>>>>>> [    8.151900] ip_tables: (C) 2000-2006 Netfilter Core Team
>>>>>> [    8.512416] ctnetlink v0.93: registering with nfnetlink.
>>>>>> [    8.631827] NET: Registered protocol family 24
>>>>>> [    8.660634] xt_time: kernel timezone is -0000
>>>>>> [    9.030880] usb 1-1: reset high-speed USB device number 2 using
>>>>>> ehci-platform
>>>>>> [    9.241831] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390,
>>>>>> rev 0502 detected
>>>>>> [    9.277822] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370
>>>>>> detected
>>>>>> [    9.286471] ieee80211 phy0: Selected rate control algorithm
>>>>>> 'minstrel_ht'
>>>>>> [    9.291272] usbcore: registered new interface driver rt2800usb
>>>>>> [    9.297365] kmodloader: done loading kernel modules from
>>>>>> /etc/modules.d/*
>>>>>> [   11.561215] Generic PHY fixed-0:00: attached PHY driver
>>>>>> [Generic PHY]
>>>>>> (mii_bus:phy_addr=fixed-0:00, irq=POLL)
>>>>>> [   11.573213] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum
>>>>>> Offload disabled
>>>>>> [   11.580572] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management
>>>>>> Counters available
>>>>>> [   11.588472] sun7i-dwmac 1c50000.ethernet eth0: PTP not
>>>>>> supported by HW
>>>>>> [   11.596272] br-lan: port 1(eth0) entered blocking state
>>>>>> [   11.601688] br-lan: port 1(eth0) entered disabled state
>>>>>> [   11.607232] device eth0 entered promiscuous mode
>>>>>> [   11.662123] br-lan: port 2(eth0.1) entered blocking state
>>>>>> [   11.668473] br-lan: port 2(eth0.1) entered disabled state
>>>>>> [   11.675980] device eth0.1 entered promiscuous mode
>>>>>> [   12.641026] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
>>>>>> 1Gbps/Full - flow control off
>>>>>> [   12.649295] br-lan: port 1(eth0) entered blocking state
>>>>>> [   12.654646] br-lan: port 1(eth0) entered forwarding state
>>>>>> [   12.664325] br-lan: port 2(eth0.1) entered blocking state
>>>>>> [   12.669764] br-lan: port 2(eth0.1) entered forwarding state
>>>>>> [   13.580335] ieee80211 phy0: rt2x00lib_request_firmware: Info -
>>>>>> Loading firmware file 'rt2870.bin'
>>>>>> [   13.594580] ieee80211 phy0: rt2x00lib_request_firmware: Info -
>>>>>> Firmware detected - version: 0.36
>>>>>> [   14.054302] br-lan: port 3(wlan0) entered blocking state
>>>>>> [   14.065349] br-lan: port 3(wlan0) entered disabled state
>>>>>> [   14.078333] device wlan0 entered promiscuous mode
>>>>>> [   14.084852] br-lan: port 3(wlan0) entered blocking state
>>>>>> [   14.090203] br-lan: port 3(wlan0) entered forwarding state
>>>>>> [   14.103333] br-lan: port 3(wlan0) entered disabled state
>>>>>> [   14.373214] br-lan: port 3(wlan0) entered blocking state
>>>>>> [   14.378568] br-lan: port 3(wlan0) entered forwarding state
>>>>>> [  250.660996] random: crng init done
>>>>>>
>>>>>>
>>>>>> On 03/03/2018 11:07 PM, Florian Fainelli wrote:
>>>>>>> On 03/03/2018 06:17 PM, TheWerthFam wrote:
>>>>>>>> Yes,
>>>>>>>> switch driver is missing.  17.01.4 kernel log shows: 
>>>>>>>> "b53_common: found
>>>>>>>> switch: BCM53125, rev 4"
>>>>>>>>
>>>>>>>> 18.0x doesn't show any b53/BCM53125 switch information.
>>>>>>> That part looks good:
>>>>>>>
>>>>>>> target/linux/sunxi/config-4.14:CONFIG_SWCONFIG_B53=y
>>>>>>> target/linux/sunxi/config-4.14:# CONFIG_SWCONFIG_B53_MMAP_DRIVER is
>>>>>>> not set
>>>>>>> target/linux/sunxi/config-4.14:CONFIG_SWCONFIG_B53_PHY_DRIVER=y
>>>>>>> target/linux/sunxi/config-4.14:CONFIG_SWCONFIG_B53_PHY_FIXUP=y
>>>>>>> target/linux/sunxi/config-4.14:# CONFIG_SWCONFIG_B53_SRAB_DRIVER is
>>>>>>> not set
>>>>>>>
>>>>>>> Can you send a complete kernel log?
>>>>>>>
>>>>>>>
>>>>>>>> Thanks
>>>>>>>>        Derek
>>>>>>>>
>>>>>>>> On 03/03/2018 08:30 PM, Rosen Penev wrote:
>>>>>>>>> On Sat, Mar 3, 2018 at 5:26 PM, TheWerthFam
>>>>>>>>> <thewerthfam at gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>> 17.01.4 works great currently on this platform, just trying
>>>>>>>>>> out the
>>>>>>>>>> cutting
>>>>>>>>>> edge and found the switch configuration not existent.
>>>>>>>>>> swconfig list  returns no results.
>>>>>>>>>>
>>>>>>>>>> Normally swconfig returns
>>>>>>>>>> Found: switch0 - eth0
>>>>>>>>>> Found: switch1 - eth0
>>>>>>>>>>
>>>>>>>>>> The interfaces eth0.1 eth0.2 etc are created, but they don't
>>>>>>>>>> pass any
>>>>>>>>>> traffic.  LAN ports and the WAN port LEDs seem to work in
>>>>>>>>>> their normal
>>>>>>>>>> quirky way with devices connected but they don't pass any
>>>>>>>>>> traffic.
>>>>>>>>>>
>>>>>>>>>> Any advice and direction of work that needs to be done would be
>>>>>>>>>> appreciated.
>>>>>>>>>>
>>>>>>>>> Did you clear settings when upgrading? Please post
>>>>>>>>> /etc/config/network.
>>>>>>>>>
>>>>>>>>> This sounds like the switch driver is missing.
>>>>>>>>>> Cheers
>>>>>>>>>>         Derek
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Lede-dev mailing list
>>>>>>>>>> Lede-dev at lists.infradead.org
>>>>>>>>>> http://lists.infradead.org/mailman/listinfo/lede-dev
>>>>>>>> _______________________________________________
>>>>>>>> Lede-dev mailing list
>>>>>>>> Lede-dev at lists.infradead.org
>>>>>>>> http://lists.infradead.org/mailman/listinfo/lede-dev
>>>
>>> _______________________________________________
>>> Lede-dev mailing list
>>> Lede-dev at lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/lede-dev
>>>
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev




More information about the Lede-dev mailing list