Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vadym Kochan <vadym.kochan@plvision.eu>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] configs/solidrun_macchiatobin_defconfig: include for Singleshot DTS
Date: Thu, 15 Apr 2021 14:07:53 +0300	[thread overview]
Message-ID: <20210415110753.GA4013@plvision.eu> (raw)
In-Reply-To: <YHc0JbHzCrOw40g2@curiosity>

Hi Sergey,

On Wed, Apr 14, 2021 at 09:27:49PM +0300, Sergey Matyukevich wrote:
> Hello Vadym,
> 
> > > > > > > Single- & Double shot boards have many in common except additional
> > > > > > > RJ45 tranceivers near by each of 10G SFP and a bit different CPU freq.
> > > > > > > 
> > > > > > > Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
> > > > > > > ---
> > > > > > >  configs/solidrun_macchiatobin_defconfig | 2 +-
> > > > > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > > > 
> > > > > > > diff --git a/configs/solidrun_macchiatobin_defconfig b/configs/solidrun_macchiatobin_defconfig
> > > > > > > index 7d06313b03db..34094a833b66 100644
> > > > > > > --- a/configs/solidrun_macchiatobin_defconfig
> > > > > > > +++ b/configs/solidrun_macchiatobin_defconfig
> > > > > > > @@ -30,7 +30,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > > > > > >  BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.5"
> > > > > > >  BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
> > > > > > >  BR2_LINUX_KERNEL_DTS_SUPPORT=y
> > > > > > > -BR2_LINUX_KERNEL_INTREE_DTS_NAME="marvell/armada-8040-mcbin"
> > > > > > > +BR2_LINUX_KERNEL_INTREE_DTS_NAME="marvell/armada-8040-mcbin marvell/armada-8040-mcbin-singleshot"
> > > > > > >  BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/solidrun/macchiatobin/linux-extras.config"
> > > > > > >  BR2_LINUX_KERNEL_INSTALL_TARGET=y
> > > > > > >  BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
> > > > > > 
> > > > > > I do not have access to MacchiatoBin hardware anymore, but I have been using
> > > > > > current defconfig with DoubleShot boards. If this defconfig does not work
> > > > > > well for SingleShot boards, then it makes sense to add a separate defconfig
> > > > > > for such boards rather then remove DoubleShot support completely. Probably
> > > > > > linux-extras.config in board/solidrun/macchiatobin worth another look to
> > > > > > make sure that features for both boards are included.
> > > > > > 
> > > > > > Regards,
> > > > > > Sergey
> > > > > 
> > > > > If comparing Single- and DoubleShot Linux DTS files they have difference
> > > > > only in SFP config and +1 heartbeat LED. Do you think it is worth to duplicate
> > > > > current defconfig for SingleShot board even if SFP will not work by
> > > > > using DualShot DTS instead of just append _INTREE_DTS_NAME with
> > > > > -singleshot version ?
> > > > 
> > > > I think any option will do if it does not break existing use-cases.
> > > > Could you please confirm that DoubleShot image does not work
> > > > properly on SingleShot board ?
> > > > 
> > > > BTW, I thought that support for autodetect of copper vs fiber with
> > > > some prioritization has been already implemented in Linux for
> > > > mcbin hardware. Do you know if this is true or not ?
> > > > 
> > > > Regards,
> > > > Sergey
> > > > 
> > > 
> > > I will check SFP modules in Monday with DoubleShot DTS.
> > > 
> > > Thanks,
> > 
> > 
> > Looks like there is no much reason to add particular SingleShot DTS
> > but only if someone really need the heartbeat LED is blinking which
> > works only with SingleShot DTS)
> 
> Do you mean that network interfaces on SingleShot board are working
> properly with current buildroot mcbin image ?
> 
> Regards,
> Sergey

OK, I was wrong ...

So I am using the same Buildroot defconfig and just switching between
DualShot and SingleShot DTSs to check the difference, and on SingleShot
I can bring up eth1 & eth3 with NG Optics SFP modules connected via
loopback, but I can't do this on DualShot DTS and Linux prints no PHY
for eth1. So there is a really functional difference for SFPs.

So, probably it is better to create separate defconfig for _singleshot
version.

Also I got an issue with NFS boot with this Linux version which I fixed
it with in armada-8040-mcbin.dtsi:

&cp1_eth1 {
	/* CPS Lane 0 - J5 (Gigabit RJ45) */

	...

	managed = "in-band-status";

	...
};

But issue is not observed on net-next's version (probably
issue might already be fixed in some of the stable version, I can
look for stable version with the fixed .dtsi).

The fix also applicable for DualShot DTS version (which I checked
on SingleShot board).

Regards,

  reply	other threads:[~2021-04-15 11:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08  7:33 [Buildroot] [PATCH] configs/solidrun_macchiatobin_defconfig: include for Singleshot DTS Vadym Kochan
2021-04-08  8:18 ` Sergey Matyukevich
2021-04-09 12:45   ` Vadym Kochan
2021-04-09 18:53     ` Sergey Matyukevich
2021-04-09 18:58       ` Vadym Kochan
2021-04-14 15:59         ` Vadym Kochan
2021-04-14 18:27           ` Sergey Matyukevich
2021-04-15 11:07             ` Vadym Kochan [this message]
2021-04-20 21:16   ` Thomas Petazzoni
2021-04-23  8:04     ` Sergey Matyukevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210415110753.GA4013@plvision.eu \
    --to=vadym.kochan@plvision.eu \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox