Re: [PATCH] Add support for the NanoPiNeo

2017-12-27 Thread Paul Tagliamonte
Hey all,

I can confirm this patch still works, and the resulting stock image
has a working NIC on a NanoPi Neo. Install completed, no issues, and
the machine is ssh'able over my network.

Thanks, all! I'm one happy camper!
   Paul


On Wed, Dec 27, 2017 at 8:52 PM, Paul Tagliamonte  wrote:
> It looks like the Debian package may be carrying the dwmac-sun8i
> driver. I'm going to test it out locally.
>
> On Mon, Sep 4, 2017 at 3:20 PM, Karsten Merker  wrote:
>> On Wed, Aug 23, 2017 at 08:23:52AM +0200, Karsten Merker wrote:
>>> On Tue, Aug 22, 2017 at 11:11:56PM -0400, Paul Tagliamonte wrote:
>>
>>> > vagrantc added support for the NanoPi in u-boot in version
>>> > 2016.03~rc3+dfsg1-1, and i've been playing with it since.
>>> > Finally, with Linux 4.13, the NanoPi emac driver has been
>>> > mainlined, and it (finally!) is starting to look sensible.
>>> >
>>> > I've got my NanoPi booted and the eth looking happy, but I've
>>> > not completed an install yet.  Attached is a patch to
>>> > generate the firmware image.  I was able to test the
>>> > generated image, and it booted.
>>> >
>>> > Attached is a patch against debian-installer/installer,
>>> > adding the NanoPiNeo to the u-boot-image-config.
>> [...]
>>> many thanks for the patch.  I will apply it to the d-i
>>> repository, but I would prefer to wait until we have have
>>> kernel 4.13 in unstable and can change the d-i kernel ABI
>>> setting accordingly.  Currently we build d-i based on kernel
>>> 4.12 which doesn't support the H3 EMAC, so a 4.12-based netboot
>>> image wouldn't be usable on a "plain" NanoPi Neo (i.e. without
>>> adding a USB-ethernet-adaptor).
>>
>> Hello,
>>
>> unfortunately some issues regarding the devicetree bindings for
>> the H3 EMAC driver couldn't be sorted out before the final
>> release of kernel 4.13.  As a result, the sunxi port maintainers
>> and the ARM-SoC maintainer have decided to revert the
>> corresponding patches and work on a proper solution during the
>> 4.14 development cycle:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fabed5ad230a5ff8320b2928ec20a52e59a9bf60
>>
>> I'll keep your patch on my todo list and revisit it again once
>> the H3 EMAC driver is completely upstream (hopefully in kernel
>> 4.14).
>>
>> Regards,
>> Karsten
>> --
>> Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
>> sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
>> Werbung sowie der Markt- oder Meinungsforschung.
>
>
>
> --
> :wq



-- 
:wq



Re: [PATCH] Add support for the NanoPiNeo

2017-12-27 Thread Paul Tagliamonte
It looks like the Debian package may be carrying the dwmac-sun8i
driver. I'm going to test it out locally.

On Mon, Sep 4, 2017 at 3:20 PM, Karsten Merker  wrote:
> On Wed, Aug 23, 2017 at 08:23:52AM +0200, Karsten Merker wrote:
>> On Tue, Aug 22, 2017 at 11:11:56PM -0400, Paul Tagliamonte wrote:
>
>> > vagrantc added support for the NanoPi in u-boot in version
>> > 2016.03~rc3+dfsg1-1, and i've been playing with it since.
>> > Finally, with Linux 4.13, the NanoPi emac driver has been
>> > mainlined, and it (finally!) is starting to look sensible.
>> >
>> > I've got my NanoPi booted and the eth looking happy, but I've
>> > not completed an install yet.  Attached is a patch to
>> > generate the firmware image.  I was able to test the
>> > generated image, and it booted.
>> >
>> > Attached is a patch against debian-installer/installer,
>> > adding the NanoPiNeo to the u-boot-image-config.
> [...]
>> many thanks for the patch.  I will apply it to the d-i
>> repository, but I would prefer to wait until we have have
>> kernel 4.13 in unstable and can change the d-i kernel ABI
>> setting accordingly.  Currently we build d-i based on kernel
>> 4.12 which doesn't support the H3 EMAC, so a 4.12-based netboot
>> image wouldn't be usable on a "plain" NanoPi Neo (i.e. without
>> adding a USB-ethernet-adaptor).
>
> Hello,
>
> unfortunately some issues regarding the devicetree bindings for
> the H3 EMAC driver couldn't be sorted out before the final
> release of kernel 4.13.  As a result, the sunxi port maintainers
> and the ARM-SoC maintainer have decided to revert the
> corresponding patches and work on a proper solution during the
> 4.14 development cycle:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fabed5ad230a5ff8320b2928ec20a52e59a9bf60
>
> I'll keep your patch on my todo list and revisit it again once
> the H3 EMAC driver is completely upstream (hopefully in kernel
> 4.14).
>
> Regards,
> Karsten
> --
> Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
> sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
> Werbung sowie der Markt- oder Meinungsforschung.



