From owner-freebsd-arm@freebsd.org Sun Dec 29 06:03:10 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D7B2F1D58F0 for ; Sun, 29 Dec 2019 06:03:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47lqjn30mJz49cb for ; Sun, 29 Dec 2019 06:03:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: PzFqy9sVM1lXv_FSCUAVNqrDnpO5ecX6fm5jxVpNDqtbRpsDaqET0CpIAjtjLlG FaEyZwZr6wKDXh.sEtNDfnhP7spCrotKbpm0D4Wgw2gRm684.0fgbyuLh2Y0niXWXzpGbfve8UdM 3Kwky4CLKlla8lr_SJMhmE7MKALJtjjSN5NV33tjw4Iqbu.ggSxu2Yj1_SuYTsp9Ca6fCIw4nl1V IEtB0AiuJI1Ystv2Z6j5SuN_0Tn9bQ6CM8hLlUbPAjNdorzUcrkx34.c.RScVf5fPlDTMGLWp0qB 4w2fqm7EDWrJ_BgsNNtJ7DmsoiuVhOl_oM3khqEl_W24pOt0NLKzeubLZjfO3sPRueDEpNITx9ih _eOi4umOb9RyugPUoAbYFLZwkSvywPjaX0eKRObSUYwjjxypSttW5f_NhlA.4vn_HakEWIm1GnVh s4q5tSVLnHs.EOqEq.9pnovbj2RciTNU4lBmQdJ91cFVU_krd7F._5olhBWCk4n4aBigr9h7SpRV yITnXbj9Zad9kFR2ZhGiyZZFVcMWkgAmSp4ggOocG8mdipi3JaaEvvnyg2oTKmOJgyhfRHBRBI9n T36rx4G6NK_6nq2_xK1.RCKTAFeOAPTZS2TwUovlOkU1ta29KPIgUayhHplcYAMTxI_gX7YCOhyY vpEYvqJxNkGL8jevkOA2n8r2yYiy09IJ6roGRgECUVZ2U_YbofToa7ZN.VEFXcrapniEudMtHBeo IHRCp165vziBix7WBSsRRfHsd5T0EMq6QZZRNtLIt3osgLybxSmo_OeEh7eEMtSLLkQtvzPdb4gG .5XQk8.zjqwB2oqbwH2VY6LNYttAy0E56KeSKe4qJ8TmdeVdc3_0.3DP3Dhzahh72p3ObaDVz4Uc BAVQLK3mfDo84wwvk.wd9kfaGHq7zThX5cct20mc8yTT4F2bz1u_ReHGcsvuZNe2AcX54sU3xaGZ hC3583kFbAaXfFPjbwMMGNTg6Ev_WQs7ZrG6nAJ11pnjz7EbwlL3qsKQwREdflC5xcEYy9uL0KgY dzRAokF1Fr9lKlHwVyTpZC46e4xnEzfvP2lvD5GIgFIpXzxWJWJXsfmrlEdzXEiLqiHj0UpDaesU yz9Wh.ZhjbGH9gIpVh_4gA6GCqRavmNtdUKwHnWv4AiZ39JmZOqqqDlv6j77b9e4g7wnExUgmNpx MfezTyiXRRs0wuPZM9_vIjFrttgUOKf6MpN.2XbD8rju413UYJx1anfnyutyc3p4uCIHLndo2Yi9 XbC.R8pWaz0wjMPQkj7nZIGXyA0j55GtIJQJKIJpkjzB.fj62jz6rdvFTt.Kog6d3sDcMq9GtY0T SW_AiGSkqbYP.l5_piR5LZzu4wSfY4TbAClkoKpOhBXGKZPGo4_BkJRvvHgo.JvaL1mRYIeQAh8E bJP1Q._1UFrCusjv.EBZec.Zfo7Hrmp3Z35PdsnFJDQY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sun, 29 Dec 2019 06:03:06 +0000 Received: by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 792d29fcf967bd30fbb65f30061a1709; Sun, 29 Dec 2019 06:03:05 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: x11-toolkits/qt5-gui build on/for Cortex-A7 ( head -r356109 ) failed with: unable to execute command: Executable "as" doesn't exist Message-Id: <122B34CA-9CCC-4299-BB5C-F97D76C7426E@yahoo.com> Date: Sat, 28 Dec 2019 22:03:03 -0800 Cc: freebsd-arm To: FreeBSD Toolchain , FreeBSD ports X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <122B34CA-9CCC-4299-BB5C-F97D76C7426E.ref@yahoo.com> X-Rspamd-Queue-Id: 47lqjn30mJz49cb X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.48 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.984,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.65.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (-0.25), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Dec 2019 06:03:10 -0000 Is system-clang 9.0.1 supposed to implicitly try to use /usr/local/bin/as ? It does for this context . . . Note the -fno-integrated-as use in the later quoted log material. I'll also note that an experiment via -### shows that system-clang 9.0.1 then uses a command like (from a very simple example test): "/usr/local/bin/as" "-mfpu=3Dvfp" "-meabi=3D5" "-o" "a.o" = "/tmp/a-14ae2e.s" and that in turn presumes that devel/binutils has provided /usr/local/bin/as . That in turn means that, for ports-mgmt/poudriere-devel to work for x11-toolkits/qt5-gui , BUILD_DEPENDS=3D at-spi2-core>=3D0:accessibility/at-spi2-core \ ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ = ${LOCALBASE}/include/vulkan/vulkan.h:devel/vulkan-headers would need to also include (or the @native explicita-flavor variant): ${LOCALBASE}/bin/as:devel/binutils HOWEVER, I'm not sure if the implicit use of /usr/local/bin/as is intentional or not for system-clang. The failure report (1st error only, there were more): . . . --- .obj/pixman-arm-neon-asm.o --- cc -c -O2 -pipe -mcpu=3Dcortex-a7 -g -fstack-protector-strong -isystem = /usr/local/include -fno-strict-aliasing -std=3Dgnu11 -fvisibility=3Dhidden= -fno-exceptions -Wall -W -pthread -fPIC -DQT_ACCESSIBILITY -DQT_DBUS = -DQT_FONTCONFIG -DQT_FREETYPE -DQT_GLIB -DQT_IMAGEFORMAT_PNG -DQT_OPENGL = -DQT_SHAPE -DQT_XCB -DQT_XKB -DQT_XKBCOMMON -DQT_XRENDER = -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DENABLE_PIXMAN_DRAWHELPERS = -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_GUI_LIB = -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS = -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS = -DQT_DISABLE_DEPRECATED_BEFORE=3D0x050000 -DQT_NO_EXCEPTIONS = -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB = -fno-integrated-as -I. -I../../include -I../../include/QtGui = -I../../include/QtGui/5.13.2 -I../../include/QtGui/5.13.2/QtGui = -I.tracegen -isystem /usr/local/include/libdrm -isystem = /usr/local/include/qt5/QtCore/5.13.2 -isystem = /usr/local/include/qt5/QtCore/5.13.2/QtCore -isystem = /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -I.moc = -isystem /usr/local/include/libpng16 -isystem /usr/local/include = -I/usr/local/lib/qt5/mkspecs/freebsd-clang = ../3rdparty/pixman/pixman-arm-neon-asm.S -o .obj/pixman-arm-neon-asm.o . . . --- .obj/pixman-arm-neon-asm.o --- cc: error: unable to execute command: Executable "as" doesn't exist! cc: error: assembler command failed with exit code 1 (use -v to see = invocation) *** [.obj/pixman-arm-neon-asm.o] Error code 1 make[1]: stopped in = /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.13.2/= src/gui . . . For reference: Build based on ports-mgmt/pooudriere-devel . =46rom early in the log, showing compiler information: #### /usr/ports/Mk/Scripts/ports_env.sh #### _CCVERSION_921dbbb2=3DFreeBSD clang version 9.0.1 = (git@github.com:llvm/llvm-project.git = c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) Target: = armv7-unknown-freebsd13.0-gnueabihf Thread model: posix InstalledDir: = /usr/bin _ALTCCVERSION_921dbbb2=3Dnone _CXXINTERNAL_acaad9ca=3DFreeBSD clang version 9.0.1 = (git@github.com:llvm/llvm-project.git = c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) Target: = armv7-unknown-freebsd13.0-gnueabihf Thread model: posix InstalledDir: = /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" = "/libexec/ld-elf.so.1" "--hash-style=3Dboth" "--enable-new-dtags" "-o" = "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" = "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" = "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" = "/usr/lib/crtend.o" "/usr/lib/crtn.o" CC_OUTPUT_921dbbb2_58173849=3Dyes CC_OUTPUT_921dbbb2_9bdba57c=3Dyes CC_OUTPUT_921dbbb2_6a4fe7f5=3Dyes CC_OUTPUT_921dbbb2_6bcac02b=3Dyes CC_OUTPUT_921dbbb2_67d20829=3Dyes CC_OUTPUT_921dbbb2_bfa62e83=3Dyes CC_OUTPUT_921dbbb2_f0b4d593=3Dyes CC_OUTPUT_921dbbb2_308abb44=3Dyes CC_OUTPUT_921dbbb2_f00456e5=3Dyes CC_OUTPUT_921dbbb2_65ad290d=3Dyes CC_OUTPUT_921dbbb2_f2776b26=3Dyes CC_OUTPUT_921dbbb2_b2657cc3=3Dyes CC_OUTPUT_921dbbb2_380987f7=3Dyes CC_OUTPUT_921dbbb2_160933ec=3Dyes CC_OUTPUT_921dbbb2_fb62803b=3Dyes _OBJC_CCVERSION_921dbbb2=3DFreeBSD clang version 9.0.1 = (git@github.com:llvm/llvm-project.git = c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) Target: = armv7-unknown-freebsd13.0-gnueabihf Thread model: posix InstalledDir: = /usr/bin _OBJC_ALTCCVERSION_921dbbb2=3Dnone ARCH=3Darmv7 OPSYS=3DFreeBSD _OSRELEASE=3D13.0-CURRENT OSREL=3D13.0 OSVERSION=3D1300069 PYTHONBASE=3D/usr/local _SMP_CPUS=3D4 CONFIGURE_MAX_CMD_LEN=3D262144 HAVE_PORTS_ENV=3D1 # uname -apKU FreeBSD OPiP2E 13.0-CURRENT FreeBSD 13.0-CURRENT #12 r356109M: Fri Dec = 27 17:24:56 PST 2019 = markmi@FBSDFHUGE:/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/sys/GENE= RIC-NODBG arm armv7 1300069 1300069 # cc -v FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git = c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) Target: armv7-unknown-freebsd13.0-gnueabihf Thread model: posix InstalledDir: /usr/bin # svnlite info /usr/ports/ Path: /usr/ports Working Copy Root Path: /usr/ports URL: svn://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 520539 Node Kind: directory Schedule: normal Last Changed Author: ler Last Changed Rev: 520539 Last Changed Date: 2019-12-20 18:01:52 -0800 (Fri, 20 Dec 2019) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Mon Dec 30 04:40:30 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F8AE1D4A1E for ; Mon, 30 Dec 2019 04:40:30 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mPqx4htSz4X9W; Mon, 30 Dec 2019 04:40:29 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: by mail-qt1-x82f.google.com with SMTP id e12so28991500qto.2; Sun, 29 Dec 2019 20:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0JjF4OQEyqKqHS0C7RShwNS3lbnsVqo8jRtmEVN6rEw=; b=qgAUTYZiMLBC1Ap8/qOZaIZK3J0tXNtZEVX6MZT8QXVn1VMYJilwZGkb3UYW2akrHq urWrE8qMT/tZjQbFsRPKBoTbMfFl66oiAzkyAuEoPxLpSWHbDvCFvmpSPHw4x2GhtHOx BXg+GW029tHb9Rtn/nLGwIQ3Vw44p8CqmgTRXeE26F4JDnFuV3idkdg5cXZ49GqHry8R xgJAiDWc2QyV5T5d+oDLBx3GNRjfpgwxEMDrI9YUpdt2NAxCuJnlnVT1sjNJrBX1GVAx UeIUOnm9pK/j8BLDyRX6qUw2B6QZPukVuhjIZqzYXd+gEOdAK/RxzqOQK0W5mreVHoKa KRtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0JjF4OQEyqKqHS0C7RShwNS3lbnsVqo8jRtmEVN6rEw=; b=IAi4aqlCNszvzsp6wYzFjJ04aLLeAN+JkuMSKVUkQUKFYN/1Xlz02PNGULbouhTZDR bf9WpYkXRXevmZSzLIYUWJrWnU2sEDRHrkOMtI6NPFDQMDkz46t8FUq+cz8rVt56HOLz S4qPtTZTRmieUYtKkZSLlebmYo/RA11BGxyt9pc18+VHYysh65J3tA0FvhDf9D1d9xI+ sqKBKTwM754H2ZqTmsStTVLgShHLe/k2bVQ3IJL4TvjdLXA/8CKR4AFdhFCYXBzEZHRH /NQ8JgEaRS+C7yhT3/kmn0I6Vn1zfsc4loxVSwCs2VsrCYfN/zr0JNT7oImgT61dB+t9 Bt+w== X-Gm-Message-State: APjAAAVaf+XE/BlXX+gq86tByxkEXWCvDvO7yBHXKpYFm07ffmDX5whk 6gm2NKojy3aq8zyzheUxQA27wjG8oIsabX7vLHKlH+J3 X-Google-Smtp-Source: APXvYqwf/SAkHoy60p/8lD2SeVHhIg7l7AyFTqj7F7QFz17KRsVDh+0InKHcnxLV3AgxFir5aBbyTTyIToW2sRjr5X4= X-Received: by 2002:aed:2344:: with SMTP id i4mr48485086qtc.136.1577680828203; Sun, 29 Dec 2019 20:40:28 -0800 (PST) MIME-Version: 1.0 References: <20191228161726.9efb08df5b69eaa0a0ff478f@bidouilliste.com> In-Reply-To: <20191228161726.9efb08df5b69eaa0a0ff478f@bidouilliste.com> From: Gary Otten Date: Sun, 29 Dec 2019 23:40:19 -0500 Message-ID: Subject: Re: SPI support for A64-OLinuXino board Allwinner A64 processor To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org, ian@freebsd.org X-Rspamd-Queue-Id: 47mPqx4htSz4X9W X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qgAUTYZi; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gdotten@gmail.com designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=gdotten@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-9.31), ipnet: 2607:f8b0::/32(-2.15), asn: 15169(-1.87), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[f.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 04:40:30 -0000 Thanks, Ian Lepore mentioned this too, spigen wasn't loaded. I have now loaded spigen. The driver appears to be working, but I am not seeing any output. I can toggle pins PC0,PC1,PC2, PC3 with gpioctl, but I don't get anything with spi. I also had another odd behavior with BANK E. not having any output, using gpoictl, I was not able to get any pin on Bank E to toggle. I did turn on the voltage regulator as suggested. I wonder if FreeBSD is properly setting the configuration registers for each port/pin of the the A64. Basically letting the A64 know to use alt function or general gpio in/out in the proper way for each pin, maybe some of the (default?) settings for the more popular pine boards work, but don't work correctly for the Olimex A64 board, or maybe there is some setting in the overlays that I am overlooking that need to be set to use an alt function or gpio in/out to get the pins to function properly. If in the overlay I have spi0 enabled, should I still be able to toggle the pins with gpioctl? Thanks for the help. My diagnostics ****************************************** root@:/dev # spi -i Device name: /dev/spigen0.0 Device mode: 2 Device speed: 500000 root@:/dev # spi -d r -m 0 -C '9F 00' -v -c 2 Binary output of 2 bytes 2 command bytes and 2 data bytes read from SPI device | 0 1 2 3 4 5 6 7 8 9 A B C D E F | | 0 | 00 00 00 00 | .... | I On Sat, Dec 28, 2019 at 10:44 AM Emmanuel Vadot wrote: > On Wed, 25 Dec 2019 19:12:28 -0500 > Gary Otten wrote: > > > Thanks, I have created the following overlay and tried a variety of > other > > things but I haven't been able to get spigen0.0 to appear in /dev. > > > > > > > > /* $FreeBSD$ */ > > /dts-v1/; > > /plugin/; > > > > / { > > compatible = "allwinner,sun50i-a64"; > > }; > > > > &{/soc/spi@1c68000} { > > > > status = "okay"; > > > > spigen0: spigen0 { > > compatible = "freebsd,spigen"; > > reg = <0>; > > spi-max-frequency = <500000>; > > status = "okay"; > > }; > > > > }; > > > > > > > > Some diagnostics > > > > ------------------------------------------------------- > > On Boot > > > > Loading DTB overlays: 'sun50i-a64-spi-spidev' > > /boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo size=0x15c > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo' > > .. > > .... > > ..... > > > > Autoloading module: aw_spi.ko > > aw_spi0: mem 0x1c68000-0x1c68fff irq 29 on simplebus0 > > spibus0: on aw_spi0 > > spibus0: at cs 0 mode 0 > > > > > > ------------------------------------------------------- > > root@:/boot/dtb/overlays # kldstat > > Id Refs Address Size Name > > 1 5 0xffff000000000000 144dda8 kernel > > 2 1 0xffff000054c00000 41000 aw_spi.ko > > > > ------------------------------------------------------- > > root@:/boot/dtb/overlays # devinfo > > .. > > ... > > aw_spi0 > > spibus0 > > > > ------------------------------------------------------- > > root@:/boot/dtb/overlays # devinfo > > > > .... > > ...... > > Node 0x2f60: spi@1c68000 > > Node 0x309c: spigen0 > > _______________________________________________ > > 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" > > Hi Gary, > > You overlay worked for me on the pine64-lts. Here is what I did : > - Use https://github.com/evadot/freebsd/commits/aw_spigen > - aw_spi is autoloaded via devmatch > - kldload spigen (it's not in GENERIC for arm64, maybe we should add it > or do some devmatch magic) > - root@pine64-lts:~ # spi -i > Device name: /dev/spigen0.0 > Device mode: 0 > Device speed: 500000 > root@pine64-lts:~ # spi -d r -m 0 -C '9F 00' -v -c 2 > Binary output of 2 bytes > 2 command bytes and 2 data bytes read from SPI device > | 0 1 2 3 4 5 6 7 8 9 A B C D E F > | | 0 | 00 ef 40 18 | > ..@. | > > Maybe you just forgot to load spigen ? > > -- > Emmanuel Vadot > From owner-freebsd-arm@freebsd.org Mon Dec 30 11:33:32 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8F76E1DD12A for ; Mon, 30 Dec 2019 11:33:32 +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 47mb0V5SzNz3P9g; Mon, 30 Dec 2019 11:33:30 +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 1de6aa2c; Mon, 30 Dec 2019 12:33:23 +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=nMopw27EEvArD+Kz0xBFFqc4ZWY=; b=rn3AsUJRsBTnHp3zwt4M63Rea6PY wYpLA5CZRb1jUhgMlELbN9sRCAeAb3dH37wUoJFqKf5jhL03yZ1W41TX4XPuHwhk mmewO55wqNTXJn88wOo70zsZha0IoOeHWIOlB1liau5BqQeD+IyGFPHiV4rOel7B ZkXvRmnfkMXNMHE= 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=sCgRuBRs2AiIqxtIh9xsghrc5dvBqY14NwHR8NPKkMoYmE0ESBv+b0On cko1sLgTsEDIpxyDymHZMjgOsxUjZvOvW4YMMIh1xyQ0MaiXwdASn0RSEL1XIvF8 +OsflaXZOZkCIJXMq8V+N8dWa4b9erVYo6aydfJe98pcp8lUHqU= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 030da90e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 30 Dec 2019 12:33:22 +0100 (CET) Date: Mon, 30 Dec 2019 12:33:22 +0100 From: Emmanuel Vadot To: Gary Otten Cc: freebsd-arm@freebsd.org, ian@freebsd.org Subject: Re: SPI support for A64-OLinuXino board Allwinner A64 processor Message-Id: <20191230123322.fa579638df66e3eac3e16c91@bidouilliste.com> In-Reply-To: References: <20191228161726.9efb08df5b69eaa0a0ff478f@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47mb0V5SzNz3P9g X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=rn3AsUJR; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.79)[-0.790,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.89)[-0.892,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.42)[ip: (-0.54), ipnet: 212.83.160.0/19(2.42), asn: 12876(0.25), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 11:33:32 -0000 On Sun, 29 Dec 2019 23:40:19 -0500 Gary Otten wrote: > Thanks, Ian Lepore mentioned this too, spigen wasn't loaded. I have now > loaded spigen. The driver appears to be working, but I am not seeing any > output. > > I can toggle pins PC0,PC1,PC2, PC3 with gpioctl, but I don't get anything > with spi. You mean settings them as gpio, toggling them and check the pins on the uext port ? > I also had another odd behavior with BANK E. not having any output, using > gpoictl, I was not able to get any pin on Bank E to toggle. I did turn on > the voltage regulator as suggested. The SPI pins for SPI0 are on BANKC which is always powered on. > I wonder if FreeBSD is properly setting the configuration registers for > each port/pin of the the A64. I'll not say that the code is bug free but this really should be ok, especially for such basic pin setting like spi0 where you only have one pin group. > Basically letting the A64 know to use alt > function or general gpio in/out in the proper way for each pin, maybe some > of the (default?) settings for the more popular pine boards work, but > don't work correctly for the Olimex A64 board, or maybe there is some > setting in the overlays that I am overlooking that need to be set to use an > alt function or gpio in/out to get the pins to function properly. If in > the overlay I have spi0 enabled, should I still be able to toggle the pins > with gpioctl? Thanks for the help. Yes unfortunatelly the gpio/pinmux code is shared on allwinner and doesn't have all the needed "protection" so you can toggle a pin even if it's not in gpio mode. I don't remember if the value is still output on the physical pin or not. Are you using the -sXM version on the board (where you have an spi flash present on the board) or did you wire something via the uext port ? If the later what's wired and how ? I have this board but I will not have time to do a proper setup to test something for some time. > My diagnostics > ****************************************** > root@:/dev # spi -i > Device name: /dev/spigen0.0 > Device mode: 2 > Device speed: 500000 > root@:/dev # spi -d r -m 0 -C '9F 00' -v -c 2 > Binary output of 2 bytes > 2 command bytes and 2 data bytes read from SPI device > | 0 1 2 3 4 5 6 7 8 9 A B C D E F | > | > 0 | 00 00 00 00 | .... > | > > I > > > > On Sat, Dec 28, 2019 at 10:44 AM Emmanuel Vadot > wrote: > > > On Wed, 25 Dec 2019 19:12:28 -0500 > > Gary Otten wrote: > > > > > Thanks, I have created the following overlay and tried a variety of > > other > > > things but I haven't been able to get spigen0.0 to appear in /dev. > > > > > > > > > > > > /* $FreeBSD$ */ > > > /dts-v1/; > > > /plugin/; > > > > > > / { > > > compatible = "allwinner,sun50i-a64"; > > > }; > > > > > > &{/soc/spi@1c68000} { > > > > > > status = "okay"; > > > > > > spigen0: spigen0 { > > > compatible = "freebsd,spigen"; > > > reg = <0>; > > > spi-max-frequency = <500000>; > > > status = "okay"; > > > }; > > > > > > }; > > > > > > > > > > > > Some diagnostics > > > > > > ------------------------------------------------------- > > > On Boot > > > > > > Loading DTB overlays: 'sun50i-a64-spi-spidev' > > > /boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo size=0x15c > > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo' > > > .. > > > .... > > > ..... > > > > > > Autoloading module: aw_spi.ko > > > aw_spi0: mem 0x1c68000-0x1c68fff irq 29 on simplebus0 > > > spibus0: on aw_spi0 > > > spibus0: at cs 0 mode 0 > > > > > > > > > ------------------------------------------------------- > > > root@:/boot/dtb/overlays # kldstat > > > Id Refs Address Size Name > > > 1 5 0xffff000000000000 144dda8 kernel > > > 2 1 0xffff000054c00000 41000 aw_spi.ko > > > > > > ------------------------------------------------------- > > > root@:/boot/dtb/overlays # devinfo > > > .. > > > ... > > > aw_spi0 > > > spibus0 > > > > > > ------------------------------------------------------- > > > root@:/boot/dtb/overlays # devinfo > > > > > > .... > > > ...... > > > Node 0x2f60: spi@1c68000 > > > Node 0x309c: spigen0 > > > _______________________________________________ > > > 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" > > > > Hi Gary, > > > > You overlay worked for me on the pine64-lts. Here is what I did : > > - Use https://github.com/evadot/freebsd/commits/aw_spigen > > - aw_spi is autoloaded via devmatch > > - kldload spigen (it's not in GENERIC for arm64, maybe we should add it > > or do some devmatch magic) > > - root@pine64-lts:~ # spi -i > > Device name: /dev/spigen0.0 > > Device mode: 0 > > Device speed: 500000 > > root@pine64-lts:~ # spi -d r -m 0 -C '9F 00' -v -c 2 > > Binary output of 2 bytes > > 2 command bytes and 2 data bytes read from SPI device > > | 0 1 2 3 4 5 6 7 8 9 A B C D E F > > | | 0 | 00 ef 40 18 | > > ..@. | > > > > Maybe you just forgot to load spigen ? > > > > -- > > Emmanuel Vadot > > -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Mon Dec 30 20:18:20 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 095401E8FB4 for ; Mon, 30 Dec 2019 20:18:20 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mpf30RGbz4RBV for ; Mon, 30 Dec 2019 20:18:18 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-lf1-x134.google.com with SMTP id 15so25853156lfr.2 for ; Mon, 30 Dec 2019 12:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=vD2Og9pA2SaZIlG+fiCG5rRJvwVuD6J3Kuy9fiIM3Ac=; b=ace6LifJmQHFC8o6TgZzgNzA4V6B0xRVIqqB2x8V9toMef95EunBHPG2Ajj7SbBfjn miOhxDdu6IWmtkqTbUrL/xE9pKIY34KRapKpm+sH0foDfN1Aodl9Tv438GqGHRg13EwG WEG5AfKkhpo3k3ZyOqkwioXvzclPLaHoPOwekohN7aRstlFI+PPk4q8DwhWj7rs43k5N Kz22UBJUU8Gxm3EG9KxhpftXNOGUqJoSnfKOzxhg9SA5OynrxDx3oOTBAXSnFeZqeAsu iHAIN6QKEwk/BeWVUnxGQS4NSw6A4BWjonb5o4Wz13yRh0HcpI2H7UHUeYzQuI0Pg8zt w82g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=vD2Og9pA2SaZIlG+fiCG5rRJvwVuD6J3Kuy9fiIM3Ac=; b=OSsDwM+dWjkg/TUPXfixadjHKciMKRR90XnTvJ9RQq02U8zeD6XQ4y+/2LvzFLgNOa ARRs8Q+rMM0KGvFpoclVnAWeP2bzxpDeLKlqeQK1uO+Tw1KmEr3S9fegDhVgUVl1VSE4 L23dJuy1Kw0vlBb+3uOUeivCHjYqNCCXvawJTeGmmpzvYPnOTacHBnT8vQrvjq/YR9z9 VwLiQXV4P2CgmPWpYRfw32cOGOh0c56uJ+NbFYKD2Gj7dN2r023MJ9Qz7453iQLDv/gZ NSyrLSBQ+GtWhSbdVnA3fhMSTdj4qCYey/RG9k0jqaHuiwgpD2CD6McRSw2RHn6oqb52 D6PA== X-Gm-Message-State: APjAAAUL2QxowRUXo/HgihLM557X3KEnRDQ5GxSD8Fo6L+NVEy7yIkMw teYo5ablVirZ6tDdTpzQXdyMB1Z3RNc= X-Google-Smtp-Source: APXvYqwg7fEDHzTnpD0Ugo7mlfzPc7js1MhVED09aEhL8f5UHLxesXqKf4ztHXwjSaqZVCTqhTNWXg== X-Received: by 2002:a19:cb54:: with SMTP id b81mr38527608lfg.188.1577737095962; Mon, 30 Dec 2019 12:18:15 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id 21sm16327449ljv.19.2019.12.30.12.18.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Dec 2019 12:18:15 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Pinebook Pro, any progress as of yet ? Message-Id: Date: Mon, 30 Dec 2019 21:18:14 +0100 To: freebsd-arm X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mpf30RGbz4RBV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ace6LifJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::134 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (-9.02), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[4.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 20:18:20 -0000 Hi gang Just received my pinebook pro today (nice little machine btw), and = thought I=E2=80=99d better ask here how much if any support we have = allready ? It is more or less just a rock64pro in a laptop enclosure, so I guess = the rudimentary support is there. However, it does not like the stock 13-arm64 image, so before I dig in, = has anyone else gotten this cutie to boot ? -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Mon Dec 30 21:12:27 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 41B651EA3BC for ; Mon, 30 Dec 2019 21:12:27 +0000 (UTC) (envelope-from peter@libassi.se) Received: from smtp2.outgoing.loopia.se (smtp2.outgoing.loopia.se [93.188.3.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mqrV1pZ6z4VCC for ; Mon, 30 Dec 2019 21:12:26 +0000 (UTC) (envelope-from peter@libassi.se) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 2C5082E523D5 for ; Mon, 30 Dec 2019 22:12:24 +0100 (CET) Received: from s630.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 0D9C62E2A468 for ; Mon, 30 Dec 2019 22:12:24 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.5]) by s630.loopia.se (Postfix) with ESMTP id EB5EA13ABDF8 for ; Mon, 30 Dec 2019 22:12:23 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s630.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id syamsW5gyXmB for ; Mon, 30 Dec 2019 22:12:23 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 78.82.163.229 Received: from [10.79.0.7] (c-e5a3524e.03-77-73746f30.bbcust.telenor.se [78.82.163.229]) (Authenticated sender: peter@libassi.se) by s630.loopia.se (Postfix) with ESMTPSA id 925C313ABDE9 for ; Mon, 30 Dec 2019 22:12:23 +0100 (CET) From: Peter Libassi Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: is wireguard available on arm64 Message-Id: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> Date: Mon, 30 Dec 2019 22:12:23 +0100 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 47mqrV1pZ6z4VCC X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Spamd-Result: default: False [0.87 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.58)[-0.579,0]; NEURAL_SPAM_MEDIUM(0.05)[0.054,0]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[libassi.se]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:39570, ipnet:93.188.2.0/23, country:SE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.01)[country: SE(-0.03)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 21:12:27 -0000 I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using the = image = https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz which gave me release:=20 FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 pkg install wireguard gives message: Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. pkg: No packages available to install matching 'wireguard' have been = found in the repositories on the Port web site i find: wireguard-1.0.20191226=20 what am i doing wrong? Thanks Peter= From owner-freebsd-arm@freebsd.org Mon Dec 30 21:13:57 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8A2FC1EA4DE for ; Mon, 30 Dec 2019 21:13:57 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mqtD5Rn6z4VGf for ; Mon, 30 Dec 2019 21:13:56 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: by mail-qv1-xf31.google.com with SMTP id z3so12811851qvn.0 for ; Mon, 30 Dec 2019 13:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PVR2d7pD7L3KGqmDnE+oTQqFzG8lTLMGounXEIZyY8E=; b=a4FjYI0j+Jf1mgF2tr0RkcNGNx88n8Pzl319DTIkOO+AjYDAc//vya92P5rcO8feG2 8GwZHidqo/e3mxxknpAJ/6cEehOXVmRyDBEC1F1Ke5cnC5Yuo/XPFRmwtOizEuh9W5kA Zw6SLr4fcADm80rGj+b7GdwT6swEk+plHe//xMST9F4eq1VFrz8pso02PdzOIrv/myu6 e2k94QfGxZqXNtBb1CZhrK0s/welH7slBxaC2b2/M4Z+XXL7M0Z+DDjebkYxLQfKf6Gv m+nHMm0ujXddT1UjCb/y5eTOJJ2tICph8mG68SudADO/YyxgMjI6Mccdg7hcoO5tFPo+ gZKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PVR2d7pD7L3KGqmDnE+oTQqFzG8lTLMGounXEIZyY8E=; b=Nw8CTT8f5sCufcEnPqXdF1/8RNUgeb6WRpc1vskGa5onOhJfL08UOXJdneH3h96zi/ dn1knQpMekopNecrNctQK+LgdztVz1kosLJxh2HJDZTvK797pk9TY7uoDyTYxpMfJV74 BBtinC0qXWnWGd7LPY8ifnigvJv3mbhxuFZlelKQap655SP+3LIfJDpbBydSpnfwgQKA HpWdDc8q8DhxYMHAQCs1Nn9HDPd9NBiOqHV8JjHX5bS2rW1vRaTYzqNARPdaNE4jnKHZ ahEPnWkoxYelH+LgXeMh91PUEJyVswZ0b0f4+B4BLxVugX23xEEVt4LAhgAigRiwHsQl oftQ== X-Gm-Message-State: APjAAAUfLpdFkk3djkW54RbrHYa5Q7Cay/MIz3Y6St+Vl9VoFEl5+tAk zlntWEclaYT2XbBb4+7j7NBuHaKZoxbBCkRagTzkuK8l X-Google-Smtp-Source: APXvYqxyow5Vwa1IxJwxB1HyVdXCDo9uk5xrr4GuhPEyETAqD4CtUmjlI9MR7cuin8juGG0ca8e0pmHt+ngCZwqnv4g= X-Received: by 2002:a05:6214:1348:: with SMTP id b8mr52879789qvw.137.1577740430509; Mon, 30 Dec 2019 13:13:50 -0800 (PST) MIME-Version: 1.0 References: <20191228161726.9efb08df5b69eaa0a0ff478f@bidouilliste.com> <20191230123322.fa579638df66e3eac3e16c91@bidouilliste.com> In-Reply-To: <20191230123322.fa579638df66e3eac3e16c91@bidouilliste.com> From: Gary Otten Date: Mon, 30 Dec 2019 16:13:41 -0500 Message-ID: Subject: Re: SPI support for A64-OLinuXino board Allwinner A64 processor To: Emmanuel Vadot , freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 47mqtD5Rn6z4VGf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a4FjYI0j; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gdotten@gmail.com designates 2607:f8b0:4864:20::f31 as permitted sender) smtp.mailfrom=gdotten@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-6.70), ipnet: 2607:f8b0::/32(-2.15), asn: 15169(-1.87), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 21:13:57 -0000 On Mon, Dec 30, 2019 at 6:33 AM Emmanuel Vadot wrote: > On Sun, 29 Dec 2019 23:40:19 -0500 > Gary Otten wrote: > > > Thanks, Ian Lepore mentioned this too, spigen wasn't loaded. I have now > > loaded spigen. The driver appears to be working, but I am not seeing > any > > output. > > > > I can toggle pins PC0,PC1,PC2, PC3 with gpioctl, but I don't get > anything > > with spi. > > You mean settings them as gpio, toggling them and check the pins on > the uext port ? > Yes that is correct, toggling them with gpioctl and seeing the voltage swing after setting that pin to OUT with gpioctl. > > > I also had another odd behavior with BANK E. not having any output, using > > gpoictl, I was not able to get any pin on Bank E to toggle. I did turn on > > the voltage regulator as suggested. > > The SPI pins for SPI0 are on BANKC which is always powered on. > OK, I was mentioning this on the chance that the gpioctl doesn't work with BANK E because Bank E is set to work with the csi function on the A64-OLinuXino board. > > > I wonder if FreeBSD is properly setting the configuration registers for > > each port/pin of the the A64. > > I'll not say that the code is bug free but this really should be ok, > especially for such basic pin setting like spi0 where you only have one > pin group. > > > Basically letting the A64 know to use alt > > function or general gpio in/out in the proper way for each pin, maybe > some > > of the (default?) settings for the more popular pine boards work, but > > don't work correctly for the Olimex A64 board, or maybe there is some > > setting in the overlays that I am overlooking that need to be set to use > an > > alt function or gpio in/out to get the pins to function properly. If in > > the overlay I have spi0 enabled, should I still be able to toggle the > pins > > with gpioctl? Thanks for the help. > > Yes unfortunately the gpio/pinmux code is shared on allwinner and > doesn't have all the needed "protection" so you can toggle a pin even > if it's not in gpio mode. I don't remember if the value is still output > on the physical pin or not. > Yes with SPI enabled in the overlay after a boot, I am still able to set the pins to output with gpioctl and see the voltage swing. I must set the pins to output to see the voltage swing. Reloading gpio_aw.ko or running spi after that doesn't appear to change the fact that the pins are set to output as I am still able to run gpioctl and see the toggle. Are you using the -sXM version on the board (where you have an spi > flash present on the board) or did you wire something via the uext > port ? If the later what's wired and how ? > On my board the flash isn't populated. I wasn't aware of the uext port so I just soldered wires on to the pads where the flash would have been, and a ground. These wires go to my logic analyzer setup to edge detect. For testing I used a loopback (short between) MOSI (PC0) /MISO(PC1) > I have this board but I will not have time to do a proper setup to > test something for some time. > Ok that would be great. I will also order a pine board today to have another board to test on. Any help or advice would be appreciated. I could be making a simple mistake or have the most basic of settings wrong, it could be something simple I am overlooking. Is there anyway to read back the configuration of a pin from user land? I wonder if anyone else can use GPIO pins on bank E on the Olimex A64 board, or has a working SPI on this board. Thanks > > My diagnostics > > ****************************************** > > root@:/dev # spi -i > > Device name: /dev/spigen0.0 > > Device mode: 2 > > Device speed: 500000 > > root@:/dev # spi -d r -m 0 -C '9F 00' -v -c 2 > > Binary output of 2 bytes > > 2 command bytes and 2 data bytes read from SPI device > > | 0 1 2 3 4 5 6 7 8 9 A B C D E F | > > | > > 0 | 00 00 00 00 | .... > > | > > > > I > > > > > > > > On Sat, Dec 28, 2019 at 10:44 AM Emmanuel Vadot > > wrote: > > > > > On Wed, 25 Dec 2019 19:12:28 -0500 > > > Gary Otten wrote: > > > > > > > Thanks, I have created the following overlay and tried a variety of > > > other > > > > things but I haven't been able to get spigen0.0 to appear in /dev. > > > > > > > > > > > > > > > > /* $FreeBSD$ */ > > > > /dts-v1/; > > > > /plugin/; > > > > > > > > / { > > > > compatible = "allwinner,sun50i-a64"; > > > > }; > > > > > > > > &{/soc/spi@1c68000} { > > > > > > > > status = "okay"; > > > > > > > > spigen0: spigen0 { > > > > compatible = "freebsd,spigen"; > > > > reg = <0>; > > > > spi-max-frequency = <500000>; > > > > status = "okay"; > > > > }; > > > > > > > > }; > > > > > > > > > > > > > > > > Some diagnostics > > > > > > > > ------------------------------------------------------- > > > > On Boot > > > > > > > > Loading DTB overlays: 'sun50i-a64-spi-spidev' > > > > /boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo size=0x15c > > > > applying DTB overlay '/boot/dtb/overlays/sun50i-a64-spi-spidev.dtbo' > > > > .. > > > > .... > > > > ..... > > > > > > > > Autoloading module: aw_spi.ko > > > > aw_spi0: mem 0x1c68000-0x1c68fff irq 29 on simplebus0 > > > > spibus0: on aw_spi0 > > > > spibus0: at cs 0 mode 0 > > > > > > > > > > > > ------------------------------------------------------- > > > > root@:/boot/dtb/overlays # kldstat > > > > Id Refs Address Size Name > > > > 1 5 0xffff000000000000 144dda8 kernel > > > > 2 1 0xffff000054c00000 41000 aw_spi.ko > > > > > > > > ------------------------------------------------------- > > > > root@:/boot/dtb/overlays # devinfo > > > > .. > > > > ... > > > > aw_spi0 > > > > spibus0 > > > > > > > > ------------------------------------------------------- > > > > root@:/boot/dtb/overlays # devinfo > > > > > > > > .... > > > > ...... > > > > Node 0x2f60: spi@1c68000 > > > > Node 0x309c: spigen0 > > > > _______________________________________________ > > > > 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" > > > > > > Hi Gary, > > > > > > You overlay worked for me on the pine64-lts. Here is what I did : > > > - Use https://github.com/evadot/freebsd/commits/aw_spigen > > > - aw_spi is autoloaded via devmatch > > > - kldload spigen (it's not in GENERIC for arm64, maybe we should add > it > > > or do some devmatch magic) > > > - root@pine64-lts:~ # spi -i > > > Device name: /dev/spigen0.0 > > > Device mode: 0 > > > Device speed: 500000 > > > root@pine64-lts:~ # spi -d r -m 0 -C '9F 00' -v -c 2 > > > Binary output of 2 bytes > > > 2 command bytes and 2 data bytes read from SPI device > > > | 0 1 2 3 4 5 6 7 8 9 A B C D E F > > > | | 0 | 00 ef 40 18 > | > > > ..@. | > > > > > > Maybe you just forgot to load spigen ? > > > > > > -- > > > Emmanuel Vadot > > > > > > -- > Emmanuel Vadot > From owner-freebsd-arm@freebsd.org Mon Dec 30 22:17:16 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E07531EBD24 for ; Mon, 30 Dec 2019 22:17:16 +0000 (UTC) (envelope-from adridg@freebsd.org) Received: from lb1-smtp-cloud9.xs4all.net (lb1-smtp-cloud9.xs4all.net [194.109.24.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.xs4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47msHJ2kzLz4YKV for ; Mon, 30 Dec 2019 22:17:15 +0000 (UTC) (envelope-from adridg@freebsd.org) Received: from beastie.bionicmutton.org ([62.251.92.29]) by smtp-cloud9.xs4all.net with ESMTP id m3LciBo0BGyJwm3Ldid7B9; Mon, 30 Dec 2019 23:17:14 +0100 From: Adriaan de Groot To: freebsd-arm@freebsd.org Subject: Re: Pinebook Pro, any progress as of yet ? Date: Mon, 30 Dec 2019 23:17:12 +0100 Message-ID: <2075442.vDlrmDkmQk@beastie.bionicmutton.org> Organization: FreeBSD In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart197244453.llokl2EVEb"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-CMAE-Envelope: MS4wfCk/zy9ort1AarzPcwzcl4EvpICgGdG8iMT6Pto6rLqNyezx7Bndw/SMKM6BIOqXKfspNYza9xWBiBvT5IthH2QQnQQQcc0doPO5fH5ZW9uWGNoohVoz K+Ywj2A/DuDHnchbTg9uSXCsj8VOrfViP/0w2Su2wjFtbTZ29u7eyMYJHX+0yt/2MuL5KKiHg3Zhsw32BX6ws7iL4W8Y8hY5LGyssCVkSuOEoj+wBwTkaqHK X-Rspamd-Queue-Id: 47msHJ2kzLz4YKV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.95 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.953,0]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 22:17:16 -0000 --nextPart197244453.llokl2EVEb Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Monday, 30 December 2019 21:18:14 CET S=C3=B8ren Schmidt wrote: > Just received my pinebook pro today (nice little machine btw), and thought > I=E2=80=99d better ask here how much if any support we have allready ? Emmanuel has been twitting about it for the past 8 hours or so .. progress = to=20 mountroot: http://dpaste.com/15H6P9P [ade] --nextPart197244453.llokl2EVEb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEUq+pvuD+N8/vVW++WoDe9T7W/7IFAl4Kd2gACgkQWoDe9T7W /7J1Kw/9F4iQysMZo6zGJyPRRryMkachxSdQklIeSNziK3IqFf7oL3/GnU+3nkYh ujggU9B06RuNaRxciBFWv4nXi3xq/DlUs7QJhSa8i/7FATSvibDvCWZORSqZvvHa BySEVWCGO/nv6qYztDrQl52WI/YBia0iaBjKRyKlNnxlTPhXv0mJCRi66q3v3TyD eAtsXB+wlAUphV6ma37T+goCJa2JWRR04sRuywqbq6To/X/4ubnT0UlFwJmWiYQt 0QmS3SnwqI//moYan9LkFqj8a293twltTBksbviJGmVfBScuLRZvQp3mFDmb80sM 5cDZNNPvYwEph09IVT9/Bd1h8cOHkVDyaZA6vnW0pOzFQ6dNqj5Oq43mpSP/1GFM dVePASQko6+lxa83WbKyojggPo2/t9q4zj06L71FloAOFToEq8qtpYnOoKcJKoXX szvCOKwmZhzJw9nBxuIZTsObQIc3def6fWs6EEmZWmLs0AUa53C45NZ+O+WGJy78 nDlhQPHYby7dq410V8jiozIuZk974SKlhJEoDm+eA5RJefJ8Exu+vbp7HsqWx4pT E6bLYls29BGg2thifeWb7HkO5KllotQm3eRrdZI14ggOQUd0cEnCZ26wpF3yh4zS DngHL1S5WZzatiWfLrVKhxPQGYAdOy9FmZK2f+w64CfiUYydELM= =4PGm -----END PGP SIGNATURE----- --nextPart197244453.llokl2EVEb-- From owner-freebsd-arm@freebsd.org Mon Dec 30 22:18:02 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 93C561EBDA0 for ; Mon, 30 Dec 2019 22:18:02 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.49.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47msJ94GTHz4YN0 for ; Mon, 30 Dec 2019 22:18:01 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from [10.5.0.2] (c-98-244-101-97.hsd1.va.comcast.net [98.244.101.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 51C00950; Mon, 30 Dec 2019 17:17:49 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: is wireguard available on arm64 From: Paul Mather In-Reply-To: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> Date: Mon, 30 Dec 2019 19:17:19 -0300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> To: Peter Libassi X-Mailer: Apple Mail (2.3594.4.19) X-Rspamd-Queue-Id: 47msJ94GTHz4YN0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=vt.edu (policy=none); spf=none (mx1.freebsd.org: domain of paul@gromit.dlib.vt.edu has no SPF policy when checking 128.173.49.70) smtp.mailfrom=paul@gromit.dlib.vt.edu X-Spamd-Result: default: False [-2.06 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[vt.edu : No valid SPF, No valid DKIM,none]; RECEIVED_SPAMHAUS_PBL(0.00)[97.101.244.98.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.56)[ip: (-1.41), ipnet: 128.173.0.0/16(-0.70), asn: 1312(-0.65), country: US(-0.05)]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1312, ipnet:128.173.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 22:18:02 -0000 On Dec 30, 2019, at 6:12 PM, Peter Libassi wrote: > I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using = the image = https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >=20 > which gave me release:=20 >=20 > FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 >=20 > pkg install wireguard gives message: >=20 > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > pkg: No packages available to install matching 'wireguard' have been = found in the repositories >=20 >=20 > on the Port web site i find: wireguard-1.0.20191226=20 >=20 > what am i doing wrong? You're not doing anything wrong. According to my quick look on = freshports.org for the net/wireguard package, it shows a runtime = dependency on net/wireguard-go, and I don't believe Go currently works = on FreeBSD/arm64 (though folks on here have said it can be built if you = do a native build on an actual FreeBSD/arm64 itself---not a QEMU = cross-build). There was a thread about building Go and Go-based ports here on = freebsd-arm not so long ago. I got the sense from that thread that the = situation was improving wrt. Go working on FreeBSD/arm64. Cheers, Paul. From owner-freebsd-arm@freebsd.org Mon Dec 30 22:49:15 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F081C1EC596 for ; Mon, 30 Dec 2019 22:49:15 +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 47mt0B6fVwz4ZfB for ; Mon, 30 Dec 2019 22:49:14 +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 f97e998e; Mon, 30 Dec 2019 23:49:12 +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=uwJBLFs+Hr00tx6LKalbruK5VPA=; b=lyS2uZheb+Ply6XiPUmvHF3Z3WLU 7RLGVvYDSa/BOop7qrtTyNM/DtYXDm+MhB67L/aWRsXlf3X3+iup+fmgEytzRtQv zvfh/XyDSv9Ikg9NUoknn4bmuF1PZrVSSyDk2eLXWyU7lBDg7GEJ/PLWwfDoL4H5 d0ahdpGV8WlOCaA= 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=bDTvWYmqoNw/k18mD8saocmqZdccUlNg8V2OidydRBTQTZ38dUySEo78 Lpm8HNP1vdLHM5rOVGIrJiYggqdb11766FCxUE2fmuogxxfDhe9Ct38GZMd3HLuI E2Wz4iAiZ7oCw2N2uYo/n2CSLL/5TpvuCX7vMoKh7QykCi9mEQ0= Received: from skull.home.blih.net (lfbn-idf2-1-1164-130.w90-92.abo.wanadoo.fr [90.92.223.130]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 62916330 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 30 Dec 2019 23:49:12 +0100 (CET) Date: Mon, 30 Dec 2019 23:49:10 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Pinebook Pro, any progress as of yet ? Message-Id: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47mt0B6fVwz4ZfB X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=lyS2uZhe; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [0.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.07)[-0.075,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.64)[-0.639,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (-0.54), ipnet: 212.83.160.0/19(2.42), asn: 12876(0.25), country: FR(0.00)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 22:49:16 -0000 On Mon, 30 Dec 2019 21:18:14 +0100 S=F8ren Schmidt wrote: > Hi gang >=20 > Just received my pinebook pro today (nice little machine btw), and though= t I?d better ask here how much if any support we have allready ? I received mine today too. > It is more or less just a rock64pro in a laptop enclosure, so I guess the= rudimentary support is there. No, it's not a rockpro64 in a laptop enclosure. > However, it does not like the stock 13-arm64 image, so before I dig in, h= as anyone else gotten this cutie to boot ? What image are you refering too ? What do you mean by "it does not like" ? I've been able to boot to multiuser using mainline u-boot + mainline atf with this patch for u-boot : https://patchwork.ozlabs.org/patch/1194525/ I have some weird issue on the console like weird char are drawn from time to time (looks like it's when there is a lot of output from the console). It's a bit better with an FTDI adapter compared to the Prolific one that is in the Pine64 Uart<->Jack Adapter. USB Doesn't work. The right port gives some USB_ERR_IOERROR, don't know the cause yet. The left port is tried to the dwc3 controller but in OTG mode and we don't support that. The USB-C port is also not supported for now. Both the SDCard and eMMC seems to work correctly. There is, of course, no video support for now. > -S=F8ren > _______________________________________________ > 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 Mon Dec 30 23:06:09 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B60511EC91F for ; Mon, 30 Dec 2019 23:06:09 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mtMh1ht3z4bM8 for ; Mon, 30 Dec 2019 23:06:07 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-lf1-x143.google.com with SMTP id n25so26076271lfl.0 for ; Mon, 30 Dec 2019 15:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=TUZVfebTfRCYAohbuiTFV4bFK2zVb7xgrRr7aX+7BW0=; b=Tn3ro4a9R/7NfPqoUoIEireqdhZU4BB7LTA1ezhQjDsoF+PgL0eGDLMGit0BJyNrQ6 EVl27omASsAqeIJ73q8HKRxnh/05I7PvMfCMvqlti3whe/Q15KCetDYuNV04O5JW9CP+ FePJRv0zmMC7KehBUfpzLEAy8Wj17EYmKD0NAcGOaasy8Rof5oaY2lcT5/DbzHVED0xh 749N7yE+8I0ipOxPIXfRH2loDJzbsZVS3LShwGaraDv55SUB6udI9naKSNQqE/Lnc5GE Ghc9G9Q6TkyHHeCcdHDDQSZaS4pLbk/Ypb/6Sk/JJO5sY10Zw8f5n9BxTC4pgsF1RxOa dSUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=TUZVfebTfRCYAohbuiTFV4bFK2zVb7xgrRr7aX+7BW0=; b=bAJUsulmGhYwXhfyoPpspho0B/ZE3jiH9KEDfVi/h7EpQ6bq+K31DryLA0PwSCiKup igekntshPK89M98wOepRV927lt3ZLGXeQv5DgWgQH2etpsUqOA2fcAvx/mOgErwtDxt9 PimZlewh0gIHvuzftNZMO84uyanAkQh9OrkHrstNBmk/VACqdp7/7pHsLB0OIFyLA75k pTcKqSaqp/p/5sWq+x9bikO4/ZtmFJxGnZDA4FZRBrvfqriGQObVb7S3eAm9PN4tHyWz QlUbmDxeUFK2HZeGRmz0fEtkh0aJglnHcKwuThq1zknY9lfv5g+EReOGcXFrE8KGOHVe andQ== X-Gm-Message-State: APjAAAUqxSXdVfkLP3JIb/+r3kWI1IvN38llwI7tp303nIpDnQQmf7UX 8GiFPICGpMHl1uzxWTYoMMPvVBPJFMs= X-Google-Smtp-Source: APXvYqzCgDssuS7guTVl0XIm7zqmwEN7KaXAFQ6PF0We12qMFJ8YPAswgEgX9gS2sAz4si/bJglCIA== X-Received: by 2002:a19:f701:: with SMTP id z1mr38929064lfe.13.1577747166275; Mon, 30 Dec 2019 15:06:06 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id f12sm12252659ljo.100.2019.12.30.15.06.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Dec 2019 15:06:05 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Pinebook Pro, any progress as of yet ? Date: Tue, 31 Dec 2019 00:06:04 +0100 In-Reply-To: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> Cc: freebsd-arm To: Emmanuel Vadot References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mtMh1ht3z4bM8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Tn3ro4a9; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::143 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-0.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.61), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 23:06:09 -0000 > On 30 Dec 2019, at 23.49, Emmanuel Vadot = wrote: >=20 > On Mon, 30 Dec 2019 21:18:14 +0100 > S=C3=B8ren Schmidt wrote: >=20 >> Hi gang >>=20 >> Just received my pinebook pro today (nice little machine btw), and = thought I?d better ask here how much if any support we have allready ? >=20 > I received mine today too. >=20 >> It is more or less just a rock64pro in a laptop enclosure, so I guess = the rudimentary support is there. >=20 > No, it's not a rockpro64 in a laptop enclosure. Ahh, what I meant was that it uses same CPU etc as the rockpro64, so I = assumed (wrongly ?) that they are at least somewhat similar. >=20 >> However, it does not like the stock 13-arm64 image, so before I dig = in, has anyone else gotten this cutie to boot ? >=20 > What image are you refering too ? What do you mean by "it does not > like" ? I just tried the latest current image = "FreeBSD-13.0-CURRENT-arm64-aarch64-20191226-r356085-memstick.img", and = it just seems to hang without any output to the console, but alas if it = needs a new u-boot/dts that=E2=80=99s to be expected. I also grapped a pinebookpro.dts from some site I forgot, they look more = or less identical. > I've been able to boot to multiuser using mainline u-boot + mainline > atf with this patch for u-boot : > https://patchwork.ozlabs.org/patch/1194525/ Hmm, OK, going to look into that one, does that still boot the ahem, = linux its born with ? > I have some weird issue on the console like weird char are drawn from > time to time (looks like it's when there is a lot of output from the > console). It's a bit better with an FTDI adapter compared to the > Prolific one that is in the Pine64 Uart<->Jack Adapter. Yeah, getting 1500000 baud is a pain, I had to try several picks from = the bunch of cheap Chinese adapters here as well, settled on a FT232 = clone that seems to work. > USB Doesn't work. The right port gives some USB_ERR_IOERROR, don't > know the cause yet. The left port is tried to the dwc3 controller but > in OTG mode and we don't support that. The USB-C port is also not > supported for now. > Both the SDCard and eMMC seems to work correctly. OK; I=E2=80=99l get at build evn setup here so I can play with it, lets = see how far I get then. >=20 > There is, of course, no video support for now. Endeed, that would be one of the really nice things to get working. Anyhow its actually a nice piece of kit, amazing what you can get for = 200$ nowadays. -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Mon Dec 30 23:11:22 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDF501ECA05 for ; Mon, 30 Dec 2019 23:11:22 +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 47mtTj5Jsrz4bSb for ; Mon, 30 Dec 2019 23:11:21 +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 f0c031ea; Tue, 31 Dec 2019 00:11: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=Yr/5G1eIif0qMpYeKE12v2rCVNM=; b=cm+SWtKOnnh/aadsTJrMxPAA85TQ Z3lFdMj0npYHF5ei1PPb+Bq7tOWUuo1cAVXpdhMxNmB1YuVZKdb9bWAwn/Dinl+4 wmqBVs5Y/H/4ukBx30kdZiocfPoT8RZDtx4nMzcNLQkTRNdqhGXszlRlUOVk0h3R psPeR+omeMDc7OA= 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=IeTOdOO1EgJw3qRWfGt0r3fYydM5iqjiKMZdOPGlsvyZ+wZg7wG2y62m StqmzQnfnB+Vc040gpVWlDFuWvGjAyoLZkzzNX2tzB1Ws4oBNmGox07Jn7CH55aD POqm59PKn0VMqHliWg4QhR9AUd5nJtT/npEJY9qRH9cuSPZKV6s= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 18b6ccd6 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 31 Dec 2019 00:11:19 +0100 (CET) Date: Tue, 31 Dec 2019 00:11:19 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Pinebook Pro, any progress as of yet ? Message-Id: <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> In-Reply-To: References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47mtTj5Jsrz4bSb X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=cm+SWtKO; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [1.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_SPAM_MEDIUM(0.24)[0.242,0]; NEURAL_HAM_LONG(-0.56)[-0.556,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (-0.54), ipnet: 212.83.160.0/19(2.42), asn: 12876(0.25), country: FR(0.00)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 23:11:22 -0000 On Tue, 31 Dec 2019 00:06:04 +0100 S=F8ren Schmidt wrote: >=20 >=20 > > On 30 Dec 2019, at 23.49, Emmanuel Vadot wrote: > >=20 > > On Mon, 30 Dec 2019 21:18:14 +0100 > > S=F8ren Schmidt wrote: > >=20 > >> Hi gang > >>=20 > >> Just received my pinebook pro today (nice little machine btw), and tho= ught I?d better ask here how much if any support we have allready ? > >=20 > > I received mine today too. > >=20 > >> It is more or less just a rock64pro in a laptop enclosure, so I guess = the rudimentary support is there. > >=20 > > No, it's not a rockpro64 in a laptop enclosure. >=20 > Ahh, what I meant was that it uses same CPU etc as the rockpro64, so I as= sumed (wrongly ?) that they are at least somewhat similar. Sure it's similar but still not the same. > >=20 > >> However, it does not like the stock 13-arm64 image, so before I dig in= , has anyone else gotten this cutie to boot ? > >=20 > > What image are you refering too ? What do you mean by "it does not > > like" ? >=20 > I just tried the latest current image "FreeBSD-13.0-CURRENT-arm64-aarch64= -20191226-r356085-memstick.img", and it just seems to hang without any outp= ut to the console, but alas if it needs a new u-boot/dts that?s to be expec= ted. And you put this image on what ? an sdcard ? Yes that needs u-boot. > I also grapped a pinebookpro.dts from some site I forgot, they look more = or less identical. >=20 > > I've been able to boot to multiuser using mainline u-boot + mainline > > atf with this patch for u-boot : > > https://patchwork.ozlabs.org/patch/1194525/ >=20 > Hmm, OK, going to look into that one, does that still boot the ahem, linu= x its born with ? No idea and I don't care about the linux present on the eMMC, it was deleted from it 10 min after I've received the unit. > > I have some weird issue on the console like weird char are drawn from > > time to time (looks like it's when there is a lot of output from the > > console). It's a bit better with an FTDI adapter compared to the > > Prolific one that is in the Pine64 Uart<->Jack Adapter. >=20 > Yeah, getting 1500000 baud is a pain, I had to try several picks from the= bunch of cheap Chinese adapters here as well, settled on a FT232 clone tha= t seems to work. 1.5Mbps works great on the rock64 and rockpro64, which is why I still don't know what's happening. > > USB Doesn't work. The right port gives some USB_ERR_IOERROR, don't > > know the cause yet. The left port is tried to the dwc3 controller but > > in OTG mode and we don't support that. The USB-C port is also not > > supported for now. > > Both the SDCard and eMMC seems to work correctly. >=20 > OK; I?l get at build evn setup here so I can play with it, lets see how f= ar I get then. >=20 > >=20 > > There is, of course, no video support for now. >=20 > Endeed, that would be one of the really nice things to get working. >=20 > Anyhow its actually a nice piece of kit, amazing what you can get for 200= $ nowadays. >=20 > -S=F8ren --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Dec 31 06:57:22 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EEE541F53E3 for ; Tue, 31 Dec 2019 06:57:22 +0000 (UTC) (envelope-from peter@libassi.se) Received: from smtp2.outgoing.loopia.se (smtp2.outgoing.loopia.se [93.188.3.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47n4qP5QNXz3yx9 for ; Tue, 31 Dec 2019 06:57:21 +0000 (UTC) (envelope-from peter@libassi.se) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 2A5DE2E5505B for ; Tue, 31 Dec 2019 07:57:17 +0100 (CET) Received: from s645.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 0C3EA2E27E94; Tue, 31 Dec 2019 07:57:17 +0100 (CET) Received: from s472.loopia.se (unknown [172.22.191.5]) by s645.loopia.se (Postfix) with ESMTP id 01D8B156E501; Tue, 31 Dec 2019 07:57:17 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -0.506 X-Spam-Level: X-Spam-Status: No, score=-0.506 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, FUZZY_VPILL=0.494] autolearn=disabled Received: from s500.loopia.se ([172.22.191.6]) by s472.loopia.se (s472.loopia.se [172.22.190.12]) (amavisd-new, port 10024) with LMTP id SxB1D6UsHWy2; Tue, 31 Dec 2019 07:57:16 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 78.82.163.229 Received: from [10.79.0.7] (c-e5a3524e.03-77-73746f30.bbcust.telenor.se [78.82.163.229]) (Authenticated sender: peter@libassi.se) by s500.loopia.se (Postfix) with ESMTPSA id 3D1FF1E146D2; Tue, 31 Dec 2019 07:57:16 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: is wireguard available on arm64 From: Peter Libassi In-Reply-To: Date: Tue, 31 Dec 2019 07:57:15 +0100 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> To: Paul Mather X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 47n4qP5QNXz3yx9 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Spamd-Result: default: False [0.29 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.41)[-0.406,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-0.01)[country: SE(-0.03)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[libassi.se]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.70)[-0.698,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:39570, ipnet:93.188.2.0/23, country:SE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 06:57:23 -0000 Thanks Paul, Ok, I=E2=80=99ll see if i can find those Go developers, i=E2=80=99m = willing to assist in any way, at least as alpha/beta-tester :-) i=E2=80=99= ve been running wireguard as a peer to peer VPN on RPI3=E2=80=99s for a = while now on another OS.=20 > 30 dec. 2019 kl. 23:17 skrev Paul Mather : >=20 > On Dec 30, 2019, at 6:12 PM, Peter Libassi wrote: >=20 >=20 >> I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using = the image = https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >>=20 >> which gave me release:=20 >>=20 >> FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 >>=20 >> pkg install wireguard gives message: >>=20 >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up to date. >> All repositories are up to date. >> pkg: No packages available to install matching 'wireguard' have been = found in the repositories >>=20 >>=20 >> on the Port web site i find: wireguard-1.0.20191226=20 >>=20 >> what am i doing wrong? >=20 >=20 > You're not doing anything wrong. According to my quick look on = freshports.org for the net/wireguard package, it shows a runtime = dependency on net/wireguard-go, and I don't believe Go currently works = on FreeBSD/arm64 (though folks on here have said it can be built if you = do a native build on an actual FreeBSD/arm64 itself---not a QEMU = cross-build). >=20 > There was a thread about building Go and Go-based ports here on = freebsd-arm not so long ago. I got the sense from that thread that the = situation was improving wrt. Go working on FreeBSD/arm64. >=20 > Cheers, >=20 > Paul. From owner-freebsd-arm@freebsd.org Tue Dec 31 09:13:54 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 93ADB1F7C42 for ; Tue, 31 Dec 2019 09:13:54 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47n7rw6LZxz44sg for ; Tue, 31 Dec 2019 09:13:52 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0F85C22629 for ; Tue, 31 Dec 2019 04:13:52 -0500 (EST) Received: from imap6 ([10.202.2.56]) by compute7.internal (MEProxy); Tue, 31 Dec 2019 04:13:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=9rWsImLI0/gNCm2V6jo9ps3+STOZlDX OBe/WWRD5UB8=; b=RM7x1Su6s6EIwAsQrrfjFhfRXfXam2HZGSYoP2sInx+yOKy lDqQsMvvTCJyNMNIkOiLATwq2HXz0Nyv4mKmLkCG+ofd2Gry9lTe/QYaVSdv1Mme 8pUMtvZFFuSv6Q4jFBZ2+ZchP2tUpfo50Tmb4HF6ld0xJ+i7S046hYQdhYUvFAj0 QUw/5RsBOBL6QZQ9RQ3y7SGrmhSaS2wNs1vuYOb6sMy6UZPITZmTqAqachTIDYje 7SRpF/ojg2+tBXMRVTjJ/u8HDpOdbei95fdqH1/zWe2ScesnE/Wxd8PYKVa1M2mS b5SgpGzWbl/FtUjn1+bF76JE7XQyJlEZUQOR1rQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=9rWsIm LI0/gNCm2V6jo9ps3+STOZlDXOBe/WWRD5UB8=; b=VovTSWpUT+nRHBy0lQ2/gq 9uBbJcV4w1QrmKn6GFNs51yJf/J+aFtpvlSjyZMiUQT3aL2F2B7/CT2sKnHFj5Gb OyWMLUPcVxt5wGn5S2xOkkXhz28mhNiKfn5FqkhUTsY1cBjrVymymj0j2maFFfNG R26Xe0P95U0D3tFlUjtK/alpAFQGOttTc0OKxy5e7Zog+S0QPX9EJisy+Hq5BxvV +zax2aJXtTjzmIFEeCK0HvsxWesueRJC2FGRIrKjaesDSGlzsM2eyU+tb9o1IYG8 4NNB5UoWlnqAaGHma43huIs1qW/tlTlUmCUQjVU5HPKToq8Hs8X/b2Sm59HQkCsg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdefiedgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreertdenucfhrhhomhepfdffrghvvgcuvehothhtlhgvhhhusggvrhdfuceouggt hhesshhkuhhnkhifvghrkhhsrdgrtheqnecuffhomhgrihhnpehgihhthhhusgdrtghomh dpfhhrvghshhhpohhrthhsrdhorhhgnecurfgrrhgrmhepmhgrihhlfhhrohhmpegutghh sehskhhunhhkfigvrhhkshdrrghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A19FD1400A2; Tue, 31 Dec 2019 04:13:51 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> Date: Tue, 31 Dec 2019 09:13:24 +0000 From: "Dave Cottlehuber" To: freebsd-arm Subject: Re: is wireguard available on arm64 Content-Type: text/plain X-Rspamd-Queue-Id: 47n7rw6LZxz44sg X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skunkwerks.at header.s=fm1 header.b=RM7x1Su6; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=VovTSWpU; dmarc=none; spf=pass (mx1.freebsd.org: domain of dch@skunkwerks.at designates 66.111.4.25 as permitted sender) smtp.mailfrom=dch@skunkwerks.at X-Spamd-Result: default: False [-5.07 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[skunkwerks.at:s=fm1,messagingengine.com:s=fm1]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[25.4.111.66.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[skunkwerks.at]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-3.48)[ip: (-9.80), ipnet: 66.111.4.0/24(-4.88), asn: 11403(-2.68), country: US(-0.05)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[skunkwerks.at:+,messagingengine.com:+]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[25.4.111.66.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 09:13:54 -0000 On Mon, 30 Dec 2019, at 22:17, Paul Mather wrote: > > You're not doing anything wrong. According to my quick look on > freshports.org for the net/wireguard package, it shows a runtime > dependency on net/wireguard-go, and I don't believe Go currently works > on FreeBSD/arm64 (though folks on here have said it can be built if you > do a native build on an actual FreeBSD/arm64 itself---not a QEMU > cross-build). > > There was a thread about building Go and Go-based ports here on > freebsd-arm not so long ago. I got the sense from that thread that the > situation was improving wrt. Go working on FreeBSD/arm64. Looks like it will land in Go 1.14. There's a go 1.14 beta maybe you can use this to generate an arm64 binary from another system? I'm not sure if FreeBSD can directly build go 1.14 from source on arm64 yet. Let us know ;-) - https://github.com/golang/go/issues/24715 - https://github.com/golang/go/commit/eeb319a5 A+ Dave From owner-freebsd-arm@freebsd.org Tue Dec 31 10:07:32 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60E221D096A for ; Tue, 31 Dec 2019 10:07:32 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47n92q1q2yz478W for ; Tue, 31 Dec 2019 10:07:30 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id a15so49776141otf.1 for ; Tue, 31 Dec 2019 02:07:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Z26KJQ5zlVWAmKnKh3dr94qlqjNSCjixs0Qcp+C/ovE=; b=i3BEOmwQs/e1luj1AwsiB8K9qNftS6aIaN0+8ERbSejPz68/CIR7Z0XiuKompstJPb aRMWXzqX8oM9Ws4jSjK/GOyCOt0Vlv44QT0P/I6AfABOOw02ZOIVRJauSM7SzdzqHuit RvmkSfn4QLSpEqw4g4i48HvhSuv1Vbkwx7p6IjdOWSDUcR3xv3U8ACLE03QbeWaSRh9g SR20jBhYP0GNCVdppgYbaNAILcWviuhT1GlgLFMeX5chkoPfP75xmy6JyceU/UdBMzA6 9AMoboA9x0ih3aZd8ouAsBQMp7iIY0Wuo03Ov3Pqi285IXBbam3G7JGT8J/0E3yOWwjM RhgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Z26KJQ5zlVWAmKnKh3dr94qlqjNSCjixs0Qcp+C/ovE=; b=iud0YpllvPXGP41W7zobXzpQ5ngG4XeS/wu8+jtMdKaoi8Gq7fMNAtFVfTYLzwSCKe sVISeZ2U4lbRK6rIi1LVR2uzoEiG7OdBNw1bV6A+e/Lk/EWCEmIGu7ROgw+El5Kj1TO7 JkI9SzvVsB5WnlCEkVeNu4u3hoaXo8kSSUgmE2L1khlXCLgREGjckSmwF+ih/61ewAnI ULL8k6got5iCunX4oPVXo3D39H7+HQqiwpr6Zl50l8wyyLqBgmu94QpZOZTu8lFg1xTA zA0qziUzuYSKKJ+jmk5VQzNEe6fcqm3Ku/teAVdTs7eCX8NMBk8QXB8rG8O0mQ1qb92n OU8w== X-Gm-Message-State: APjAAAUmL/lGU8gPzCN0RLNhy9c9mpKAjyI5rlOMireOIbsKH0J7LLRM PBlvUGoZqgHJaykSoCgRAwXL9xJdhUcfAJkMQZunQlDyu/o= X-Google-Smtp-Source: APXvYqx+jRo4tCEBWW0bEe4dV+hw3vY3eFA6xnbKTmVHV3LarOx3Fjm6FdcAPEYyRS/5EkXyFOMGkrM+EHF02CQ8pXI= X-Received: by 2002:a9d:7b50:: with SMTP id f16mr81978775oto.18.1577786849900; Tue, 31 Dec 2019 02:07:29 -0800 (PST) MIME-Version: 1.0 References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> In-Reply-To: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> From: =?UTF-8?Q?Mika=C3=ABl_Urankar?= Date: Tue, 31 Dec 2019 11:06:53 +0100 Message-ID: Subject: Re: is wireguard available on arm64 To: Peter Libassi Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47n92q1q2yz478W X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=i3BEOmwQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mikaelurankar@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=mikaelurankar@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-8.06), ipnet: 2607:f8b0::/32(-2.15), asn: 15169(-1.87), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 10:07:32 -0000 Le lun. 30 d=C3=A9c. 2019 =C3=A0 22:12, Peter Libassi a = =C3=A9crit : > > I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using the i= mage https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.= 1/FreeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz > > which gave me release: > > FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 > > pkg install wireguard gives message: > > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > pkg: No packages available to install matching 'wireguard' have been foun= d in the repositories > > > on the Port web site i find: wireguard-1.0.20191226 > > what am i doing wrong? Nothing :) go for arm64 is available as lang/go-devel. You'll need to compile it manually as we only provide packages for the quarterly branch on RELEASE version of FreeBSD (and go-devel hasn't landed in the quarterly branch yet). From owner-freebsd-arm@freebsd.org Tue Dec 31 12:54:38 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 824861D4669 for ; Tue, 31 Dec 2019 12:54:38 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nDlf2sWlz4GKZ for ; Tue, 31 Dec 2019 12:54:38 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: decke) by smtp.freebsd.org (Postfix) with ESMTPSA id 1FD931BAD3 for ; Tue, 31 Dec 2019 12:54:38 +0000 (UTC) (envelope-from decke@freebsd.org) Received: by mail-lj1-f169.google.com with SMTP id j1so28895173lja.2 for ; Tue, 31 Dec 2019 04:54:38 -0800 (PST) X-Gm-Message-State: APjAAAVkGyJ/daAd8Ot/H1ajy8ddP4NtGixcutpRvhrPmnM3dNi+Zlwz n1na1T8ght4dLXfqsFJqQy7RkhJjO70YC6b+NbaX7w== X-Google-Smtp-Source: APXvYqz2P+6N4afEa2w4gk0iFlqfNXk4isSzBIYhnM9y5pNZo2n8/U2q8R8cFuXiCcx2ei/JgM82M42YVvqvYJ4UHFM= X-Received: by 2002:a05:651c:30a:: with SMTP id a10mr42869723ljp.101.1577796876699; Tue, 31 Dec 2019 04:54:36 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a19:791c:0:0:0:0:0 with HTTP; Tue, 31 Dec 2019 04:54:35 -0800 (PST) X-Originating-IP: [2001:470:7527:8400:f5b0:d391:eb5d:8ff3] In-Reply-To: References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> From: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= Date: Tue, 31 Dec 2019 13:54:35 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: is wireguard available on arm64 To: =?UTF-8?Q?Mika=C3=ABl_Urankar?= Cc: Peter Libassi , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 12:54:38 -0000 On Tuesday, December 31, 2019, Mika=C3=ABl Urankar wrote: > Le lun. 30 d=C3=A9c. 2019 =C3=A0 22:12, Peter Libassi = a =C3=A9crit : >> >> I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using the = image https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fre= eBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >> >> which gave me release: >> >> FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 >> >> pkg install wireguard gives message: >> >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up to date. >> All repositories are up to date. >> pkg: No packages available to install matching 'wireguard' have been found in the repositories >> >> >> on the Port web site i find: wireguard-1.0.20191226 >> >> what am i doing wrong? > > Nothing :) > > go for arm64 is available as lang/go-devel. You'll need to compile it > manually as we only provide packages for the quarterly branch on > RELEASE version of FreeBSD (and go-devel hasn't landed in the > quarterly branch go-devel is already able to compile on arm64 and some go ports have been patched for arm64 to build fine - including wireguard-go. So once the next quarterly branch is created (in less than 24h) and the builders have finished (in a few days) we should have Go ports availabe on arm64 including wireguard. In addition to that there is a Rust based wireguard userspace implementation in the works which should also work on FreeBSD - but that is something for 2020. --=20 Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-arm@freebsd.org Tue Dec 31 15:13:43 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C9161D6FCF for ; Tue, 31 Dec 2019 15:13:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47nHr671x4z4N5X; Tue, 31 Dec 2019 15:13:42 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imJDG-00031l-Si; Tue, 31 Dec 2019 16:13:40 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Mika=C3=ABl_Urankar?= , =?utf-8?Q?Bernhard_Fr=C3=B6hlich?= Cc: "freebsd-arm@freebsd.org" Subject: Re: is wireguard available on arm64 References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> Date: Tue, 31 Dec 2019 16:13:43 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.2 X-Scan-Signature: 22b714be0c51703cd3047a81d17f7b3c X-Rspamd-Queue-Id: 47nHr671x4z4N5X X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 15:13:43 -0000 On Tue, 31 Dec 2019 13:54:35 +0100, Bernhard Fr=C3=B6hlich = wrote: > On Tuesday, December 31, 2019, Mika=C3=ABl Urankar > wrote: >> Le lun. 30 d=C3=A9c. 2019 =C3=A0 22:12, Peter Libassi a =C3=A9crit : >>> >>> I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using = the image > https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.= 1/FreeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >>> >>> which gave me release: >>> >>> FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm6= 4 >>> >>> pkg install wireguard gives message: >>> >>> Updating FreeBSD repository catalogue... >>> FreeBSD repository is up to date. >>> All repositories are up to date. >>> pkg: No packages available to install matching 'wireguard' have been= > found in the repositories >>> >>> >>> on the Port web site i find: wireguard-1.0.20191226 >>> >>> what am i doing wrong? >> >> Nothing :) >> >> go for arm64 is available as lang/go-devel. You'll need to compile it= >> manually as we only provide packages for the quarterly branch on >> RELEASE version of FreeBSD (and go-devel hasn't landed in the >> quarterly branch > > go-devel is already able to compile on arm64 and some go ports have be= en > patched for arm64 to build fine - including wireguard-go. > > So once the next quarterly branch is created (in less than 24h) and th= e > builders have finished (in a few days) we should have Go ports availab= e = > on > arm64 including wireguard. Mmmm "in a few days" is not so true. It takes about 5-7 days to build al= l = packages for one FreeBSD version on ARM64. So it takes about 2-3 weeks t= o = do a full build for head, 12.x and 11.x. You are unlucky if your version= = builds last. :-) Last full build for head: http://thunderx1.nyi.freebsd.org/build.html?mastername=3Dhead-arm64-defa= ult&build=3Dp519639_s355573 All current arm64 builds: http://thunderx1.nyi.freebsd.org/ Regards, Ronald. > > In addition to that there is a Rust based wireguard userspace > implementation in the works which should also work on FreeBSD - but th= at = > is > something for 2020. From owner-freebsd-arm@freebsd.org Tue Dec 31 21:24:28 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1AAD51DDA3B for ; Tue, 31 Dec 2019 21:24:28 +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 47nS3s6LSrz3D6w for ; Tue, 31 Dec 2019 21:24:25 +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 b05d393d; Tue, 31 Dec 2019 22:24:17 +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=tV9z4jWZ/q96xjvSO/AWo3k+Ddw=; b=fRBDtDkNxE8/7BeAuTFIRAQGtoMF YACIqo0APT46Hgxwa3EoDfD3xn/A2m7+nY3En8rIfZxPd5JR1DXpjSuuxqOgP9f+ rhCOazHLLnOrDWMR+5Nuya0f1Jpu2gdG2VV3j+yxJfJgzDKY8GVzseawSy7La+Oa J1ewv1FA2F7Flak= 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=VoPLGPGZHEnIK5WqZgIU3WQ2owH03WuwMtmmBi7Xydj/ku+bh80mGXAU ZexyGEJCSjqlUewBhOoyJ13mxwWYZStXdEqJF13ymDDq6Rh/gCU2ttYbsvp4ZMwF vKhsxqeLeHKVU7LGlS/HFIV1Bh8bgCplpv23JAS5RmbI3ndi/Gg= Received: from skull.home.blih.net (lfbn-idf2-1-1164-130.w90-92.abo.wanadoo.fr [90.92.223.130]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 1901684e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 31 Dec 2019 22:24:17 +0100 (CET) Date: Tue, 31 Dec 2019 22:24:15 +0100 From: Emmanuel Vadot To: freebsd-arm Subject: Re: Pinebook Pro, any progress as of yet ? Message-Id: <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> In-Reply-To: <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47nS3s6LSrz3D6w X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=fRBDtDkN; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [0.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.22)[-0.217,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.56)[-0.565,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (-0.54), ipnet: 212.83.160.0/19(2.41), asn: 12876(0.25), country: FR(0.00)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Dec 2019 21:24:28 -0000 On Tue, 31 Dec 2019 00:11:19 +0100 Emmanuel Vadot wrote: > On Tue, 31 Dec 2019 00:06:04 +0100 > S=F8ren Schmidt wrote: >=20 > >=20 > >=20 > > > On 30 Dec 2019, at 23.49, Emmanuel Vadot wrot= e: > > >=20 > > > On Mon, 30 Dec 2019 21:18:14 +0100 > > > S=F8ren Schmidt wrote: > > >=20 > > >> Hi gang > > >>=20 > > >> Just received my pinebook pro today (nice little machine btw), and t= hought I?d better ask here how much if any support we have allready ? > > >=20 > > > I received mine today too. > > >=20 > > >> It is more or less just a rock64pro in a laptop enclosure, so I gues= s the rudimentary support is there. > > >=20 > > > No, it's not a rockpro64 in a laptop enclosure. > >=20 > > Ahh, what I meant was that it uses same CPU etc as the rockpro64, so I = assumed (wrongly ?) that they are at least somewhat similar. >=20 > Sure it's similar but still not the same. >=20 > > >=20 > > >> However, it does not like the stock 13-arm64 image, so before I dig = in, has anyone else gotten this cutie to boot ? > > >=20 > > > What image are you refering too ? What do you mean by "it does not > > > like" ? > >=20 > > I just tried the latest current image "FreeBSD-13.0-CURRENT-arm64-aarch= 64-20191226-r356085-memstick.img", and it just seems to hang without any ou= tput to the console, but alas if it needs a new u-boot/dts that?s to be exp= ected. >=20 > And you put this image on what ? an sdcard ? Yes that needs u-boot. >=20 > > I also grapped a pinebookpro.dts from some site I forgot, they look mor= e or less identical. > >=20 > > > I've been able to boot to multiuser using mainline u-boot + mainline > > > atf with this patch for u-boot : > > > https://patchwork.ozlabs.org/patch/1194525/ > >=20 > > Hmm, OK, going to look into that one, does that still boot the ahem, li= nux its born with ? >=20 > No idea and I don't care about the linux present on the eMMC, it was > deleted from it 10 min after I've received the unit. >=20 > > > I have some weird issue on the console like weird char are drawn from > > > time to time (looks like it's when there is a lot of output from the > > > console). It's a bit better with an FTDI adapter compared to the > > > Prolific one that is in the Pine64 Uart<->Jack Adapter. > >=20 > > Yeah, getting 1500000 baud is a pain, I had to try several picks from t= he bunch of cheap Chinese adapters here as well, settled on a FT232 clone t= hat seems to work. >=20 > 1.5Mbps works great on the rock64 and rockpro64, which is why I still > don't know what's happening. >=20 > > > USB Doesn't work. The right port gives some USB_ERR_IOERROR, don't > > > know the cause yet. The left port is tried to the dwc3 controller but > > > in OTG mode and we don't support that. The USB-C port is also not > > > supported for now. > > > Both the SDCard and eMMC seems to work correctly. > >=20 > > OK; I?l get at build evn setup here so I can play with it, lets see how= far I get then. > >=20 > > >=20 > > > There is, of course, no video support for now. > >=20 > > Endeed, that would be one of the really nice things to get working. > >=20 > > Anyhow its actually a nice piece of kit, amazing what you can get for 2= 00$ nowadays. > >=20 > > -S=F8ren I know have something that can be booted correctly and with usb. U-Boot is the same but I've switched the uart baudrate to 115200 as it's way too noisy at 1.5Mbps for me (https://people.freebsd.org/~manu/pbp_uart.jpeg vs https://people.freebsd.org/~manu/rockpro_uart.jpeg). I'll push the patches somewhere at one point, in the meantime people can use a precompiled version from https://people.freebsd.org/~manu/pinebookpro/ Refer to the readme from the u-boot-rockpro64 port to install it. I've also pushed some commit there https://github.com/evadot/freebsd/tree/pinebookpro This have the dts needed for booting (based on the dts included in u-boot with some fixes to it). And also some fixes to the regulator framework and PMIC driver that I will put up to review soon. --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Wed Jan 1 02:44:32 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DFADE1E3B2F for ; Wed, 1 Jan 2020 02:44:32 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nb9B6kBQz3yVN for ; Wed, 1 Jan 2020 02:44:30 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 0012iXH8081479 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 31 Dec 2019 18:44:34 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 0012iW7W081478; Tue, 31 Dec 2019 18:44:32 -0800 (PST) (envelope-from fbsd) Date: Tue, 31 Dec 2019 18:44:32 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: ft232 usb-serial adapter not recognized on boot Message-ID: <20200101024432.GA81415@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 47nb9B6kBQz3yVN X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [0.21 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.949,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.07)[ip: (0.29), ipnet: 50.1.16.0/20(0.14), asn: 7065(-0.04), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.81)[-0.806,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 02:44:32 -0000 A Pi2 running FreeBSD 12.1-STABLE (GENERIC) #5 r356208 doesn't seem to see an FT232 usb-serial adapter, but does see it on disconnect/ reconnect. Once recognized it seems to work correctly. Boot messages are normal, except for: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM Root mount waiting for: CAM There aren't any other reported errors during boot, and everything appears normal once the ft232 is recognized. The behavior appeared in the last couple of weeks. Thanks for reading, and any ideas.... bob prohaska From owner-freebsd-arm@freebsd.org Wed Jan 1 11:31:59 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7DF8C1D3B16 for ; Wed, 1 Jan 2020 11:31:59 +0000 (UTC) (envelope-from peter@libassi.se) Received: from smtp2.outgoing.loopia.se (smtp2.outgoing.loopia.se [93.188.3.37]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47npsp18Yjz3M61 for ; Wed, 1 Jan 2020 11:31:57 +0000 (UTC) (envelope-from peter@libassi.se) Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id B31182E531BC for ; Wed, 1 Jan 2020 12:31:48 +0100 (CET) Received: from s500.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 950542E28427; Wed, 1 Jan 2020 12:31:48 +0100 (CET) Received: from s473.loopia.se (unknown [172.22.191.6]) by s500.loopia.se (Postfix) with ESMTP id 92AE81E146CC; Wed, 1 Jan 2020 12:31:48 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s645.loopia.se ([172.22.191.5]) by s473.loopia.se (s473.loopia.se [172.22.190.13]) (amavisd-new, port 10024) with LMTP id obyIXWRW2jas; Wed, 1 Jan 2020 12:31:46 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: peter@libassi.se X-Loopia-Originating-IP: 78.82.163.229 Received: from [10.79.0.7] (c-e5a3524e.03-77-73746f30.bbcust.telenor.se [78.82.163.229]) (Authenticated sender: peter@libassi.se) by s645.loopia.se (Postfix) with ESMTPSA id 2EACA156E50C; Wed, 1 Jan 2020 12:31:46 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: is wireguard available on arm64 From: Peter Libassi In-Reply-To: Date: Wed, 1 Jan 2020 12:31:45 +0100 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <31029AB0-FF50-441B-A57F-74D2FDD44867@libassi.se> References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> To: =?utf-8?Q?Mika=C3=ABl_Urankar?= X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 47npsp18Yjz3M61 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of peter@libassi.se has no SPF policy when checking 93.188.3.37) smtp.mailfrom=peter@libassi.se X-Spamd-Result: default: False [0.89 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.17)[-0.170,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-0.01)[country: SE(-0.03)]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[libassi.se]; NEURAL_HAM_LONG(-0.34)[-0.339,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:39570, ipnet:93.188.2.0/23, country:SE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 11:31:59 -0000 Tried to compile the go ports on my RPI3, and yes the go and go14 is not = supported on aarch64. go-devel came a little further before giving up: root@bsd1:/usr/ports # svn update /usr/ports Updating '.': At revision 521712. root@bsd1:/usr/ports/lang/go-devel # make install . . cmd/link/internal/riscv64 cmd/link/internal/s390x cmd/link/internal/wasm cmd/link/internal/x86 cmd/link go build cmd/compile/internal/ssa: = /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/= pkg/tool/freebsd_arm64/compile: signal: killed go tool dist: FAILED: = /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/= pkg/tool/freebsd_arm64/go_bootstrap install -gcflags=3Dall=3D = -ldflags=3Dall=3D -v -i cmd/asm cmd/cgo cmd/compile cmd/link: exit = status 1 *** Error code 2 Stop. make: stopped in /usr/ports/lang/go-devel BTW I must say, the FreeBSD documentation is excellent! > 31 dec. 2019 kl. 11:06 skrev Mika=C3=ABl Urankar = : >=20 > Le lun. 30 d=C3=A9c. 2019 =C3=A0 22:12, Peter Libassi = a =C3=A9crit : >>=20 >> I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using = the image = https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >>=20 >> which gave me release: >>=20 >> FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 >>=20 >> pkg install wireguard gives message: >>=20 >> Updating FreeBSD repository catalogue... >> FreeBSD repository is up to date. >> All repositories are up to date. >> pkg: No packages available to install matching 'wireguard' have been = found in the repositories >>=20 >>=20 >> on the Port web site i find: wireguard-1.0.20191226 >>=20 >> what am i doing wrong? >=20 > Nothing :) >=20 > go for arm64 is available as lang/go-devel. You'll need to compile it > manually as we only provide packages for the quarterly branch on > RELEASE version of FreeBSD (and go-devel hasn't landed in the > quarterly branch yet). From owner-freebsd-arm@freebsd.org Wed Jan 1 13:23:22 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E2A6D1D63B5 for ; Wed, 1 Jan 2020 13:23:22 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nsLL5cFNz3R7d for ; Wed, 1 Jan 2020 13:23:22 +0000 (UTC) (envelope-from decke@freebsd.org) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: decke) by smtp.freebsd.org (Postfix) with ESMTPSA id 79DA92E68D for ; Wed, 1 Jan 2020 13:23:22 +0000 (UTC) (envelope-from decke@freebsd.org) Received: by mail-lj1-f175.google.com with SMTP id j1so30972101lja.2 for ; Wed, 01 Jan 2020 05:23:22 -0800 (PST) X-Gm-Message-State: APjAAAUJoc1aCTllPK8cIzlUXED8VRLSVNkYsEJB7HfFIzLhfJjP8HIH 9mORkd8oshVTxuJ8phuXWJeErfwKWPtSiXOJdKuqNA== X-Google-Smtp-Source: APXvYqw6bwgem1Nma8s6GgeJcE3ejxwtDS/FWvuRWkTmawCARq6EgRxGKf5PgJcaoBJUJzPHRegq1KV1QfM7kQaGRgQ= X-Received: by 2002:a2e:98ca:: with SMTP id s10mr46032568ljj.160.1577885000800; Wed, 01 Jan 2020 05:23:20 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a19:791c:0:0:0:0:0 with HTTP; Wed, 1 Jan 2020 05:23:20 -0800 (PST) X-Originating-IP: [2001:4bb8:250:262c:46e4:4fcd:99d9:e6a1] In-Reply-To: <31029AB0-FF50-441B-A57F-74D2FDD44867@libassi.se> References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> <31029AB0-FF50-441B-A57F-74D2FDD44867@libassi.se> From: =?UTF-8?Q?Bernhard_Fr=C3=B6hlich?= Date: Wed, 1 Jan 2020 14:23:20 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: is wireguard available on arm64 To: Peter Libassi Cc: =?UTF-8?Q?Mika=C3=ABl_Urankar?= , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 13:23:23 -0000 On Wednesday, January 1, 2020, Peter Libassi wrote: > > Tried to compile the go ports on my RPI3, and yes the go and go14 is not supported on aarch64. go-devel came a little further before giving up: > > root@bsd1:/usr/ports # svn update /usr/ports > Updating '.': > At revision 521712. > > root@bsd1:/usr/ports/lang/go-devel # make install > . > . > cmd/link/internal/riscv64 > cmd/link/internal/s390x > cmd/link/internal/wasm > cmd/link/internal/x86 > cmd/link > go build cmd/compile/internal/ssa: /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/p= kg/tool/freebsd_arm64/compile: signal: killed > go tool dist: FAILED: /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/p= kg/tool/freebsd_arm64/go_bootstrap install -gcflags=3Dall=3D -ldflags=3Dall=3D -v -i cmd/asm cmd/cgo cmd/compi= le cmd/link: exit status 1 > *** Error code 2 > > Stop. > make: stopped in /usr/ports/lang/go-devel Looks like you did run out of RAM. > BTW I must say, the FreeBSD documentation is excellent! > > > >> 31 dec. 2019 kl. 11:06 skrev Mika=C3=ABl Urankar : >> >> Le lun. 30 d=C3=A9c. 2019 =C3=A0 22:12, Peter Libassi = a =C3=A9crit : >>> >>> I=E2=80=99m s newbie on BSD. Just installed freebsd on a RPI3 using the= image https://download.freebsd.org/ftp/releases/arm64/aarch64/ISO-IMAGES/12.1/Fre= eBSD-12.1-RELEASE-arm64-aarch64-RPI3.img.xz >>> >>> which gave me release: >>> >>> FreeBSD bsd1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 >>> >>> pkg install wireguard gives message: >>> >>> Updating FreeBSD repository catalogue... >>> FreeBSD repository is up to date. >>> All repositories are up to date. >>> pkg: No packages available to install matching 'wireguard' have been found in the repositories >>> >>> >>> on the Port web site i find: wireguard-1.0.20191226 >>> >>> what am i doing wrong? >> >> Nothing :) >> >> go for arm64 is available as lang/go-devel. You'll need to compile it >> manually as we only provide packages for the quarterly branch on >> RELEASE version of FreeBSD (and go-devel hasn't landed in the >> quarterly branch yet). > > _______________________________________________ > 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 Bernhard Froehlich http://www.bluelife.at/ From owner-freebsd-arm@freebsd.org Wed Jan 1 14:09:31 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 27F061D6F94 for ; Wed, 1 Jan 2020 14:09:31 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ntMY5vx5z3xcd for ; Wed, 1 Jan 2020 14:09:29 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-lj1-x242.google.com with SMTP id a13so38408396ljm.10 for ; Wed, 01 Jan 2020 06:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=IBia7WtI1Aad77xigTHH1OlWCmfhrLgpx2zc0rjPBoA=; b=G/8Rveiai6GBX0urHVFKgbyUbvCB36r1EjMa1SBUQxIhnWfkRHiZybBld6f/J53MHT GXVU6Xjh0thU3GDAiiQdF1MpiLD+SU+bdIE7D1b9Z1jWDsVPi/SePCtLERKC2+oOebbP T87dd6yZfg4aVG7kTAUn0hBZTNdeEn+Q4fkRKe0eA7MV9rPqXOXmj/YAURrVKvfAsjIQ g3e1lkD8i7cmQ+s0yYhd+CXf8aca9Q0aKWoowFOyVLisyDC3AbLjVDgfVFrTymL2ozgO OirVyLhr4X7zMdDWZzTGdmqdJtLEkOh9xxJSqilWhiG4pR9NS1ndRaoqyEC5+KxMDEn0 KhVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=IBia7WtI1Aad77xigTHH1OlWCmfhrLgpx2zc0rjPBoA=; b=jON66ipTrNSJHEYmVrpgQMlKskrn4RN0q+X4TmiCMfgnEdbAOtdKVx305WLVohoLAG 6noTJfNGZbHHoFJ32IjaSNU/E9y8EUNe4wGHwfp2pWFWU8/CZ/2BPk9UVxfE+2DMDr3l IVPLJ1ppU0SUirheiCLRMF0tpRUP7n4/L5r3azDzQASJmwJIMfTwGscSyGcuiegZuwJG s+ydXPaGzZbV4wwFfBL9c5Kl9mPfyO6wGFMRFHpg/Xw6f/5KN5s7fThcwn1DSbCWZ2QL MgKvBaJ6R08pfslH97Kgt31YS8T9q2K7HSfB0gLjFVokUNOFwwURJFzqeCTcgpnfJdh0 87FA== X-Gm-Message-State: APjAAAVZkV9fyj6q1MyT5y93l7FKolcGySSjcgOehONql7ZBzc74IlBi KVJGxQuK6g8C1ZiGg9nqRZ11q2qKCBQ= X-Google-Smtp-Source: APXvYqyQOmMO25wbFs7j9EcnNX8teSNUW0i9vUxaZobzPFnOOccETRH1oRMAEAaK03NugdpFbM6Z5g== X-Received: by 2002:a2e:9183:: with SMTP id f3mr8349058ljg.64.1577887766397; Wed, 01 Jan 2020 06:09:26 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id e21sm26144803lfc.63.2020.01.01.06.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jan 2020 06:09:25 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Pinebook Pro, any progress as of yet ? Date: Wed, 1 Jan 2020 15:09:24 +0100 In-Reply-To: <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> Cc: freebsd-arm To: Emmanuel Vadot References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47ntMY5vx5z3xcd X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=G/8Rveia; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::242 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.69), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 14:09:31 -0000 On 31 Dec 2019, at 22.24, Emmanuel Vadot wrote: > I know have something that can be booted correctly and with usb. > U-Boot is the same but I've switched the uart baudrate to 115200 as > it's way too noisy at 1.5Mbps for me > (https://people.freebsd.org/~manu/pbp_uart.jpeg = vs > https://people.freebsd.org/~manu/rockpro_uart.jpeg = ). I'll push the > patches somewhere at one point, in the meantime people can use a > precompiled version from https://people.freebsd.org/~manu/pinebookpro/ = > Refer to the readme from the u-boot-rockpro64 port to install it. >=20 > I've also pushed some commit there > https://github.com/evadot/freebsd/tree/pinebookpro = > This have the dts needed for booting (based on the dts included in > u-boot with some fixes to it). > And also some fixes to the regulator framework and PMIC driver that I > will put up to review soon. I tried to copy the idbloader and u-boot onto a SD-card: dd if=3Didbloader.img of=3D/dev/afd1 seek=3D64 conv=3Dnotrunc,sync dd if=3Du-boot.itb of=3D/dev/afd1 seek=3D16384 conv=3Dnotrunc,sync but not much luck, it still boots the stock image on the eMMC, and keeps = the console tty at 1.5m, which for some reason I can=E2=80=99t read = right now.. I would have expected at leat some output at 115200... I read somewhere that It should boot from the SD if one is present, and = it sure does with another linux image on a SD-card.. Are you booting from the eMMC or SD-card ? -S=C3=B8ren From owner-freebsd-arm@freebsd.org Wed Jan 1 14:25:06 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 96FE61D74FE for ; Wed, 1 Jan 2020 14:25:06 +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 47ntjY1Hdgz3yV1 for ; Wed, 1 Jan 2020 14:25:04 +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 42820e37; Wed, 1 Jan 2020 15:25:03 +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=3+o72dFgyV1EyeOXXz1sn+P9xbU=; b=despAlC6F5LIeREdm0phaz7FFucX 1AT7sMIDe5yLaSjSphu+WRi9AtGmc2bZj5Hy/Qd2US0E8IXIc0qq/fUrMri1IHAd gldxueGy5ciYnLPeI6Bksc6ZZAUVmuUfXJUq6JD012TE34s0Nr2RCiPMPG6qIWG9 rcBzTyCbhjzlE5w= 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=RSPfYmkGehjyo8EMdXcGdWi4NvR7q1VhizCOS4yvoPtTI/86znGVQ2kS oCVzY9wCsVS3nVSuS16O4VVT0TX77ueuQDF+zOQBew85EX3Fn/ltJHP9u0efD7cG uKZagYzxF6XwHtZp6Gdn82Azmc5LnLZBKAujWuNVqMRY1fkxCbc= Received: from skull.home.blih.net (lfbn-idf2-1-1164-130.w90-92.abo.wanadoo.fr [90.92.223.130]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 3c68806a TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Wed, 1 Jan 2020 15:25:02 +0100 (CET) Date: Wed, 1 Jan 2020 15:24:58 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Pinebook Pro, any progress as of yet ? Message-Id: <20200101152458.2a529345ebd0f40827d1d808@bidouilliste.com> In-Reply-To: References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47ntjY1Hdgz3yV1 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=despAlC6; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [0.62 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.20)[-0.198,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.71)[-0.707,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (-0.53), ipnet: 212.83.160.0/19(2.41), asn: 12876(0.25), country: FR(0.00)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 14:25:06 -0000 On Wed, 1 Jan 2020 15:09:24 +0100 S=F8ren Schmidt wrote: >=20 > On 31 Dec 2019, at 22.24, Emmanuel Vadot wrote: >=20 > > I know have something that can be booted correctly and with usb. > > U-Boot is the same but I've switched the uart baudrate to 115200 as > > it's way too noisy at 1.5Mbps for me > > (https://people.freebsd.org/~manu/pbp_uart.jpeg vs > > https://people.freebsd.org/~manu/rockpro_uart.jpeg ). I'll push the > > patches somewhere at one point, in the meantime people can use a > > precompiled version from https://people.freebsd.org/~manu/pinebookpro/ = > > Refer to the readme from the u-boot-rockpro64 port to install it. > >=20 > > I've also pushed some commit there > > https://github.com/evadot/freebsd/tree/pinebookpro > > This have the dts needed for booting (based on the dts included in > > u-boot with some fixes to it). > > And also some fixes to the regulator framework and PMIC driver that I > > will put up to review soon. >=20 > I tried to copy the idbloader and u-boot onto a SD-card: >=20 > dd if=3Didbloader.img of=3D/dev/afd1 seek=3D64 conv=3Dnotrunc,sync > dd if=3Du-boot.itb of=3D/dev/afd1 seek=3D16384 conv=3Dnotrunc,sync >=20 > but not much luck, it still boots the stock image on the eMMC, and keeps = the console tty at 1.5m, which for some reason I can?t read right now.. >=20 > I would have expected at leat some output at 115200... >=20 > I read somewhere that It should boot from the SD if one is present, and i= t sure does with another linux image on a SD-card.. The boot order is fixed and is SPI->eMMC->SD So if a bootloader exists on the eMMC it will boot from it. The u-boot installed will try to boot from the sdcard using u-boot distro boot mechanism but it will not work for us as EFI is broken on it. (It might work if you use kernel.bin and compile it with LINUX_BOOT_ABI). > Are you booting from the eMMC or SD-card ? From sd but my eMMC is blank. > -S=F8ren >=20 >=20 >=20 >=20 >=20 --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Wed Jan 1 15:26:20 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D225D1D856B for ; Wed, 1 Jan 2020 15:26:20 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nw4C4Qx9z41fZ for ; Wed, 1 Jan 2020 15:26:19 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id g17so37138656wro.2 for ; Wed, 01 Jan 2020 07:26:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zr/uBw4j5pW3RuVSUtRJpBlr68Wxmbt1G4EugaXC/e4=; b=DvABUFbQarNCLivdQw4HhM2txbG/fLjdZEdv3ry+rpvE4bTJZ8eDc6maZEDgBN6OiY ZtwPrbF4G+57bEUCvEGzXJj4vnc1H9SB++1qFWKNqcttNiqrvYn0DxdBRS2iwqr4fwEz MTatdstrtXfajlMhLVc10KvEzxRf6L4O2mmlnkChSRyxM3Os8ypdp8meEJa8iJO11/ur qLIvhDaYhojS7x1Nuj31h0guDAWIkPRtPP+enrvdahg8gnCFKiY2BloupI6Uy8868itB CzNkhYfn36prqqc0Jjj8uNSSuHtB4Oir5GRXmiHdn+BxEm7UtDrhcityR/+e4cnlvHTT e+4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zr/uBw4j5pW3RuVSUtRJpBlr68Wxmbt1G4EugaXC/e4=; b=JIML6guwbUsVVljbckZk2m5m4XDmAKJjWw5QqaEX6qaJ8Bahs6i204RcZS+JOuqbnu HMo3xUKA1Vif7fcJlUe/bBfIMZGXkXnOO97pAa220cLtNonZcyc/7yu5aVOCYWXz2ThD oKpanbzVLpdzI5QYwo7Oyafu0Tt3FSgV3KY2U1nRCFJjmRcK7xVs98FoUkwQ4fwiUSDd hqVrgnXb1NthqvAaB7RJsXfpx8YhctEkc2hfxQoDWlt1JVtbxQX10U2sybPrntZNtqzd DRfZWpOFpzVybV94Or4C4EFSdTNXCWy4DqaBVhn7uYjlUIhQitamuANSLusCcKeVdaa8 4xsQ== X-Gm-Message-State: APjAAAXyA01MJgvzCTbe94xISdKALdse+qh/FNccGz97nUg3YvPXl6Mr xP/9Nbz9mOMPFVKcncOnIBQ= X-Google-Smtp-Source: APXvYqyLjuK4uPoJEWhvkc69kWiU1nZbWSGO6xBzKLVf7kjRc9GwKk4pZNOioXVIm4OPKDCo89umRw== X-Received: by 2002:adf:fa12:: with SMTP id m18mr74826015wrr.309.1577892376999; Wed, 01 Jan 2020 07:26:16 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id x1sm52147055wru.50.2020.01.01.07.26.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jan 2020 07:26:16 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Pinebook Pro, any progress as of yet ? From: =?utf-8?Q?S=C3=B8ren_Schmidt?= In-Reply-To: <20200101152458.2a529345ebd0f40827d1d808@bidouilliste.com> Date: Wed, 1 Jan 2020 16:26:15 +0100 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <6EDB6E30-F2C9-458D-84B0-B19E55F02313@gmail.com> References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> <20200101152458.2a529345ebd0f40827d1d808@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47nw4C4Qx9z41fZ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DvABUFbQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::444 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.72), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 15:26:20 -0000 On 1 Jan 2020, at 15.24, Emmanuel Vadot wrote: >> dd if=3Didbloader.img of=3D/dev/afd1 seek=3D64 conv=3Dnotrunc,sync >> dd if=3Du-boot.itb of=3D/dev/afd1 seek=3D16384 conv=3Dnotrunc,sync >>=20 >> but not much luck, it still boots the stock image on the eMMC, and = keeps the console tty at 1.5m, which for some reason I can?t read right = now.. >>=20 >> I would have expected at leat some output at 115200... >>=20 >> I read somewhere that It should boot from the SD if one is present, = and it sure does with another linux image on a SD-card.. >=20 > The boot order is fixed and is SPI->eMMC->SD > So if a bootloader exists on the eMMC it will boot from it. > The u-boot installed will try to boot from the sdcard using u-boot > distro boot mechanism but it will not work for us as EFI is broken on > it. (It might work if you use kernel.bin and compile it with > LINUX_BOOT_ABI). >=20 >> Are you booting from the eMMC or SD-card ? >=20 > =46rom sd but my eMMC is blank. Ahh, I was under the impression that it tried to use u-boot from the = SD-card, my bad. For my purpose it would be nice to be able to =E2=80=9Cdualboot=E2=80=9D = OS=E2=80=99s by just using a SD-card with the wanted OS on it, and let = the stock system be on the eMMC. I=E2=80=99ll play around with it at bit and see if I can get it to at = least load a kernel. I guess that means that I need the extlinux way of things to get it = going=E2=80=A6 -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Wed Jan 1 20:17:43 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A4C571DEB2C for ; Wed, 1 Jan 2020 20:17:43 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47p2XQ0Mvlz4Jkr for ; Wed, 1 Jan 2020 20:17:41 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id 001KIiwU047200 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 1 Jan 2020 21:18:45 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1577909925; bh=eze1ULJPeiqMoEyGqgO9uZPjP0aiu+anjcqPjxXE3+A=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=haqqq7BknTzLUC1rLnW3njrp73Fq+/bZSyoQ47+ye81QbXcBspXuqKTQFlbXslvAg VxYMheheXKUDZh3rd5aB7/RwZ0QJALGaCc20Xi7FZccR6XWDfJL0IRRvJ+h+xqNPr8 Mi77a8cW7KP29idVtGeXXBnIU/PQgEBHMgZxeFSE= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id 001KHXCu088629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Jan 2020 21:17:33 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id 001KHWO8017611; Wed, 1 Jan 2020 21:17:32 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 001KHVMQ017610; Wed, 1 Jan 2020 21:17:31 +0100 (CET) (envelope-from ticso) Date: Wed, 1 Jan 2020 21:17:31 +0100 From: Bernd Walter To: Peter Libassi Cc: =?iso-8859-1?Q?Mika=EBl?= Urankar , freebsd-arm@freebsd.org Subject: Re: is wireguard available on arm64 Message-ID: <20200101201731.GF96594@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <6C673FA9-57F5-4291-A32A-7D6F9837CB74@libassi.se> <31029AB0-FF50-441B-A57F-74D2FDD44867@libassi.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31029AB0-FF50-441B-A57F-74D2FDD44867@libassi.se> X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 47p2XQ0Mvlz4Jkr X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=haqqq7Bk; dmarc=none; spf=none (mx1.freebsd.org: domain of ticso@cicely7.cicely.de has no SPF policy when checking 195.149.99.3) smtp.mailfrom=ticso@cicely7.cicely.de X-Spamd-Result: default: False [-1.76 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; NEURAL_HAM_MEDIUM(-0.96)[-0.964,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; IP_SCORE(-0.00)[country: DE(-0.02)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 20:17:43 -0000 On Wed, Jan 01, 2020 at 12:31:45PM +0100, Peter Libassi wrote: > > Tried to compile the go ports on my RPI3, and yes the go and go14 is not supported on aarch64. go-devel came a little further before giving up: > > root@bsd1:/usr/ports # svn update /usr/ports > Updating '.': > At revision 521712. > > root@bsd1:/usr/ports/lang/go-devel # make install > . > . > cmd/link/internal/riscv64 > cmd/link/internal/s390x > cmd/link/internal/wasm > cmd/link/internal/x86 > cmd/link > go build cmd/compile/internal/ssa: /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/pkg/tool/freebsd_arm64/compile: signal: killed > go tool dist: FAILED: /usr/ports/lang/go-devel/work/go-a5bfd9da1d1b24f326399b6b75558ded14514f23/pkg/tool/freebsd_arm64/go_bootstrap install -gcflags=all= -ldflags=all= -v -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1 > *** Error code 2 > > Stop. > make: stopped in /usr/ports/lang/go-devel Wireguard did compile fine for me on a 12.1-RELEASE PINE64-LTS with ports checked out out at r521569. go-devel-g20191217 Go programming language (development version) wireguard-go-0.0.20191012_1 WireGuard implementation in Go wireguard-1.0.20191226 Fast, modern and secure VPN Tunnel Considering the "signal: killed" message, I suspect a low memory condition. My Board has 2G RAM and 8G swap on very fast uSD cards. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Wed Jan 1 21:53:18 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1007C1E1907 for ; Wed, 1 Jan 2020 21:53:18 +0000 (UTC) (envelope-from freebsd@sysctl.cz) Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47p4fj0smMz4QXH for ; Wed, 1 Jan 2020 21:53:16 +0000 (UTC) (envelope-from freebsd@sysctl.cz) Received: from webmail.wedos.net (wes1-wm3.wedos.net [46.28.106.84]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 47p4fY0PCqz4KG for ; Wed, 1 Jan 2020 22:53:09 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 01 Jan 2020 22:53:08 +0100 From: freebsd@sysctl.cz To: Freebsd arm Subject: TV HAT on RPI3 Message-ID: <3e2c101fd1c07a1cc90b389f27ea79ce@sysctl.cz> X-Sender: freebsd@sysctl.cz User-Agent: Roundcube Webmail/1.2.4 X-Rspamd-Queue-Id: 47p4fj0smMz4QXH X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@sysctl.cz has no SPF policy when checking 46.28.106.15) smtp.mailfrom=freebsd@sysctl.cz X-Spamd-Result: default: False [4.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; IP_SCORE(1.35)[ipnet: 46.28.104.0/21(2.78), asn: 197019(3.88), country: CZ(0.09)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[sysctl.cz]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.92)[0.920,0]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.994,0]; FROM_NO_DN(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197019, ipnet:46.28.104.0/21, country:CZ]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 21:53:18 -0000 Hi, I have problem with tv hat on rpi3. Kernel cannot detect this component https://rpishop.cz/hat/1095-raspberry-pi-tv-uhat.html How i use overlayer for this device ? Do you have some experience with this issue ? Thank you M.F. From owner-freebsd-arm@freebsd.org Thu Jan 2 00:12:25 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D44701E4AEF for ; Thu, 2 Jan 2020 00:12:25 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47p7lD2x6bz4XwT for ; Thu, 2 Jan 2020 00:12:24 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id 0020CVop084612 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 1 Jan 2020 16:12:32 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 0020CVTm084611; Wed, 1 Jan 2020 16:12:31 -0800 (PST) (envelope-from fbsd) Date: Wed, 1 Jan 2020 16:12:31 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: panic: vm_page_astate_fcmpset: invalid head requeue request on RPI3 Message-ID: <20200102001231.GA84583@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 47p7lD2x6bz4XwT X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [0.21 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.895,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.07)[ip: (0.28), ipnet: 50.1.16.0/20(0.14), asn: 7065(-0.04), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.86)[-0.862,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 00:12:25 -0000 While playing at compiling www/chromium using FreeBSD 13.0-CURRENT (GENERIC) #2 r356165: Mon Dec 30 09:59:03 PST 2019 the machine crashed, reporting panic: vm_page_astate_fcmpset: invalid head requeue request for page 0xfffffd0031880490 cpuid = 2 time = 1577921727 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc = 0xffff000000735c5c lr = 0xffff000000106814 sp = 0xffff0000521ec240 fp = 0xffff0000521ec450 db_trace_self_wrapper() at vpanic+0x18c pc = 0xffff000000106814 lr = 0xffff000000408d90 sp = 0xffff0000521ec460 fp = 0xffff0000521ec510 vpanic() at panic+0x44 pc = 0xffff000000408d90 lr = 0xffff000000408b40 sp = 0xffff0000521ec520 fp = 0xffff0000521ec5a0 panic() at _vm_page_pqstate_commit_dequeue+0x340 pc = 0xffff000000408b40 lr = 0xffff0000006ed840 sp = 0xffff0000521ec5b0 fp = 0xffff0000521ec5f0 _vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit_dequeue+0xb8 pc = 0xffff0000006ed840 lr = 0xffff0000006e954c sp = 0xffff0000521ec600 fp = 0xffff0000521ec640 vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit+0x50 pc = 0xffff0000006e954c lr = 0xffff0000006e93ac sp = 0xffff0000521ec650 fp = 0xffff0000521ec670 vm_page_pqstate_commit() at vm_pageout_laundry_worker+0x5e4 pc = 0xffff0000006e93ac lr = 0xffff0000006f02c0 sp = 0xffff0000521ec680 fp = 0xffff0000521ec940 vm_pageout_laundry_worker() at fork_exit+0x7c pc = 0xffff0000006f02c0 lr = 0xffff0000003c7fdc sp = 0xffff0000521ec950 fp = 0xffff0000521ec980 fork_exit() at fork_trampoline+0x10 pc = 0xffff0000003c7fdc lr = 0xffff00000075230c sp = 0xffff0000521ec990 fp = 0x0000000000000000 KDB: enter: panic [ thread pid 21 tid 100071 ] Stopped at 0 db> bt Tracing pid 21 tid 100071 td 0xfffffd0001078560 db_trace_self() at db_stack_trace+0xf8 pc = 0xffff000000735c5c lr = 0xffff000000103c58 sp = 0xffff0000521ebe10 fp = 0xffff0000521ebe40 db_stack_trace() at db_command+0x228 pc = 0xffff000000103c58 lr = 0xffff0000001038d0 sp = 0xffff0000521ebe50 fp = 0xffff0000521ebf30 db_command() at db_command_loop+0x58 pc = 0xffff0000001038d0 lr = 0xffff000000103678 sp = 0xffff0000521ebf40 fp = 0xffff0000521ebf60 db_command_loop() at db_trap+0xf4 pc = 0xffff000000103678 lr = 0xffff00000010697c sp = 0xffff0000521ebf70 fp = 0xffff0000521ec190 db_trap() at kdb_trap+0x1d8 pc = 0xffff00000010697c lr = 0xffff0000004510d0 sp = 0xffff0000521ec1a0 fp = 0xffff0000521ec250 kdb_trap() at do_el1h_sync+0xf4 pc = 0xffff0000004510d0 lr = 0xffff000000752588 sp = 0xffff0000521ec260 fp = 0xffff0000521ec290 do_el1h_sync() at handle_el1h_sync+0x78 pc = 0xffff000000752588 lr = 0xffff000000738078 sp = 0xffff0000521ec2a0 fp = 0xffff0000521ec3b0 handle_el1h_sync() at kdb_enter+0x34 pc = 0xffff000000738078 lr = 0xffff00000045071c sp = 0xffff0000521ec3c0 fp = 0xffff0000521ec450 kdb_enter() at vpanic+0x1a8 pc = 0xffff00000045071c lr = 0xffff000000408dac sp = 0xffff0000521ec460 fp = 0xffff0000521ec510 vpanic() at panic+0x44 pc = 0xffff000000408dac lr = 0xffff000000408b40 sp = 0xffff0000521ec520 fp = 0xffff0000521ec5a0 panic() at _vm_page_pqstate_commit_dequeue+0x340 pc = 0xffff000000408b40 lr = 0xffff0000006ed840 sp = 0xffff0000521ec5b0 fp = 0xffff0000521ec5f0 _vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit_dequeue+0xb8 pc = 0xffff0000006ed840 lr = 0xffff0000006e954c sp = 0xffff0000521ec600 fp = 0xffff0000521ec640 vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit+0x50 pc = 0xffff0000006e954c lr = 0xffff0000006e93ac sp = 0xffff0000521ec650 fp = 0xffff0000521ec670 vm_page_pqstate_commit() at vm_pageout_laundry_worker+0x5e4 pc = 0xffff0000006e93ac lr = 0xffff0000006f02c0 sp = 0xffff0000521ec680 fp = 0xffff0000521ec940 vm_pageout_laundry_worker() at fork_exit+0x7c pc = 0xffff0000006f02c0 lr = 0xffff0000003c7fdc sp = 0xffff0000521ec950 fp = 0xffff0000521ec980 fork_exit() at fork_trampoline+0x10 pc = 0xffff0000003c7fdc lr = 0xffff00000075230c sp = 0xffff0000521ec990 fp = 0x0000000000000000 db> Thanks for reading, if there's anything to try please let me know. bob prohaska From owner-freebsd-arm@freebsd.org Thu Jan 2 11:03:49 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 61F151F46E1; Thu, 2 Jan 2020 11:03:49 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (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 47pQBs1WX5z4HGl; Thu, 2 Jan 2020 11:03:48 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from mb.fritz.box (ip4d16e760.dynamic.kabel-deutschland.de [77.22.231.96]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 3DF7672106C11; Thu, 2 Jan 2020 12:03:46 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: panic: vm_page_astate_fcmpset: invalid head requeue request on RPI3 From: Michael Tuexen In-Reply-To: <20200102001231.GA84583@www.zefox.net> Date: Thu, 2 Jan 2020 12:03:45 +0100 Cc: freebsd-arm@freebsd.org, freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200102001231.GA84583@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Spam-Status: No, score=-1.6 required=5.0 tests=ALL_TRUSTED,BAYES_00, IP_LINK_PLUS,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,WEIRD_PORT autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 47pQBs1WX5z4HGl X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.94)[-0.942,0]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE]; NEURAL_HAM_LONG(-0.99)[-0.991,0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 11:03:49 -0000 > On 2. Jan 2020, at 01:12, bob prohaska wrote: >=20 > While playing at compiling www/chromium using=20 > FreeBSD 13.0-CURRENT (GENERIC) #2 r356165: Mon Dec 30 09:59:03 PST = 2019 > the machine crashed, reporting=20 > panic: vm_page_astate_fcmpset: invalid head requeue request for page = 0xfffffd0031880490 This problem is NOT arm specific. I've seen it on an amd64 system = running syzkaller: = http://212.201.121.91:10000/crash?id=3D00704eb865e893ffda473a4859e062eef51= 2cbde Best regards Michael >=20 > cpuid =3D 2 > time =3D 1577921727 > KDB: stack backtrace: > db_trace_self() at db_trace_self_wrapper+0x28 > pc =3D 0xffff000000735c5c lr =3D 0xffff000000106814 > sp =3D 0xffff0000521ec240 fp =3D 0xffff0000521ec450 >=20 > db_trace_self_wrapper() at vpanic+0x18c > pc =3D 0xffff000000106814 lr =3D 0xffff000000408d90 > sp =3D 0xffff0000521ec460 fp =3D 0xffff0000521ec510 >=20 > vpanic() at panic+0x44 > pc =3D 0xffff000000408d90 lr =3D 0xffff000000408b40 > sp =3D 0xffff0000521ec520 fp =3D 0xffff0000521ec5a0 >=20 > panic() at _vm_page_pqstate_commit_dequeue+0x340 > pc =3D 0xffff000000408b40 lr =3D 0xffff0000006ed840 > sp =3D 0xffff0000521ec5b0 fp =3D 0xffff0000521ec5f0 >=20 > _vm_page_pqstate_commit_dequeue() at = vm_page_pqstate_commit_dequeue+0xb8 > pc =3D 0xffff0000006ed840 lr =3D 0xffff0000006e954c > sp =3D 0xffff0000521ec600 fp =3D 0xffff0000521ec640 >=20 > vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit+0x50 > pc =3D 0xffff0000006e954c lr =3D 0xffff0000006e93ac > sp =3D 0xffff0000521ec650 fp =3D 0xffff0000521ec670 >=20 > vm_page_pqstate_commit() at vm_pageout_laundry_worker+0x5e4 > pc =3D 0xffff0000006e93ac lr =3D 0xffff0000006f02c0 > sp =3D 0xffff0000521ec680 fp =3D 0xffff0000521ec940 >=20 > vm_pageout_laundry_worker() at fork_exit+0x7c > pc =3D 0xffff0000006f02c0 lr =3D 0xffff0000003c7fdc > sp =3D 0xffff0000521ec950 fp =3D 0xffff0000521ec980 >=20 > fork_exit() at fork_trampoline+0x10 > pc =3D 0xffff0000003c7fdc lr =3D 0xffff00000075230c > sp =3D 0xffff0000521ec990 fp =3D 0x0000000000000000 >=20 > KDB: enter: panic > [ thread pid 21 tid 100071 ] > Stopped at 0 > db> bt > Tracing pid 21 tid 100071 td 0xfffffd0001078560 > db_trace_self() at db_stack_trace+0xf8 > pc =3D 0xffff000000735c5c lr =3D 0xffff000000103c58 > sp =3D 0xffff0000521ebe10 fp =3D 0xffff0000521ebe40 >=20 > db_stack_trace() at db_command+0x228 > pc =3D 0xffff000000103c58 lr =3D 0xffff0000001038d0 > sp =3D 0xffff0000521ebe50 fp =3D 0xffff0000521ebf30 >=20 > db_command() at db_command_loop+0x58 > pc =3D 0xffff0000001038d0 lr =3D 0xffff000000103678 > sp =3D 0xffff0000521ebf40 fp =3D 0xffff0000521ebf60 >=20 > db_command_loop() at db_trap+0xf4 > pc =3D 0xffff000000103678 lr =3D 0xffff00000010697c > sp =3D 0xffff0000521ebf70 fp =3D 0xffff0000521ec190 >=20 > db_trap() at kdb_trap+0x1d8 > pc =3D 0xffff00000010697c lr =3D 0xffff0000004510d0 > sp =3D 0xffff0000521ec1a0 fp =3D 0xffff0000521ec250 >=20 > kdb_trap() at do_el1h_sync+0xf4 > pc =3D 0xffff0000004510d0 lr =3D 0xffff000000752588 > sp =3D 0xffff0000521ec260 fp =3D 0xffff0000521ec290 >=20 > do_el1h_sync() at handle_el1h_sync+0x78 > pc =3D 0xffff000000752588 lr =3D 0xffff000000738078 > sp =3D 0xffff0000521ec2a0 fp =3D 0xffff0000521ec3b0 >=20 > handle_el1h_sync() at kdb_enter+0x34 > pc =3D 0xffff000000738078 lr =3D 0xffff00000045071c > sp =3D 0xffff0000521ec3c0 fp =3D 0xffff0000521ec450 >=20 > kdb_enter() at vpanic+0x1a8 > pc =3D 0xffff00000045071c lr =3D 0xffff000000408dac > sp =3D 0xffff0000521ec460 fp =3D 0xffff0000521ec510 >=20 > vpanic() at panic+0x44 > pc =3D 0xffff000000408dac lr =3D 0xffff000000408b40 > sp =3D 0xffff0000521ec520 fp =3D 0xffff0000521ec5a0 >=20 > panic() at _vm_page_pqstate_commit_dequeue+0x340 > pc =3D 0xffff000000408b40 lr =3D 0xffff0000006ed840 > sp =3D 0xffff0000521ec5b0 fp =3D 0xffff0000521ec5f0 >=20 > _vm_page_pqstate_commit_dequeue() at = vm_page_pqstate_commit_dequeue+0xb8 > pc =3D 0xffff0000006ed840 lr =3D 0xffff0000006e954c > sp =3D 0xffff0000521ec600 fp =3D 0xffff0000521ec640 >=20 > vm_page_pqstate_commit_dequeue() at vm_page_pqstate_commit+0x50 > pc =3D 0xffff0000006e954c lr =3D 0xffff0000006e93ac > sp =3D 0xffff0000521ec650 fp =3D 0xffff0000521ec670 >=20 > vm_page_pqstate_commit() at vm_pageout_laundry_worker+0x5e4 > pc =3D 0xffff0000006e93ac lr =3D 0xffff0000006f02c0 > sp =3D 0xffff0000521ec680 fp =3D 0xffff0000521ec940 >=20 > vm_pageout_laundry_worker() at fork_exit+0x7c > pc =3D 0xffff0000006f02c0 lr =3D 0xffff0000003c7fdc > sp =3D 0xffff0000521ec950 fp =3D 0xffff0000521ec980 >=20 > fork_exit() at fork_trampoline+0x10 > pc =3D 0xffff0000003c7fdc lr =3D 0xffff00000075230c > sp =3D 0xffff0000521ec990 fp =3D 0x0000000000000000 >=20 > db>=20 >=20 > Thanks for reading, if there's anything to try please let me know. >=20 > bob prohaska >=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 Thu Jan 2 18:53:45 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E86211D6C16 for ; Thu, 2 Jan 2020 18:53:45 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47pcd45h9Kz3HrX for ; Thu, 2 Jan 2020 18:53:44 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wr1-x442.google.com with SMTP id q10so1238935wrm.11 for ; Thu, 02 Jan 2020 10:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=kQGr7VWbP2BNMzsyUTBaT+Pf6tHOAyv3ZHWNZhAjI+k=; b=XA+Png/Lyys1IdtO1Fm+1UmbJzkdR5ooo1YrLZsEMLHRyJEzOgAqpOsrQcLsEtedHb ngkWzyR/bJ6y68pYANwjFo0g6bvkQfuXJjuwedBJvWiyACRGH3vHCCnLmRhPpJNcZ6Bi qV1I5C8HYEPbwDO/4elsOpe5jqbvNo2FZ+ZlZPMDXnP1TgwVyuO4fvCjlU2/XdqpREwl Oyj6oCqMGr3GpZfLTvC2Bcrd1wevdDQSzG4ZHpHJ+ACQjqQ5Pmmpa5qi3u9Njh92MuXa HGVROoDkro5mdPUuzUTKZsLYjj7Z2CKtSOc5CFDNjMGnR3iK7HLXfuNDhYb9VWTTsUEh s06g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=kQGr7VWbP2BNMzsyUTBaT+Pf6tHOAyv3ZHWNZhAjI+k=; b=s7K3va/p1gjnxnHy4JI62vluzKE+9+/4JrBTegEA5U66J+KjqN2/kQ9tZAQvJP0+lT 0xk8G7E5JJgYZPNRq7l2sAkUItiHyTD6DaoaCwCYVpPsDWGn5+wIjOJdEGJ2O/oBinpU M+xF/Nv8K4oegkYjn43w50DgoitME3Fe5aVXgmJkt3bwxo1QhZTJP4QVS/kemztwQsmK VI9fMMtkhTWqmFeeJM81+crE0Os1X/8zy2lkzczB3Fii9fAFp8FQ6Nfr+3e2+NPGMGSZ GzxT9xYezv+RxY9minQrIcJ+uLKVtWX+UjJ8VytR53npbASFj0C57rAgDXfPD1+9jqfC Btvw== X-Gm-Message-State: APjAAAWVp9NZldtODeUvuHIQpDUzRTS8UqNiFXqfuggUQolk3b/HLp9g geSixsJotKmyyVranj6bqxpju/9sMZU= X-Google-Smtp-Source: APXvYqxCTOCBdpFb/iiD60Qxmd+ntzQ5VA/IHFXYZ54gwyj4aTUHDZB29glgVhcEyd1Tbf0jCzVujg== X-Received: by 2002:a5d:4acb:: with SMTP id y11mr85864773wrs.106.1577991222718; Thu, 02 Jan 2020 10:53:42 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id z6sm58982982wrw.36.2020.01.02.10.53.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jan 2020 10:53:41 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Pinebook Pro, any progress as of yet ? Date: Thu, 2 Jan 2020 19:53:40 +0100 In-Reply-To: <20200101152458.2a529345ebd0f40827d1d808@bidouilliste.com> Cc: freebsd-arm To: Emmanuel Vadot References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> <20200101152458.2a529345ebd0f40827d1d808@bidouilliste.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47pcd45h9Kz3HrX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XA+Png/L; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::442 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain,multipart/related]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (2.38), ipnet: 2a00:1450::/32(-2.63), asn: 15169(-1.87), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 18:53:46 -0000 On 1 Jan 2020, at 15.24, Emmanuel Vadot wrote: >>=20 >>> I know have something that can be booted correctly and with usb. >>> U-Boot is the same but I've switched the uart baudrate to 115200 as >>> it's way too noisy at 1.5Mbps for me I found a way to make it work reliably, the wires from the USB<>serial = converter needs to be short (se pic) then it works without issues at = 1.5Mbaud If I use the 1meter long cable from my usual adapter it fails just as = you noticed. > The boot order is fixed and is SPI->eMMC->SD > So if a bootloader exists on the eMMC it will boot from it. > The u-boot installed will try to boot from the sdcard using u-boot > distro boot mechanism but it will not work for us as EFI is broken on > it. (It might work if you use kernel.bin and compile it with > LINUX_BOOT_ABI). I got it to boot by having a fat32 partition with just the kernel and a = /extlinux/extlinux.conf file on it, then it boots just fine. It see the eMMC and the SD-card so it should be able to get to a shell = at least, need to get my build script finished. I=E2=80=99ll check your patches from GitHub and get it integrated so the = ball can start rolling :) Thanks for getting us this far!! -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Sat Jan 4 20:35:59 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00DE71F6FE2; Sat, 4 Jan 2020 20:35:59 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47qtp53ZRgz4blF; Sat, 4 Jan 2020 20:35:56 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp239-208.static.internode.on.net [59.167.239.208]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id 004KZgAM011995 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 5 Jan 2020 07:35:48 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id 004KZZlc033410 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 5 Jan 2020 07:35:35 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id 004KZZev033409; Sun, 5 Jan 2020 07:35:35 +1100 (AEDT) (envelope-from peter) Date: Sun, 5 Jan 2020 07:35:35 +1100 From: Peter Jeremy To: Mark Millard Cc: freebsd-arm , FreeBSD Current Subject: Re: head -r356066 reaching kern.ipc.nmbclusters on Rock64 (CortexA53 with 4GiByte of RAM) while putting files on it via nfs: some evidence Message-ID: <20200104203535.GA32966@server.rulingia.com> References: <65659DD9-335A-40C7-A6DE-B71019BCD6E6.ref@yahoo.com> <65659DD9-335A-40C7-A6DE-B71019BCD6E6@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <65659DD9-335A-40C7-A6DE-B71019BCD6E6@yahoo.com> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 47qtp53ZRgz4blF X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of peter@rulingia.com designates 2001:19f0:5801:ebe:5400:1ff:fe53:30fd as permitted sender) smtp.mailfrom=peter@rulingia.com X-Spamd-Result: default: False [-7.59 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[rulingia.com]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:2001:19f0:5800::/38, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-3.19)[ip: (-9.67), ipnet: 2001:19f0:5800::/38(-4.84), asn: 20473(-1.40), country: US(-0.05)] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jan 2020 20:35:59 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sorry for the delay in responding. On 2019-Dec-27 21:59:49 -0800, Mark Millard via freebsd-arm wrote: >The following sort of sequence leads to the Rock64 not >responding on the console or over ethernet, after notifying >of nmbclusters having been reached. (This limits what >information I have of what things were like at the end.) There's a bug in the dwc(4) driver such that it can leak mbuf clusters. I've been running with the following patch but need to clean it up samewhat before I can commit it: Index: sys/dev/dwc/if_dwc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/dev/dwc/if_dwc.c (revision 356350) +++ sys/dev/dwc/if_dwc.c (working copy) @@ -755,7 +755,6 @@ dwc_rxfinish_locked(struct dwc_softc *sc) { struct ifnet *ifp; - struct mbuf *m0; struct mbuf *m; int error, idx, len; uint32_t rdes0; @@ -762,9 +761,8 @@ =20 ifp =3D sc->ifp; =20 - for (;;) { + for (; ; sc->rx_idx =3D next_rxidx(sc, sc->rx_idx)) { idx =3D sc->rx_idx; - rdes0 =3D sc->rxdesc_ring[idx].tdes0; if ((rdes0 & DDESC_RDES0_OWN) !=3D 0) break; @@ -773,9 +771,9 @@ BUS_DMASYNC_POSTREAD); bus_dmamap_unload(sc->rxbuf_tag, sc->rxbuf_map[idx].map); =20 + m =3D sc->rxbuf_map[idx].mbuf; len =3D (rdes0 >> DDESC_RDES0_FL_SHIFT) & DDESC_RDES0_FL_MASK; if (len !=3D 0) { - m =3D sc->rxbuf_map[idx].mbuf; m->m_pkthdr.rcvif =3D ifp; m->m_pkthdr.len =3D len; m->m_len =3D len; @@ -784,24 +782,33 @@ /* Remove trailing FCS */ m_adj(m, -ETHER_CRC_LEN); =20 + /* Consume the mbuf and mark it as consumed */ + sc->rxbuf_map[idx].mbuf =3D NULL; DWC_UNLOCK(sc); (*ifp->if_input)(ifp, m); DWC_LOCK(sc); + m =3D NULL; } else { /* XXX Zero-length packet ? */ } =20 - if ((m0 =3D dwc_alloc_mbufcl(sc)) !=3D NULL) { - if ((error =3D dwc_setup_rxbuf(sc, idx, m0)) !=3D 0) { - /* - * XXX Now what? - * We've got a hole in the rx ring. - */ + if (m =3D=3D NULL) { + if ((m =3D dwc_alloc_mbufcl(sc)) =3D=3D NULL) { + if_inc_counter(sc->ifp, IFCOUNTER_IQDROPS, 1); + continue; } - } else + } + + if ((error =3D dwc_setup_rxbuf(sc, idx, m)) !=3D 0) { + m_free(m); + device_printf(sc->dev, + "dwc_setup_rxbuf returned %d\n", error); if_inc_counter(sc->ifp, IFCOUNTER_IQDROPS, 1); - - sc->rx_idx =3D next_rxidx(sc, sc->rx_idx); + /* + * XXX Now what? + * We've got a hole in the rx ring. + */ + } } } --=20 Peter Jeremy --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl4Q9xJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzQTpg//WnVv/CeDAL5WlR+xk8ocAbu0G3KymVzUkMjYvCWRJ0Fc3M9c+8yw/IAv j9p5emq1+APq89fB4edxhPH4nqjZEnuxd47/Gla8QMLQ1I9g0eyZwdb7wg6Oa+bp 23JffW2ovdMzMatKVnC9soB1QflXRCfGEmhJV5L/JV3xB/fjNs5soQrXk45gLDnY lSDA24IAjnGz8a1ZialujFPf581A4Nts3DMXNvvsIUr4nrEF73ZWs27kZtodEam6 EdkQnfrpW3bzQjca4ubefi6ONAb3dui/VLV4f9IWUUrKaY1IA2NMxcDWa2t8dEzw c8E88qfycXLpIRbVOWUTEx4WHeyBBf/OdtqoyQzU8TrAbfAU4kxjuTyEBmnaQRF5 NSBkc04iK7R4NbOPcq0GCzhW0lWjLaIwCVBfTAZ2vPPo50QiMeBfU+Y/jLXMxKKu QvfwFaPsbF1H3yUn3u8T/EJRQ1mX1X4yYSGRd+PG1k8SGjaezmAHZ2zEL/HHawu3 CSrU8CdFn60reZqCrLAvw3js8b2M/cmfNy9S4mkuGdnakPgPYuV0h/e/xd+kt/6Q IuIfZ6O6HiZCaCGFYRsLr3+McV2dOFhGdL5fPefzBcmNmXnkjJh+Ee3yLQSLizLF jxijm9qjA3Uo5gdxOkaK2jR9SGztC2XmtF37ly4w69fdPYXG16E= =iJkU -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--