Home Forum Software discussion Kernel vanilla

This topic contains 6 replies, has 3 voices, and was last updated by  kelledin 1 month, 3 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6830

    alpha_one_x86
    Participant

    Hi,

    How compile the vanilla kernel, in best I have that’s:
    https://pastebin.com/VVPHNPKC
    why ethernet/SFP+ is not detected?
    ifconfig -a show nothing

    Cheers,

    #6831

    kelledin
    Participant

    Currently I’m running vanilla 4.16.15 and have eth0-eth2 functional (at least as far as the RJ45 ports; I haven’t tried it with SFP+ modules yet, but I’ll get to that sooner or later). I know for certain you need CONFIG_MVPP2 and CONFIG_PHY_MVEBU_CP110_COMPHY enabled for the ethernet ports to show up (the COMPHY requirement is not obvious–but since it has SFP sockets, it is necessary).

    This is a little different than the last Macchiato BSP I tried; IIRC the 4.4 kernel from back then included a specialized add-on MVPP driver.

    You *might* also need CONFIG_OF_MDIO, CONFIG_MVMDIO, and CONFIG_MDIO_I2C enabled. If you like I can toss you my kernel .config, but I turned on a LOT of extra options just to see what all would build with my current compiler setup.

    #6832

    alpha_one_x86
    Participant

    Hi,
    Thanks, now the rj45 port work.
    for the SFP+ with direct attach:
    [ 293.143884] mvpp2 f2000000.ethernet eth0: cannot connect to phy
    [ 293.154107] mvpp2 f2000000.ethernet eth0: cannot connect to phy
    [ 304.591208] mvpp2 f4000000.ethernet eth1: cannot connect to phy
    [ 304.601483] mvpp2 f4000000.ethernet eth1: cannot connect to phy
    Work with official kernel. And I need the SFP+.

    Cheers,

    #6833

    alpha_one_x86
    Participant

    With official, I don’t have firewall, I can’t compile from source, see:
    https://github.com/MarvellEmbeddedProcessors/linux-marvell/issues/13

    #6843

    hchenji
    Participant

    Can you please send me your .config if you got it to boot?

    Also, try the latest .18-RC5, it has SFP cage support. marvell linux just hardcodes the phy bit rate.

    https://patchwork.kernel.org/patch/10380619/

    #6844

    alpha_one_x86
    Participant

    https://pastebin.com/mkM42nGi
    With .18 kernel.
    The problem start when I disable USB, HID, … well all the module not used into router.

    I load this config into vanilla kernel, I add the http://macchiatobin.net/forums/topic/kernel-vanilla/#post-6831
    disable too the not needed module, …

    I was always access to debug port.

    #6852

    kelledin
    Participant

    Ah well…I’m now getting back to this. Finally picked up some SFPs and a Mikrotik switch.

    FYI the closest to mainline kernel work to get this going is on Russell King’s “mcbin” branch (based off 4.17.0), accessible here:

    http://git.armlinux.org.uk/cgit/linux-arm.git

    I pulled his changeset and forward-ported it to 4.17.10. This took a few changes, mainly to support the new mac_link_up()/mac_link_down() prototypes, plus removing his head.S changes to make the kernel bootable on my DoubleShot board. Aside from that, his current DTS changes hardcode the MAC addresses to some bogus defaults, and the end-result is not getting link-up on ANY of my eth ports. So definitely not production-ready. 🙁

    I’ll see what i can do to pitch in and help him out with this.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Technical specification tables can not be displayed on mobile. Please view on desktop