-- 
:wq



Re: [PATCH] Add support for the NanoPiNeo

2017-09-04 Thread Paul Tagliamonte
On Mon, Sep 04, 2017 at 09:20:29PM +0200, Karsten Merker wrote:
> Hello,
> 
> unfortunately some issues regarding the devicetree bindings for
> the H3 EMAC driver couldn't be sorted out before the final
> release of kernel 4.13.  As a result, the sunxi port maintainers
> and the ARM-SoC maintainer have decided to revert the
> corresponding patches and work on a proper solution during the
> 4.14 development cycle:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fabed5ad230a5ff8320b2928ec20a52e59a9bf60

Oh jeez, bummer. Disapointing, but I'm happy someone's paying attention
at least.

> I'll keep your patch on my todo list and revisit it again once
> the H3 EMAC driver is completely upstream (hopefully in kernel
> 4.14).
> 
> Regards,
> Karsten

Thanks, Karsten!

I've been doing some testing with the hardware, and aside from 100 Mbps
rather than Gigabit on the driver, it's been behaving quite nicely. I'm
happy to own this in some capacity when it does land.

  Paul



Re: [PATCH] Add support for the NanoPiNeo

2017-08-23 Thread Paul Tagliamonte
On Wed, Aug 23, 2017 at 08:23:52AM +0200, Karsten Merker wrote:
> Hello,
> 
> many thanks for the patch. I will apply it to the d-i repository,
> but I would prefer to wait until we have have kernel 4.13 in
> unstable and can change the d-i kernel ABI setting accordingly. 

Makes total sense. I only sent this because 4.13 is in experimental, and
figured it'd take a while for someone to pick it up :)

> Currently we build d-i based on kernel 4.12 which doesn't support
> the H3 EMAC, so a 4.12-based netboot image wouldn't be usable on a
> "plain" NanoPi Neo (i.e. without adding a USB-ethernet-adaptor).
> 
> Regards,
> Karsten

Thanks, Karsten!
  Paul



[PATCH] Add support for the NanoPiNeo

2017-08-22 Thread Paul Tagliamonte
Hey, -boot

vagrantc added support for the NanoPi in u-boot in version 2016.03~rc3+dfsg1-1,
and i've been playing with it since. Finally, with Linux 4.13, the
NanoPi emac driver has been mainlined, and it (finally!) is starting to
look sensible.

I've got my NanoPi booted and the eth looking happy, but I've not
completed an install yet. Attached is a patch to generate the firmware
image. I was able to test the generated image, and it booted.

Attached is a patch against debian-installer/installer, adding the
NanoPiNeo to the u-boot-image-config.

Thanks for maintaining d-i,
  Paul


-- 
>From 985a6677878ba148db2d175a7cdb9140681bc995 Mon Sep 17 00:00:00 2001
From: Paul Tagliamonte <t...@pault.ag>
Date: Tue, 22 Aug 2017 23:05:59 -0400
Subject: [PATCH] Add support for the NanoPiNeo

---
 build/boot/arm/u-boot-image-config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build/boot/arm/u-boot-image-config b/build/boot/arm/u-boot-image-config
index efc735457..68856a057 100644
--- a/build/boot/arm/u-boot-image-config
+++ b/build/boot/arm/u-boot-image-config
@@ -28,6 +28,7 @@ Lamobo_R1 /usr/lib/u-boot/Lamobo_R1/u-boot-sunxi-with-spl.bin 16
 orangepi_plus /usr/lib/u-boot/orangepi_plus/u-boot-sunxi-with-spl.bin 16
 pcDuino /usr/lib/u-boot/Linksprite_pcDuino/u-boot-sunxi-with-spl.bin 16
 pcDuino3 /usr/lib/u-boot/Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin 16
+NanoPiNeo /usr/lib/u-boot/nanopi_neo/u-boot-sunxi-with-spl.bin 16
 #
 # Images from u-boot-rockchip
 Firefly-RK3288 /usr/lib/u-boot/firefly-rk3288/u-boot.rksd 64
-- 
2.14.1