Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2017 13:11:24 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        Johnny Sorocil <jsorocil@gmail.com>
Cc:        Emmanuel Vadot <manu@bidouilliste.com>,  "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Orange Pi Zero support
Message-ID:  <CAGtf9xMVELPdxGeaErQjYRpp6B4P34bpQBnTR5RNLx4oQ9hgOA@mail.gmail.com>
In-Reply-To: <CADxA8SohhQU3f0bDmawxYTbnCJfgmUR2qtKe5wA7m2oWSrJL7g@mail.gmail.com>
References:  <CADxA8SoTM2WWUhGZ=B-7Y7QthyaWRU2Si94Cw41ccCyQHA846w@mail.gmail.com> <20170624171539.3b6a73b245b05e649a62933c@bidouilliste.com> <CADxA8SohhQU3f0bDmawxYTbnCJfgmUR2qtKe5wA7m2oWSrJL7g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 25, 2017 at 1:31 AM, Johnny Sorocil <jsorocil@gmail.com> wrote:

> On Sat, Jun 24, 2017 at 5:15 PM, Emmanuel Vadot <manu@bidouilliste.com>
> wrote:
>
> >  There is nothing on the serial console because we miss the h2
> > definition in aw_machdep.c
> >  I've started to add proper support for it today but there is some
> > problems with some old clocks drivers. I'm currently patching them and
> > hope to commit H2Plus support today or tomorow.
>
> It's nice to hear that :)
>
> I was experimenting with dts files (copied ethernet and emac part to the
> working dts file) - there will be output on the serial console, but no
> network:
> # dmesg | grep awg
>   awg0: <Allwinner Gigabit Ethernet> mem
> 0x1c30000-0x1c30103,0x1c00030-0x1c00033
> irq 35 on simplebus0 dfs
>   awg0: PHY type: rgmii, conf mode: reg
>   awg0: EMAC clock: 0x00140006
>   awg0: AHB frequency 300000000 Hz, MDC div: 0x3
>   awg0: soft reset timed out
>   device_attach: awg0 attach returned 60
> Datasheet for H3 says that soft reset should be performed only after all
> clock inputs are valid.
> Is that because kernel is using old clock drivers?
>

Just to test:

https://people.freebsd.org/~ganbold/FreeBSD-armv6-12.0-nanopi-neo.img.xz

The image is not so recent, but you can use (or its dtb) to test Ethernet
on Orange PI Zero.

Ganbold


>
> Are these assumptions correct:
> - the kernel will automatically use if_awg driver for the network card
>   (even on H2+ which doesn't have a Gb interface) if there is a correct
>   ethernet entry in dts?
> - when using newer Linux dts file (for H2+) there is no output on the
>   serial console because dts file states that this is H2+, but FreeBSD
>   kernel doesn't know what to do with H2+?
> - newer Linux dts files (which defines SoC as H2+) will be able to be
>   used to boot FreeBSD?
>
> What is the status of FreeBSD SDIO support?
>
> Can I somehow help with the porting effort?
>
> Maybe slightly OT:
> How kernel is debugged? Connect JTAG debugger and then single step?
> What to use from HW and SW for that purpose?
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xMVELPdxGeaErQjYRpp6B4P34bpQBnTR5RNLx4oQ9hgOA>