mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* socfpga: ethernet problem
@ 2018-03-26  7:20 Antony Pavlov
  2018-03-27  5:31 ` Steffen Trumtrar
  0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2018-03-26  7:20 UTC (permalink / raw)
  To: Sascha Hauer, Steffen Trumtrar, Trent Piepho; +Cc: barebox

Hi!

Barebox for DE0-Nano-SoC succesfully starts on Terasic DE10-Nano board
but there is an ethernet issue.

After `make ARCH=arm socfpga_defconfig` I see that the CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA
option is disabled.

  #
  # Network drivers
  #
  ...
  CONFIG_DRIVER_NET_DESIGNWARE=y
  # CONFIG_DRIVER_NET_DESIGNWARE_GENERIC is not set
  # CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA is not set

after enabling CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA I see 'Could not get sysmgr-syscon node'
error message:


  barebox 2018.03.0-00408-g5b07a6b67d #5 Sat Mar 24 19:50:00 MSK 2018


  Board: Terasic DE0-Nano-SoC/Atlas-SoC Kit
  socfpga_designware_eth ff702000.ethernet: user ID: 0x10, Synopsys ID: 0x37
  mdio_bus: miibus0: probed
  WARNING: at include/linux/reset.h:43/reset_control_get()!
  socfpga_designware_eth ff702000.ethernet: Could not get sysmgr-syscon node
  socfpga_designware_eth ff702000.ethernet: probe failed: Function not implemented
  dw_mmc ff704000.dwmmc0: registered as ff704000.dwmmc0
  netconsole: registered as netconsole-1
  malloc space: 0x1fefd9c0 -> 0x3fdfb37f (size 511 MiB)
  mmc0: detected SD card version 2.0
  mmc0: registered mmc0
  environment load /boot/barebox.env: No such file or directory
  Maybe you have to create the partition.
  running /env/bin/init...

  Hit any key to stop autoboot:    3
  barebox@Terasic DE0-Nano-SoC/Atlas-SoC Kit:/


Any suggestions or comments, please?

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: socfpga: ethernet problem
  2018-03-26  7:20 socfpga: ethernet problem Antony Pavlov
@ 2018-03-27  5:31 ` Steffen Trumtrar
  2018-03-27  9:21   ` Antony Pavlov
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Trumtrar @ 2018-03-27  5:31 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox, Trent Piepho


Hi,

Antony Pavlov <antonynpavlov@gmail.com> writes:

> Hi!
>
> Barebox for DE0-Nano-SoC succesfully starts on Terasic DE10-Nano board
> but there is an ethernet issue.
>
> After `make ARCH=arm socfpga_defconfig` I see that the CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA
> option is disabled.
>
>   #
>   # Network drivers
>   #
>   ...
>   CONFIG_DRIVER_NET_DESIGNWARE=y
>   # CONFIG_DRIVER_NET_DESIGNWARE_GENERIC is not set
>   # CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA is not set
>
> after enabling CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA I see 'Could not get sysmgr-syscon node'
> error message:
>
>

Patch opportunity:

DRIVER_NET_DESIGNWARE_SOCFPGA is missing a
    select MFD_SYSCON

and the defconfig should be regenerated with the socfpga driver instead.

Best regards,
Steffen

-- 
Pengutronix e.K.                           | Steffen Trumtrar            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: socfpga: ethernet problem
  2018-03-27  5:31 ` Steffen Trumtrar
@ 2018-03-27  9:21   ` Antony Pavlov
  0 siblings, 0 replies; 3+ messages in thread
From: Antony Pavlov @ 2018-03-27  9:21 UTC (permalink / raw)
  To: Steffen Trumtrar; +Cc: barebox

On Tue, 27 Mar 2018 07:31:29 +0200
Steffen Trumtrar <s.trumtrar@pengutronix.de> wrote:

> 
> Hi,
> 
> Antony Pavlov <antonynpavlov@gmail.com> writes:
> 
> > Hi!
> >
> > Barebox for DE0-Nano-SoC succesfully starts on Terasic DE10-Nano board
> > but there is an ethernet issue.
> >
> > After `make ARCH=arm socfpga_defconfig` I see that the CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA
> > option is disabled.
> >
> >   #
> >   # Network drivers
> >   #
> >   ...
> >   CONFIG_DRIVER_NET_DESIGNWARE=y
> >   # CONFIG_DRIVER_NET_DESIGNWARE_GENERIC is not set
> >   # CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA is not set
> >
> > after enabling CONFIG_DRIVER_NET_DESIGNWARE_SOCFPGA I see 'Could not get sysmgr-syscon node'
> > error message:
> >
> >
> 
> Patch opportunity:
> 
> DRIVER_NET_DESIGNWARE_SOCFPGA is missing a
>     select MFD_SYSCON
> 
> and the defconfig should be regenerated with the socfpga driver instead.
> 

I made changes you suggest. Now ethernet works!

Many thanks!

Now I still have some minor issues with DE10-Nano:

  * socfpga-xload-2_defconfig does not work but socfpga-xload_defconfig does;
  * 'sleep 1' longs for 5 seconds.

I suppose that DE10-Nano is somewhat differ with DE0-Nano-SoC.

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-27  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-26  7:20 socfpga: ethernet problem Antony Pavlov
2018-03-27  5:31 ` Steffen Trumtrar
2018-03-27  9:21   ` Antony Pavlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox