On Sun, 25 Mar 2018 00:45:14 +0900,
Artturi Alm wrote:
>
> On Sat, Mar 24, 2018 at 11:31:36PM +0900, SASANO Takayoshi wrote:
> > Hello,
> >
> > On Sat, 24 Mar 2018 22:38:42 +0900,
> > Mark Kettenis wrote:
> > > I believe the sunxi EMAC uses SRAM and that the current sxie(4) driver
> > > expects that SRAM to be properly initialized and set up by U-Boot.
> > >
> > > In sunxi_emac_board_setup() U-Boot does:
> > >
> > > /* Map SRAM to EMAC */
> > > setbits_le32(&sram->ctrl1, 0x5 << 2);
> > >
> > > Not sure if that is all that is needed. Doing that from inside the
> > > sxie(4) driver code is a bit hard; this would probably require adding
> > > a driver for the sram-controller ("allwinner,sun4i-a10-sram-controller").
> >
> > I checked the compiled object of U-boot (from
> > /usr/ports/pobj/u-boot-arm-2017.09-arm/u-boot-2017.09/build), there is no
> > EMAC driver for not only Linksprite_pcDuino but also many A10 based board.
> >
>
> fixed in 2017.11:
> http://git.denx.de/?p=u-boot.git;a=commit;h=e286fada9d434cd211b56fa7a4b5ef8965577e7f
>
> you should really update.
>
I upgraded U-boot from 2017.09 to 2018.03 in -current ports and
checked that sxie.c (with/without patch) is work with new U-boot.
Thanks to Artturi and Mark.
Regards,
--
SASANO Takayoshi (JG1UAA) <[email protected]>