From owner-freebsd-arm@freebsd.org Mon Jan 15 17:11:55 2018 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 8DDFDEBBC1D for ; Mon, 15 Jan 2018 17:11:55 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from hraggstad.unrelenting.technology (hraggstad.unrelenting.technology [71.19.146.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hraggstad.unrelenting.technology", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74FEA822E6 for ; Mon, 15 Jan 2018 17:11:55 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: by hraggstad.unrelenting.technology (OpenSMTPD) with ESMTPSA id a79709e3 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO for ; Mon, 15 Jan 2018 17:11:45 +0000 (UTC) From: Greg V Subject: Raspberry Pi 3 Network Boot To: freebsd-arm@freebsd.org Message-ID: <1c756d0c-2ac7-c9bd-39e1-dbe9e8c79a8c@unrelenting.technology> Date: Mon, 15 Jan 2018 20:11:43 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 17:11:55 -0000 Hi. I'm looking to boot an RPi3 over the network. Has anyone here done that successfully? I managed to netboot into loader.efi using an updated U-boot (2018.01) after doing some terrible hacks in U-boot: - removing the check that results in EFI_OUT_OF_RESOURCES https://github.com/u-boot/u-boot/blob/3dde8f20377c3a051dda64497bdf0cdb23e03a2d/lib/efi_loader/efi_memory.c#L317-L322 when allocating memory in here: https://github.com/freebsd/freebsd/blob/3f5e0fe8f422cbcf092ee1ad453acdb01c560543/stand/efi/loader/copy.c#L202-L203 — that error never happened with SD card boot though, WTF is going on here? - changing the receive_filters function https://github.com/u-boot/u-boot/blob/3dde8f20377c3a051dda64497bdf0cdb23e03a2d/lib/efi_loader/efi_net.c#L90 from returning EFI_UNSUPPORTED to EFI_SUCCESS (this probably should actually be handled on the loader side?) But loader.efi could not fetch a kernel to boot. TFTP or NFS, it just blinks the ethernet LEDs and errors, no packets are visible on the server… Also, new U-boot doesn't seem to boot from SD card correctly. Nothing happens after the loader (?) displays framebuffer parameters. Has anyone else looked into upgrading the U-boot in ports? From owner-freebsd-arm@freebsd.org Mon Jan 15 18:35:39 2018 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 DDB3EE6CCD5 for ; Mon, 15 Jan 2018 18:35:39 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A76A563D72 for ; Mon, 15 Jan 2018 18:35:39 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w0FI8Rps055360; Mon, 15 Jan 2018 10:08:27 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w0FI8QHp055359; Mon, 15 Jan 2018 10:08:26 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201801151808.w0FI8QHp055359@pdx.rh.CN85.dnsmgr.net> Subject: Re: Raspberry Pi 3 Network Boot In-Reply-To: <1c756d0c-2ac7-c9bd-39e1-dbe9e8c79a8c@unrelenting.technology> To: Greg V Date: Mon, 15 Jan 2018 10:08:26 -0800 (PST) CC: freebsd-arm@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 18:35:40 -0000 > Hi. I'm looking to boot an RPi3 over the network. Has anyone here done > that successfully? Yes, but not booting FreeBSD over the network. I was able to boot one of the linux distro's, I think raspbian, over the network serving files from FreeBSD via nfs. It takes a special string in isc-dhcpd to get it to accept dhcp info: # here I give it the very creative name "option-43" option option-43 code 43 = text; host rpi3 { hardware ethernet b8:27:eb:94:9a:f6; option option-43 "Raspberry Pi Boot"; } > I managed to netboot into loader.efi using an updated U-boot (2018.01) > after doing some terrible hacks in U-boot: So your running U-boot from sd card? I netbooted without any SD card in the RPI3, everything came from the network. You have to blow a fuse to enable this feature in the RPI3, you can still boot from sd card after, but if there is no sd card in the slot it well do PXE on the ethernet to get address and payloads. > > - removing the check that results in EFI_OUT_OF_RESOURCES > https://github.com/u-boot/u-boot/blob/3dde8f20377c3a051dda64497bdf0cdb23e03a2d/lib/efi_loader/efi_memory.c#L317-L322 > when allocating memory in here: > https://github.com/freebsd/freebsd/blob/3f5e0fe8f422cbcf092ee1ad453acdb01c560543/stand/efi/loader/copy.c#L202-L203 > ? that error never happened with SD card boot though, WTF is going on here? > > - changing the receive_filters function > https://github.com/u-boot/u-boot/blob/3dde8f20377c3a051dda64497bdf0cdb23e03a2d/lib/efi_loader/efi_net.c#L90 > from returning EFI_UNSUPPORTED to EFI_SUCCESS (this probably should > actually be handled on the loader side?) > > But loader.efi could not fetch a kernel to boot. TFTP or NFS, it just > blinks the ethernet LEDs and errors, no packets are visible on the server? > > > Also, new U-boot doesn't seem to boot from SD card correctly. Nothing > happens after the loader (?) displays framebuffer parameters. Has anyone > else looked into upgrading the U-boot in ports? > > _______________________________________________ > 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" > > -- Rod Grimes rgrimes@freebsd.org From owner-freebsd-arm@freebsd.org Tue Jan 16 01:30:50 2018 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 7E098EB60BA for ; Tue, 16 Jan 2018 01:30:50 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 0FFCB7B1BE for ; Tue, 16 Jan 2018 01:30:50 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id b141so5185324wme.1 for ; Mon, 15 Jan 2018 17:30:49 -0800 (PST) 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; bh=n1VJ8tAalJ6M5QBrsI/e/4bJ59s2NAiW3ebQBo9Hwzw=; b=iayP4n6NcVuSal9wkwV8ygUG2/7oaeYeL08F7O6R68XwcvTPhhXpLB91WXKTCufQg8 KjaEtNPPXnc52pLUFmsOG8kpG5GELGoNApKiZGOgoEOzTVoRF/K4rxeMzroQKREdZryC FQNcpxNDaGguzRe1Du63tkEw5ZbOanhv4cMLORLdYsP73K6ymz9JJs/hebPA47F60VbP ZrTYC7M+2qfaHCjrCzYRUKBgLHmAMNziJlzyGR2Xr0pC74JQy6mpLS69meF1SUBvhpoP P0NZFgMm+ZTGhgcN803ptEXVZn1bFah4gTOdA/cz9v77GdHQJshAHx/7jTQAYWq9MODt FGeA== 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; bh=n1VJ8tAalJ6M5QBrsI/e/4bJ59s2NAiW3ebQBo9Hwzw=; b=HXEo8P+CDXvTqUZxNQig1XJ7ZoCFaXCFE+kNN1I8ifd74I1bdkAwKObGnBVHk+Mg9A 70uaxyDjl44bZ0Jtx3yiAI8CjaJ8Jh9r5vn6QK7t7MpJa8l700CPJ9Rc7juyotkLYWax iA/j/4ByOLHEwzUyibsHtiQkbYydi34Ezwp5tYWD2dmywnkOdBJ5Oj9j9U19/qxpXiSb My0f/+6Cj3k/HhDn/Js9Rr7gyt0kwiSlPe4EZmCyemDTjphPkUMZzskhtp/9MCbJ7zpo l3GwtAapUO0p+JJsTWeh+OAzEn4BRU532RDIRqPJl5BxEHv/ry0VqxT3s/y4C6qYp/Bl 8wCQ== X-Gm-Message-State: AKwxytetK0SSw5JpfeyXC6ERFcwxhaKn32tiRwQ/odW7CnIOrYPbZkH4 rtB7nPTQh3ZfnAc/jpDgqcFa0uPwOLXI+yoLHaMGDQ== X-Google-Smtp-Source: ACJfBotU7E9ITY+RAxV006znApbqW4sUm88g2V/pz+ra6JhDJrGNJ9dL1NiYMXmOHDCkB5/wun5inP6gFQ0kss4EYgY= X-Received: by 10.80.213.82 with SMTP id f18mr10496325edj.255.1516066248313; Mon, 15 Jan 2018 17:30:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.222.139 with HTTP; Mon, 15 Jan 2018 17:30:47 -0800 (PST) In-Reply-To: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: =?UTF-8?B?6Zi/6YeR?= Date: Tue, 16 Jan 2018 09:30:47 +0800 Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: Mark Millard , Emmanuel Vadot , freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 01:30:50 -0000 Thanks Mark,head -r327485 is good no more pte2 errors(I also change another sd card test). I have network ,and can make ports in orange pi one. I will live with -r327485. just remind ,I try new revision 327807,will got network error . awg0: mem 0x1c30000-0x1c30103,0x1c00030-0x1c00= 033 irq 23 on simplebus0 awg0: cannot get tx clock miibus0: on awg0 after login=3D> #ifconfig awg0: flags=3D8843 metric 0 mtu 150= 0 options=3D8000b ether 02:81:19:f7:db:58 inet 192.168.78.76 netmask 0xffffff00 broadcast 192.168.78.255 media: Ethernet none (none ) status: active nd6 options=3D29 can't ping other device. besides, https://github.com/evadot/u-boot/tree/freebsd git describe --tags v2017.11-815-gca833ca957 Error: You must add new CONFIG options using Kconfig The following new ad-hoc CONFIG options were detected: CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE Please add these via Kconfig instead. Find a suitable Kconfig file and add a 'config' or 'menuconfig' option. gmake: *** [Makefile:870: all] Error 1 I mess to edit blow ,will compile ok. In /u-boot/common/Kconfig config SYS_USB_EVENT_POLL_VIA_INT_QUEUE bool " usb test" default 1 2018-01-08 9:48 GMT+08:00 Mark Millard : > On 2018-Jan-7, at 5:20 PM, =E9=98=BF=E9=87=91 = wrote: > > > when I access SD files a lot (ex: find files,make port),I often got > errors > > =3D> panic: bad pte2, > > I thought maybe is my SD card problem,so I mount root file (/) to USB > disk. > > the problem remain same. > > How could I fix this?? > > > > > > my board is Orange pi one > > > > FreeBSD 12.0-CURRENT #0 r326307M: Wed Jan 3 07:17:09 CST 2018 > > root@VirtualBox pi:/opt/head_obj/obj/opt/head/arm.armv6/sys/GENERIC > arm > > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on > LLVM > > 5.0.0svn) > > > . . . > > I saw such back on such old versions as well. For example: > > https://lists.freebsd.org/pipermail/freebsd-hackers/ > 2017-December/051942.html > > is is report for the RPi2B V1.1 . -r326726 showed the "bad pte2" > problem. But your example does not involve exec_elf32_imgact . > (My examples might not have run into all cases of failure.) > > head -r327485 has not done such for me. Also, by then head > had a fix for a boot-sometimes-hangs issue introduced in > -r326347 . (There still can be hangups when plugging in USB > drives after booting, at least on Pine64+ 2GBs.) > > =3D=3D=3D > Mark Millard > markmi at dsl-only.net > > From owner-freebsd-arm@freebsd.org Tue Jan 16 01:52:50 2018 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 3E43DEB821D for ; Tue, 16 Jan 2018 01:52:50 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) (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 0B9E87C521 for ; Tue, 16 Jan 2018 01:52:49 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-it0-f46.google.com with SMTP id b77so3046462itd.0 for ; Mon, 15 Jan 2018 17:52:49 -0800 (PST) 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:content-transfer-encoding; bh=CjEqmeZjK2Js/9QwPZSGYCJuSWOhhKnz3ReT58fB7kw=; b=ThPipel6/EdMtiTRd9pXoYfWmef03db5e43nmQZT3HvfdeHv87bUaklWtDyl11Hv0H TPL5DDUcI+VjJ2MHiblvT8U/LG9UC+0KV4V8LPStSxfGM2xZJ7wr+4wp58uwErPY0DpR GQwYD4rZbwvWxxycK0HQj3D2qBtfaAFPO38yevtc2vFUiHqq3w6ePk2OHcPnHyJJIiUW wh+Y4gb5ComBw7v4Khf7Zpbndcrpvd/tP16RLw6tZGcQBu9HhJcuH8a5gu1oW8G4N99t xs1QyxFLj0cC9sKEfKlVSb28EbPGOqtDTEvMD58KM/JL6e+yttQ9rMklG++JQSqwhCLf Nm4w== X-Gm-Message-State: AKwxyteD6NzXoBSlsylhrpe5mdIxKA57ma5Mbh4hZOy70Xzw0VYcEUWm bX/i4TIlb91PGP7e5boflYsCo8sP X-Google-Smtp-Source: ACJfBotYBdQ0+jpOdITKZnjSMiIAu3V4wgUnDM4hw9/BOoKX+TmLi8OEhK+/NCdt7WSVzhAB6gt2fw== X-Received: by 10.36.104.210 with SMTP id v201mr15179969itb.64.1516067563098; Mon, 15 Jan 2018 17:52:43 -0800 (PST) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com. [209.85.214.44]) by smtp.gmail.com with ESMTPSA id 6sm451755iow.55.2018.01.15.17.52.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 17:52:42 -0800 (PST) Received: by mail-it0-f44.google.com with SMTP id x42so3026294ita.4 for ; Mon, 15 Jan 2018 17:52:42 -0800 (PST) X-Received: by 10.36.52.8 with SMTP id z8mr8276759itz.130.1516067562338; Mon, 15 Jan 2018 17:52:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.149.147 with HTTP; Mon, 15 Jan 2018 17:52:21 -0800 (PST) In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: Kyle Evans Date: Mon, 15 Jan 2018 19:52:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: =?UTF-8?B?6Zi/6YeR?= Cc: Mark Millard , Emmanuel Vadot , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 01:52:50 -0000 On Mon, Jan 15, 2018 at 7:30 PM, =E9=98=BF=E9=87=91 = wrote: > Thanks Mark,head -r327485 is good > no more pte2 errors(I also change another sd card test). > I have network ,and can make ports in orange pi one. > I will live with -r327485. > > just remind ,I try new revision 327807,will got network error . > > awg0: mem 0x1c30000-0x1c30103,0x1c00030-0x1c= 00033 > irq 23 on simplebus0 > awg0: cannot get tx clock > miibus0: on awg0 > What does the rest of your dmesg reveal? Did it try to attach a syscon_generic sometime before there for some reason? Thanks, Kyle Evans From owner-freebsd-arm@freebsd.org Tue Jan 16 13:19:26 2018 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 C72F4EC2EA5 for ; Tue, 16 Jan 2018 13:19:26 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (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 45A397912A; Tue, 16 Jan 2018 13:19:26 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id x4so17103244wmc.0; Tue, 16 Jan 2018 05:19:26 -0800 (PST) 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=FXnZv09bOkYIcgtbnzIF90Cn9oLfmGmwUUfexjJxRnU=; b=ZRZR7h+O9qiewkO/AMown7qq/2z/CQdx0P6Z09/UUfBbEzQJ/lRvDKl520DLFK8jcg RmkLr63KHxpUaw+36FWDFkohQyBRMxFnLU529Bey53bNluZC7txY9d9Jgn7eXTuFGwvM cVYmPqIYOiOfxmz5zHGVOhcBZwzZD7T7UfEJq9ZPuQWfp3sAOgS/ZN1pDN0IsKmOxSel iiknJuFzQn4ITzp0POX8Q3LItGDu1FwoBuUW212Pnl/JnavlETCAr3B9Uwxf+ql6aSZS 8+s3FAywHSIVO8vX8CDjbiukUqcetA0hXZUepclMd9E1aSK64vByQs1mNfLtUrh0xLOK dY+w== 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=FXnZv09bOkYIcgtbnzIF90Cn9oLfmGmwUUfexjJxRnU=; b=i0WfLHEK/cWSsWaBFDeBaQ2UaV31i2o+CVlaVABRkhvncqLsJvEsOSWfRkdbr0IkEH Y0oI4W2+A0vH3UejBdkjAJdyUZIS86tU2N2rcGzPBqKMCw3DsUg0JOXLT1a35a7SBtIU McoL1dlNlea25dopwFWScHmk1BfjMndCQwag00BJ2oihzcM1GJxLuySgOCtINqXhNXFo gp1kRQXFijW6YTxzjVZi+5Idc7hGu7k9109Q40JxZu5PszSLvxsHW00ang8sFPgNyoPD cShvZuKnvHBxqxjMyKUbtji7F3VI2Qs5GNj0PC7jGvFtTKJQjbXd3pW06Pm06CjT0T8Y LHaw== X-Gm-Message-State: AKwxytfO9+Se1azpaDGZqwpHHUsEJqXB7OXrRJeAjy/2QG7iLxZbyfKs 0aRIf7c77McLnCEcYwmtd3gn1KwyYX8aZJJv4Nexj85T X-Google-Smtp-Source: ACJfBov1XCJ1F8AOxY9OydnWCKhFuPotlDzconz3N2RWQ/eIhOLhgtE9ejQShBmlCg7wXE6sARH4P50HIHI1T7+MoTI= X-Received: by 10.80.213.82 with SMTP id f18mr12977201edj.255.1516108764217; Tue, 16 Jan 2018 05:19:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.222.139 with HTTP; Tue, 16 Jan 2018 05:19:23 -0800 (PST) In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: =?UTF-8?B?6Zi/6YeR?= Date: Tue, 16 Jan 2018 21:19:23 +0800 Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: Kyle Evans Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 13:19:26 -0000 OKOK below is booting message. U-Boot SPL 2017.07 (Oct 20 2017 - 12:55:15) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2017.07 (Oct 20 2017 - 12:55:15 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi One DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found FreeBSD U-Boot Loader (bin) reading ubldr.bin 232932 bytes read in 33 ms (6.7 MiB/s) ## Starting application at 0x42000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x59f4c490 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Mon Jan 15 04:39:27 CST 2018 root@VirtualBox pi) DRAM: 512MB MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Number of U-Boot devices: 1 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0s2a: /boot/kernel/kernel data=3D0x862c1c+0x1dd3e4 syms=3D[0x4+0x979b0+0x4+0xdca9= d] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... /boot/dtb/u-boot.dtb size=3D0x2f09 Loaded DTB from file 'u-boot.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r327807: Sun Jan 14 03:22:38 CST 2018 root@VirtualBox pi:/opt/head_327807_obj/obj/opt/head_327807/arm.armv6/sys/GENERIC arm FreeBSD clang version 5.0.1 (tags/RELEASE_501/final 320880) (based on LLVM 5.0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register simplebus/ahci from kernel; already loaded from kernel Module simplebus/ahci failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded from kernel Module simplebus/pcib failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features: Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, PXN, LPAE, Coherent Walk Optional instructions: SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 536870912 (512 MB) avail memory =3D 508055552 (484 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: aw_ccu0: on ofwbus0 clk_fixed0: on aw_ccu0 clk_fixed1: on aw_ccu0 clk_fixed2: on aw_ccu0 aw_gate0: mem 0x1f01428-0x1f0142b on aw_ccu0 aw_modclk0: mem 0x1f01454-0x1f01457 on aw_ccu0 simplebus0: on ofwbus0 aw_ccung0: mem 0x1c20000-0x1c203ff on simplebus0 aw_reset0: mem 0x1f014b0-0x1f014b3 on simplebus0 regfix0: on ofwbus0 regfix1: on ofwbus0 regfix2: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1= c803,0x1c1d800-0x1c1d803 on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c8= 7fff irq 24 on simplebus0 gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160 gpio0: mem 0x1c20800-0x1c20bff irq 14,15 on simplebus0 gpiobus0: on gpio0 gpio1: mem 0x1f02c00-0x1f02fff irq 28 on simplebus0 gpiobus1: on gpio1 generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rtc0: mem 0x1f00000-0x1f00053 irq 25,26 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 a31dmac0: mem 0x1c02000-0x1c02fff irq 4 on simplebus0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 5 on simplebus0 mmc0: on aw_mmc0 ehci0: mem 0x1c1b000-0x1c1b0ff irq 8 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1b400-0x1c1b4ff irq 9 on simplebus= 0 usbus1 on ohci0 gpioc0: on gpio0 aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 18 on simplebus0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 19 on simplebus0 uart0: console (115384,n,8,1) uart1: mem 0x1c28400-0x1c287ff irq 20 on simplebus0 awg0: mem 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 awg0: cannot get tx clock miibus0: on awg0 ukphy0: PHY 0 on miibus0 ukphy0: none, 10baseT-FDX, 100baseTX ukphy1: PHY 1 on miibus0 ukphy1: none, 10baseT-FDX, 100baseTX awg0: Ethernet address: 02:81:ae:83:0f:fa gpioc1: on gpio1 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus= 0 ugen1.1: at usbus1 uhub1: on usbus1 mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block Release APs WARNING: WITNESS option enabled, expect reduced performance. arc4random: no preloaded entropy cache Trying to mount root from ufs:/dev/mmcsd0s2a [rw]... uhub1: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache uhub0: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one Setting hostuuid: 6c68013f-fac6-11e7-a689-d969c7db3a6e. Setting hostid: 0xa8b75395. No suitable dump device was found. Starting file system checks: Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat random: unblocking device. Soft Float compatibility ldconfig path: Setting hostname: head_pi. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTA= CH,CACHED Feeding entropy: . Starting Network: lo0 awg0. lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0xawg0: link state changed to DOWN awg0: link state changed to UP 2 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=3D21 awg0: flags=3D8802 metric 0 mtu 1500 options=3D8000b ether 02:81:ae:83:0f:fa media: Ethernet none (none ) status: active nd6 options=3D29 Starting devd. Starting Network: awg0. awg0: flags=3D8802 metric 0 mtu 1500 options=3D8000b ether 02:81:ae:83:0f:fa media: Ethernet none (none ) status: active nd6 options=3D29 add host 127.0.0.1: gateway lo0 fib 0: route already in table add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Tue Jan 16 14:06:53 UTC 2018 FreeBSD/arm (head_pi) (ttyu0) login: 2018-01-16 9:52 GMT+08:00 Kyle Evans : > On Mon, Jan 15, 2018 at 7:30 PM, =E9=98=BF=E9=87=91 wrote: > > Thanks Mark,head -r327485 is good > > no more pte2 errors(I also change another sd card test). > > I have network ,and can make ports in orange pi one. > > I will live with -r327485. > > > > just remind ,I try new revision 327807,will got network error . > > > > awg0: mem 0x1c30000-0x1c30103,0x1c00030- > 0x1c00033 > > irq 23 on simplebus0 > > awg0: cannot get tx clock > > miibus0: on awg0 > > > > What does the rest of your dmesg reveal? Did it try to attach a > syscon_generic sometime before there for some reason? > > Thanks, > > Kyle Evans > From owner-freebsd-arm@freebsd.org Tue Jan 16 15:24:22 2018 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 18935E75BB0 for ; Tue, 16 Jan 2018 15:24:22 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) (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 D9EFF7E620 for ; Tue, 16 Jan 2018 15:24:21 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-io0-f177.google.com with SMTP id c17so17205132iod.1 for ; Tue, 16 Jan 2018 07:24:21 -0800 (PST) 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:content-transfer-encoding; bh=tBuWkg7m+bmOla8c1+Ha79M9qpAQHNigt0XsPq+t4XY=; b=VDmpqkub1SXVfc4G2dcMhSGdOzLUQyyiwzJlSks6y4J1jp6v4GigY2mYn+kkUdELed a4SaeC3nOxGZnATxzwj9pilBU5x/OZ2eYEXW5DXM7+INL/wHX8rkEcD4hpvKnudS4GM+ 0yAMIsmKioc+0J2Jp8wCW2J597TQLtf9ylKWPbDcDDwGiLQr8A6HNR4v7C8U2mfZfwVw 2vABNBdmXaVs6QXKV7GidUp/ZTAN9qszn3o+HfF/iIWih7cSvHirTQuM4jE6BII73U+V quYwmzdSDkM2YxO/SHZGeq1GoR4vIKwQF2t6tOy2omzb5lT7xX/qlG144AkK6mS+8OX0 oYPA== X-Gm-Message-State: AKwxytd2KtUJxLFiXtpwAI3dKF/2xb/Uw9jLR5Pso5sSIwQkhQ8g1oKL jZElgrME6LEFa+QT3e8KTphAYHnf X-Google-Smtp-Source: ACJfBouzTy7ZTz8G7emRxl/m3yjvB7BxZsfB6LliTo7N8uH1x2wSHLJunKlNb61hyl0G2gbZYl3Sow== X-Received: by 10.107.8.214 with SMTP id h83mr17918581ioi.214.1516112529510; Tue, 16 Jan 2018 06:22:09 -0800 (PST) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com. [209.85.223.180]) by smtp.gmail.com with ESMTPSA id k73sm1128886ioe.24.2018.01.16.06.22.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:22:09 -0800 (PST) Received: by mail-io0-f180.google.com with SMTP id n7so494814iob.0 for ; Tue, 16 Jan 2018 06:22:09 -0800 (PST) X-Received: by 10.107.151.131 with SMTP id z125mr33882410iod.224.1516112528789; Tue, 16 Jan 2018 06:22:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.149.147 with HTTP; Tue, 16 Jan 2018 06:21:47 -0800 (PST) In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: Kyle Evans Date: Tue, 16 Jan 2018 08:21:47 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: =?UTF-8?B?6Zi/6YeR?= Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 15:24:22 -0000 On Tue, Jan 16, 2018 at 7:19 AM, =E9=98=BF=E9=87=91 = wrote: > OKOK below is booting message. Thanks! > [ .. snip .. ] > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 > [.. snip ..] > awg0: mem > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 > awg0: cannot get tx clock > [.. snip .. ] That explains it- I hadn't encountered this in practice, so it broke. =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method for passing syscon, so syscon_generic takes the syscon registers and awg can't. You have I think three choices for recourse here, any of which should fix your problem: 1.) Remove the /soc/syscon from the DTB you're using 2.) Update your DTB to actually use /soc/syscon, removing the syscon reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to that node. 3.) Update to r327825 or later and pull new DTS from Linux. If pulling new from Linux is a pain, I can generate a new DTB for you based on what we'll be importing from Linux in a couple weeks. r327825 added support for the new stable emac bindings, so after DTS update this won't break again. From owner-freebsd-arm@freebsd.org Tue Jan 16 17:13:13 2018 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 C3CDBE7BA79 for ; Tue, 16 Jan 2018 17:13:13 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A0C683678; Tue, 16 Jan 2018 17:13:12 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Tue, 16 Jan 2018 18:08:00 +0100 id 00DD603A.5A5E3170.000122BA Date: Tue, 16 Jan 2018 18:08:00 +0100 From: Milan Obuch To: Kyle Evans Cc: unto.foru13@gmail.com, freebsd-arm@freebsd.org Subject: Re: Orange pi one ,receive panic: bad pte2 Message-ID: <20180116180800.07a8f8ef@zeta.dino.sk> In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i386-portbld-freebsd10.4) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 17:13:13 -0000 On Tue, 16 Jan 2018 08:21:47 -0600 Kyle Evans wrote: > On Tue, Jan 16, 2018 at 7:19 AM, =E9=98=BF=E9=87=91 wrote: > > OKOK below is booting message. =20 >=20 > Thanks! >=20 > > [ .. snip .. ] > > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 > > [.. snip ..] > > awg0: mem > > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 > > awg0: cannot get tx clock > > [.. snip .. ] =20 >=20 > That explains it- I hadn't encountered this in practice, so it broke. > =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method > for passing syscon, so syscon_generic takes the syscon registers and > awg can't. You have I think three choices for recourse here, any of > which should fix your problem: >=20 > 1.) Remove the /soc/syscon from the DTB you're using > 2.) Update your DTB to actually use /soc/syscon, removing the syscon > reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to > that node. > 3.) Update to r327825 or later and pull new DTS from Linux. If pulling > new from Linux is a pain, I can generate a new DTB for you based on > what we'll be importing from Linux in a couple weeks. >=20 > r327825 added support for the new stable emac bindings, so after DTS > update this won't break again. > In my case, using Orange Pi Zero, I observed similar behavior. Using older DTB ethernet works, and with tips mentioned above I was quickly able to modify my DTS, so ethernet works again. It just uses different MAC. Question is, where does it actually come from, and, maybe, where should it come from. This is from dmesg: awg0: mem 0x1c30000-0x1c30103 irq 38 on simple= bus0 simplebus0: no default resources for rid =3D 1, type =3D 3 awg0: PHY type: mii, conf mode: reg awg0: EMAC clock: 0x00168000 awg0: AHB frequency 300000000 Hz, MDC div: 0x3 Any idea what resource is not found here? IS it something to worry about? Regards, Milan From owner-freebsd-arm@freebsd.org Tue Jan 16 17:38:46 2018 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 73163E7D0F1 for ; Tue, 16 Jan 2018 17:38:46 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) (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 3FCE7A31; Tue, 16 Jan 2018 17:38:45 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-it0-f43.google.com with SMTP id c102so12160067itd.0; Tue, 16 Jan 2018 09:38:45 -0800 (PST) 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:content-transfer-encoding; bh=Z0kBEIO47GwO1565S2gmNLgVRLdB7TrC+keVKwA1Z0A=; b=U3olC0xhdleCSijUc0Y8UTqRkj/NFxVEFVWqhnHemsUwt4+lt/djbYeaueJmCyNwk9 xT3vVMkdBwV+RkMm5uo5PtO4JQSSV8rnEA1X67lRzmE3jrpGv9yLhqOO/H9+1g+1BXKi A3eeVTFcL/DRMgfRGvLRz2gWpyDj6vhO1iWorITtW0Pe0aM+R6IbvKI0mAYT16Xw3GMe VS8pampdJhH9R7REHIMxuIxCgDf3HSsFHGfTLoWlBbLkyGDj+P+SCKji4Y6Wi5757cc/ xkmxKMsOhakBd5xW9PD1+8Nuk2LVdgI+iUb5tKBDtRKQwSItVaEC4fpVj6DY5O8bt7KB yFfQ== X-Gm-Message-State: AKwxytcOjdp9kX4o05/dWn79Gws5dJyADe1uKWdGw8Wuzjn/VzfE9yNy PDAHdkD+Mop3OwIrU2Dkipc75lwf X-Google-Smtp-Source: ACJfBovGG6XsvWy8+kUQcrZp2dFXz9969MHYL916K4qF6Kg0eDZzVpJzJRxqvRyyZPDc78/1cy/zyg== X-Received: by 10.36.157.151 with SMTP id f145mr9604055itd.113.1516123851622; Tue, 16 Jan 2018 09:30:51 -0800 (PST) Received: from mail-io0-f182.google.com (mail-io0-f182.google.com. [209.85.223.182]) by smtp.gmail.com with ESMTPSA id m21sm1375907itb.43.2018.01.16.09.30.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 09:30:51 -0800 (PST) Received: by mail-io0-f182.google.com with SMTP id m11so8248324iob.2; Tue, 16 Jan 2018 09:30:50 -0800 (PST) X-Received: by 10.107.151.131 with SMTP id z125mr34625394iod.224.1516123850582; Tue, 16 Jan 2018 09:30:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.149.147 with HTTP; Tue, 16 Jan 2018 09:30:29 -0800 (PST) In-Reply-To: <20180116180800.07a8f8ef@zeta.dino.sk> References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> <20180116180800.07a8f8ef@zeta.dino.sk> From: Kyle Evans Date: Tue, 16 Jan 2018 11:30:29 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: Milan Obuch Cc: =?UTF-8?B?6Zi/6YeR?= , "freebsd-arm@freebsd.org" , Emmanuel Vadot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 17:38:46 -0000 On Tue, Jan 16, 2018 at 11:08 AM, Milan Obuch wrote: > On Tue, 16 Jan 2018 08:21:47 -0600 > Kyle Evans wrote: > >> On Tue, Jan 16, 2018 at 7:19 AM, =E9=98=BF=E9=87=91 wrote: >> > OKOK below is booting message. >> >> Thanks! >> >> > [ .. snip .. ] >> > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 >> > [.. snip ..] >> > awg0: mem >> > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 >> > awg0: cannot get tx clock >> > [.. snip .. ] >> >> That explains it- I hadn't encountered this in practice, so it broke. >> =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method >> for passing syscon, so syscon_generic takes the syscon registers and >> awg can't. You have I think three choices for recourse here, any of >> which should fix your problem: >> >> 1.) Remove the /soc/syscon from the DTB you're using >> 2.) Update your DTB to actually use /soc/syscon, removing the syscon >> reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to >> that node. >> 3.) Update to r327825 or later and pull new DTS from Linux. If pulling >> new from Linux is a pain, I can generate a new DTB for you based on >> what we'll be importing from Linux in a couple weeks. >> >> r327825 added support for the new stable emac bindings, so after DTS >> update this won't break again. >> > > In my case, using Orange Pi Zero, I observed similar behavior. Using > older DTB ethernet works, and with tips mentioned above I was quickly > able to modify my DTS, so ethernet works again. It just uses different > MAC. Question is, where does it actually come from, and, maybe, where > should it come from. IIRC, The following are possible sources of MAC address in an order of precedence: 1.) You set it manually 2.) It's set in hardware (U-Boot, maybe?) 3.) It's set explicitly in DTS 4.) There's a sid driver in your DTS, then awg will use the rootkey from sid to derive a rootkey 5.) None of the above are true, then it will randomly generate a MAC addres= s I'm not sure about your board, but on a couple of mine only options 1,4, and 5 are applicable- there is no hardware-set MAC and it's not set in DTS. > This is from dmesg: > > awg0: mem 0x1c30000-0x1c30103 irq 38 on simp= lebus0 > simplebus0: no default resources for rid =3D 1, type =3D 3 > awg0: PHY type: mii, conf mode: reg > awg0: EMAC clock: 0x00168000 > awg0: AHB frequency 300000000 Hz, MDC div: 0x3 > > Any idea what resource is not found here? IS it something to worry > about? The resource not found would be the syscon register that we used to pass in. No need to worry about it unless the line spitting out the PHY type and conf mode is telling you it's using the "clk" conf mode instead of "reg" because it's specified as an 'optional' At this point, the "clk" mode is effectively legacy and I would like to rip it out once we get sufficiently far down the road that .dts using it (read: our older dts) will effectively no longer be supported. These exist in stable/11, so it'll be a while. =3D) From owner-freebsd-arm@freebsd.org Tue Jan 16 19:31:02 2018 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 DEAB3EB36AE for ; Tue, 16 Jan 2018 19:31:02 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66D5269185 for ; Tue, 16 Jan 2018 19:31:01 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Tue, 16 Jan 2018 20:30:58 +0100 id 00DD6045.5A5E52F2.00014B37 Date: Tue, 16 Jan 2018 20:30:58 +0100 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Orange Pi Zero dmesg - error? Message-ID: <20180116203058.2db36b50@zeta.dino.sk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i386-portbld-freebsd10.4) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 19:31:03 -0000 Hi, for some time I see following when booting Orange Pi Zero board using current 12-CURRENT: cpulist0: on ofwbus0 cpu0: on cpulist0 cpu0: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu0 cpu1: on cpulist0 cpu1: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu1 cpu2: on cpulist0 cpu2: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu2 cpu3: on cpulist0 cpu3: missing 'clock-frequency' property I have r327998 at a moment, this can be seen using sun8i-h2-plus-orangepi-zero.dtb as generated from official sources, no local modification. Is it actually an error or just cosmetics? The board itself works just right, as far as I can tell... Regards, Milan From owner-freebsd-arm@freebsd.org Tue Jan 16 20:12:14 2018 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 B6FE7EB59CB for ; Tue, 16 Jan 2018 20:12:14 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39BA16AEC9 for ; Tue, 16 Jan 2018 20:12:13 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Tue, 16 Jan 2018 21:12:10 +0100 id 00DD6041.5A5E5C9A.0001563A Date: Tue, 16 Jan 2018 21:12:10 +0100 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Re: Orange Pi Zero dmesg - error? Message-ID: <20180116211210.029f885f@zeta.dino.sk> In-Reply-To: <20180116203058.2db36b50@zeta.dino.sk> References: <20180116203058.2db36b50@zeta.dino.sk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i386-portbld-freebsd10.4) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 20:12:14 -0000 On Tue, 16 Jan 2018 20:30:58 +0100 Milan Obuch wrote: > Hi, > > for some time I see following when booting Orange Pi Zero board using > current 12-CURRENT: > > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu0: missing 'clock-frequency' property > random: harvesting attach, 8 bytes (4 bits) from cpu0 > cpu1: on cpulist0 > cpu1: missing 'clock-frequency' property > random: harvesting attach, 8 bytes (4 bits) from cpu1 > cpu2: on cpulist0 > cpu2: missing 'clock-frequency' property > random: harvesting attach, 8 bytes (4 bits) from cpu2 > cpu3: on cpulist0 > cpu3: missing 'clock-frequency' property > > I have r327998 at a moment, this can be seen using > sun8i-h2-plus-orangepi-zero.dtb as generated from official sources, no > local modification. > > Is it actually an error or just cosmetics? The board itself works just > right, as far as I can tell... > > Regards, > Milan > Forgot to mention, the above is from verbose boot, normal boot output collapses just to cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 Milan From owner-freebsd-arm@freebsd.org Tue Jan 16 23:46:05 2018 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 395AAEC0699; Tue, 16 Jan 2018 23:46:05 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (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 0441B732C4; Tue, 16 Jan 2018 23:46:05 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x234.google.com with SMTP id w14so6309951itc.3; Tue, 16 Jan 2018 15:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=qD0sjpKeUV+0hPGCQYkm2XkP8Nox8rPNNZWPtstU8q8=; b=tVZbUdTniKEUKv45fdy/wfT1gCC+m9gOlrhnSeP4Ivp0fkRZK1IbbWLjXLiYPcWn2n d3jz0i9sFhCKvXXK+Zl4h2MNI73qNO6bOFB0GXmAb1szH89paUdJIUyhmGOPDJbneM8a CXeNTQZG4ZzbELfb6hGvZg3Yabigeu3wmoUVL7TohNymO2eGKQj9AZ/4Iyrre38DUuOi 0lyJmgZeggAeKSclDifATm88DSzeud8CZ5lbXp2/8HTWV/bNBKaVpyzeWsjX6vUU5YHi WnoR5oc9X5/2urdH/eSAwjDUMsskE9W9a1bma79LBeHfj3FqiA3HEncrl7T9S1TIWqn7 RF6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=qD0sjpKeUV+0hPGCQYkm2XkP8Nox8rPNNZWPtstU8q8=; b=qEp+v5Qagk5U8cO6s+790t9IpDjQtYcjDHB7XTGVKK0HuyHe+fvKzQrwxKeC+cS7SQ vryL5ilg8QPpLU2Ib62sYhvtlUMOhyL+/JaiY2yJqUO2/Avv9v1OAPEYlbdfSy+j23oV hY8DpS/d9k8i0RGMYj6cSZATEVEonY3PtmalJ+GLOqP8VW1DrYDWV22tJX0zF9m31vzY Nu2ZfH4IK5W+WqMM9FVxmuFENKUha/fqujwbDf+zdFAH0hWP2PiWiPf6UolT9+0G5S9q h3lNfMWJqTeV3jhYaO79XhEJlqKOFGS7O9TnaiOyd1LRkwZewCBa89mH4U9f99zj2INY WZhg== X-Gm-Message-State: AKwxytfZ4vt3iWHz1bP54N00B2wGlKBNF/ybmwhVR7yZIOFhVzu+wFhe DtYcES6MLj1hQhLvZr5GBkmaWZysRMhGdrM3RQuWwkTv X-Google-Smtp-Source: ACJfBotjAC7gEorYQx4yD/B0uLOgrpFObSTCj7qt76yaQwUJR8M9xUcUEDUsubOQj1dlhsdELz6he2EYQlxPf2z/7Xk= X-Received: by 10.36.17.208 with SMTP id 199mr20146268itf.103.1516146364109; Tue, 16 Jan 2018 15:46:04 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.136.201 with HTTP; Tue, 16 Jan 2018 15:45:43 -0800 (PST) From: Ed Maste Date: Tue, 16 Jan 2018 18:45:43 -0500 X-Google-Sender-Auth: CgpOZgfw_BkbhayYeJAlKNo8VQA Message-ID: Subject: Migrating arm(v7) to LLD_BOOTSTRAP To: freebsd-toolchain@freebsd.org, "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2018 23:46:05 -0000 With the update to Clang/LLVM/lld 6.0.0 I believe lld is nearly ready to be used as the system linker for armv7, and I plan to enable LLD_BOOTSTRAP by default after a couple of WIP patches land and after a little more testing. This may happen a week or two from now. This should have little impact on port builds, because /usr/bin/ld will still be GNU ld.bfd (although there may be some unexpected fallout). I expect to enable LLD_IS_LD by default a little later, and /usr/bin/ld will then be lld. This is the same path we're taking with amd64. lld currently does not support architectures prior to armv7, and fails with some combination of these errors when I try to use it for arm{,v5,v6,eb}: ld: error: lld uses blx instruction, no object with architecture supporting feature detected. ld: error: lld uses extended branch encoding, no object with architecture supporting feature detected. ld: error: lld may use movt/movw, no object with architecture supporting feature detected. I expect this will be addressed in a future version of lld. From owner-freebsd-arm@freebsd.org Wed Jan 17 00:33:26 2018 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 41AB7EC2DC0 for ; Wed, 17 Jan 2018 00:33:26 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 C6AE674BDB; Wed, 17 Jan 2018 00:33:25 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id x4so19376389wmc.0; Tue, 16 Jan 2018 16:33:25 -0800 (PST) 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=8DWW/FkDsdalmxtPE5+QB62jeAuyPe+XKz4JwPZNvrc=; b=Fk7W5UxfpFvdziulu9meRYFCHYQ4z4dNo7jAVHZp2BYTboJ47IMRfnmSIPZLtOVTw5 pBX1Z5YR3lvY3Au5YBK0m1lvqUhEbRGduoRXCUapZuFdRV0JSXsCIWOiI08XgYgIiA8T a2TrXVl0mFlRvYFZtqnvNELOpAwu5qAzrHkC2BtuKLkl++YM4xWKcLe8d2xJatmPjPXl ruLWMXVm90954lBSKKDblWltfB/Vjr4SxQTe5taUVectYYhMpfIA8Jh8wmZ4Zfc+9EfJ MI+BsC1Se+i0DMMh+Tonfle/CgfMxdwFw9qZNwzPsttDysxHx1iRcKHX91LtaMynR/om 852A== 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=8DWW/FkDsdalmxtPE5+QB62jeAuyPe+XKz4JwPZNvrc=; b=iMHeXNGjp8g4H56lAOlbx0cjISefWdeVJRNg/a1is2TpIRDFjrUMqJKmRqlBOjOE1K 0uAHNNeecdIWk/EI08YxAqye5PtmFj5vMRcpcd36h5GZhaYGkTF7+sIL7bgNdYq5J09W pW1ZdySMtHJK9MQ0MekkCTgaVOoDwuv+xHkmMJLu0LiDPixOEKcod5iG4he+rbPsQyN4 TdA9fHX2I3Bek8p9Vu3HgfzRJ0phWEkVwkPD1/CkJ4FR4Bm0o6ELFKQA5gw+rRNe/Mtp jEEpQHIjN1MqGbY0lnkAEp90BLTWQYieTlXByfJs/8iqiPGmzSHgbBcVHOm8oVuAACL/ ecRA== X-Gm-Message-State: AKwxytfrv1B5CpialplLJHpOrbcabzwr/N7QvlkIOWik9+5opKOxKdv7 1ExRbREWQibaMAknyUDyofvcwJ/twZJIoxvfaFfLUodd X-Google-Smtp-Source: ACJfBouBFzROtX3Q5Df4mCr9jp9NaVm72xuAg29zXV1MQsaF064Ftzd8ywyet2xOrqcffVX17H5ol3UzxHowrJmvfz8= X-Received: by 10.80.213.82 with SMTP id f18mr269707edj.255.1516149203916; Tue, 16 Jan 2018 16:33:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.222.139 with HTTP; Tue, 16 Jan 2018 16:33:23 -0800 (PST) In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: =?UTF-8?B?6Zi/6YeR?= Date: Wed, 17 Jan 2018 08:33:23 +0800 Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: Kyle Evans Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 00:33:26 -0000 Thanks help ,I will try it later. could you please give me the method or link =3D> how to pull new DTS from Linux?? I want to learn how to do it . 2018-01-16 22:21 GMT+08:00 Kyle Evans : > On Tue, Jan 16, 2018 at 7:19 AM, =E9=98=BF=E9=87=91 wrote: > > OKOK below is booting message. > > Thanks! > > > [ .. snip .. ] > > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 > > [.. snip ..] > > awg0: mem > > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 > > awg0: cannot get tx clock > > [.. snip .. ] > > That explains it- I hadn't encountered this in practice, so it broke. > =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method > for passing syscon, so syscon_generic takes the syscon registers and > awg can't. You have I think three choices for recourse here, any of > which should fix your problem: > > 1.) Remove the /soc/syscon from the DTB you're using > 2.) Update your DTB to actually use /soc/syscon, removing the syscon > reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to > that node. > 3.) Update to r327825 or later and pull new DTS from Linux. If pulling > new from Linux is a pain, I can generate a new DTB for you based on > what we'll be importing from Linux in a couple weeks. > > r327825 added support for the new stable emac bindings, so after DTS > update this won't break again. > From owner-freebsd-arm@freebsd.org Wed Jan 17 00:44:19 2018 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 047C2EC3507 for ; Wed, 17 Jan 2018 00:44:19 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) (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 C232375063 for ; Wed, 17 Jan 2018 00:44:18 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-it0-f42.google.com with SMTP id c102so13121583itd.0 for ; Tue, 16 Jan 2018 16:44:18 -0800 (PST) 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=3Qog4lJpnzu/InHUXKUM90WbJS02uCrJT11ZE611cOI=; b=PR1BxXZ4iBBekuBnoj9AP6n98A2LtLHVmxPMA+NcL2/mAykUfl3nehfQqrOGAYlIEe F3Fp0oMcqGdLUTLIIOrGkbZrWGP9jbq0NKfTLMgN3zQz3zITmfEt1PoEcgbrG15GYhFP Quu0Id2x1tqqouhc5z2zicCsoJo8yKQgJ+zBgpnsZ2/SkhmiwMhdmvB8KUuPsMsiIJ0+ CydyjHy81ILwWu8uxxGEdM65dITrBaEwjrZ7W/zKhLTm3zncNQj5lJPmsOROkO6RPvuA c5CK7fWfnZTfBp9cuCkQkORALpyG4u9+TMW0HqjFvJm4rZoA/00S4qrA/qS5Ja3+WrSA 3aXg== X-Gm-Message-State: AKwxytfZancSn7037EsYYXnHzjqOX7YpgFj5o2KMuLPLnPiHQpQaKViT fp2tHAqxsl4Y+kWav3D+rtlzF/bn X-Google-Smtp-Source: ACJfBov6zKQEH16dxEIn0114RsX4Y7WMkEYbKD+DJT93zndIccdNb6/oSIzF6iJjgQOqrzEFbyXYxw== X-Received: by 10.36.215.69 with SMTP id y66mr20472398itg.10.1516149852294; Tue, 16 Jan 2018 16:44:12 -0800 (PST) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com. [209.85.223.171]) by smtp.gmail.com with ESMTPSA id o137sm1750176ito.5.2018.01.16.16.44.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 16:44:12 -0800 (PST) Received: by mail-io0-f171.google.com with SMTP id d11so18893458iog.5 for ; Tue, 16 Jan 2018 16:44:12 -0800 (PST) X-Received: by 10.107.21.65 with SMTP id 62mr40153349iov.148.1516149851724; Tue, 16 Jan 2018 16:44:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.149.147 with HTTP; Tue, 16 Jan 2018 16:44:11 -0800 (PST) Received: by 10.107.149.147 with HTTP; Tue, 16 Jan 2018 16:44:11 -0800 (PST) In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> From: Kyle Evans Date: Tue, 16 Jan 2018 18:44:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Orange pi one ,receive panic: bad pte2 To: =?UTF-8?B?6Zi/6YeR?= Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 00:44:19 -0000 (Sorry for the broken response on my part, mobile Gmail is bad) You should poke manu@ for his script to compile a DTS from Linux source. You can pull a working tree to use that on from kernel.org's git repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ On Jan 16, 2018 6:33 PM, "=E9=98=BF=E9=87=91" wrote= : Thanks help ,I will try it later. could you please give me the method or link =3D> how to pull new DTS from Linux?? I want to learn how to do it . 2018-01-16 22:21 GMT+08:00 Kyle Evans : > On Tue, Jan 16, 2018 at 7:19 AM, =E9=98=BF=E9=87=91 wrote: > > OKOK below is booting message. > > Thanks! > > > [ .. snip .. ] > > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 > > [.. snip ..] > > awg0: mem > > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 > > awg0: cannot get tx clock > > [.. snip .. ] > > That explains it- I hadn't encountered this in practice, so it broke. > =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method > for passing syscon, so syscon_generic takes the syscon registers and > awg can't. You have I think three choices for recourse here, any of > which should fix your problem: > > 1.) Remove the /soc/syscon from the DTB you're using > 2.) Update your DTB to actually use /soc/syscon, removing the syscon > reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to > that node. > 3.) Update to r327825 or later and pull new DTS from Linux. If pulling > new from Linux is a pain, I can generate a new DTB for you based on > what we'll be importing from Linux in a couple weeks. > > r327825 added support for the new stable emac bindings, so after DTS > update this won't break again. > From owner-freebsd-arm@freebsd.org Wed Jan 17 01:41:26 2018 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 8819EE70D70 for ; Wed, 17 Jan 2018 01:41:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 1914576849 for ; Wed, 17 Jan 2018 01:41:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-wm0-x233.google.com with SMTP id t74so12079678wme.3 for ; Tue, 16 Jan 2018 17:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OiiSafIBcY/KuIdJyiwLR62Tvng9xY2iqGZuV8i6eFY=; b=uFOJ6HULS4hcmwLA8auWFeslxpVoW4MZbQTWgmXRCISfTo7jIPuvGUWXUEeO37rxrU BqzDS2wXsmWJQqwvAQX/jB36hcR6Eg/+vcpC2vtk44ceXKQPaPp5miLU7Zw9TOaZ+JmC r7qEHakEdlW9v57z+WEbNI6xh7S+eNCQNWqTFLDOpDIJiizyCtDKMlTo9gTpeYUH2yxp QdBr/lYrPF4TrXHfXDjKlECJrcJ2qmePlCTOeElo4gJQ9jUVdJsCx00agft96/NV63F7 2mk8HdTMf8bWq82QABltjT0L8hODXbtoQNB5eSWY6DQs8I585Ujyk+f5k5/HhEhoPO9P rBzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OiiSafIBcY/KuIdJyiwLR62Tvng9xY2iqGZuV8i6eFY=; b=ZbAV0Oe7X0haAhMKQx7VBI1+P56eQofqJ4BTP6GwwHQMtxNaarkVTcQM1vm5IOmJ3r 4+2T4giT0InIKFMN+SIlOzK2L6A6DsqFTIiUVd04UxKTvdsOIjz7Fx/yP+sy/8PTc5jk ia4oa2lQg1RGZqS0Gw9wQfKzHUP8bWjTDyq2+vo5DiUVog9MJCHm5VzpeeNX0UVs29oH PO+HngHC+GT3UO0jLXYALJIr8yIPcoEHjk9iDovCs+JQh3trhqp2hQKXIiM0Mxko5Evo D8V5FNaLHYcnrxNtUa/92PvlpAL8yAMz9hjmZMUeqlNeINsK4wERpS+FJJxnJtxb0g5Y lKnA== X-Gm-Message-State: AKwxytcyLcvLKa4B4d7/i5EQHl9OmNml+XjMWsZtSeLTwYQXAEFNiYBv GXmdG91oqhM+kNCmCekKogIpl0T6u0b9lqJwAJYMog== X-Google-Smtp-Source: ACJfBoteHRHKgWhb6Q67FNj0tv3K7ZEmxlmfeTg7D7GCdndcfXX2Dt4fQ983D74jk0CGHNoWRc99ASbbB6QEH83T89k= X-Received: by 10.80.171.165 with SMTP id u34mr458604edc.167.1516153283825; Tue, 16 Jan 2018 17:41:23 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.80.195.12 with HTTP; Tue, 16 Jan 2018 17:41:23 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: From: Warner Losh Date: Tue, 16 Jan 2018 18:41:23 -0700 X-Google-Sender-Auth: c-ycNajNB8QN-KHqR_TlJhIjhN4 Message-ID: Subject: Re: Migrating arm(v7) to LLD_BOOTSTRAP To: Ed Maste Cc: "freebsd-toolchain@FreeBSD.org" , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 01:41:26 -0000 On Tue, Jan 16, 2018 at 4:45 PM, Ed Maste wrote: > With the update to Clang/LLVM/lld 6.0.0 I believe lld is nearly ready > to be used as the system linker for armv7, and I plan to enable > LLD_BOOTSTRAP by default after a couple of WIP patches land and after > a little more testing. This may happen a week or two from now. This > should have little impact on port builds, because /usr/bin/ld will > still be GNU ld.bfd (although there may be some unexpected fallout). > > I expect to enable LLD_IS_LD by default a little later, and > /usr/bin/ld will then be lld. This is the same path we're taking with > amd64. > > lld currently does not support architectures prior to armv7, and fails > with some combination of these errors when I try to use it for > arm{,v5,v6,eb}: > > ld: error: lld uses blx instruction, no object with architecture > supporting feature detected. > ld: error: lld uses extended branch encoding, no object with > architecture supporting feature detected. > ld: error: lld may use movt/movw, no object with architecture > supporting feature detected. > > I expect this will be addressed in a future version of lld. > At least some of that is due to the gap size that's defined for all of ARM. With a smaller gap size, the trampolines will work better on older ARM gear.... Warner From owner-freebsd-arm@freebsd.org Wed Jan 17 05:35:14 2018 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 688A5E7C8A7; Wed, 17 Jan 2018 05:35:14 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 0A1357D83F; Wed, 17 Jan 2018 05:35:14 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id 143so12577635wma.5; Tue, 16 Jan 2018 21:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sMUvU8TKozpc8LlZXMVrxezwq6Vnx1Qqkpqe3ikWlYA=; b=HV3uBxLnW/lIGzkXSuiwpllYZ2BXsWR/ap9FS+vLzTroFpUl3wGanUsY08f5eGqbyk e/fLprOgHNWO1YF/c9DgD5E2S+z7dfiD6RsWWo4NBpfdBSFxpVtJAsuwp/KmBZyCpsLu y3zihaUQSjM3K9NG/GZ1gP/sgBi919acVOff+GbfMHOxpoOVT+HsN5cu+0SSw9HlZsIA YV3F3iNxRGzTCTwUlNJe7rDEC18PmglU+4/GYKoW8apGH7mg/7T9zpguMeq1tjTs/DQe DOv76c3bNxkYcSUm4/jogzJBsLaRQwMxY+V1yhcDq7HNb1dxodGY+8ZZBxDtpDd7DTQB WWUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=sMUvU8TKozpc8LlZXMVrxezwq6Vnx1Qqkpqe3ikWlYA=; b=XfeCV/6hjif/l2PmXSLNtMO28zasx2e+AzskqTgrKvufnmC3EIYDT8s+1PVbv3nSPk SOZAjtp5ee7cqNIQHrSvHlqvd79RD1O3vPbVUbO47KYuuykuSdNAPlm60cFXPGR5em79 UsiTgCFLzxk62agCOZBssbYuH2MBZdZWhds3laTGB/TAInvX83YFJ/JfKfbZK5htKW2v fYra5EhvmXEpLo0w/Fp9ayvqx76hvXat/BBuBG32CfMzyZ6j/0ZAFjpn7mYpVgxWMKTU M/au3O5w1NAu3vw5UOU+DX1D0EeGBDVk6/ZC0eomHQPyc6ATYkyynC3o5tpo6TRoasr4 s2GQ== X-Gm-Message-State: AKwxytfTW0W8X0+w8ba+aOHpXWynrFIUR51dduAFYO2pDoXO6tB4LpgB ydPwit7Uc/LEijW7bd2tQvpFvy7b X-Google-Smtp-Source: ACJfBou4PNl9ymPgnDuqyqCS8uDDQACBIONb0RniVaraX+DxHzeZ3jZp6zDtHq1GaAfKOBY8UB2Cdw== X-Received: by 10.80.136.85 with SMTP id c21mr1161126edc.259.1516167312253; Tue, 16 Jan 2018 21:35:12 -0800 (PST) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id f16sm2220452edj.65.2018.01.16.21.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 21:35:11 -0800 (PST) From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: meloun.michal@gmail.com Subject: Re: Migrating arm(v7) to LLD_BOOTSTRAP To: Warner Losh , Ed Maste Cc: "freebsd-arm@freebsd.org" , "freebsd-toolchain@FreeBSD.org" References: Message-ID: Date: Wed, 17 Jan 2018 06:35:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 05:35:14 -0000 On 17.01.2018 2:41, Warner Losh wrote: > On Tue, Jan 16, 2018 at 4:45 PM, Ed Maste wrote: > >> With the update to Clang/LLVM/lld 6.0.0 I believe lld is nearly ready >> to be used as the system linker for armv7, and I plan to enable >> LLD_BOOTSTRAP by default after a couple of WIP patches land and after >> a little more testing. This may happen a week or two from now. This >> should have little impact on port builds, because /usr/bin/ld will >> still be GNU ld.bfd (although there may be some unexpected fallout). >> >> I expect to enable LLD_IS_LD by default a little later, and >> /usr/bin/ld will then be lld. This is the same path we're taking with >> amd64. >> >> lld currently does not support architectures prior to armv7, and fails >> with some combination of these errors when I try to use it for >> arm{,v5,v6,eb}: >> >> ld: error: lld uses blx instruction, no object with architecture >> supporting feature detected. >> ld: error: lld uses extended branch encoding, no object with >> architecture supporting feature detected. >> ld: error: lld may use movt/movw, no object with architecture >> supporting feature detected. But this means that we can not use lld for kernel module linking. (assuming that lld can emits movt/movw with attached relocation). To be more exact, not until we change format of kernel modules from (many years outdated, -Bshareable without -fPIC) shared library format to fully supported "combined object file" format. Michal > >> I expect this will be addressed in a future version of lld. >> > > At least some of that is due to the gap size that's defined for all of ARM. > With a smaller gap size, the trampolines will work better on older ARM > gear.... > > Warner > _______________________________________________ > 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" > From owner-freebsd-arm@freebsd.org Wed Jan 17 05:39:52 2018 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 C26E0E7CC0C for ; Wed, 17 Jan 2018 05:39:52 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 5159E7D988 for ; Wed, 17 Jan 2018 05:39:52 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wr0-x22f.google.com with SMTP id w50so17588549wrc.11 for ; Tue, 16 Jan 2018 21:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AJk7iPTOhJqT6ZzmDl1W7bGfhnL/5oGOuv8DnwI1dJQ=; b=nehNnrkO0iIBjbUftu1niiqXI5yoZVpN5v9lJwRuJxLBahNs9oAVS5g5tNVtRLRgzC aiK6GBXt/sOwQPAHml/OgGXrYH9Habs3dAmJUEij5y4FACx4eUM3KpoTgTXzTFnHdR7b dmycE8nR/jBggiNG5hC546rS95RoDt2uKkFU8LZN3AN1yUapD1gCTuW3Z2Rou0bFUFR9 Ma1VciBTDuAx+MxG8KSU9uLJ7ZgNji1lCiDjFKrkwTa0/3FhzjrSDNznGElQSCFPrwq3 DLPEus6/HebftaKZ/fx5vQOd7OouQ59yMrBGpPNoL5HqYR9NlxCV4WQtTYqTZxO/hPtc vrFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AJk7iPTOhJqT6ZzmDl1W7bGfhnL/5oGOuv8DnwI1dJQ=; b=Ym9UuDjIABwqUj5Wia5dzMDNl/EiBI/CM/6BgicNnNqRN/i3JiokjnH07z4Svog6+J RWN5LX4qi1HItDAUHfjzdqjEW87g8sIk66CYO4qo6/thtvBKYADS6vGw/t/VOqRBahW+ OCMz85QRYRL/peqsU7tU/xaJ3LMqMSVb00JV7mJLLq0fIfeFgj1wFaDi7fgvHLCKwsvo s3MVe7aJklIT6xlDw+iiujH0e+NYMUUM49hH4SBwZJBTtJRYBX4DVP0ciTO7ytKjV7i5 naLppind5k2oCu1nDkkuMpmfmz/sMe37fzCmqByCkNF7Avk2foCHCPorvbuNox0xvZtu Q2iw== X-Gm-Message-State: AKwxytfqisVq9YqKJ3U9XkAETVSRxqcJ5Zoae13U5j/2+cwB1KDURJwT dJ1+QUrpH4yCtjtisrEkT08HDw6P X-Google-Smtp-Source: ACJfBot4tmpzVgJknJUakd4GMZJSTIXLr0zzw/6hXsPcV+Hw5VfCzHCnevEdQ9CcYpWb6YAxvBfLBw== X-Received: by 10.223.151.195 with SMTP id t3mr1231116wrb.274.1516167589495; Tue, 16 Jan 2018 21:39:49 -0800 (PST) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id b14sm1140006wrg.29.2018.01.16.21.39.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 21:39:48 -0800 (PST) From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: mmel@freebsd.org Subject: Re: Orange Pi Zero dmesg - error? To: Milan Obuch , freebsd-arm@freebsd.org References: <20180116203058.2db36b50@zeta.dino.sk> <20180116211210.029f885f@zeta.dino.sk> Message-ID: <8ea4c1a9-9c3f-d4b6-498b-d81dfa515f22@freebsd.org> Date: Wed, 17 Jan 2018 06:39:49 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180116211210.029f885f@zeta.dino.sk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 05:39:52 -0000 On 16.01.2018 21:12, Milan Obuch wrote: > On Tue, 16 Jan 2018 20:30:58 +0100 > Milan Obuch wrote: > >> Hi, >> >> for some time I see following when booting Orange Pi Zero board using >> current 12-CURRENT: >> >> cpulist0: on ofwbus0 >> cpu0: on cpulist0 >> cpu0: missing 'clock-frequency' property >> random: harvesting attach, 8 bytes (4 bits) from cpu0 >> cpu1: on cpulist0 >> cpu1: missing 'clock-frequency' property >> random: harvesting attach, 8 bytes (4 bits) from cpu1 >> cpu2: on cpulist0 >> cpu2: missing 'clock-frequency' property >> random: harvesting attach, 8 bytes (4 bits) from cpu2 >> cpu3: on cpulist0 >> cpu3: missing 'clock-frequency' property >> >> I have r327998 at a moment, this can be seen using >> sun8i-h2-plus-orangepi-zero.dtb as generated from official sources, no >> local modification. >> >> Is it actually an error or just cosmetics? The board itself works just >> right, as far as I can tell... >> >> Regards, >> Milan >> > > Forgot to mention, the above is from verbose boot, normal boot output > collapses just to > > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 You are safe :) On ARM, 'missing 'clock-frequency' property' messages are pure cosmetic. Michal From owner-freebsd-arm@freebsd.org Wed Jan 17 09:33:30 2018 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 1D0D3EB8CAD for ; Wed, 17 Jan 2018 09:33:30 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B4FE521C8; Wed, 17 Jan 2018 09:33:27 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id c95ed12a; Wed, 17 Jan 2018 10:33:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=wtVC4IsCnYLewuYRQ09ERZxUzas=; b=ec4qklGguvp6U5L46uzteCTy1vlX cIa3LbsFmNjTtJW1Oj/rBMZsdgEb5Q75MtQXx/NTw1RS3331FXaotgwMsv3nYpx5 zuIhsvPEyPUZKLMssF2sTTK/aX3NjkM02s1UtFR/OZgeJhhP4U09xz8/QEBcWolj RdY786RGu38ZqCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=HqqNnZOVh3KexSEUd/iwvBQUp9iqHoIjE/wC9XJfdlKjopH537q3jECj 84a9OFt7y2xj5X5idEjujcj+6YpBiXngybdv9qcfKCEvjVIoIH3vZcfcWx+xWEN0 xzzt4YFSv2fg4yw3Fku1/BQkMeidnlTn9Kyom1q6JLzhMK4p4G4= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id f72575fc TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 17 Jan 2018 10:33:19 +0100 (CET) Date: Wed, 17 Jan 2018 10:33:19 +0100 From: Emmanuel Vadot To: Kyle Evans Cc: =?ISO-8859-1?Q?=3F=3F?= , freebsd-arm@freebsd.org Subject: Re: Orange pi one ,receive panic: bad pte2 Message-Id: <20180117103319.c401b6380ba4cf6105976b5b@bidouilliste.com> In-Reply-To: References: <8DD425C1-FEF4-4BC0-9A80-916B50620896@dsl-only.net> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 09:33:30 -0000 On Tue, 16 Jan 2018 18:44:11 -0600 Kyle Evans wrote: > (Sorry for the broken response on my part, mobile Gmail is bad) >=20 > You should poke manu@ for his script to compile a DTS from Linux source. > You can pull a working tree to use that on from kernel.org's git repo: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ https://gist.github.com/evadot/f6b30fa582253ccf7b9652523b80c47f > On Jan 16, 2018 6:33 PM, "??" wrote: >=20 > Thanks help ,I will try it later. > could you please give me the method or link =3D> how to pull new DTS from > Linux?? > I want to learn how to do it . >=20 >=20 > 2018-01-16 22:21 GMT+08:00 Kyle Evans : >=20 > > On Tue, Jan 16, 2018 at 7:19 AM, ?? wrote: > > > OKOK below is booting message. > > > > Thanks! > > > > > [ .. snip .. ] > > > syscon_generic0: mem 0x1c00000-0x1c00033 on simplebus0 > > > [.. snip ..] > > > awg0: mem > > > 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 23 on simplebus0 > > > awg0: cannot get tx clock > > > [.. snip .. ] > > > > That explains it- I hadn't encountered this in practice, so it broke. > > =3D( Your DTS here has a /soc/syscon *and* uses our former hacky method > > for passing syscon, so syscon_generic takes the syscon registers and > > awg can't. You have I think three choices for recourse here, any of > > which should fix your problem: > > > > 1.) Remove the /soc/syscon from the DTB you're using > > 2.) Update your DTB to actually use /soc/syscon, removing the syscon > > reg from /soc/ethernet and adding a 'syscon =3D <&syscon>' attribute to > > that node. > > 3.) Update to r327825 or later and pull new DTS from Linux. If pulling > > new from Linux is a pain, I can generate a new DTB for you based on > > what we'll be importing from Linux in a couple weeks. > > > > r327825 added support for the new stable emac bindings, so after DTS > > update this won't break again. > > > _______________________________________________ > 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" --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Thu Jan 18 06:59:27 2018 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 4D88FEB8163 for ; Thu, 18 Jan 2018 06:59:27 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 E347D7C386; Thu, 18 Jan 2018 06:59:26 +0000 (UTC) (envelope-from unto.foru13@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id v123so20539937wmd.5; Wed, 17 Jan 2018 22:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=z5huMTggfxTqvavwsA+YEsDB9t/Yb/uxmm8VkJhcwO0=; b=mDvcrNxq8y9iGQYlBroht9a/rvginN+WjCss7F0VCsnygBBAPUnFtsenXrctvpevvi ij3YfzU2pj9rG8Oq+/VtMut2CLvz4wxG9MiJ632hN8xksa2U3lbikqJDZz0TMVNUZNYb tA3Y+oQsnw+Le3PyMlAKDa7w8GGLxlboqR+X0JIRKyttHuWpyDkwerpsEtV62C7jC1La X4hIEbJQbjsxbWQistzEGkk1NL8HcW0HIflos1LeeVpmCFm8Z0Wg9rEC+pbDUgowHg4F rnYuHqNSUqPRCjumA6KhoxxMe1NfOq1xMSywqWUAsZFB36I9qH49o6nDzcFDrx925b3y l4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=z5huMTggfxTqvavwsA+YEsDB9t/Yb/uxmm8VkJhcwO0=; b=n8Ru+wtyRT8kN4R1VlC4LAgv3EJZmdgW/UtNbvskAq/fgiGHT1WGWftH/H0xhEzpgL vLEhpGrLsuGrRgfcVUINwMBmPdNDQVORLalA2Y7kySXbvdi3XVCkMUT5Xtrtkjs9YS3A MMIiUubTayQp11UjZrER9c16cB4mVQVh5Ft1dGegYzIG055iDyE4NcV2U4RT2Le7A0YH R+GtCHcBt5A35oQ0CXOn9zkk5HzRQOkkXzBLskJ9lJkHPI51xpc/tGQP6Fuu4kf52Vn6 Wd9MrdciAIfSkaZIn3Z/s8vc0P7FQTx1uNQdJQiHOguBrufbZIg4vILdpYO/n9xtCg5t A8vQ== X-Gm-Message-State: AKwxytd1CNBweVpjT/O0Hw0j5ZAjCZ28fg22TNbBjwf6Wej4OqNavG7B 9pWygdiGHja4W1xw805v2XdCQyybPxejDgirRcJXrA== X-Google-Smtp-Source: ACJfBosjBfoGcEhnEMku5szyTLLGgOkcFOl0AOxnKSk3RPBZo2xzrHs9B9+cCuQ+L91duHDgsYSrarG4427bDl/AmoM= X-Received: by 10.80.169.53 with SMTP id l50mr1509108edc.128.1516258764618; Wed, 17 Jan 2018 22:59:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.222.139 with HTTP; Wed, 17 Jan 2018 22:59:24 -0800 (PST) From: =?UTF-8?B?6Zi/6YeR?= Date: Thu, 18 Jan 2018 14:59:24 +0800 Message-ID: Subject: If I don't plug network cable first before booting then network will fail in orange pi one To: Kyle Evans Cc: freebsd-arm@freebsd.org, Emmanuel Vadot Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 06:59:27 -0000 Thanks a lot,those link and shell script help me compile dts from linux source. but the new revision also has network problem from orange pi one. Is it a hardware bugs?? the problem is => I must plug in network cable first before kernel booting. If I don't ,the network will fail. In my testing ,in if_awg.c -> awg_reset function if ((RD4(sc, EMAC_BASIC_CTL_1) & BASIC_CTL_SOFT_RST) == 0) will always be 1 ,until I pluged in network cable then It will be 0; my solution is comment below line * Soft reset all registers and logic */ // WR4(sc, EMAC_BASIC_CTL_1, BASIC_CTL_SOFT_RST); then work fine. so is it ok I comment this line?. Is it a hardware bugs?? below is the error situation when I didn't plug network cable then booting. U-Boot SPL 2017.07 (Oct 20 2017 - 12:55:15) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2017.07 (Oct 20 2017 - 12:55:15 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi One DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 reading ubldr.bin 232932 bytes read in 33 ms (6.7 MiB/s) ## Starting application at 0x42000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x59f4c490 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Mon Jan 15 04:39:27 CST 2018 root@VirtualBox pi) DRAM: 512MB MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Number of U-Boot devices: 1 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=0 slice= partition=... good. Booting from disk0s2a: /boot/kernel/kernel data=0x87931c+0x1dece4 syms=[0x4+0x98300+0x4+0xdd00e] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... /boot/dtb/u-boot.dtb size=0x5361 Loaded DTB from file 'u-boot.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r328085: Tue Jan 16 17:51:05 CST 2018 root@VirtualBox pi:/opt/head_328085_obj/obj/opt/head_328085/arm.armv6/sys/GENERIC arm FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register simplebus/ahci from kernel; already loaded from kernel Module simplebus/ahci failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded from kernel Module simplebus/pcib failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features: Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, PXN, LPAE, Coherent Walk Optional instructions: SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory = 536870912 (512 MB) avail memory = 508014592 (484 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: aw_ccu0: on ofwbus0 clk_fixed0: on aw_ccu0 clk_fixed1: on aw_ccu0 clk_fixed2: on aw_ccu0 simplebus0: on ofwbus0 aw_ccung0: mem 0x1c20000-0x1c203ff on simplebus0 aw_ccung1: mem 0x1f01400-0x1f014ff on simplebus0 regfix0: on ofwbus0 regfix1: on ofwbus0 regfix2: on ofwbus0 regfix3: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803,0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 36 on simplebus0 gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160 gpio0: mem 0x1c20800-0x1c20bff irq 17,18 on simplebus0 gpiobus0: on gpio0 gpio1: mem 0x1f02c00-0x1f02fff irq 40 on simplebus0 gpiobus1: on gpio1 rtc0: mem 0x1f00000-0x1f00053 irq 37,38 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 aw_syscon0: mem 0x1c00000-0x1c00fff on simplebus0 a31dmac0: mem 0x1c02000-0x1c02fff irq 4 on simplebus0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 5 on simplebus0 mmc0: on aw_mmc0 ehci0: mem 0x1c1a000-0x1c1a0ff irq 9 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1a400-0x1c1a4ff irq 10 on simplebus0 usbus1 on ohci0 ehci1: mem 0x1c1b000-0x1c1b0ff irq 11 on simplebus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: mem 0x1c1b400-0x1c1b4ff irq 12 on simplebus0 usbus3 on ohci1 gpioc0: on gpio0 awg0: mem 0x1c30000-0x1c3ffff irq 21 on simplebus0 awg0: soft reset timed out device_attach: awg0 attach returned 60 aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 24 on simplebus0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 29 on simplebus0 uart0: console (115384,n,8,1) gpioc1: on gpio1 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 usbus3: 12Mbps Full Speed USB v1.0 ugen3.1: at usbus3 uhub3: on usbus3 mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block Release APs WARNING: WITNESS option enabled, expect reduced performance. mmc0: ACMD42 failed, RESULT: 4 arc4random: no preloaded entropy cache mmc0: Card at relative address 22964 failed to set bus width Trying to mount root from ufs:/dev/mmcsd0s2a [rw]... uhub1: 1 port with 1 removable, self powered uhub3: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache uhub0: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache Setting hostuuid: 6d3bf911-f66a-11de-a736-654ca6ff4704. Setting hostid: 0x96f9f996. No suitable dump device was found. Starting file system checks: Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat random: unblocking device. Soft Float compatibility ldconfig path: Setting hostname: head_328085. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . Starting Network: lo0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21 Starting devd. add host 127.0.0.1: gateway lo0 fib 0: route already in table route: writing to routing socket: Network is unreachable add net default: gateway 192.168.78.1 fib 0: Network is unreachable add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. Creating and/or trimming log files. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Fri Jan 1 00:00:32 UTC 2010 FreeBSD/arm (head_328085) (ttyu0) From owner-freebsd-arm@freebsd.org Thu Jan 18 08:34:16 2018 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 CF227EBD305 for ; Thu, 18 Jan 2018 08:34:16 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:8:bdbe:0:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 83411802E3 for ; Thu, 18 Jan 2018 08:34:16 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver=freebsd-arm@freebsd.org DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 3zMcgf1M71ztDG Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 3zMcgf1M71ztDG for ; Thu, 18 Jan 2018 09:34:05 +0100 (CET) Received: from chamonix.restart.bel (chamonix.restart.bel [192.168.24.9]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id w0I8Y4DJ008150 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 18 Jan 2018 09:34:04 +0100 (CET) (envelope-from hlh@restart.be) To: freebsd-arm@freebsd.org From: Henri Hennebert Subject: Pine64+ - FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG boot freeze Message-ID: Date: Thu, 18 Jan 2018 09:34:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-classic Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 08:34:16 -0000 Hello I try FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG on a Pine64+ and the boot freeze: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Load Path: \efi\boot\bootaa64.efi Load Device: mmc0 Probing 3 block devices.....* done ZFS found no pools UFS found 1 partition Consoles: EFI console Command line arguments: loader.efi Image base: 0xb6db4008 EFI version: 2.05 EFI Firmware: Das U-boot (rev 0.00) FreeBSD/arm64 EFI loader, Revision 1.1 (Wed Jan 17 14:51:27 CET 2018 root@nakiska.restart.bel) EFI boot environment Loading /boot/defaults/loader.conf /boot/kernel/kernel text=0x82d6ed data=0xb09d0+0x3a09cc syms=[0x8+0x10dfa0+0x8+0x100945] /boot/entropy size=0x1000 Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 4 seconds... Booting [/boot/kernel/kernel] in 3 seconds... Booting [/boot/kernel/kernel] in 2 seconds... Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x48000000. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r327979M: Wed Jan 17 19:28:35 CET 2018 root@nakiska.restart.bel:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-NODEBUG arm64 FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0) VT: init without driver. module_register: cannot register gic/gicv2m from kernel; already loaded from kernel Module gic/gicv2m failed to register: 17 Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. module_register_init: MOD_LOAD (efirt, 0xffff000000102ee4, 0) error 12 random: entropy device external interface kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 clk_fixed1: on ofwbus0 clk_fixed2: on ofwbus0 simplebus0: on ofwbus0 aw_ccung0: mem 0x1c20000-0x1c203ff on simplebus0 iichb0: mem 0x1c2b000-0x1c2b3ff irq 21 on simplebus0 iicbus0: on iichb0 aw_ccung1: mem 0x1f01400-0x1f014ff on simplebus0 regfix0: on ofwbus0 psci0: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 23 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 gpio0: mem 0x1c20800-0x1c20bff irq 12,13,14 on simplebus0 gpiobus0: on gpio0 gpio1: mem 0x1f02c00-0x1f02fff irq 26 on simplebus0 gpiobus1: on gpio1 generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rtc0: mem 0x1f00000-0x1f00053 irq 24,25 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 4 on simplebus0 mmc0: on aw_mmc0 ehci0: mem 0x1c1b000-0x1c1b0ff irq 10 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1b400-0x1c1b4ff irq 11 on simplebus0 usbus1 on ohci0 gpioc0: on gpio0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on simplebus0 uart0: console (115384,n,8,1) iic0: on iicbus0 gpioc1: on gpio1 awg0: mem 0x1c30000-0x1c31fff,0x1c00030-0x1c00033 irq 27 on simplebus0 miibus0: on awg0 rgephy0: PHY 0 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow rgephy1: PHY 1 on miibus0 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow awg0: Ethernet address: 02:ba:cf:46:d5:39 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 --- freeze --- Henri From owner-freebsd-arm@freebsd.org Thu Jan 18 12:57:29 2018 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 D3A53E7887D for ; Thu, 18 Jan 2018 12:57:29 +0000 (UTC) (envelope-from kevans91@ksu.edu) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0612.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe49::612]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT TLS CA 4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 690706BDB2 for ; Thu, 18 Jan 2018 12:57:29 +0000 (UTC) (envelope-from kevans91@ksu.edu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ksu.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZPA/JE3g2UBpVrjEDShpnUGaK080VKMQtNwrjVYvgAE=; b=fw7LtO6lzhM2fmDLVsDtMp2IxpjmtYzEyO1baxN/LfrTU0l3FHhPNqwbMaiX42kCndRAv+/x7kYpJhAJP6f7HBf0rMdQi1IBa0SNW0djaJn1qkKNUXoQmc7eVJThAPDAbyQGSKZiEnLZGiEYRqivB8OBIw8TcLQggDdJg4BAi/Q= Received: from BY2PR05CA046.namprd05.prod.outlook.com (10.141.250.36) by CY1PR05MB1962.namprd05.prod.outlook.com (10.162.216.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.9; Thu, 18 Jan 2018 12:57:26 +0000 Received: from SN1NAM02FT018.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::209) by BY2PR05CA046.outlook.office365.com (2a01:111:e400:2c5f::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.9 via Frontend Transport; Thu, 18 Jan 2018 12:57:26 +0000 Authentication-Results: spf=pass (sender IP is 129.130.18.151) smtp.mailfrom=ksu.edu; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=bestguesspass action=none header.from=ksu.edu; Received-SPF: Pass (protection.outlook.com: domain of ksu.edu designates 129.130.18.151 as permitted sender) receiver=protection.outlook.com; client-ip=129.130.18.151; helo=ome-vm-smtp1.campus.ksu.edu; Received: from ome-vm-smtp1.campus.ksu.edu (129.130.18.151) by SN1NAM02FT018.mail.protection.outlook.com (10.152.72.122) with Microsoft SMTP Server id 15.20.428.12 via Frontend Transport; Thu, 18 Jan 2018 12:57:26 +0000 Received: from calypso.engg.ksu.edu (calypso.engg.ksu.edu [129.130.43.181]) by ome-vm-smtp1.campus.ksu.edu (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id w0ICvP9J024171 for ; Thu, 18 Jan 2018 06:57:25 -0600 Received: by calypso.engg.ksu.edu (Postfix, from userid 110) id 77C6124831A; Thu, 18 Jan 2018 06:57:25 -0600 (CST) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by calypso.engg.ksu.edu (Postfix) with ESMTPA id 4482F248317 for ; Thu, 18 Jan 2018 06:57:23 -0600 (CST) Received: by mail-io0-f171.google.com with SMTP id m11so15327566iob.2 for ; Thu, 18 Jan 2018 04:57:23 -0800 (PST) X-Gm-Message-State: AKwxytfnXJ2qAPoq9gQRPY+w2vGI/rSEXvwE78f7MHD8WH5ahiikxbOn ZBWuHTB6LBoHiC4DQzwomiMSEHL1Ow0KocLK8Po= X-Google-Smtp-Source: ACJfBouEP9wgCJwMlwxnhcRhLJ7jRBpe38tIhkCQZO8/DGgV+XZHTtUiHIcYzOGjbP+Fj8Phk/v0Rv/jKW9xp1EjIHM= X-Received: by 10.107.151.131 with SMTP id z125mr41686487iod.224.1516280242469; Thu, 18 Jan 2018 04:57:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.149.147 with HTTP; Thu, 18 Jan 2018 04:57:21 -0800 (PST) Received: by 10.107.149.147 with HTTP; Thu, 18 Jan 2018 04:57:21 -0800 (PST) In-Reply-To: References: From: Kyle Evans Date: Thu, 18 Jan 2018 06:57:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: If I don't plug network cable first before booting then network will fail in orange pi one To: =?UTF-8?B?6Zi/6YeR?= CC: X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:129.130.18.151; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6019001)(396003)(39380400002)(346002)(376002)(39860400002)(2980300002)(438002)(269900001)(13734003)(189003)(199004)(6862004)(95326003)(4326008)(86362001)(575784001)(106002)(90966002)(8936002)(6306002)(98316002)(55446002)(106466001)(6246003)(59536001)(5660300001)(305945005)(9686003)(61266001)(88552002)(236005)(2906002)(356003)(8576002)(84326002)(33964004)(229853002)(93516011)(76176011)(61726006)(26005)(59450400001)(114624004)(53546011)(33896004)(75432002)(246002)(606006)(2950100002)(8676002)(966005)(16586007)(498394004)(5890100001)(316002)(786003)(478600001)(42186006)(55456009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR05MB1962; H:ome-vm-smtp1.campus.ksu.edu; FPR:; SPF:Pass; PTR:ip-18-151.net.ksu.edu; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT018; 1:02cDx4rod1w6QN6nXCCpx1Z6d5PHl+DeDkGkO96OcJZkC3TA2/DXUOWaMKUKwRGfpEoYXC3aOxcn2jKnxkSCbb1GTeqigLnSKu0ICjNmsGs+F281vVbW/99rj+stTifc X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1941845d-b58e-40f3-4731-08d55e730647 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989060)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(8990040)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:CY1PR05MB1962; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1962; 3:0TDT05hHIBNp0cbgKmJ/CIlS7+5GC6gI5FULI7moVUXsWRvDVRvjNMLg7DoK1WPIQkxNoBILJlHoUlSxUsnr5QCnAqR+NR+OhXvFKdA9fqjsB1JyX8fKjvZTkTRxnK55v36LItHyC0pAzcFgv+3tLZtMXIZR/eHeitz3mvE/Gmv4BlG6YZdBjn3IGctVaAq8v8O6quCDPY9PqUnxw2z85GEqVdFzUf/g4c1wa+2z3Is2gcQ16hQR2eF3g1PaIyW+5Df1qShk/HDU7eTyGpkv5F7Dx7B8Cnlh1qY0OHS/0xSf8aTlldF8MvmzLvctz7TfdB/WptI+WRsN1lqIdc+MmVwx6CxtVSKWSmxNgH2ggns=; 25:5mD+R0LYt9439DPnFd+Y4BAc42sXPwBbcWx8RrwH/IX4IFkvpA29k457sa/d7SXzKJs5ArNyf74XvQSA+aQFtLM3Tm//nkCXb358yvuU1R9OoKcKeRE/VH5XgWw7sjb+lAigCqJQFTaNj2CktF96lJO1Nvdhj6viWYsCZF5603oabb1RkBP72Zh7Tkd4oMko85lAI7FKOzk+eaRk5Vsv//9EE+nkKNMaRf2quo9KuxDSbGj2UtVDk3hU1xk5IXs8bPegFdLva+wuoVZGX995OGztYzNwzias7vj9igLLOeJmBkxOrSt/Gfsjs9bGFEN40bihsS1Kfw3kX2WZmOiUXJ0rbvurUdrEusAcwkWWfmQ= X-MS-TrafficTypeDiagnostic: CY1PR05MB1962: X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1962; 31:Hw61PvDYfjBHAAQtLUnplne68jhsxL17XTzTwPogBqanvc923Nt72BpVutpWIap625+6OiCKQBRUMbjmRF0mfK4SGV0Y0aSUpDaQLqk+Gphj/d6taQaUxcc6HzL2C7WVUIb9PPOuN+xX/g9TJcbQ2lgIRfjm3/dcxjdijz40N/B1VuzUwx4fR4ZxfX9Gjfm38uY9W0M2a8uble80X4ocNcT+VymYJOBe6kz46HkH1Jw=; 20:zvxgheOLuKoMqRGkvmgPmZLocXcqm1bwYID/xQ0QombqLTtQsgBOA/Jz6TXNznNs7l1hrzZ2b9SKI5qaowqudCu8cycj2Zd4GDA55ql5HGoH1dinmD/orjVgWZcTc2Ne1rTmFjtxdAVenuEGTnuW8XE0wipjenWZZix7VfwHwW11koWewnDcs2cEWYBBAeSWiRlkV8OEtAMmRkP9QDbkSrkZhVQq4NexKBYr4GSj5GLT7whcxjGCXx2KHI8i/f1fYoNNXFQBa1d9qbh3AJQBMAUQ+GUnb+Ab0+9zv/odBYLvHcwqR+QP6aSt29tNB28lzETQXpLpATKt2CDCAwq1I1hxt0+iLl/yAuGFQus7jr3Lxge4yXyP8qXcDvU/dxZ5wcII2PZk9XilgJDI/2dw6DxupX05ZJe5aFFRM3WFPu04gEINpMqJOPDSCj55/VQLnWIWq6E79icZKjxXcEUhPCLdczPa9ygwWfWZbqt92CY3TwkWjGuIGbfEVJW21Auz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(150554046322364)(85827821059158)(200054503718035)(75325880899374)(83272782819144); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231023)(944501161)(93006095)(93004095)(6041268)(20161123558120)(20161123564045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:CY1PR05MB1962; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR05MB1962; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1962; 4:4vqnOxG49pkKfHlncel0rkC0QVifmeSiShXHilIWiIEGyIkqFTd0n40up/3MjOXNUJ9pJT5t1XfKhZmj/OTEsVGy6XbuD4dDtZg7koluccYet7oEur+EROsqblTm88v4z0yxjZYoI9NnJNKMCYqmJy+5umhD7chz2pipdKt0WPVcjADyWCByLqplZMkmGb/npXb9r4CqmuUYFYuhGRjvkSQb1yuk35aN/yFmj4Kwxy+5jKnaliiqqExu6jwpCnvN5RCciEeYHpsM+BJNXD1Dm8c9BRyNlB2C8scVSVZAJ7I3MSSxAJZVcd2v6kc3X/bDjutX7w2B5Ya6GFoz28SyTZaTOTf+JYfiIHQLkEsJ1caN7Zulh3qixC/yJydQwRkxCe4MBaMApeuacZrHyU4MVM7cQ756MoxmxqV+Vj0gzMuiqoqAx8zFOB2pV0X1dYJYXdI4jDFBdny92Iqj+4cGqsQ0KLllbAoeFClelD/svsQ= X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR05MB1962; 23:gzpvcnuNf/c/2Khpzopzjm3lma3E9t96UZaM+JNZa?= =?us-ascii?Q?CH4FgU/hi1W8p8X/Az7iS2FE5x+uSPfai1LNRgt/3fJzE0qmTltI4ZnCXz4N?= =?us-ascii?Q?IOmGeiszPNCBeGWq+LsIi691vjWOahl7yU+6YZ/S519xKBSm6o6Xke7fY6FC?= =?us-ascii?Q?fiULl0JvQHIqk9+Rjk/MbUFJKbkr8JKJIQoFGpyx3p2NW5A6Yqpv1acO7DHu?= =?us-ascii?Q?H3EyMtQNOzJ7aBr3+SvGZDkE/OPY3S+RiBA7CBXkli2tRPNFuxz0vUWIaGdM?= =?us-ascii?Q?GGyU7cJDTeoobdkIugm8zY/s1a7m8UURgRUi4XP3WgcUfPk4nxkwr/NM8W2C?= =?us-ascii?Q?Siavly5oPU1828UdFFJs5qtoDb4SPNGPxo/P949RJsYa8iuKQaAMLVP7efR9?= =?us-ascii?Q?0pZXMRFcVa+eNMJbk0XaL6OUAkP2Qca2iIczQktggyduJRUI5+ObAS8pr7vK?= =?us-ascii?Q?gsmN3scaFfbKnnyHOrTFPTCo4Qr47ELJROSKjMurK6V0+hiSW62iros75p+Z?= =?us-ascii?Q?LHmINkbz1c7YuVI50ZceF+tz2Tk3H+TYhp0lp/K/FDbFLefVVLlaXRM5Jy7y?= =?us-ascii?Q?CIp1YIZK3/q14liQkxLqvab8xwOUTD+pdEXIRm+uSfTEaNjyhQg2CPfcJkre?= =?us-ascii?Q?ujUxmaw6bExB7OJgNgPUjgWesEJ5NJCop9hmXCjs3iszRA+0kycLR8O9IVFk?= =?us-ascii?Q?1vzt089jvD/PRiFdAqMM+vC3zXcw659Kai4I457unilW6oJzEs6Yu0S3ldjX?= =?us-ascii?Q?d1BAEugmcm7G/wIgwRCbuzU7ASxPzxqlevbJRE8DNzVNIQTmjxtijaSU6eFJ?= =?us-ascii?Q?bdiWgpOuQjt/UtXakajOphRSqS+wPT+FlPcXJ3EMnn0ulSij+ekgHtP0yofR?= =?us-ascii?Q?Bwmo3DodZMXHfiL7Ed0ogZoaFZZkyotqU8yWDlfVD5gFDyCmmjebDvpbF2PD?= =?us-ascii?Q?3QtAdYFt1lhJhm7We83SOtemdiQKgzhqEf3CEsQljKIEWTUjihV8vnBdvH5d?= =?us-ascii?Q?xEsb7NCSzurxIuAjtaMu+ioHJS+jem0EMIcjg/UI+2VU0bZt4SOpLNOgOa/l?= =?us-ascii?Q?a5nKlgJKD0MBZIx/wchCVkLgfu+9YxHJi9vQ7MWvr5Z+4aCCt71ZR6xrJ3ut?= =?us-ascii?Q?qKhpDfl2y88WovsVosB88ija3reNDYisDWwUxNiCNPfw6ydh5QqEqqlnVbgK?= =?us-ascii?Q?0NOJlstIt4DCs920S4AarQbPb4K3Zyhq5tdUUeKRi0tiXTbGav+AQ86KNZr2?= =?us-ascii?Q?P9pKUAq876+iY0KIpduzrFj0GqkIhSG8LaCl4xg7rsYlOTckftwxff/pX5re?= =?us-ascii?Q?ArHN+unyYhE1U3LeUWZpmHCBDEDyatvhKNmT/TSUo0dO10rZDzJirbOLhozY?= =?us-ascii?Q?eU3xw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1962; 6:bqypRKWLqeTSJoazsNlrj2sROOAZkRiYZKGWYKHFqH9DBZ2ONADEipc2IdeUz1c++Fhat/Ol0BJYjQovoHf7a7jaD2Qnxpnt6k4zoe0q6rIrVoWOtqbsgdGzBcUaSExwYPfPX188HyN6LhM43FngPL4o+DGH0fgAB3ULDKDs7b00CvqjL0LSjOdcv29SND1FqrWrEi8qNizSTE+NIbvwsffCwGg/jfuj0yUjdzUbTmpzUgu2Yhws6I2Bu6DOSh1XWcfCp+RMxZd0hGph99DuD8t9efqqYOzBqSyyoXjlq9G0axw8HEY/lCHRx5uf7ypSe3C0yt3IrKadL0xopWFd/PM1HsriglIZJGPJl7kyvb8=; 5:pXQvq+NzrzK5UsmyUCie57dOWT21Loyz7Nh9iS7g6TgwwCk4cTHx+nRtc1rlidvPLmekSRR4xKqWa8FAo52jGjjv/5QgRGdsrNJOUa1bZZrj+QIW07vdw7MVWFdC78boXeR75KxCNS3rEFOCc/rPv+2AxCz+B0zZN6HVw3OsyQY=; 24:jtc3zqePMGIunnvPHLIFYDYZLavBNWLGjnNly7t6s2z6yFVg5tXBbZPJo0W5pF0J4N6NYK7BOpcGKf0spCducf9h+g1mK3NhiFfLuyfV9bI=; 7:BkWOgDfJyE6BOaER9G7TJndu7Sxr9cOzPF4CY1LCbAbLzSJyAVTgWWz1cSy4iKj4is1xikezfcwI7LYghNaY3PyqQovzgSP14PxTTEpqCIYqZc3Z2OinioIN6c2RRXFJ6JhW4Zc7qXwjhj9cY04erKcWfRJMW96JtvwkH1ovoqjpYxGUgNrh6Vl/+dAoM4osUAN/s1a7VoXwwBKUqRlZyoQINulFqSh2o4lyp1saaKOERrZMbkeENJ8HFt/jQ0os SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1962; 20:afIrMlEZSqYCdtBkjmUdSjKdC6Q29Ym0w7dDrmfLf4RgEWRezPutimrmqlKxvQTNgnMO+2HL/+XPtNZ3zckzLIJVFG8eTnCordCHH8L7ZxibX6NSQalRbaaLqujoN3YzHQitaaRlf+gqV0322bhJM7gDgm6V0eJoD83yEvFagQE= X-OriginatorOrg: ksu.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 12:57:26.0495 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1941845d-b58e-40f3-4731-08d55e730647 X-MS-Exchange-CrossTenant-Id: d9a2fa71-d67d-4cb6-b541-06ccaa8013fb X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d9a2fa71-d67d-4cb6-b541-06ccaa8013fb; Ip=[129.130.18.151]; Helo=[ome-vm-smtp1.campus.ksu.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR05MB1962 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 12:57:29 -0000 (Apologies for the broken quoting and format; on mobile) Hey, I just noticed that same problem the other day. =3D) It'd probably be ok to comment it out for now, I'm going to put some time in to track down the cause soon so we can have a real fix. On Jan 18, 2018 12:59 AM, "=E9=98=BF=E9=87=91" wrot= e: Thanks a lot,those link and shell script help me compile dts from linux source. but the new revision also has network problem from orange pi one. Is it a hardware bugs?? the problem is =3D> I must plug in network cable first before kernel bootin= g. If I don't ,the network will fail. In my testing ,in if_awg.c -> awg_reset function we if ((RD4(sc, EMAC_BASIC_CTL_1) & BASIC_CTL_SOFT_RST) =3D=3D 0) will always be 1 ,until I pluged in network cable then It will be 0; my solution is comment below line * Soft reset all registers and logic */ // WR4(sc, EMAC_BASIC_CTL_1, BASIC_CTL_SOFT_RST); then work fine. so is it ok I comment this line?. Is it a hardware bugs?? below is the error situation when I didn't plug network cable then booting. U-Boot SPL 2017.07 (Oct 20 2017 - 12:55:15) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2017.07 (Oct 20 2017 - 12:55:15 +0000) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi One DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 reading ubldr.bin 232932 bytes read in 33 ms (6.7 MiB/s) ## Starting application at 0x42000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x59f4c490 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Mon Jan 15 04:39:27 CST 2018 root@VirtualBox pi) DRAM: 512MB MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Number of U-Boot devices: 1 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0s2a: /boot/kernel/kernel data=3D0x87931c+0x1dece4 syms=3D[0x4+0x98300+0x4+0xdd00= e] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... /boot/dtb/u-boot.dtb size=3D0x5361 Loaded DTB from file 'u-boot.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r328085: Tue Jan 16 17:51:05 CST 2018 root@VirtualBox pi:/opt/head_328085_obj/obj/opt/head_328085/arm.armv6/sys/GENERIC arm FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register simplebus/ahci from kernel; already loaded from kernel Module simplebus/ahci failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded from kernel Module simplebus/pcib failed to register: 17 module_register: cannot register simplebus/ehci from kernel; already loaded from kernel Module simplebus/ehci failed to register: 17 CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features: Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7, PXN, LPAE, Coherent Walk Optional instructions: SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 536870912 (512 MB) avail memory =3D 508014592 (484 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: aw_ccu0: on ofwbus0 clk_fixed0: on aw_ccu0 clk_fixed1: on aw_ccu0 clk_fixed2: on aw_ccu0 simplebus0: on ofwbus0 aw_ccung0: mem 0x1c20000-0x1c203ff on simplebus0 aw_ccung1: mem 0x1f01400-0x1f014ff on simplebus0 regfix0: on ofwbus0 regfix1: on ofwbus0 regfix2: on ofwbus0 regfix3: on ofwbus0 awusbphy0: mem 0x1c19400-0x1c1942b,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803, 0x1c1c800-0x1c1c803,0x1c1d800-0x1c1d803 on simplebus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff, 0x1c86000-0x1c87fff irq 36 on simplebus0 gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160 gpio0: mem 0x1c20800-0x1c20bff irq 17,18 on simplebus0 gpiobus0: on gpio0 gpio1: mem 0x1f02c00-0x1f02fff irq 40 on simplebus0 gpiobus1: on gpio1 rtc0: mem 0x1f00000-0x1f00053 irq 37,38 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 aw_syscon0: mem 0x1c00000-0x1c00fff on simplebus0 a31dmac0: mem 0x1c02000-0x1c02fff irq 4 on simplebus0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 5 on simplebus0 mmc0: on aw_mmc0 ehci0: mem 0x1c1a000-0x1c1a0ff irq 9 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1a400-0x1c1a4ff irq 10 on simplebus0 usbus1 on ohci0 ehci1: mem 0x1c1b000-0x1c1b0ff irq 11 on simplebus0 usbus2: EHCI version 1.0 usbus2 on ehci1 ohci1: mem 0x1c1b400-0x1c1b4ff irq 12 on simplebus0 usbus3 on ohci1 gpioc0: on gpio0 awg0: mem 0x1c30000-0x1c3ffff irq 21 on simplebus0 awg0: soft reset timed out device_attach: awg0 attach returned 60 aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 24 on simplebus0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 29 on simplebus0 uart0: console (115384,n,8,1) gpioc1: on gpio1 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus= 0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus= 2 usbus3: 12Mbps Full Speed USB v1.0 ugen3.1: at usbus3 uhub3: on usbus3 mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block Release APs WARNING: WITNESS option enabled, expect reduced performance. mmc0: ACMD42 failed, RESULT: 4 arc4random: no preloaded entropy cache mmc0: Card at relative address 22964 failed to set bus width Trying to mount root from ufs:/dev/mmcsd0s2a [rw]... uhub1: 1 port with 1 removable, self powered uhub3: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache uhub0: 1 port with 1 removable, self powered uhub2: 1 port with 1 removable, self powered arc4random: no preloaded entropy cache Setting hostuuid: 6d3bf911-f66a-11de-a736-654ca6ff4704. Setting hostid: 0x96f9f996. No suitable dump device was found. Starting file system checks: Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat random: unblocking device. Soft Float compatibility ldconfig path: Setting hostname: head_328085. Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN, MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy: . Starting Network: lo0. lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=3D21 Starting devd. add host 127.0.0.1: gateway lo0 fib 0: route already in table route: writing to routing socket: Network is unreachable add net default: gateway 192.168.78.1 fib 0: Network is unreachable add host ::1: gateway lo0 fib 0: route already in table add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Generating host.conf. Creating and/or trimming log files. Clearing /tmp (X related). Updating motd:. Mounting late filesystems:. Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Fri Jan 1 00:00:32 UTC 2010 FreeBSD/arm (head_328085) (ttyu0) _______________________________________________ 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" From owner-freebsd-arm@freebsd.org Thu Jan 18 14:15:21 2018 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 03B81E7CE60 for ; Thu, 18 Jan 2018 14:15:21 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 8FC586F13D for ; Thu, 18 Jan 2018 14:15:20 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id f71so22239048wmf.0 for ; Thu, 18 Jan 2018 06:15:20 -0800 (PST) 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=D8uXOu0IuB1Puusi1PcYAh9oECxjHOc/j0OMALH8jbY=; b=oaB7tFrunkk0XHzuNe8gULrUr8TVNU0JAjEekXEnG5iCzpp1plcIpzwRuaVzNoTkim UODA25eS0UFR0znT80+t5XmrtT61pJPs+EYhccpmlpYWkT/DooOms/qjflTc9+Sj/+zD QP3Jh8OZqXafLuA1gX+FLsrgQg75UxENzk7GUWIkkftuTBO5Q6XsOuWkVHa6jYNdh95w CknwReSwpW9ZbzuYh/zENba3Rm3YewFkvsPQw/lChtXq4V24WkJXA0So6a72pN+Tj5y3 qLihsfOlywnmfDFzQgnDDqJMeE/BHUSeGnAUNckYqOMnw2NLgLe2yJIBtREoZQiTTnNB wFpA== 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=D8uXOu0IuB1Puusi1PcYAh9oECxjHOc/j0OMALH8jbY=; b=IYEQbF1FI7aknl5BRuXdX+w4mgy8+O/2t04Yqv2I2kO8LEnLYKtcEKWTDIrw2Xgjqx +NVMtrJHAFaK0hev9eMpd+a4j78srgyquT6n2rotGae5rbtH6cw8kj9jqqZpvknZcEIX GLYks98lh43oCgQXnP2w0xGAN40upj7W71JF6bXugvbNhyEoFCzug75hSidlbffAfD3W mxaCemnXh5ZhNVVJavCPwHQb5fjUYZ4URHgFqd0avvoRThsoIXEYPKyCZ9UljBrb60uU 2G4R0yWCu3rDDrFDLeH3URO8P02dNntCE/UU0KtX87YWWZGZ7Y8oJBTctF8hRAVqat2V 7x9A== X-Gm-Message-State: AKwxytdNP57bivvizKVLc5komDVq6kOQ+uVTVGs7VExoIFT8pwTBl08S 2i0V7zIMuy+PEQ9iemvAXB+BrVI1QsNI7C0A7xMKSFmN X-Google-Smtp-Source: ACJfBot61WlvFWpWcrxIG5WsMxY2tDP+AQC2hRkmNJO9uPvtd161PSFXQNHW9rhXDSk9JVe+BW31v4w/6PdXzxDaESg= X-Received: by 10.80.174.227 with SMTP id f32mr8269144edd.155.1516284918999; Thu, 18 Jan 2018 06:15:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.212.13 with HTTP; Thu, 18 Jan 2018 06:15:18 -0800 (PST) In-Reply-To: References: From: Luiz Otavio O Souza Date: Thu, 18 Jan 2018 12:15:18 -0200 Message-ID: Subject: Re: Pine64+ - FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG boot freeze To: Henri Hennebert Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 14:15:21 -0000 On 18 January 2018 at 06:34, Henri Hennebert wrote: > Hello > > I try FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG on a Pine64+ and the > boot freeze: > >>> FreeBSD EFI boot block > Loader path: /boot/loader.efi [...] > 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, > 1000baseT-FDX-flow-master, auto, auto-flow > awg0: Ethernet address: 02:ba:cf:46:d5:39 > cryptosoft0: > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 12Mbps Full Speed USB v1.0 > --- freeze --- Please test again with today's -current (a possible fix for this issue was committed in r328115). Luiz From owner-freebsd-arm@freebsd.org Thu Jan 18 18:49:48 2018 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 491A6EBC6CF for ; Thu, 18 Jan 2018 18:49:48 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:8:bdbe:0:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EC937B541 for ; Thu, 18 Jan 2018 18:49:47 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver=lists.br@gmail.com DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 3zMtL20fGVzv53 Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 3zMtL20fGVzv53; Thu, 18 Jan 2018 19:49:45 +0100 (CET) Received: from chamonix.restart.bel (chamonix.restart.bel [192.168.24.9]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id w0IInifh012673 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 18 Jan 2018 19:49:44 +0100 (CET) (envelope-from hlh@restart.be) Subject: Re: Pine64+ - FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG boot freeze To: Luiz Otavio O Souza Cc: "freebsd-arm@freebsd.org" References: From: Henri Hennebert Message-ID: <77ed44dc-6de3-ad09-90e3-68906a372f22@restart.be> Date: Thu, 18 Jan 2018 19:49:44 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-classic Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 18:49:48 -0000 On 01/18/2018 15:15, Luiz Otavio O Souza wrote: > On 18 January 2018 at 06:34, Henri Hennebert wrote: >> Hello >> >> I try FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG on a Pine64+ and the >> boot freeze: >> >>>> FreeBSD EFI boot block >> Loader path: /boot/loader.efi > [...] >> 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, >> 1000baseT-FDX-flow-master, auto, auto-flow >> awg0: Ethernet address: 02:ba:cf:46:d5:39 >> cryptosoft0: >> Timecounters tick every 1.000 msec >> usbus0: 480Mbps High Speed USB v2.0 >> usbus1: 12Mbps Full Speed USB v1.0 >> --- freeze --- > > Please test again with today's -current (a possible fix for this issue > was committed in r328115). I try r328126 and the problem remains. Henri > > Luiz > From owner-freebsd-arm@freebsd.org Fri Jan 19 09:40:51 2018 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 E6593ECD43B for ; Fri, 19 Jan 2018 09:40:51 +0000 (UTC) (envelope-from k@7he.at) Received: from smtp-02.sil.at (smtp-02-5.sil.at [78.142.186.6]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A89C87A478 for ; Fri, 19 Jan 2018 09:40:50 +0000 (UTC) (envelope-from k@7he.at) Received: from mx.7he.at ([86.59.13.138]) by smtp-02.sil.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1ecSuZ-0006Sv-Nt; Fri, 19 Jan 2018 10:24:35 +0100 Received: from [192.168.6.60] ([93.83.242.219]) by mx.7he.at (8.15.2/8.15.2) with ESMTPS id w0J9OTC8068438 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 19 Jan 2018 10:24:30 +0100 (CET) (envelope-from k@7he.at) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at mx.7he.at From: "Klaus P. Ohrhallinger" To: greg@unrelenting.technology, freebsd-arm@freebsd.org Subject: Re: Raspberry Pi 3 Network Boot Message-ID: <49ff966d-7fd9-b568-1cef-d74787de913b@7he.at> Date: Fri, 19 Jan 2018 10:24:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.5 required=5.0 tests=HELO_MISC_IP,RDNS_NONE, T_DATE_IN_FUTURE_96_Q,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mx.7he.at X-Scan-Signature: 6a795fe554f3efddf1b7db3858a18b28 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 09:40:52 -0000 Hello, Booting FreeBSD over network on RPI3 (with U-Boot on SD card) works fine for me with the following modifications and settings: FreeBSD 12.0-CURRENT r327673 U-Boot 2018.01-rc3: http://kweb.7he.at/tmp/rpi/u-boot-02.diff armstub8.bin / RPi3 PSCI monitor: http://kweb.7he.at/tmp/rpi/armstub-01.diff ---- env set ipaddr 172.16.88.20 env set serverip 172.16.88.10 env set bootargs boot.nfsroot.server=${serverip} boot.nfsroot.path=/srv/nfsroot/ tftpboot ${kernel_addr_r} loader.efi bootefi ${kernel_addr_r} ${fdt_addr_r} ---- # cat config.txt arm_control=0x200 dtparam=i2c_arm=on dtoverlay=pi3-disable-bt device_tree_address=0x4000 kernel=u-boot.bin bcm2710-rpi-3-b.dtb and the other files are from a standard Raspbian image. Regards, Klaus From owner-freebsd-arm@freebsd.org Fri Jan 19 19:37:11 2018 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 0F376EC3B52 for ; Fri, 19 Jan 2018 19:37:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CF9871095 for ; Fri, 19 Jan 2018 19:37:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 2bc8104b; Fri, 19 Jan 2018 20:37:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=8n6tv5Sdyrg6Gr4iIetPRWuPz70=; b=lopdvnZxCXG5qvwQkfCSdRhd/UsI 3g9hoR/YTPJXn/W5OC27fKd4YUZkIIA+0SgzgoFNQggGYmBqk1/5lqnaE70MOnlN 1+0nFmfmnUgLWAOaIdeWq9xiZvP5VA5U0srdxqIT38HfpgkidPBXRM5Sp8hWd0Uj QQSXXHTEy3WM3Rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=rOHTcn2MwstMf9kTy7rw2xqn7AcXEQQIuVXgXCD+23+x3x9HDGpvGhEY h+5aK5lHUP+zhY7Dxe2u/7sWIPpnwuhTNTLlt+HxmOKVBRGUYieHVNf7mnZB/9Gb gX7D+AvsPQTkQbfk84ml5I7IfA8tZClu/N/DOCB5l78V8ad6otQ= Received: from arcadia.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 487a4082 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 19 Jan 2018 20:37:01 +0100 (CET) Date: Fri, 19 Jan 2018 20:37:00 +0100 From: Emmanuel Vadot To: Henri Hennebert Cc: Luiz Otavio O Souza , "freebsd-arm@freebsd.org" Subject: Re: Pine64+ - FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG boot freeze Message-Id: <20180119203700.4a8a43e78d8f2f0a8f2c4fef@bidouilliste.com> In-Reply-To: <77ed44dc-6de3-ad09-90e3-68906a372f22@restart.be> References: <77ed44dc-6de3-ad09-90e3-68906a372f22@restart.be> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 19:37:11 -0000 On Thu, 18 Jan 2018 19:49:44 +0100 Henri Hennebert wrote: > On 01/18/2018 15:15, Luiz Otavio O Souza wrote: > > On 18 January 2018 at 06:34, Henri Hennebert wrote: > >> Hello > >> > >> I try FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG on a Pine64+ and the > >> boot freeze: > >> > >>>> FreeBSD EFI boot block > >> Loader path: /boot/loader.efi > > [...] > >> 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, > >> 1000baseT-FDX-flow-master, auto, auto-flow > >> awg0: Ethernet address: 02:ba:cf:46:d5:39 > >> cryptosoft0: > >> Timecounters tick every 1.000 msec > >> usbus0: 480Mbps High Speed USB v2.0 > >> usbus1: 12Mbps Full Speed USB v1.0 > >> --- freeze --- > > > > Please test again with today's -current (a possible fix for this issue > > was committed in r328115). > > I try r328126 and the problem remains. > > Henri Just tried r328170 and it works for me on Pine64-LTS (GENERIC kernel). > > > > Luiz > > > _______________________________________________ > 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" -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Fri Jan 19 20:19:58 2018 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 984F4EC5A0C for ; Fri, 19 Jan 2018 20:19:58 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A98372A94 for ; Fri, 19 Jan 2018 20:19:57 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Fri, 19 Jan 2018 21:19:54 +0100 id 00F4BEDD.5A6252EA.000134D6 Date: Fri, 19 Jan 2018 21:19:53 +0100 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Orange Pi R1 ethernet #2 + SDIO question Message-ID: <20180119211953.5140bb57@zeta.dino.sk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i386-portbld-freebsd10.4) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 20:19:58 -0000 Hi, today I looked over some docs about Orange Pi R1's second ethernet interface. Actually it is basically the same board as Orange Pi Zero, just onboard USB connector is replaced with some Realtek USB ethernet chip. With our current kernel and Orange Pi Zero DTB there is nothing in usbconfig output. Most probably we are missing some initialization step. After finding mention of GPIO pin 20 in some Linux DTS, I decided simply try # gpioctl -f /dev/gpioc0 20 1 and voila, it works: ugen2.2: at usbus2 ure0 on uhub1 ure0: on usbus2 random: harvesting attach, 8 bytes (4 bits) from ure0 miibus1: on ure0 rlphy0: PHY 0 on miibus1 rlphy0: OUI 0x00e04c, model 0x0008, rev. 2 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto random: harvesting attach, 8 bytes (4 bits) from rlphy0 random: harvesting attach, 8 bytes (4 bits) from miibus1 ue0: on ure0 ue0: bpf attached ue0: Ethernet address: c0:74:2b:ff:e5:ff ue0: link state changed to DOWN After # dhclient ue0 I was able to use this USB ethernet interface. Maybe this activation could be inserted in DTS, but for now I consider this ethernet usable (I tried some ping, ssh and some such over it with success). And now the question - both Orange Pi Zero and Orange Pi R1 have SDIO connected wifi/bluetooth chip. I know there was some work on SDIO framework in FreeBSD, but what about current status? Do we have anything available for test? For me it is by no means urgent, just these boards are available for cheap and quite good for tests... Regards, Milan From owner-freebsd-arm@freebsd.org Fri Jan 19 20:30:40 2018 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 07CF5EC638D for ; Fri, 19 Jan 2018 20:30:40 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) (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 C80D273363 for ; Fri, 19 Jan 2018 20:30:39 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-it0-f41.google.com with SMTP id u62so3523772ita.2 for ; Fri, 19 Jan 2018 12:30:39 -0800 (PST) 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=P1S/6y4XBgBNCjabexQarX8DjDit5J1g+7PvttEl/ag=; b=DlkviNaXJt5+B0mpkaZX9tQKZWEk8gzuqNdkuwqF6cSVgrmZuvL19kJxes/izPFNkC p+WWTbXsJtsqzEPslMKnJrueE8w+T9E4pRLQzY4MO8WpZ8qk2ewLyaucmJyCxKXxf0iV YQd0Ieh/UKoj7VkEg4U+lJxxjp9ZkLGo6Pf4bBnFohosGXoVaR2PiAacS3fYPvLa/fQd mRkMTF95+MTBOQyy9LboRRKOtZijf2YSkZ0bBeEwv2WLFgHchGqWsWw2K+VNaUw8bC4n 5Ru0zDWd9ASrTzDsbLGLKF3pT9S0WzyTI7IOjG+g/RAyrD9jp2q67ot6I0TqN3RMlfui ptqg== X-Gm-Message-State: AKwxytdJMjw5VFxo1qrxXZHX/f/3cyJ+VK/yu9Fn7v+Mn50MmSIoDDzh GjPABkj8V2teFUxr2LEz4mQ7cCxm X-Google-Smtp-Source: AH8x225/3sGz7Fx1+cizeWGlIGVlgrUNyKiPY67mMU/MMHfr25kSyvQqfD4CSOysYliWyauOcljOnQ== X-Received: by 10.36.58.11 with SMTP id m11mr165469itm.89.1516393832668; Fri, 19 Jan 2018 12:30:32 -0800 (PST) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com. [209.85.214.42]) by smtp.gmail.com with ESMTPSA id y64sm5898098ioy.25.2018.01.19.12.30.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 12:30:32 -0800 (PST) Received: by mail-it0-f42.google.com with SMTP id c16so3517645itc.5 for ; Fri, 19 Jan 2018 12:30:32 -0800 (PST) X-Received: by 10.36.36.66 with SMTP id f63mr187256ita.41.1516393831793; Fri, 19 Jan 2018 12:30:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.157.12 with HTTP; Fri, 19 Jan 2018 12:30:11 -0800 (PST) In-Reply-To: <20180119211953.5140bb57@zeta.dino.sk> References: <20180119211953.5140bb57@zeta.dino.sk> From: Kyle Evans Date: Fri, 19 Jan 2018 14:30:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Orange Pi R1 ethernet #2 + SDIO question To: Milan Obuch Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 20:30:40 -0000 On Fri, Jan 19, 2018 at 2:19 PM, Milan Obuch wrote: > Hi, > > today I looked over some docs about Orange Pi R1's second ethernet > interface. Actually it is basically the same board as Orange Pi Zero, > just onboard USB connector is replaced with some Realtek USB ethernet > chip. With our current kernel and Orange Pi Zero DTB there is nothing > in usbconfig output. > > Most probably we are missing some initialization step. After finding > mention of GPIO pin 20 in some Linux DTS, I decided simply try > > # gpioctl -f /dev/gpioc0 20 1 > > and voila, it works: > > ugen2.2: at usbus2 > ure0 on uhub1 > ure0: on usbus2 > random: harvesting attach, 8 bytes (4 bits) from ure0 > miibus1: on ure0 > rlphy0: PHY 0 on miibus1 > rlphy0: OUI 0x00e04c, model 0x0008, rev. 2 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from rlphy0 > random: harvesting attach, 8 bytes (4 bits) from miibus1 > ue0: on ure0 > ue0: bpf attached > ue0: Ethernet address: c0:74:2b:ff:e5:ff > ue0: link state changed to DOWN > > After > > # dhclient ue0 > > I was able to use this USB ethernet interface. > > Maybe this activation could be inserted in DTS, but for now I consider > this ethernet usable (I tried some ping, ssh and some such over it with > success). I can't comment on SDIO, but this stuff should ride in on 4.16 DTS in a couple months and just work; see [1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/tree/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts?h=sunxi/for-next From owner-freebsd-arm@freebsd.org Fri Jan 19 20:36:22 2018 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 02330EC6B84 for ; Fri, 19 Jan 2018 20:36:22 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 844E973CF5; Fri, 19 Jan 2018 20:36:20 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Fri, 19 Jan 2018 21:36:18 +0100 id 00F4BE7F.5A6256C2.00013A6C Date: Fri, 19 Jan 2018 21:36:17 +0100 From: Milan Obuch To: Kyle Evans Cc: freebsd-arm@freebsd.org Subject: Re: Orange Pi R1 ethernet #2 + SDIO question Message-ID: <20180119213617.67e31e94@zeta.dino.sk> In-Reply-To: References: <20180119211953.5140bb57@zeta.dino.sk> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i386-portbld-freebsd10.4) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 20:36:22 -0000 On Fri, 19 Jan 2018 14:30:11 -0600 Kyle Evans wrote: > On Fri, Jan 19, 2018 at 2:19 PM, Milan Obuch > wrote: > > Hi, > > > > today I looked over some docs about Orange Pi R1's second ethernet > > interface. Actually it is basically the same board as Orange Pi > > Zero, just onboard USB connector is replaced with some Realtek USB > > ethernet chip. With our current kernel and Orange Pi Zero DTB there > > is nothing in usbconfig output. > > > > Most probably we are missing some initialization step. After finding > > mention of GPIO pin 20 in some Linux DTS, I decided simply try > > > > # gpioctl -f /dev/gpioc0 20 1 > > > > and voila, it works: > > > > ugen2.2: at usbus2 > > ure0 on uhub1 > > ure0: on > > usbus2 random: harvesting attach, 8 bytes (4 bits) from ure0 > > miibus1: on ure0 > > rlphy0: PHY 0 on miibus1 > > rlphy0: OUI 0x00e04c, model 0x0008, rev. 2 > > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > random: harvesting attach, 8 bytes (4 bits) from rlphy0 > > random: harvesting attach, 8 bytes (4 bits) from miibus1 > > ue0: on ure0 > > ue0: bpf attached > > ue0: Ethernet address: c0:74:2b:ff:e5:ff > > ue0: link state changed to DOWN > > > > After > > > > # dhclient ue0 > > > > I was able to use this USB ethernet interface. > > > > Maybe this activation could be inserted in DTS, but for now I > > consider this ethernet usable (I tried some ping, ssh and some such > > over it with success). > > I can't comment on SDIO, but this stuff should ride in on 4.16 DTS in > a couple months and just work; see [1]. > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/tree/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts?h=sunxi/for-next OK. I just like to let others know what I tried, so anybody interested could have usable hack for the time being. Maybe not the nicest, but simple and working. Regards, Milan From owner-freebsd-arm@freebsd.org Sat Jan 20 13:40:11 2018 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 708ECED19B0 for ; Sat, 20 Jan 2018 13:40:11 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 317667A438 for ; Sat, 20 Jan 2018 13:40:11 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [IPv6:2003:cd:6bf1:8000:754b:a3fe:23dd:6712] (p200300CD6BF18000754BA3FE23DD6712.dip0.t-ipconnect.de [IPv6:2003:cd:6bf1:8000:754b:a3fe:23dd:6712]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 36444721E280C; Sat, 20 Jan 2018 14:40:07 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: tcpdump reporting strange packets on RPi3 From: Michael Tuexen In-Reply-To: Date: Sat, 20 Jan 2018 14:39:58 +0100 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Wojciech Macek X-Mailer: Apple Mail (2.3445.5.20) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 13:40:11 -0000 > On 13. Jan 2018, at 15:53, Michael Tuexen wrote: >=20 >> On 13. Jan 2018, at 07:03, Wojciech Macek wrote: >>=20 >>=20 >> Adding missing list... >>=20 >> W dniu sobota, 13 stycznia 2018 Wojciech Macek = napisa=C5=82(a): >>> Yes, its a problem with 32-bit BPF ioctl compat support. I'm = planning to submit a patch next week. > Great. I'm happy to test it. >=20 > Just to be clear: The RPi3 I'm using runs a 64-bit kernel and world: > FreeBSD rpi3 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r327876: Fri Jan 12 = 16:48:55 CET 2018 = tuexen@rpi3:/usr/home/tuexen/head/sys/arm64/compile/TCP arm64 Hi Wojtek, I can confirm that adding nooptions COMPAT_FREEBSD32 to the kernel config file resolves the issue. Best regards Michael >=20 > Best regards > Michael >>>=20 >>> Regards, >>> Wojtek >>> wma@ >>>=20 >>> W dniu pi=C4=85tek, 12 stycznia 2018 Michael Tuexen = napisa=C5=82(a): >>>> Dear all, >>>>=20 >>>> when running FreeBSD head on a RPi and using tcpdump on the ue0 = interface, I do >>>> see strange packets. Something like >>>>=20 >>>> 01:59:44.000000 a5:a5:a5:a5:a5:a5 > a5:a5:a5:a5:a5:a5, ethertype = Unknown (0xa5a5), length 666370074: >>>> 0x0000: a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 = ................ >>>> 0x0010: a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 = ................ >>>> 0x0020: a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 a5a5 = ................ >>>> 0x0030: a5a5 a5a5 .... >>>>=20 >>>> gets reported... Any ideas what went wrong? >>>>=20 >>>> Best regards >>>> Michael >>>> _______________________________________________ >>>> 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" >>>>=20 >=20 > _______________________________________________ > 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" From owner-freebsd-arm@freebsd.org Sat Jan 20 15:46:40 2018 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 C5FEBEB49B5 for ; Sat, 20 Jan 2018 15:46:40 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from hraggstad.unrelenting.technology (hraggstad.unrelenting.technology [71.19.146.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hraggstad.unrelenting.technology", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B34A27ED79 for ; Sat, 20 Jan 2018 15:46:40 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: by hraggstad.unrelenting.technology (OpenSMTPD) with ESMTPSA id 7271a781 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Sat, 20 Jan 2018 15:46:36 +0000 (UTC) Subject: Re: Raspberry Pi 3 Network Boot To: "Klaus P. Ohrhallinger" , freebsd-arm@freebsd.org References: <49ff966d-7fd9-b568-1cef-d74787de913b@7he.at> From: Greg V Message-ID: <9e4dcfc9-e290-359d-44b1-c205456243e9@unrelenting.technology> Date: Sat, 20 Jan 2018 18:46:34 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <49ff966d-7fd9-b568-1cef-d74787de913b@7he.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 15:46:40 -0000 On 01/19/2018 12:24, Klaus P. Ohrhallinger wrote: > Hello, > > Booting FreeBSD over network on RPI3 (with U-Boot on SD card) works fine > for me with the following modifications and settings: > > FreeBSD 12.0-CURRENT r327673 > > U-Boot 2018.01-rc3: > http://kweb.7he.at/tmp/rpi/u-boot-02.diff > > armstub8.bin / RPi3 PSCI monitor: > http://kweb.7he.at/tmp/rpi/armstub-01.diff > > ---- > env set ipaddr 172.16.88.20 > env set serverip 172.16.88.10 > env set bootargs boot.nfsroot.server=${serverip} > boot.nfsroot.path=/srv/nfsroot/ > tftpboot ${kernel_addr_r} loader.efi > bootefi ${kernel_addr_r} ${fdt_addr_r} > ---- > > # cat config.txt > arm_control=0x200 > dtparam=i2c_arm=on > dtoverlay=pi3-disable-bt > device_tree_address=0x4000 > kernel=u-boot.bin Thanks a lot! Patching the PSCI monitor with the 0x200 thing and loading FDT at 0x4000 works! It works without the timer ticks stuff in U-boot, but downloading the kernel is extremely slow. Are these patches for performance? From owner-freebsd-arm@freebsd.org Sat Jan 20 17:36:41 2018 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 83C75EBB633 for ; Sat, 20 Jan 2018 17:36:41 +0000 (UTC) (envelope-from k@7he.at) Received: from smtp-01.sil.at (smtp-01-5.sil.at [78.142.186.29]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4397482CD4 for ; Sat, 20 Jan 2018 17:36:39 +0000 (UTC) (envelope-from k@7he.at) Received: from mx.7he.at ([86.59.13.138]) by smtp-01.sil.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1ecx49-0007P8-Gk; Sat, 20 Jan 2018 18:36:29 +0100 Received: from [192.168.6.60] ([93.83.242.219]) by mx.7he.at (8.15.2/8.15.2) with ESMTPS id w0KHaP1N067205 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 20 Jan 2018 18:36:26 +0100 (CET) (envelope-from k@7he.at) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at mx.7he.at Subject: Re: Raspberry Pi 3 Network Boot To: Greg V , freebsd-arm@freebsd.org References: <49ff966d-7fd9-b568-1cef-d74787de913b@7he.at> <9e4dcfc9-e290-359d-44b1-c205456243e9@unrelenting.technology> From: "Klaus P. Ohrhallinger" Message-ID: Date: Sat, 20 Jan 2018 18:36:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <9e4dcfc9-e290-359d-44b1-c205456243e9@unrelenting.technology> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.5 required=5.0 tests=HELO_MISC_IP,RDNS_NONE, T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mx.7he.at X-Scan-Signature: 9d02a3267670e8bb77f537b38fda5a39 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 17:36:41 -0000 On 20.01.2018 16:46, Greg V wrote: Hello, > Thanks a lot! Patching the PSCI monitor with the 0x200 thing and loading > FDT at 0x4000 works! > > It works without the timer ticks stuff in U-boot, but downloading the > kernel is extremely slow. Are these patches for performance? Most of the U-Boot patch is dead debugging code, all you need is: efi_net_receive_filters(): return EFI_EXIT(EFI_SUCCESS); efi_console_register(): r = efi_set_timer(console_timer_event, EFI_TIMER_PERIODIC, 100*1000*10) Default is 50, which polls the console (uart) so fast that there is not much time left for networking. With this change downloading the kernel speeds up from about 15 minutes to seconds ... Regards, Klaus From owner-freebsd-arm@freebsd.org Sat Jan 20 18:42:59 2018 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 D82E9EBF803 for ; Sat, 20 Jan 2018 18:42:59 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:8:bdbe:0:1::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BEA42A1C for ; Sat, 20 Jan 2018 18:42:59 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver=manu@bidouilliste.com DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 3zP65F3SWpzv3C Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 3zP65F3SWpzv3C; Sat, 20 Jan 2018 19:42:57 +0100 (CET) Received: from chamonix.restart.bel (chamonix.restart.bel [192.168.24.9]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id w0KIgtYg031368 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 20 Jan 2018 19:42:56 +0100 (CET) (envelope-from hlh@restart.be) Subject: Re: Pine64+ - FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG boot freeze To: Emmanuel Vadot Cc: Luiz Otavio O Souza , "freebsd-arm@freebsd.org" References: <77ed44dc-6de3-ad09-90e3-68906a372f22@restart.be> <20180119203700.4a8a43e78d8f2f0a8f2c4fef@bidouilliste.com> From: Henri Hennebert Message-ID: <9acdc2c3-126a-41d8-50cd-0076bc08d272@restart.be> Date: Sat, 20 Jan 2018 19:42:54 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180119203700.4a8a43e78d8f2f0a8f2c4fef@bidouilliste.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-classic Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 18:42:59 -0000 On 01/19/2018 20:37, Emmanuel Vadot wrote: > On Thu, 18 Jan 2018 19:49:44 +0100 > Henri Hennebert wrote: > >> On 01/18/2018 15:15, Luiz Otavio O Souza wrote: >>> On 18 January 2018 at 06:34, Henri Hennebert wrote: >>>> Hello >>>> >>>> I try FreeBSD 12.0-CURRENT r327979 GENERIC-NODEBUG on a Pine64+ and the >>>> boot freeze: >>>> >>>>>> FreeBSD EFI boot block >>>> Loader path: /boot/loader.efi >>> [...] >>>> 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, >>>> 1000baseT-FDX-flow-master, auto, auto-flow >>>> awg0: Ethernet address: 02:ba:cf:46:d5:39 >>>> cryptosoft0: >>>> Timecounters tick every 1.000 msec >>>> usbus0: 480Mbps High Speed USB v2.0 >>>> usbus1: 12Mbps Full Speed USB v1.0 >>>> --- freeze --- >>> >>> Please test again with today's -current (a possible fix for this issue >>> was committed in r328115). >> >> I try r328126 and the problem remains. >> >> Henri > > Just tried r328170 and it works for me on Pine64-LTS (GENERIC kernel). > I try r328170 on a Pine64+ 2GB (A64-DB-2G-Rev B / 2016-03-21) and it freeze at the same place :-( Henri >>> >>> Luiz >>> >> _______________________________________________ >> 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" > >