From owner-freebsd-arm@freebsd.org Mon Jun 26 05:11:25 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E388DDA1786 for ; Mon, 26 Jun 2017 05:11:25 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-oi0-x232.google.com (mail-oi0-x232.google.com [IPv6:2607:f8b0:4003:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5593662A4 for ; Mon, 26 Jun 2017 05:11:25 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-oi0-x232.google.com with SMTP id l83so5442758oif.1 for ; Sun, 25 Jun 2017 22:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BR0/XqbYQVp+Kjyw3LbZBYQuc+uXuQ6TgZbJ9E5HsVc=; b=MjvlsREGLyr7hM805GkvsjP8Oko6WBdNZRzrBiVlJIOyaBoBQ29A+TUJTCf4rvBbrI vqsO2FMF+1ipKeGDpxXcGfDE6bur23aVecMb1Uoym/zLz5z2OJxgmVVz2sZBhU4NhUID FVs0UhV62K7IJBvkjSNu3p69FQqOLVXyWmo9TIqccyW/U/W5mwLM9EnRyoXZ8qNqloCR D2DatpD3vrEZFDvnE4CeR8uFHEEfcnA2a6QKUxnVN2ujbyiqpLHGmYWRxY6F7jagoU2d 31DQRGzo/DNwYB/XcFzverQtH6f1iUrRlxHuESkQTEHh4Mfzm0M7UDJHh0o/02yg4nX6 Yd4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BR0/XqbYQVp+Kjyw3LbZBYQuc+uXuQ6TgZbJ9E5HsVc=; b=JGsOHcE+ciB4Z86F7+IdIjdr6t4MUJj5P2tiOLVczcVUaFIkrKjROwCX+kH04XMlkr NJW5y1SgVnGyX/vGdE5ILq0Aor1PnzWH1685C3wsdXCWbATAuaqidoeLHmhSKcvTAbOk mNYjH9Rxl2M90EYQ9Y9r5YRHGNxSK3XNK+c9aEZsnSbgvEKlNK/ljq+ye0/jYqsHWjjq D/pEkP1LjIyux7AcQ/6YOIz4/Yr73wmGuJriI0plu+XSMYpze5Z2TCYSPK76JH3zoEE7 iPK4ua4EFmyEcHOHpmlfTp4kFoiDORhYOADKXrgeVJ3ijk4UF3CdDlDWCEF2eOnDcHNl mUcw== X-Gm-Message-State: AKS2vOx2LnpvEjjFWMfxSEODzK5T0Rpa+WxfRfngKAyx3Fzenbp0jEFK 1I+cbtuTCYRpSTHsuJzJ4HDCM69OiQ== X-Received: by 10.202.204.80 with SMTP id c77mr10604306oig.71.1498453884653; Sun, 25 Jun 2017 22:11:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.32.34 with HTTP; Sun, 25 Jun 2017 22:11:24 -0700 (PDT) In-Reply-To: References: <20170624171539.3b6a73b245b05e649a62933c@bidouilliste.com> From: Ganbold Tsagaankhuu Date: Mon, 26 Jun 2017 13:11:24 +0800 Message-ID: Subject: Re: Orange Pi Zero support To: Johnny Sorocil Cc: Emmanuel Vadot , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2017 05:11:26 -0000 On Sun, Jun 25, 2017 at 1:31 AM, Johnny Sorocil wrote: > On Sat, Jun 24, 2017 at 5:15 PM, Emmanuel Vadot > 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: 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" >