From owner-freebsd-arm@freebsd.org Sun Mar 1 10:05:54 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 4739626C04A for ; Sun, 1 Mar 2020 10:05:54 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh602-vm11.bullet.mail.ssk.yahoo.co.jp (nh602-vm11.bullet.mail.ssk.yahoo.co.jp [182.22.90.36]) by mx1.freebsd.org (Postfix) with SMTP id 48Vf6l4TK7z4G7g for ; Sun, 1 Mar 2020 10:05:50 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.103] by nh602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2020 10:05:48 -0000 Received: from [182.22.91.207] by t601.bullet.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2020 10:05:48 -0000 Received: from [127.0.0.1] by omp610.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2020 10:05:48 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 122903.36992.bm@omp610.mail.ssk.yahoo.co.jp X-YMail-OSG: lwCP6x8VM1mU4CpzoaM.QLz0PZPiNaTeTBP2QC9AyRZLKxSFcA3AWmNXBI8oV5W B5xJmK5VFsgFhOcXIygGJXyOe4rdc32Vd5TQ4RjMlzI9BxOjuSdWf47w_bZpTUu4AWiLXHkV3Q7o zzk3KmglE7NbQuXc6nI9XS6c.VafoYQpE9V_r.5D95m8mL2dJEUWEFLV8YLooDETFQahFU4sSggo QlCLQBvdAtLW5.w9AMoXPcYxrXHrAXX2Gw3TN14coqTAXk.d39ktRJQPQxcqbnE4htJBBgQ8TASz gC.CBjrfTZVowdvz9M3N2J29rOn1zUbEHCJUCf4EncYuwW0jlV0LF4j2FMrmcQpXXb_fEzqMiTPN enytj0ChNNmcmo8ozNzcO6JdowdskOTs3NLm_NtI7PIFDhFdMLxZH20Rm48dNeUdMko8YSoYLbud Z0N7pKHvG2lhqfx_eLqOvIgp_uOS5.s.ioQpZDJ7jA6cgeX_5ULESOQLx1r5kQrzGHtFbKxGUM6H 6xvvEgyYNBLFPODmgugDO9UVucIc2QWGcwTm_DhT2bYCWZ92vnxNZe2NoaZAgufQ.hC5e6WRNqPC NYcxChwXwaq3bfm8HQnzVH7Mxb6gmBW2Ek0P7xrcVx.ErfH.4nIrrEncG6DEQjAlc7DZ5xhFVnHu ZYlcpB3uHqCzZwHX0OL8r4yBh1v54Zl6OunZOMKXoU6y17oOvewP_CZp2Lwijm0UMEJVPvZKRjE6 YLAd3WdP6PvW_Vms.yA-- Received: from jws701007.mail.kks.yahoo.co.jp by sendmailws512.mail.kks.yahoo.co.jp; Sun, 01 Mar 2020 19:05:47 +0000; 1583057147.531 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583057148; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; bh=JzM53SELn2cqQqQ3yv4kni+Fx8nmabEufCvGkDjSu/k=; b=nNIUFsldcAvRCvaM12V7fPoneTW2xX1QPob5v7ajrqZPB/aoFe029mERMKXz+lrt NhAae2a/4wFgq6rXzsUmccOPc9pAWXXn3hA0C6N9H9xeOLCDvnSsijdDsLUg013XsC9 jSI+1xniYy/NNh/fUTOe54g3V2DqkQ3PNAPYNLY8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References; b=ANQveIf1pJkA/jj686aMNeEYTGpLhMs6oaR+T6QbVGqsqaNp1D+HOIvouJw3VcgX FS/3AA4M67Bvwn6P9U73QlP6ACZf57HCEipSzOJQr1F5msulc4+D5cmhyzf2lnKTmc6 oxq0SkkKnPdVsyvHZlCK46TGCJ7xA3+isOtAieO0=; Date: Sun, 1 Mar 2020 19:05:47 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" Message-ID: <1989879823.835082.1583057147228.JavaMail.yahoo@mail.yahoo.co.jp> Subject: A10 HDMI support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <1989879823.835082.1583057147228.JavaMail.yahoo.ref@mail.yahoo.co.jp> X-Rspamd-Queue-Id: 48Vf6l4TK7z4G7g X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=nNIUFsld; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.36 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-0.89 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(0.00)[ip: (5.14), ipnet: 182.22.0.0/17(2.36), asn: 23816(1.88), country: JP(0.04)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.987,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.99)[0.995,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[36.90.22.182.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_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: Sun, 01 Mar 2020 10:05:54 -0000 Hi I have A10 PCduino.=C2=A0 I try to use a10_hdmi.c and a10_fb.c This code may be work at first implementation at 2016.=C2=A0 But change to dts away modify and chkng change complete broken this code. I modify dts and code on 12-Stable then almost detect. But not work. http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5402 Dose some body repair this code? Thanks Hiroki Mori From owner-freebsd-arm@freebsd.org Sun Mar 1 19:25:21 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 24D3724A4F4 for ; Sun, 1 Mar 2020 19:25:21 +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 48VtXB4Q9Hz40s1 for ; Sun, 1 Mar 2020 19:25:14 +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 021JPJe5001178 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 1 Mar 2020 11:25:20 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 021JPJs3001177; Sun, 1 Mar 2020 11:25:19 -0800 (PST) (envelope-from fbsd) Date: Sun, 1 Mar 2020 11:25:18 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: RPI3, usbconfig: could not open device: No error: 0 Message-ID: <20200301192518.GA1031@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: 48VtXB4Q9Hz40s1 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.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.37)[-0.370,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.25), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.83)[-0.834,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: Sun, 01 Mar 2020 19:25:21 -0000 While trying to unstick a pl2303 usb-serial adapter that wasn't showing up on a Pi3 I tried root@www:/home/bob # usbconfig reset usbconfig: could not open device: No error: 0 That seemed odd, so I tried: root@www:/home/bob # uname -a FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT r349799 GENERIC arm64 root@www:/home/bob # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) which looks quite normal. IIRC this is the first time I've tried the "usbconfig reset" command, so I've no baseline for what to expect. The machine has been reverted to r349799 for sanity checking, if the behavior is correct or fixed please accept apologies for the noise. If it's wrong is it worth a bug report? Thanks for reading, bob prohaska From owner-freebsd-arm@freebsd.org Mon Mar 2 08:01:02 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 64F4025D98A for ; Mon, 2 Mar 2020 08:01:02 +0000 (UTC) (envelope-from nikolay.kostirya@i11.co) Received: from mx.i11.co (mx.i11.co [159.69.78.69]) (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 48WCJF26tXz4VQK; Mon, 2 Mar 2020 08:01:00 +0000 (UTC) (envelope-from nikolay.kostirya@i11.co) Received: from [82.207.42.188] (helo=localhost) by mx.i11.co with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j8g0S-0003VU-N2; Mon, 02 Mar 2020 08:00:52 +0000 Date: Mon, 2 Mar 2020 10:00:48 +0200 From: Nick Kostirya To: Konstantin Belousov Cc: freebsd-arm@freebsd.org Subject: Re: sizeof(struct kevent) on ARM 32-bit Message-ID: <20200302100048.6ed126e6@i11.co> In-Reply-To: <20200228105330.GN29554@kib.kiev.ua> References: <20200228114800.60a39b65@i11.co> <20200228105330.GN29554@kib.kiev.ua> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WCJF26tXz4VQK X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[i11.co:s=omicron]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:159.69.78.69]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DKIM_TRACE(0.00)[i11.co:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[i11.co,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.19)[ip: (-9.65), ipnet: 159.69.0.0/16(0.29), asn: 24940(-1.55), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; 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, 02 Mar 2020 08:01:02 -0000 On Fri, 28 Feb 2020 12:53:30 +0200 Konstantin Belousov wrote: > Because time_t is 64bit on arm, but still 32bit on i386. Thanks! From owner-freebsd-arm@freebsd.org Mon Mar 2 08:01: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 CE3A625D9A4 for ; Mon, 2 Mar 2020 08:01:22 +0000 (UTC) (envelope-from nikolay.kostirya@i11.co) Received: from mx.i11.co (mx.i11.co [159.69.78.69]) (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 48WCJd0NHsz4Vfk for ; Mon, 2 Mar 2020 08:01:20 +0000 (UTC) (envelope-from nikolay.kostirya@i11.co) Received: from [82.207.42.188] (helo=localhost) by mx.i11.co with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j8g0t-0003Vn-6K; Mon, 02 Mar 2020 08:01:19 +0000 Date: Mon, 2 Mar 2020 10:01:17 +0200 From: Nick Kostirya To: Michal Meloun Cc: freebsd-arm@freebsd.org Subject: Re: sizeof(struct kevent) on ARM 32-bit Message-ID: <20200302100117.39639307@i11.co> In-Reply-To: References: <20200228114800.60a39b65@i11.co> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WCJd0NHsz4Vfk X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.20 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[i11.co:s=omicron]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:159.69.78.69:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[i11.co:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[i11.co,reject]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.20)[ip: (-9.67), ipnet: 159.69.0.0/16(0.26), asn: 24940(-1.55), country: DE(-0.02)]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; 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, 02 Mar 2020 08:01:23 -0000 On Fri, 28 Feb 2020 14:39:35 +0100 Michal Meloun wrote: > time_t is 8 bytes on arm32 but 4 bytes on i386. Thanks! From owner-freebsd-arm@freebsd.org Mon Mar 2 08:36:01 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 48E8725EB5D for ; Mon, 2 Mar 2020 08:36:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 48WD4b6nj7z42VX for ; Mon, 2 Mar 2020 08:35:59 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5C70726029D; Mon, 2 Mar 2020 09:35:55 +0100 (CET) Subject: Re: RPI3, usbconfig: could not open device: No error: 0 To: bob prohaska , freebsd-arm@freebsd.org References: <20200301192518.GA1031@www.zefox.net> From: Hans Petter Selasky Message-ID: Date: Mon, 2 Mar 2020 09:35:48 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200301192518.GA1031@www.zefox.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WD4b6nj7z42VX X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-4.97 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.67)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.54), asn: 24940(-1.55), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; 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, 02 Mar 2020 08:36:01 -0000 On 2020-03-01 20:25, bob prohaska wrote: > While trying to unstick a pl2303 usb-serial adapter that wasn't > showing up on a Pi3 I tried > > root@www:/home/bob # usbconfig reset > usbconfig: could not open device: No error: 0 > > That seemed odd, so I tried: > root@www:/home/bob # uname -a > FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT r349799 GENERIC arm64 > root@www:/home/bob # usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) > ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA) > ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) > ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) > ugen0.5: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) > > which looks quite normal. > > IIRC this is the first time I've tried the "usbconfig reset" command, > so I've no baseline for what to expect. > > The machine has been reverted to r349799 for sanity > checking, if the behavior is correct or fixed please > accept apologies for the noise. If it's wrong is it > worth a bug report? > If you don't specify a device, all devices will be reset. This simply won't work! --HPS From owner-freebsd-arm@freebsd.org Mon Mar 2 16:37:15 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 D1349253385 for ; Mon, 2 Mar 2020 16:37:15 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (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 48WQlv02L7z4DHc for ; Mon, 2 Mar 2020 16:37:14 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1583167033; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=i9K+ueePZdHNaCkA+en0Nm0V2868fPe4Acqz1OrcsVw9FdbhnNdmCig92VumiMgpFuq+ukEedAe0J j6lCgKa5ftMz3WKbCw0IVJQIZsa2mdZcbwnah70bxdCD1fnFDCEG19P0ygCCrb2i9NerFU+jAD3XxY 1RRRDo7f8ayhJYae3sPyfEmT7HnxdwDPZtkRVAly9TO/7RiqE6WIs5sVO4j3qUW84cGbPpst4AzGOI rl+Lrl2DS7/CxztODTDhmDs0iogzqC6X2sPTewRNFbzx72WMowDK2deHDbezFjwQ+fygjoB8IwyaWK DG3HleCHBCQlDBJr+93eqKHqZhRKmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=nZlPyQuza5/h/HUOa7BjtZhwuiphcei2+LIPdGtIBZU=; b=AvVPgZaGpCNUvMFt+ng3TOCUtHunD1G53R47A+2NvBDCW/iWUxLmI1HAm57opMLC1t9elEIFvwh40 TAJJDnnb9s0tzBUBs70jSX5AEN5KtRvJn2HAgslgoK3pfCP0uAOXsLLsoqVuLQJ5eyTwuB2tmPnhKf wnbb9Fas2EBe8iHJs//B/NLB497nEhJNlR5TIVxb+po6IltugduJZuKCTVbPrTLjwg/8CYDBsysBfb CmP8UBTTDcd5yHQ0ASz/Os4bu6DQ0H+mI5EuPmWy6YQiClGHpD4V922is5tK225Ng9XJyXvgBmdTCc 833Ifwb4z0zQgxRL1GF+dIeiE8zD/SQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=nZlPyQuza5/h/HUOa7BjtZhwuiphcei2+LIPdGtIBZU=; b=L5FooMRsa4HnTH6HzFHhNIiETXszsP1an1XS6R9wylK1EZRcPGjJ57ej0XDUMnvp0qyu9aBpb+Mt6 Eusl7VIjacGftR2dObAxxvtAeE8+f+bisok14nNJm6N6gGxNT9OZ9FzWsKB5nWqF4PzBlGBh8mkeW7 aHtWb/9X5VXeooFu/2RfCbzjfCG2F0peXKhiF1YwcNch48UepoCcc2WE7u0JHsoEYTeG6eByotxFFe Iy1LmK9k9Blc9bp/Q82Tkg8kB0022tNa4VPrJUKweDXWTO77ZFZUdJj/oAMS6gcdS3Fs2Xo5jx7K8m RINPGLbvXIdg06hX4nithlmX3+Q7J2w== X-MHO-RoutePath: aGlwcGll X-MHO-User: 0fb7ac5f-5ca4-11ea-b80e-052b4a66b6b2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 0fb7ac5f-5ca4-11ea-b80e-052b4a66b6b2; Mon, 02 Mar 2020 16:37:12 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 022Gb8Mx012449; Mon, 2 Mar 2020 09:37:09 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: RPI3, usbconfig: could not open device: No error: 0 From: Ian Lepore To: Hans Petter Selasky , bob prohaska , freebsd-arm@freebsd.org Date: Mon, 02 Mar 2020 09:37:08 -0700 In-Reply-To: References: <20200301192518.GA1031@www.zefox.net> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48WQlv02L7z4DHc X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.72 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.72)[-0.724,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,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: Mon, 02 Mar 2020 16:37:16 -0000 On Mon, 2020-03-02 at 09:35 +0100, Hans Petter Selasky wrote: > On 2020-03-01 20:25, bob prohaska wrote: > > While trying to unstick a pl2303 usb-serial adapter that wasn't > > showing up on a Pi3 I tried > > > > root@www:/home/bob # usbconfig reset > > usbconfig: could not open device: No error: 0 > > > > That seemed odd, so I tried: > > root@www:/home/bob # uname -a > > FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT r349799 > > GENERIC arm64 > > root@www:/home/bob # usbconfig > > ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=SAVE (0mA) > > ugen0.2: at usbus0, cfg=0 md=HOST > > spd=HIGH (480Mbps) pwr=SAVE (2mA) > > ugen0.3: at usbus0, cfg=0 md=HOST > > spd=HIGH (480Mbps) pwr=ON (2mA) > > ugen0.4: at usbus0, cfg=0 md=HOST > > spd=LOW (1.5Mbps) pwr=ON (100mA) > > ugen0.5: at usbus0, cfg=0 md=HOST > > spd=LOW (1.5Mbps) pwr=ON (100mA) > > > > which looks quite normal. > > > > IIRC this is the first time I've tried the "usbconfig reset" > > command, > > so I've no baseline for what to expect. > > > > The machine has been reverted to r349799 for sanity > > checking, if the behavior is correct or fixed please > > accept apologies for the noise. If it's wrong is it > > worth a bug report? > > > > If you don't specify a device, all devices will be reset. This > simply won't work! > > What do you mean, it won't work? Doesn't your first sentence describe how it's supposed to work (and how it has always worked for me)? When I do 'usbconfig reset' I see all devices detach, starting with the root hub and propogating outwards. Once everything is detached it all attaches again. Then the last thing it says is: usbconfig: could not open device: No error: 0 That last line is fairly recent, it didn't used to do that. -- Ian From owner-freebsd-arm@freebsd.org Mon Mar 2 16:41:08 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 1176225346E for ; Mon, 2 Mar 2020 16:41:08 +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 48WQrL0nTrz4Nrm for ; Mon, 2 Mar 2020 16:41:05 +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 022GfM4N004328 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 2 Mar 2020 08:41:23 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 022GfLFq004327; Mon, 2 Mar 2020 08:41:21 -0800 (PST) (envelope-from fbsd) Date: Mon, 2 Mar 2020 08:41:21 -0800 From: bob prohaska To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: RPI3, usbconfig: could not open device: No error: 0 Message-ID: <20200302164121.GA2585@www.zefox.net> References: <20200301192518.GA1031@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 48WQrL0nTrz4Nrm 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.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.935,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.25), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.72)[-0.719,0]; TO_MATCH_ENVRCPT_SOME(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: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: Mon, 02 Mar 2020 16:41:08 -0000 On Mon, Mar 02, 2020 at 09:35:48AM +0100, Hans Petter Selasky wrote: > On 2020-03-01 20:25, bob prohaska wrote: > > While trying to unstick a pl2303 usb-serial adapter that wasn't > > showing up on a Pi3 I tried > > > > root@www:/home/bob # usbconfig reset > > usbconfig: could not open device: No error: 0 > > > > That seemed odd, so I tried: > > If you don't specify a device, all devices will be reset. This simply > won't work! > Would it be effective to use kldunload uplcom kldload uplcom to "wake up" the pl2303? At this point unplugging and replugging the USB connector has no effect, but a warm reboot has so far worked. Thanks for replying! bob prohaska From owner-freebsd-arm@freebsd.org Mon Mar 2 22:56:17 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 4A8AB25D146 for ; Mon, 2 Mar 2020 22:56:17 +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 48Wb9C4cTkz45Q5 for ; Mon, 2 Mar 2020 22:56:15 +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 022MvdNP038456 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 2 Mar 2020 23:57:39 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583189860; bh=PEitGqCRvw3MBUR50BR1jZtdQCm2Zfan+cGjHgTI7rU=; h=Date:From:To:Cc:Subject:Reply-To; b=jlt00pinDwbqoMiYRKqIT/ZEVHdBkhn0uj55Mtfou9lk6arfu4b/PuRB9QjbIf82U h2UvDEzkG8iLa3656flhZy4hEh/8OiVf0ig+TV4g+hdQZEJtoXwGTWSWXeGd/gVOAl 5cY3DXg+lPjV8m9NP7XyrbLj7DcYPBD4AeLgCFq4= 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 022Mu77c064481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Mar 2020 23:56:07 +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 022Mu6ZO029381; Mon, 2 Mar 2020 23:56:06 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 022Mu6TK029380; Mon, 2 Mar 2020 23:56:06 +0100 (CET) (envelope-from ticso) Date: Mon, 2 Mar 2020 23:56:06 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: RockPro64 with u-boot 2010.01 Message-ID: <20200302225606.GN52462@cicely7.cicely.de> Reply-To: ticso@cicely.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 48Wb9C4cTkz45Q5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=jlt00pin; 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.68 / 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.87)[-0.874,0]; 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]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cicely.de:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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, 02 Mar 2020 22:56:17 -0000 I'm trying to use the newer u-boot version, but failed. Reason is that my 4G board only probes to 2G RAM with 2019.10. According to that link it was during the 2010.01 release candidates: http://u-boot.10912.n7.nabble.com/rockchip-rk3399-TPL-rockpro64-Wrong-memory-size-detected-td382441.html I naively tried the following: Index: u-boot-master/distinfo =================================================================== --- u-boot-master/distinfo (revision 527638) +++ u-boot-master/distinfo (working copy) @@ -1,6 +1,8 @@ TIMESTAMP = 1573202420 SHA256 (u-boot/u-boot-2019.10.tar.bz2) = 8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014 SIZE (u-boot/u-boot-2019.10.tar.bz2) = 14214608 +SHA256 (u-boot/u-boot-2020.01.tar.bz2) = aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 +SIZE (u-boot/u-boot-2020.01.tar.bz2) = 14716125 SHA256 (u-boot/939129/raw) = 2a4ebf283aec8e74ec77b3cb071c6883f73807454ca94fea78361c7391187b97 SIZE (u-boot/939129/raw) = 310 SHA256 (u-boot/1036621/raw) = 28dbd66d14fab9dc782ce091d3c132a226b8425f6503c329ee8a7031b79b52f7 Index: u-boot-rockpro64/Makefile =================================================================== --- u-boot-rockpro64/Makefile (revision 527638) +++ u-boot-rockpro64/Makefile (working copy) @@ -2,6 +2,7 @@ MASTERDIR= ${.CURDIR}/../u-boot-master +UBOOT_VERSION?= 2020.01 MODEL= rockpro64 BOARD_CONFIG= rockpro64-rk3399_defconfig FAMILY= rk3399 It build, but fails to boot: U-Boot TPL 2020.01 (Mar 02 2020 - 23:33:30) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB 256B stride 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2020.01 (Mar 02 2020 - 23:33:30 +0100) Trying to boot from MMC1 That's it - no further output. Are there any other known traps when using a new u-boot version, or does it have to be debugged the hard way? I've left the first 10MB space untouched by partitions, since the u-boot get's written starting at 8MB offset. Geom name: da0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 62333951 first: 63 entries: 4 scheme: MBR Providers: 1. Name: da0s1 Mediasize: 52428800 (50M) Sectorsize: 512 Stripesize: 0 Stripeoffset: 10485760 Mode: r0w0e0 efimedia: HD(1,MBR,00000000,0x5000,0x19000) attrib: active rawtype: 12 length: 52428800 offset: 10485760 type: fat32lba index: 1 end: 122879 start: 20480 2. Name: da0s2 Mediasize: 31851544576 (30G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 62914560 Mode: r0w0e0 efimedia: HD(2,MBR,00000000,0x1e000,0x3b54000) rawtype: 165 length: 31851544576 offset: 62914560 type: freebsd index: 2 end: 62332927 start: 122880 Consumers: 1. Name: da0 Mediasize: 31914983424 (30G) Sectorsize: 512 Mode: r0w0e0 -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Tue Mar 3 01: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 9EA84261A51 for ; Tue, 3 Mar 2020 01:12:25 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 48WfBJ26Znz41lR for ; Tue, 3 Mar 2020 01:12:23 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x441.google.com with SMTP id z15so2282968wrl.1 for ; Mon, 02 Mar 2020 17:12:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=Rj18DT75gByKgIcdpDtGk0ezOo+ANPdjmBbiAAciT4o=; b=Kc0ukl9pnaE4VK47Tsvt/9FYhzgXHHQy0RlqceYXdNO9y6EOWEkXvCmyIAat9nLt/D yKR7Rowwl73xqGfCRtvp7Qv5V5ZRU6EzPtqI2gIBjea/X0LzbtMnPsvz72AmPnimyNno tsh866ZOcM/fUga4nc2H2v33YpbURMSGCn1lrdeDY1igOzoVjpIzVOjIzx6qEJkw0gyT Edj2DABn+BF8kbavDEHD1Lj2MWxOOTHW7yitv636PTDELwx3oAW6x72tw3JEfBaoPYwp 7HOsryNkcIagZzEGHGAVQc/f3LfK8qMBhW37GmH9ctn/iRHjY3zBepxBOiSgicEpclD6 r7wA== X-Gm-Message-State: ANhLgQ3sKhqbjM7eg1A8w7Z0eoJrcIOYIvQO9fG1VkBmCRrJvP3qBmsw /2Nii/ujYryegRbXkzXtTzE= X-Google-Smtp-Source: ADFU+vt+fkyzWQ62JVKzA5sy1EVlZ2G3EdJ07KYMXm3lCb1Kh4ypA9F3UCwsLg6/3ofMr5tnP7a0Ww== X-Received: by 2002:a5d:4a91:: with SMTP id o17mr2313747wrq.334.1583197941796; Mon, 02 Mar 2020 17:12:21 -0800 (PST) Received: from [192.168.1.167] ([46.114.106.67]) by smtp.googlemail.com with ESMTPSA id l3sm30109020wrq.62.2020.03.02.17.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2020 17:12:21 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 02:12:19 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> To: ticso@cicely.de, freebsd-arm@freebsd.org In-Reply-To: <20200302225606.GN52462@cicely7.cicely.de> Message-Id: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48WfBJ26Znz41lR X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_DN_NONE(0.00)[]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.60), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; 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)[1.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]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=us-ascii 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, 03 Mar 2020 01:12:25 -0000 Hi Bernd, exclusively made only for you ;-) : https://wiki.freebsd.org/arm64/ROCKPro64 = Best Regards Klaus=20 > Am 02.03.2020 um 23:56 schrieb Bernd Walter : >=20 > I'm trying to use the newer u-boot version, but failed. > Reason is that my 4G board only probes to 2G RAM with 2019.10. > According to that link it was during the 2010.01 release candidates: > = http://u-boot.10912.n7.nabble.com/rockchip-rk3399-TPL-rockpro64-Wrong-memo= ry-size-detected-td382441.html >=20 > I naively tried the following: > Index: u-boot-master/distinfo > =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 > --- u-boot-master/distinfo (revision 527638) > +++ u-boot-master/distinfo (working copy) > @@ -1,6 +1,8 @@ > TIMESTAMP =3D 1573202420 > SHA256 (u-boot/u-boot-2019.10.tar.bz2) =3D = 8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014 > SIZE (u-boot/u-boot-2019.10.tar.bz2) =3D 14214608 > +SHA256 (u-boot/u-boot-2020.01.tar.bz2) =3D = aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 > +SIZE (u-boot/u-boot-2020.01.tar.bz2) =3D 14716125 > SHA256 (u-boot/939129/raw) =3D = 2a4ebf283aec8e74ec77b3cb071c6883f73807454ca94fea78361c7391187b97 > SIZE (u-boot/939129/raw) =3D 310 > SHA256 (u-boot/1036621/raw) =3D = 28dbd66d14fab9dc782ce091d3c132a226b8425f6503c329ee8a7031b79b52f7 > Index: u-boot-rockpro64/Makefile > =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 > --- u-boot-rockpro64/Makefile (revision 527638) > +++ u-boot-rockpro64/Makefile (working copy) > @@ -2,6 +2,7 @@ >=20 > MASTERDIR=3D ${.CURDIR}/../u-boot-master >=20 > +UBOOT_VERSION?=3D 2020.01 > MODEL=3D rockpro64 > BOARD_CONFIG=3D rockpro64-rk3399_defconfig > FAMILY=3D rk3399 >=20 > It build, but fails to boot: > U-Boot TPL 2020.01 (Mar 02 2020 - 23:33:30) > Channel 0: LPDDR4, 50MHz > BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 Size=3D2048MB= > Channel 1: LPDDR4, 50MHz > BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 Size=3D2048MB= > 256B stride > 256B stride > lpddr4_set_rate: change freq to 400000000 mhz 0, 1 > lpddr4_set_rate: change freq to 800000000 mhz 1, 0 > Trying to boot from BOOTROM > Returning to boot ROM... >=20 > U-Boot SPL 2020.01 (Mar 02 2020 - 23:33:30 +0100) > Trying to boot from MMC1 >=20 >=20 > That's it - no further output. > Are there any other known traps when using a new u-boot version, > or does it have to be debugged the hard way? >=20 > I've left the first 10MB space untouched by partitions, since the = u-boot > get's written starting at 8MB offset. > Geom name: da0 > modified: false > state: OK > fwheads: 255 > fwsectors: 63 > last: 62333951 > first: 63 > entries: 4 > scheme: MBR > Providers: > 1. Name: da0s1 > Mediasize: 52428800 (50M) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 10485760 > Mode: r0w0e0 > efimedia: HD(1,MBR,00000000,0x5000,0x19000) > attrib: active > rawtype: 12 > length: 52428800 > offset: 10485760 > type: fat32lba > index: 1 > end: 122879 > start: 20480 > 2. Name: da0s2 > Mediasize: 31851544576 (30G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 62914560 > Mode: r0w0e0 > efimedia: HD(2,MBR,00000000,0x1e000,0x3b54000) > rawtype: 165 > length: 31851544576 > offset: 62914560 > type: freebsd > index: 2 > end: 62332927 > start: 122880 > Consumers: > 1. Name: da0 > Mediasize: 31914983424 (30G) > Sectorsize: 512 > Mode: r0w0e0 >=20 > --=20 > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > 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 Tue Mar 3 10:29:07 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 6EB5926AFB1 for ; Tue, 3 Mar 2020 10:29:07 +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 48WtXd2L0Rz403h for ; Tue, 3 Mar 2020 10:29:04 +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 023AUSSE090970 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Mar 2020 11:30:29 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583231429; bh=94QlR3wxaPfFbMttmpgL7Y98mNUJsC7wq/JYsMnffUk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=u4vLh3dvA3ir+sqILj09+cKHMC2IyN8GAt1Pymj05ugPiDnt2n50E8CqguZErzV+y VA2ld1U2fSWOE6D5YuPePzG/1UTMqRi5/ROhi7tntIOEXUx2yhCkcvk6Sr1WXYtFED yWFCnZbj3Yk4n29PHp29eZSEKL1Wy76L9rHe1aiU= 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 023ASvs2096600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Mar 2020 11:28:57 +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 023ASuvt034424; Tue, 3 Mar 2020 11:28:56 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 023ASu8D034423; Tue, 3 Mar 2020 11:28:56 +0100 (CET) (envelope-from ticso) Date: Tue, 3 Mar 2020 11:28:56 +0100 From: Bernd Walter To: Klaus =?iso-8859-1?Q?K=FCchemann?= Cc: ticso@cicely.de, freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-ID: <20200303102856.GP52462@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20200302225606.GN52462@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 48WtXd2L0Rz403h X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=u4vLh3dv; 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.72 / 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.91)[-0.912,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,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]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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, 03 Mar 2020 10:29:07 -0000 On Tue, Mar 03, 2020 at 02:12:19AM +0100, Klaus Küchemann wrote: > Hi Bernd, > > exclusively made only for you ;-) : > > https://wiki.freebsd.org/arm64/ROCKPro64 Perfect - it works :-) Thank you very much. What have you done differently than me? Beside that I noticed you've changed to console speed to more sane 115200bps. Well - I now have a new problem, which I've only noticed because I had the USB reader left plugged in since yesterday. It worked with the previous u-boot (and 2G RAM). FreeBSD/arm64 (generic) (ttyu1) login: ugen4.2: at usbus4 umass0 on uhub3 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:0:0: Attached to scbus0 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (probe0:umass-sim0:0:0:0): Error 22, Unretryable error Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex CAM device lock (CAM device lock) r = 0 (0xfffffd0015619cd0) locked @ /usr/src/sys/cam/cam_xpt.c:5477 stack backtrace: #0 0xffff000000476d7c at witness_debugger+0x64 #1 0xffff000000477dc4 at witness_warn+0x400 #2 0xffff000000770aa8 at data_abort+0xec #3 0xffff00000076fee8 at do_el1h_sync+0x144 #4 0xffff000000754078 at handle_el1h_sync+0x78 #5 0xffff0000003e5ef0 at free+0x64 #6 0xffff00000002d95c at probedone+0xabc #7 0xffff00000001c47c at xpt_done_process+0x364 #8 0xffff00000001e120 at xpt_done_td+0xd8 #9 0xffff0000003cba58 at fork_exit+0x7c x0: 0 x1: 0 x2: 21 x3: 39d x4: fffffd00ecd8e200 x5: 44 x6: 11c x7: ffff0000403670b0 x8: 1 x9: ffff0000404b9100 x10: 21 x11: 0 x12: ffff000000d44a18 x13: ffff000000d44998 x14: 1 x15: 0 x16: 1 x17: 0 x18: ffff0000403676a0 x19: ffff0000009aae48 x20: fffffd00e947e9f8 x21: fffffd00e947e000 x22: 280 x23: fffffd00e947e9f8 x24: ffff0000403678f0 x25: fffffd000370b100 x26: fffffd0060045810 x27: fffffd0003514500 x28: fffffd0060045800 x29: ffff0000403676c0 sp: ffff0000403676a0 lr: ffff0000003e5ef4 elr: ffff0000003e5ef4 spsr: 20000145 far: 0 esr: 96000005 panic: data abort in critical section or under mutex cpuid = 2 time = 1583230709 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc = 0xffff000000751a5c lr = 0xffff000000106be8 sp = 0xffff000040367090 fp = 0xffff0000403672a0 db_trace_self_wrapper() at vpanic+0x194 pc = 0xffff000000106be8 lr = 0xffff00000040e378 sp = 0xffff0000403672b0 fp = 0xffff000040367360 vpanic() at panic+0x44 pc = 0xffff00000040e378 lr = 0xffff00000040e120 sp = 0xffff000040367370 fp = 0xffff0000403673f0 panic() at data_abort+0x250 pc = 0xffff00000040e120 lr = 0xffff000000770c0c sp = 0xffff000040367400 fp = 0xffff0000403674b0 data_abort() at do_el1h_sync+0x144 pc = 0xffff000000770c0c lr = 0xffff00000076fee8 sp = 0xffff0000403674c0 fp = 0xffff0000403674f0 do_el1h_sync() at handle_el1h_sync+0x78 pc = 0xffff00000076fee8 lr = 0xffff000000754078 sp = 0xffff000040367500 fp = 0xffff000040367610 handle_el1h_sync() at free+0x64 pc = 0xffff000000754078 lr = 0xffff0000003e5ef0 sp = 0xffff000040367620 fp = 0xffff0000403676c0 free() at probedone+0xabc pc = 0xffff0000003e5ef0 lr = 0xffff00000002d95c sp = 0xffff0000403676d0 fp = 0xffff0000403678b0 probedone() at xpt_done_process+0x364 pc = 0xffff00000002d95c lr = 0xffff00000001c47c sp = 0xffff0000403678c0 fp = 0xffff0000403678e0 xpt_done_process() at xpt_done_td+0xd8 pc = 0xffff00000001c47c lr = 0xffff00000001e120 sp = 0xffff0000403678f0 fp = 0xffff000040367940 xpt_done_td() at fork_exit+0x7c pc = 0xffff00000001e120 lr = 0xffff0000003cba58 sp = 0xffff000040367950 fp = 0xffff000040367980 fork_exit() at fork_trampoline+0x10 pc = 0xffff0000003cba58 lr = 0xffff00000076fc1c sp = 0xffff000040367990 fp = 0x0000000000000000 KDB: enter: panic [ thread pid 9 tid 100042 ] Stopped at free+0x68: ldr x2, [x0] db> -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Tue Mar 3 10:46:48 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 AB8B426B96F for ; Tue, 3 Mar 2020 10:46:48 +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 48Wtx24D58z4V9X for ; Tue, 3 Mar 2020 10:46:46 +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 023AkVnG065175 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 3 Mar 2020 21:46:37 +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 023AkPU9058289 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 3 Mar 2020 21:46:25 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id 023AkPrV058288 for freebsd-arm@freebsd.org; Tue, 3 Mar 2020 21:46:25 +1100 (AEDT) (envelope-from peter) Date: Tue, 3 Mar 2020 21:46:25 +1100 From: Peter Jeremy To: freebsd-arm@freebsd.org Subject: xorg 1.20.7 on Raspberry Pi Message-ID: <20200303104625.GA57803@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 48Wtx24D58z4V9X 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.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[rulingia.com]; SIGNED_PGP(-2.00)[]; 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.10)[ip: (-9.49), ipnet: 2001:19f0:5800::/38(-4.10), asn: 20473(-1.84), 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: Tue, 03 Mar 2020 10:46:48 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I recently updated xorg on my RPi model 2 from 1.18.4 to 1.20.7 and discovered it no longer works because 24bpp is no longer supported: [ 7740.090] (II) scfb(0): Using: depth (24), width (1920), height (10= 80) [ 7740.090] (EE) scfb(0): Specified fbbpp (24) is not a permitted value I've done some searching online and the "solution" is to remove "framebuffer_depth=3D24" from the boot config.txt (the default is 16bpp). Unfortunately, I don't have that line and even explicitly setting "framebuffer_depth=3D16" doesn't change the actual depth. I've tried several different versions of firmware - none of which helped (and generally broke other things). I'm currently running the firmware embedded in the FreeBSD 12.1-RELEASE ISO image. Does anyone have any suggestions? --=20 Peter Jeremy --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl5eNXNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzR/ShAAgPFUYvU2FSBZUdRXL9mJkWD9ZcjpCb58cAz2XK3hQjM/qjrdgaDz/j0B K2kXsNDv0ToDuS/qmh4ISxSIFNZKJVH2/MIxsb+bITaufMnDmvMgP2mHLwfDyxWV DpogXgMqcXCIIOTJw9kLh0LWDjea1nZOXezwk+UijpCOByWaUtA6fkkBQ4IL1sOt uWpf5hyaOJ537KOOuCsd5GxqsMzNsuciq1SCqyZ7DYYYLy/w13q778bjqouxETfX bnGfdGChMVn0WRToi4KpM1O9TeUFuf/j34i2Kp3DXpZ4NzH4uyLbTykH81/7PWms xyYNXjq2keIBBfirFDgRfk90t3z4Ge/NMospiXRpXFW+Uac5ULP83vmR0EIYtsi/ ZCWemzZ32evk2oeRaGy+sig2YpD+wHvD440089IGMrFH1HiFEWPPZGvmAP3Ec1Gu yU7Oli3+SscE+ScP5O1cR3s4sIbZToPOi1lfnoYhkera3NDe/D+dk7RxMBFIz2Kt yVeUAayAifxOOUPSNEWm91mVMppPJk4VhiWUkkyqQYCUyrDoF+O9FzRkrihagHwn fdbZRTrucI3xubvZhVjoF1XouZZDyzVeYCA1nv7X3czwiJo9DGP11PCavs67p0q1 J0YU4hiX/KhRR+kUhQwEWrq978VWDwqamBV71QlzjxvxM3gg0Iw= =7rxN -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-freebsd-arm@freebsd.org Tue Mar 3 13:19:44 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 0C9D626F6FC for ; Tue, 3 Mar 2020 13:19:44 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48WyKT6Sv5z4K7j for ; Tue, 3 Mar 2020 13:19:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583241573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4LfOAQpzXNtHSZ7gJGsMnNdbwlKCRTySOC3LMI0JlAo=; b=JMUCQ3n20YQVh4tWf5kVCkh+k9qVqDHx8g8XbdSmZaQhwWig/PYD1JWL+hlztIT0asPmva hAE4O7y/K2eG3Hu5K+ONVUvEL/R4I6/UO73xP0scBN5A2bEdor0MAfX+Xj3QXDfyC/D18Z H6o+UWebEOwU+e8YWBK0bExhrR2Qh5A= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 6fb432d0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Mar 2020 13:19:33 +0000 (UTC) Date: Tue, 3 Mar 2020 14:19:31 +0100 From: Emmanuel Vadot To: ticso@cicely.de Cc: Bernd Walter , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> In-Reply-To: <20200302225606.GN52462@cicely7.cicely.de> References: <20200302225606.GN52462@cicely7.cicely.de> 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: 48WyKT6Sv5z4K7j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=JMUCQ3n2; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; 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]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.24)[ip: (-8.46), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.30), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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: Tue, 03 Mar 2020 13:19:44 -0000 Hi Bernd, On Mon, 2 Mar 2020 23:56:06 +0100 Bernd Walter wrote: > I'm trying to use the newer u-boot version, but failed. > Reason is that my 4G board only probes to 2G RAM with 2019.10. > According to that link it was during the 2010.01 release candidates: > http://u-boot.10912.n7.nabble.com/rockchip-rk3399-TPL-rockpro64-Wrong-memory-size-detected-td382441.html > > I naively tried the following: > Index: u-boot-master/distinfo > =================================================================== > --- u-boot-master/distinfo (revision 527638) > +++ u-boot-master/distinfo (working copy) > @@ -1,6 +1,8 @@ > TIMESTAMP = 1573202420 > SHA256 (u-boot/u-boot-2019.10.tar.bz2) = 8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014 > SIZE (u-boot/u-boot-2019.10.tar.bz2) = 14214608 > +SHA256 (u-boot/u-boot-2020.01.tar.bz2) = aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 > +SIZE (u-boot/u-boot-2020.01.tar.bz2) = 14716125 > SHA256 (u-boot/939129/raw) = 2a4ebf283aec8e74ec77b3cb071c6883f73807454ca94fea78361c7391187b97 > SIZE (u-boot/939129/raw) = 310 > SHA256 (u-boot/1036621/raw) = 28dbd66d14fab9dc782ce091d3c132a226b8425f6503c329ee8a7031b79b52f7 > Index: u-boot-rockpro64/Makefile > =================================================================== > --- u-boot-rockpro64/Makefile (revision 527638) > +++ u-boot-rockpro64/Makefile (working copy) > @@ -2,6 +2,7 @@ > > MASTERDIR= ${.CURDIR}/../u-boot-master > > +UBOOT_VERSION?= 2020.01 > MODEL= rockpro64 > BOARD_CONFIG= rockpro64-rk3399_defconfig > FAMILY= rk3399 > > It build, but fails to boot: > U-Boot TPL 2020.01 (Mar 02 2020 - 23:33:30) > Channel 0: LPDDR4, 50MHz > BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB > Channel 1: LPDDR4, 50MHz > BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB > 256B stride > 256B stride > lpddr4_set_rate: change freq to 400000000 mhz 0, 1 > lpddr4_set_rate: change freq to 800000000 mhz 1, 0 > Trying to boot from BOOTROM > Returning to boot ROM... > > U-Boot SPL 2020.01 (Mar 02 2020 - 23:33:30 +0100) > Trying to boot from MMC1 > > > That's it - no further output. > Are there any other known traps when using a new u-boot version, > or does it have to be debugged the hard way? You need to update ATF (sysutils/atf-master) to the master branch. They didn't released a new version which is why I didn't update the u-boot ports to 2020.01 yet. I hope that they release a version before the next u-boot release (2020.04) otherwise I'll just update it to a snapshot that works. Or you could locally patch with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244491 I told phk@ that I won't include this patch in the source tree as probably more code is required. > I've left the first 10MB space untouched by partitions, since the u-boot > get's written starting at 8MB offset. > Geom name: da0 > modified: false > state: OK > fwheads: 255 > fwsectors: 63 > last: 62333951 > first: 63 > entries: 4 > scheme: MBR > Providers: > 1. Name: da0s1 > Mediasize: 52428800 (50M) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 10485760 > Mode: r0w0e0 > efimedia: HD(1,MBR,00000000,0x5000,0x19000) > attrib: active > rawtype: 12 > length: 52428800 > offset: 10485760 > type: fat32lba > index: 1 > end: 122879 > start: 20480 > 2. Name: da0s2 > Mediasize: 31851544576 (30G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 62914560 > Mode: r0w0e0 > efimedia: HD(2,MBR,00000000,0x1e000,0x3b54000) > rawtype: 165 > length: 31851544576 > offset: 62914560 > type: freebsd > index: 2 > end: 62332927 > start: 122880 > Consumers: > 1. Name: da0 > Mediasize: 31914983424 (30G) > Sectorsize: 512 > Mode: r0w0e0 > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Mar 3 16:10:23 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 3B8592547E9 for ; Tue, 3 Mar 2020 16:10:23 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (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 48X26P2dYbz4DVH for ; Tue, 3 Mar 2020 16:10:21 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wm1-x342.google.com with SMTP id i9so2489247wml.4 for ; Tue, 03 Mar 2020 08:10:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=7zQJemveHpGT1Mhr8kFBKaCHPnzBmM2td7QiS8OBfPs=; b=CB8G+bmrdYO2fJdjSRXdbbMImxu/FOFMl15qgij8zJBiQjsEW/Xc87kcdG5fuBWPH/ LnRgw0qQIV49VJe5hPWHOx9j2nkz3FL2eSg6gAo7qzuGZTced/5q8YrXkIslM5D/K2eX R/gJdcjINt5Mfy+m2iVqKKwkDGrnlPDg/XJM2YwQqzdS7YbE7bLoQw4T4JVHs4t3kb5I 7zvAXaj8YwHAcbRFvdHbOnCEfaE5Yh4/Xd0rXosumDmm9Co2Q0b7TgJeI1pnB7N7wx4z pZWG7HjKMvHNAgSNKK7HeDG53CqjxyQ6H/TP5tv4v1kebx+3LOiTJ0u+/lUA2iWICUCX de3A== X-Gm-Message-State: ANhLgQ1UVXSvt24gxDnymP09jYxOYV9fSXJj8NKMNUIr7GImhVesBEMm DNzvYoo5NW7ZsLseKj9jih8= X-Google-Smtp-Source: ADFU+vuWEGFFf+XIutXLP0uCGIOvO5hv59Sg+gB3BVKlfXAy4r2wOHvkwOWpK2JPAgdiCV2jIrbPDQ== X-Received: by 2002:a1c:2045:: with SMTP id g66mr3951478wmg.15.1583251819376; Tue, 03 Mar 2020 08:10:19 -0800 (PST) Received: from [192.168.1.167] (x59cc9964.dyn.telefonica.de. [89.204.153.100]) by smtp.googlemail.com with ESMTPSA id u17sm4228988wmj.47.2020.03.03.08.10.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 08:10:18 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 17:10:16 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> To: Emmanuel Vadot , ticso@cicely7.cicely.de, ticso@cicely.de, freebsd-arm@freebsd.org In-Reply-To: <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> Message-Id: <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48X26P2dYbz4DVH X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (2.65), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), country: US(-0.05)]; RECEIVED_SPAMHAUS_PBL(0.00)[100.153.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; 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)[2.4.3.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: Tue, 03 Mar 2020 16:10:23 -0000 > Am 03.03.2020 um 14:19 schrieb Emmanuel Vadot : >=20 >=20 > Hi Bernd, >>=20 >=20 > You need to update ATF (sysutils/atf-master) to the master > branch. They didn't released a new version which is why I didn't = update > the u-boot ports to 2020.01 yet. > I hope that they release a version before the next u-boot release > (2020.04) otherwise I'll just update it to a snapshot that works. > Or you could locally patch with > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244491 >=20 > I told phk@ that I won't include this patch in the source tree as > probably more code is required. After testing on other BSD(no issues when mounting SD-card-reader) and = talking=20 with a dev , this seems to be a FreeBSD/aarch64-only - issue which has = nothing=20 directly to do with ATF. While I didin`t yet test latest ATF-master = under FreeBSD. But when I think of the many (cam) mount problems (e.g. vfs_mountroot) = in src-head lately, I think that it has to be checked what is really = going wrong(afaik it=E2=80=99s not ATF directly) I do not know further = details about this. Regards Klaus P.S: Confirmation: card reader also panics here= From owner-freebsd-arm@freebsd.org Tue Mar 3 16:33:54 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 C9DC725535B for ; Tue, 3 Mar 2020 16:33:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X2dX10Kwz3RJp for ; Tue, 3 Mar 2020 16:33:51 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583253229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MkJdcRtZF6DQLHXeHTmbzJ6dTWKsnxU464mqMOC+8kM=; b=unpfGZTnNktwDIwMxyRCgVv3wysxyO2Mt51xwCErLsmnMX2aNLcQUDnZlaT918Pr5ctWVh qYoLiZK/phyddIcNCxABedF9pfpLblEo0p385huoGbm1RYdXtMriqxATlhptLF8Sn943uf QEKdYmKbLpAbU19ME9jJlBv0Hkr0RKQ= Received: from tails.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d583079b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Mar 2020 16:33:49 +0000 (UTC) Date: Tue, 3 Mar 2020 17:33:49 +0100 From: Emmanuel Vadot To: Klaus =?ISO-8859-1?Q?K=FCchemann?= Cc: ticso@cicely7.cicely.de, ticso@cicely.de, freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> In-Reply-To: <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.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: 48X2dX10Kwz3RJp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=unpfGZTn; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FREEMAIL_TO(0.00)[googlemail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.24)[ip: (-8.46), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.29), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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: Tue, 03 Mar 2020 16:33:54 -0000 On Tue, 3 Mar 2020 17:10:16 +0100 Klaus K=FCchemann wrote: >=20 >=20 > > Am 03.03.2020 um 14:19 schrieb Emmanuel Vadot : > >=20 > >=20 > > Hi Bernd, > >>=20 > >=20 > > You need to update ATF (sysutils/atf-master) to the master > > branch. They didn't released a new version which is why I didn't update > > the u-boot ports to 2020.01 yet. > > I hope that they release a version before the next u-boot release > > (2020.04) otherwise I'll just update it to a snapshot that works. > > Or you could locally patch with > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244491 > >=20 > > I told phk@ that I won't include this patch in the source tree as > > probably more code is required. >=20 >=20 > After testing on other BSD(no issues when mounting SD-card-reader) and ta= lking=20 > with a dev , this seems to be a FreeBSD/aarch64-only - issue which has no= thing=20 > directly to do with ATF. While I didin`t yet test latest ATF-master under= FreeBSD. > But when I think of the many (cam) mount problems (e.g. vfs_mountroot) in= src-head lately, I think that it has to be checked what is really going w= rong(afaik it?s not ATF directly) I do not know further details about this. >=20 > Regards >=20 > Klaus >=20 > P.S: Confirmation: card reader also panics here WTF are you talking about ? I'm talking about the boot issue that Bernd have after updating u-boot in the ports tree. --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Mar 3 16:58:29 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 A1ACD255952 for ; Tue, 3 Mar 2020 16:58:29 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 48X39w22hXz44KX for ; Tue, 3 Mar 2020 16:58:28 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x42f.google.com with SMTP id z15so5325082wrl.1 for ; Tue, 03 Mar 2020 08:58:27 -0800 (PST) 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:date:references:to:in-reply-to:message-id; bh=7Uz+fy1EQNlYwoMG6jNjg32YXW/FHYtnbu/ZaeTYuaI=; b=t9V9DXkqlwe6NlC+A+wATNSB78WjimK5IoCXurHiEjFV6IsZBXx70vTkI5JOKO9xk0 ykkUgJkwfHAMSCh9tzPKbgtvT7ji5P/MCtAJ5WKcjG6J0U6qavdrCMFzqx6VTdyAaJ3G L65CMpVkvliEKJ1MzekunRoe25wRJ5hajrU3feDK6Lj82coGQ+h9//54z5mMq5yUwNUw s6RnoyMlCqcVCsNqq1qiNlo0Xk3UxHIgKsvFZFplilffq87prjuE/SmBnOyV30DwfMuo GnTpIv0VUPUuq2m7q2CNBzYUUuyoJbJZNl4f4mY9+tf7HPGtAPmH3lHUYdSw6YaUArCG rU8w== X-Gm-Message-State: ANhLgQ1R5zpZXASpGQ1h978+FwjHdNMzlP2xzXBRe+qxHB2Cja9yfnAR +ed+K2FC3KT37yhhB0ilqC0= X-Google-Smtp-Source: ADFU+vuWyps84EMZ0fB6aR7JfZeY0e03uyyhliKK4X501AzW57R1N69bI92X/9liT32lippY5DPw6Q== X-Received: by 2002:a5d:6aca:: with SMTP id u10mr5908842wrw.99.1583254705182; Tue, 03 Mar 2020 08:58:25 -0800 (PST) Received: from [192.168.1.167] (x59cc9964.dyn.telefonica.de. [89.204.153.100]) by smtp.googlemail.com with ESMTPSA id o26sm4649663wmc.33.2020.03.03.08.58.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 08:58:24 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 17:58:22 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> To: Emmanuel Vadot , Bernd Walter , freebsd-arm@freebsd.org In-Reply-To: <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> Message-Id: <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48X39w22hXz44KX X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[100.153.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.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)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[f.2.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: (-9.10), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), 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: Tue, 03 Mar 2020 16:58:29 -0000 > Am 03.03.2020 um 17:33 schrieb Emmanuel Vadot : >=20 > On Tue, 3 Mar 2020 17:10:16 +0100 > Klaus K=C3=BCchemann wrote: >=20 >>=20 >>=20 >>> Am 03.03.2020 um 14:19 schrieb Emmanuel Vadot = : >>>=20 >>>=20 >>> Hi Bernd, >>>>=20 >>>=20 >>> You need to update ATF (sysutils/atf-master) to the master >>> branch. They didn't released a new version which is why I didn't = update >>> the u-boot ports to 2020.01 yet. >>> I hope that they release a version before the next u-boot release >>> (2020.04) otherwise I'll just update it to a snapshot that works. >>> Or you could locally patch with >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244491 >>>=20 >>> I told phk@ that I won't include this patch in the source tree as >>> probably more code is required. >>=20 >>=20 >> After testing on other BSD(no issues when mounting SD-card-reader) = and talking=20 >> with a dev , this seems to be a FreeBSD/aarch64-only - issue which = has nothing=20 >> directly to do with ATF. While I didin`t yet test latest ATF-master = under FreeBSD. >> But when I think of the many (cam) mount problems (e.g. = vfs_mountroot) in src-head lately, I think that it has to be checked = what is really going wrong(afaik it?s not ATF directly) I do not know = further details about this. >>=20 >> Regards >>=20 >> Klaus >>=20 >> P.S: Confirmation: card reader also panics here >=20 > WTF are you talking about ? I'm talking about the boot issue that > Bernd have after updating u-boot in the ports tree. .... yeah ! :-)=20 I am talking about Bernd`s cam-panic described in this thread =E2=80=A6( = or did I accidentally answer to the wrong thread) U-boot 2020.01 works including detecting 4Gig RAM on RockPro64 with = FreeBSD ., with or without ATF-updates , but there`s KP(machine panics) = if cardreader is plugged=E2=80=A6 So this seems to be a cam-issue ( see Bernd`s console output) =E2=80=A6. While I wrote that I DON`T know why it didn=E2=80=99t panic with Bernd`s = 2019.10 .. Kind Regards Klaus >=20 > --=20 > Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Mar 3 17:28:15 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 B78B8256539 for ; Tue, 3 Mar 2020 17:28:15 +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 48X3rF1x26z48fW for ; Tue, 3 Mar 2020 17:28:12 +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 023HTZ19022691 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Mar 2020 18:29:36 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583256577; bh=bGQxZF0YhE9/fHVmKkmG1oyKk8+yChaLcsVcB+QmzX8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=uHKsnsI+kmPL/f84wgXZMewfCiqD4pCPgM9z/tiLL1/u5cpAUiikk9++bosNxPz1S F2SmpTgDthAPudLH5T9HTG7FBkuR3/Bzn7tHmVWIPraExf5nmiMsi9w/XKWbZRSW3j fub5P3eLwVSifxMWS0lMQs+RsKzB86oiVqbe62jI= 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 023HS4Nc009153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Mar 2020 18:28:04 +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 023HS3Iw008961; Tue, 3 Mar 2020 18:28:03 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 023HS2Ai008960; Tue, 3 Mar 2020 18:28:02 +0100 (CET) (envelope-from ticso) Date: Tue, 3 Mar 2020 18:28:02 +0100 From: Bernd Walter To: Klaus =?iso-8859-1?Q?K=FCchemann?= Cc: Emmanuel Vadot , Bernd Walter , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-ID: <20200303172801.GQ52462@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> 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: 48X3rF1x26z48fW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=uHKsnsI+; 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.71 / 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.91)[-0.912,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; 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.999,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]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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, 03 Mar 2020 17:28:15 -0000 On Tue, Mar 03, 2020 at 05:58:22PM +0100, Klaus Küchemann wrote: > > > > Am 03.03.2020 um 17:33 schrieb Emmanuel Vadot : > > > > On Tue, 3 Mar 2020 17:10:16 +0100 > > Klaus Küchemann wrote: > > > >> > >> > >>> Am 03.03.2020 um 14:19 schrieb Emmanuel Vadot : > >>> > >>> > >>> Hi Bernd, > >>>> > >>> > >>> You need to update ATF (sysutils/atf-master) to the master > >>> branch. They didn't released a new version which is why I didn't update > >>> the u-boot ports to 2020.01 yet. > >>> I hope that they release a version before the next u-boot release > >>> (2020.04) otherwise I'll just update it to a snapshot that works. > >>> Or you could locally patch with > >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244491 > >>> > >>> I told phk@ that I won't include this patch in the source tree as > >>> probably more code is required. > >> > >> > >> After testing on other BSD(no issues when mounting SD-card-reader) and talking > >> with a dev , this seems to be a FreeBSD/aarch64-only - issue which has nothing > >> directly to do with ATF. While I didin`t yet test latest ATF-master under FreeBSD. > >> But when I think of the many (cam) mount problems (e.g. vfs_mountroot) in src-head lately, I think that it has to be checked what is really going wrong(afaik it?s not ATF directly) I do not know further details about this. > >> > >> Regards > >> > >> Klaus > >> > >> P.S: Confirmation: card reader also panics here > > > > WTF are you talking about ? I'm talking about the boot issue that > > Bernd have after updating u-boot in the ports tree. > .... yeah ! :-) > I am talking about Bernd`s cam-panic described in this thread ???( or did I accidentally answer to the wrong thread) > U-boot 2020.01 works including detecting 4Gig RAM on RockPro64 with FreeBSD ., with or without ATF-updates , but there`s KP(machine panics) if cardreader is plugged??? > So this seems to be a cam-issue ( see Bernd`s console output) ???. > While I wrote that I DON`T know why it didn???t panic with Bernd`s 2019.10 .. Ok - there are two likely unrelated issues. First is that my self build u-boot 2020.01 didn't boot and your build worked fine. Then there is the USB card reader problem within FreeBSD, which I hadn't when I booted the very same system with the u-boot 2019.10, which I installed via package on my 12.1 amd64. Maybe the 2G vs 4G RAM avoided triggering the bug - who knows. I just mentioned it in the same thread since it happened to me after using the newer u-boot (and therefor the full 4G RAM). -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Tue Mar 3 17:56:04 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 AE85A257500 for ; Tue, 3 Mar 2020 17:56:04 +0000 (UTC) (envelope-from maciphone2@googlemail.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 48X4SM0Nxwz45gx for ; Tue, 3 Mar 2020 17:56:02 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x444.google.com with SMTP id q8so5557076wrm.4 for ; Tue, 03 Mar 2020 09:56:02 -0800 (PST) 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:date:references:to:in-reply-to:message-id; bh=arR6tv7hVzgSU15S1guah1XqgWM/inpc+mbS8zFgQrY=; b=KcukNvdySVlr7IX4JZ63eeSsOBmgseuP4NlFIyvznJH1/XC2t7StSF+lyGu2hmB7Bi +ZKbIdH245RX4alm74vSFeZoWqDI5phMO+GJOgp3pkxmBGzf5O9MNSaLbk1N5qNGBz/C aGQOkfh+fCU/tzIbekFK2riVBcLgZgmeDs4uDgTfZvBU0mWM3VcsK2X//lNCfUnKLnc4 3PfesSB+1Px05BPK18rfNKPV5u/1InJCIHfdtAlnONpiZNWI30+eqWXwdjn2BXAZCMwc zh2akBxt8RgiWCb580DQbUsF1NOgRAEGyi338IYpeWS+PMGZMXF9OE1UEZE9oYKCNaav PhnQ== X-Gm-Message-State: ANhLgQ1UtcX57YNdP2PkWGCCctxgWHrw7LksHoF/BCf7XXG/9mKnkK7V xnU7O7fzhbOgXQ0bNmKaq0QIO/q0 X-Google-Smtp-Source: ADFU+vswyk2wG6zjYrf26gEh9q6+uiSQH4xfNVot5FSfEmlQgrX0phtDyPQqv9xoqQG+Y732/ljqjQ== X-Received: by 2002:a5d:4d4f:: with SMTP id a15mr6565549wru.409.1583258161102; Tue, 03 Mar 2020 09:56:01 -0800 (PST) Received: from [192.168.1.167] (x59cc9964.dyn.telefonica.de. [89.204.153.100]) by smtp.googlemail.com with ESMTPSA id c2sm5313331wma.39.2020.03.03.09.55.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 09:56:00 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 18:55:57 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> <20200303172801.GQ52462@cicely7.cicely.de> To: ticso@cicely.de, Emmanuel Vadot , freebsd-arm@freebsd.org In-Reply-To: <20200303172801.GQ52462@cicely7.cicely.de> Message-Id: <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48X4SM0Nxwz45gx X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[100.153.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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.87), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), 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: Tue, 03 Mar 2020 17:56:04 -0000 > Am 03.03.2020 um 18:28 schrieb Bernd Walter : >=20 > On Tue, Mar 03, 2020 at 05:58:22PM +0100, Klaus K=C3=BCchemann wrote: >>=20 >> =E2=80=A6=E2=80=A6.. >=20 > Ok - there are two likely unrelated issues. > First is that my self build u-boot 2020.01 didn't boot and your > build worked fine. >=20 The problem is that when the u-boot ports-maintainer begins to talk = about=20 the distance of the sun to earth, I answer with IceCream , and he replies with talking about his new shaver :-) Ha Ha So probably a language barrier of both of us .. So we could not make a =E2=80=9Adeal=E2=80=98 for upgrading the = fbsd-u-boot-port to it`s current version so far=E2=80=A6 > Then there is the USB card reader problem within FreeBSD, > which I hadn't when I booted the very same system with the > u-boot 2019.10, which I installed via package on my 12.1 amd64. > Maybe the 2G vs 4G RAM avoided triggering the bug - who knows. > I just mentioned it in the same thread since it happened to me after > using the newer u-boot (and therefor the full 4G RAM). >=20 > --=20 > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. At the moment I can only say that the card reader-panic has nothing to = do with the 4GB Ram itself, but as you suspect, it perhaps could have to = do with what the fbds-kernel is =E2=80=9Edoing=E2=80=9C with that = additionally 2 Gigs=E2=80=A6 I=E2=80=99ll give it GENERIC-MMCCAM and then I=E2=80=99ll look if the = issue consists... Regards Klaus=20= From owner-freebsd-arm@freebsd.org Tue Mar 3 18:17:52 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 C48A8257E71 for ; Tue, 3 Mar 2020 18:17:52 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X4xW1k7Nz3K2w for ; Tue, 3 Mar 2020 18:17:50 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583259468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IU/T3cszO2uGrx+W4TkaNnZetdu6N8uEwwJoSC6Gxak=; b=oZDebrh7KMqG7fxjZ2iKNb3g2lXItqfBXgIc9tZeYqFZvM6dJnuT5mPhO+JJ9pbUcpnwQg 02onZNwYZN+BEIqD8OlYbiZpf7bTTcM3rtp7ti1/7svDLb+eLpPO1W435jsV/vNmYx/ZYE Kp6SuhUyuUcYsJ9LkSHiZJmdE0DVo54= Received: from tails.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id e9d21f9a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Mar 2020 18:17:48 +0000 (UTC) Date: Tue, 3 Mar 2020 19:17:48 +0100 From: Emmanuel Vadot To: Klaus =?ISO-8859-1?Q?K=FCchemann?= Cc: ticso@cicely.de, freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200303191748.d28e64b2ee200ed9edc9abc7@bidouilliste.com> In-Reply-To: <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.com> References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> <20200303172801.GQ52462@cicely7.cicely.de> <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.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: 48X4xW1k7Nz3K2w X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=oZDebrh7; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FREEMAIL_TO(0.00)[googlemail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.24)[ip: (-8.46), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.29), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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: Tue, 03 Mar 2020 18:17:52 -0000 On Tue, 3 Mar 2020 18:55:57 +0100 Klaus K=FCchemann wrote: >=20 >=20 > > Am 03.03.2020 um 18:28 schrieb Bernd Walter : > >=20 > > On Tue, Mar 03, 2020 at 05:58:22PM +0100, Klaus K=FCchemann wrote: > >>=20 > >> ??.. > >=20 > > Ok - there are two likely unrelated issues. > > First is that my self build u-boot 2020.01 didn't boot and your > > build worked fine. > >=20 > The problem is that when the u-boot ports-maintainer begins to talk abou= t=20 > the distance of the sun to earth, I answer with IceCream , > and he replies with talking about his new shaver :-) Ha Ha > So probably a language barrier of both of us .. ??? > So we could not make a ?deal? for upgrading the fbsd-u-boot-port to it`s = current version so far? You reached out to me privately to say that you wanted to update the u-boot port, I told you that there will be problem with rockchip but that you should try to update the ports. Your response was that you will not do that because you didn't wanted to "disturb my workflow" and "steal my time" and that I'm the "u-boot man" or whatever. If you want to update u-boot, please send patches and make sure that everything is working on most of the boards that we support. If you don't have a lot of boards reach out to people for a call or testing. I'll also note that you've never compiled u-boot from our ports tree, I don't know if you ever compiled u-boot since you've talked about the openbsd port, and their ATF contain some patches for rockchip which makes me think again that an ATF update is needed (but haven't had time yet to try myself). > > Then there is the USB card reader problem within FreeBSD, > > which I hadn't when I booted the very same system with the > > u-boot 2019.10, which I installed via package on my 12.1 amd64. > > Maybe the 2G vs 4G RAM avoided triggering the bug - who knows. > > I just mentioned it in the same thread since it happened to me after > > using the newer u-boot (and therefor the full 4G RAM). > >=20 > > --=20 > > B.Walter http://www.bwct.de > > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. >=20 > At the moment I can only say that the card reader-panic has nothing to d= o with the 4GB Ram itself, but as you suspect, it perhaps could have to do = with what the fbds-kernel is ?doing? with that additionally 2 Gigs? > I?ll give it GENERIC-MMCCAM and then I?ll look if the issue consists... I don't see how MMCCAM will help for an usb card reader. Also dwmmc doesn't have MMCCAM code so you will not able to boot from SD. > Regards >=20 > Klaus=20 --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Mar 3 19:13:03 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 9ABED2599F8 for ; Tue, 3 Mar 2020 19:13:03 +0000 (UTC) (envelope-from maciphone2@googlemail.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 48X69B2kTPz4MlS for ; Tue, 3 Mar 2020 19:13:02 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x444.google.com with SMTP id v2so5780713wrp.12 for ; Tue, 03 Mar 2020 11:13:02 -0800 (PST) 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:date:references:to:in-reply-to:message-id; bh=bddvpUj2TdDfsM5Qq1tXHIPLLfpbXD3fCrZ1zyf1CG8=; b=M4B6/SFw1Mj5tdYEDN3UJYsgSJttvniMu8OVzAepmYrysBJK866+PG5t4uOcScanUZ MRTK06d0dV0zrX7NEjh6pMULLNyAl1Uk/A9HfFJKRGwfeEbRB/dwjzBdLjtOw+heAjeU wgEGLZESNLaJD+RudRUm9RSXgGLFzCRT/TFJiI2BXTxJIKn6xtw8wNbXfwuxZIKgpXhm TGSKuLOk4wDr2heFsA7kNBJ8m/D5/Oyw3F3b1L3VaRMFPI+sg1d8s7y0F/8wtvxV1jgJ zFJDu6B/B5Zx5o/QQP9qM6YHXGu/bs4MaBvW544FhgqAgTDuFhg7f5x3SAARUHCmxswo sloA== X-Gm-Message-State: ANhLgQ1kMgphSAcFQutnMjmCjd2BqUXRmIYBEhH0gVHxhqb7mHijfulg /E962FCMjFyY+62s4l/Pjl4VjwHL X-Google-Smtp-Source: ADFU+vtorYg68o8dSmfoC3Z7VSvQA9JXkl0WE1D27scIC1UqMwuVUrUMb6pbzl7Hb5dRCu1/s+7kfg== X-Received: by 2002:adf:deca:: with SMTP id i10mr7333178wrn.172.1583262780224; Tue, 03 Mar 2020 11:13:00 -0800 (PST) Received: from [192.168.1.167] (x59cc9964.dyn.telefonica.de. [89.204.153.100]) by smtp.googlemail.com with ESMTPSA id w8sm113885wmm.0.2020.03.03.11.12.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 11:12:59 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 20:12:57 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> <20200303172801.GQ52462@cicely7.cicely.de> <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.com> <20200303191748.d28e64b2ee200ed9edc9abc7@bidouilliste.com> To: Emmanuel Vadot , freebsd-arm@freebsd.org, Bernd Walter In-Reply-To: <20200303191748.d28e64b2ee200ed9edc9abc7@bidouilliste.com> Message-Id: X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48X69B2kTPz4MlS X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[100.153.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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.87), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), 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: Tue, 03 Mar 2020 19:13:03 -0000 > Am 03.03.2020 um 19:17 schrieb Emmanuel Vadot : >=20 > On Tue, 3 Mar 2020 18:55:57 +0100 > Klaus K=C3=BCchemann wrote: >=20 >>=20 >>=20 >>> Am 03.03.2020 um 18:28 schrieb Bernd Walter = : >>>=20 >>> On Tue, Mar 03, 2020 at 05:58:22PM +0100, Klaus K=C3=BCchemann = wrote: >>>>=20 >>>> ??.. >>>=20 >>> Ok - there are two likely unrelated issues. >>> First is that my self build u-boot 2020.01 didn't boot and your >>> build worked fine. >>>=20 >> The problem is that when the u-boot ports-maintainer begins to talk = about=20 >> the distance of the sun to earth, I answer with IceCream , >> and he replies with talking about his new shaver :-) Ha Ha >> So probably a language barrier of both of us .. >=20 > ??? >=20 >> So we could not make a ?deal? for upgrading the fbsd-u-boot-port to = it`s current version so far? >=20 > You reached out to me privately to say that you wanted to update the > u-boot port, I told you that there will be problem with rockchip but > that you should try to update the ports. Your response was that you > will not do that because you didn't wanted to "disturb my workflow" = and > "steal my time" and that I'm the "u-boot man" or whatever. > If you want to update u-boot, please send patches and make sure that > everything is working on most of the boards that we support. If you > don't have a lot of boards reach out to people for a call or testing. > I'll also note that you've never compiled u-boot from our ports tree, > I don't know if you ever compiled u-boot since you've talked about the > openbsd port, Yes, I told you that we probably should think about backporting patches=20= (for e.g. ATF) but that I don=E2=80=99t like to backport to 2019.10 , and instead would prefer to back port to 2020.01=20 Because why patching =E2=80=9Eold" versions when the upstream is already = patched? You can ask Bernd : There is no more reboot-issue with Rockchip with the version I=E2=80=99ve = uploaded to the Wiki . You told me that you don=E2=80=99t want to upgrade to 2020.01.. > and their ATF contain some patches for rockchip which > makes me think again that an ATF update is needed (but haven't had = time > yet to try myself). Why waiting for months or so until they update if that=E2=80=99s = manageable by a backport-patches? I don=E2=80=99t want to patch all updates from "MacOS 10.15.3 to MacOS = 9.2.2=E2=80=9C ;-) >=20 >>> Then there is the USB card reader problem within FreeBSD, >>> which I hadn't when I booted the very same system with the >>> u-boot 2019.10, which I installed via package on my 12.1 amd64. >>> Maybe the 2G vs 4G RAM avoided triggering the bug - who knows. >>> I just mentioned it in the same thread since it happened to me after >>> using the newer u-boot (and therefor the full 4G RAM). >>>=20 >>> --=20 >>> B.Walter http://www.bwct.de >>> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner = uvm. >>=20 >> At the moment I can only say that the card reader-panic has nothing = to do with the 4GB Ram itself, but as you suspect, it perhaps could have = to do with what the fbds-kernel is ?doing? with that additionally 2 = Gigs? >> I?ll give it GENERIC-MMCCAM and then I?ll look if the issue = consists... >=20 > I don't see how MMCCAM will help for an usb card reader. > Also dwmmc doesn't have MMCCAM code so you will not able to boot from > SD. >=20 > --=20 > Emmanuel Vadot What I meant is: I compile to src-head from TODAY(to whatever kernel), = because if`ve seen many issues in that range the last weeks, which were = solved(perhaps even by you) but other issues came new to head=E2=80=A6 ( e.g. RPI4 booted again but suddenly only 1 CPU is detected) But what I definitely can say is that the card reader- panic has nothing = to do with any ATF-patch, wherever ATF was patched.=20 So for the moment my question is : what causes 2020.01 to panic = where=E2=80=99s Bernd`S 2019.10=20 Doesn=E2=80=99t crash=E2=80=A6 perhaps you know why,=20 until I know that=20 of course I will not send patches=E2=80=A6 Regards Klaus From owner-freebsd-arm@freebsd.org Tue Mar 3 20:27: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 0911525ACE6 for ; Tue, 3 Mar 2020 20:27:25 +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 48X7pz21Qnz49g8 for ; Tue, 3 Mar 2020 20:27:22 +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 023KSjKs035061 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Mar 2020 21:28:46 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583267327; bh=E4xGmiO9wPINEAZJk/5YhBZw7r4Hrtbez/pWsUcpcC0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=Kmr3eX+g91YglP83wXtq5F6v7Y8e86XaLH28ybUmUPNxqJZKhYRVhtpENmJGqki5L os1VkotBKSEtlRKYz88fFzTGDkVmaDbkoA+7mOy/OG+iU/YHzBrpRa2smx4UfQ2a8x 0IUbE+4ZBe+gdxQY5PtjgDzxPQABWuksQVO2nc9o= 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 023KRDRl014837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Mar 2020 21:27:13 +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 023KRDgW009930; Tue, 3 Mar 2020 21:27:13 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 023KRBZm009929; Tue, 3 Mar 2020 21:27:11 +0100 (CET) (envelope-from ticso) Date: Tue, 3 Mar 2020 21:27:11 +0100 From: Bernd Walter To: Klaus =?iso-8859-1?Q?K=FCchemann?= Cc: Emmanuel Vadot , freebsd-arm@freebsd.org, Bernd Walter Subject: Re: RockPro64 with u-boot 2010.01 Message-ID: <20200303202711.GR52462@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> <20200303172801.GQ52462@cicely7.cicely.de> <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.com> <20200303191748.d28e64b2ee200ed9edc9abc7@bidouilliste.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: 48X7pz21Qnz49g8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=Kmr3eX+g; 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.67 / 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.87)[-0.872,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; 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.999,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]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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, 03 Mar 2020 20:27:25 -0000 On Tue, Mar 03, 2020 at 08:12:57PM +0100, Klaus Küchemann wrote: > > > > Am 03.03.2020 um 19:17 schrieb Emmanuel Vadot : > > > > On Tue, 3 Mar 2020 18:55:57 +0100 > > Klaus Küchemann wrote: > > > >> > >> > >>> Am 03.03.2020 um 18:28 schrieb Bernd Walter : > >>> > >>> On Tue, Mar 03, 2020 at 05:58:22PM +0100, Klaus Küchemann wrote: > >>>> > >>>> ??.. > >>> > >>> Ok - there are two likely unrelated issues. > >>> First is that my self build u-boot 2020.01 didn't boot and your > >>> build worked fine. > >>> > >> The problem is that when the u-boot ports-maintainer begins to talk about > >> the distance of the sun to earth, I answer with IceCream , > >> and he replies with talking about his new shaver :-) Ha Ha > >> So probably a language barrier of both of us .. > > > > ??? > > > >> So we could not make a ?deal? for upgrading the fbsd-u-boot-port to it`s current version so far? > > > > You reached out to me privately to say that you wanted to update the > > u-boot port, I told you that there will be problem with rockchip but > > that you should try to update the ports. Your response was that you > > will not do that because you didn't wanted to "disturb my workflow" and > > "steal my time" and that I'm the "u-boot man" or whatever. > > If you want to update u-boot, please send patches and make sure that > > everything is working on most of the boards that we support. If you > > don't have a lot of boards reach out to people for a call or testing. > > I'll also note that you've never compiled u-boot from our ports tree, > > I don't know if you ever compiled u-boot since you've talked about the > > openbsd port, > > Yes, I told you that we probably should think about backporting patches > (for e.g. ATF) but that I don???t like to backport to 2019.10 , > and instead would prefer to back port to 2020.01 > Because why patching ???old" versions when the upstream is already patched? > You can ask Bernd : > There is no more reboot-issue with Rockchip with the version I???ve uploaded to the Wiki . > You told me that you don???t want to upgrade to 2020.01.. I can't say if there had been reboot issues, but it does reboot with your 2020.10 u-boot binary. Also I can have the RX line connected which was a problem with the older u-boot. > > > and their ATF contain some patches for rockchip which > > makes me think again that an ATF update is needed (but haven't had time > > yet to try myself). > > Why waiting for months or so until they update if that???s manageable by a backport-patches? > I don???t want to patch all updates from "MacOS 10.15.3 to MacOS 9.2.2??? ;-) Maybe because he had no time to try himself yet? It is for current after all. > >>> Then there is the USB card reader problem within FreeBSD, > >>> which I hadn't when I booted the very same system with the > >>> u-boot 2019.10, which I installed via package on my 12.1 amd64. > >>> Maybe the 2G vs 4G RAM avoided triggering the bug - who knows. > >>> I just mentioned it in the same thread since it happened to me after > >>> using the newer u-boot (and therefor the full 4G RAM). > >>> > >>> -- > >>> B.Walter http://www.bwct.de > >>> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > >> > >> At the moment I can only say that the card reader-panic has nothing to do with the 4GB Ram itself, but as you suspect, it perhaps could have to do with what the fbds-kernel is ?doing? with that additionally 2 Gigs? > >> I?ll give it GENERIC-MMCCAM and then I?ll look if the issue consists... > > > > I don't see how MMCCAM will help for an usb card reader. > > Also dwmmc doesn't have MMCCAM code so you will not able to boot from > > SD. > > > > -- > > Emmanuel Vadot > What I meant is: I compile to src-head from TODAY(to whatever kernel), because if`ve seen many issues in that range the last weeks, which were solved(perhaps even by you) but other issues came new to head??? > ( e.g. RPI4 booted again but suddenly only 1 CPU is detected) > > But what I definitely can say is that the card reader- panic has nothing to do with any ATF-patch, > wherever ATF was patched. It is not a show stopper for me. The reason I bought the board was to have a 4G system to compile. And my typical setup is having two microSD cards as mirrored ZFS. If I find time, I will design a PCB to add a second uSD slot for the Pine64 and Rockpro64. The eMMC, as well as the WiFi module connector, should both have the required signals. I do miss erase support via USB reader. Having two uSD slots is what I like with the Wandboards, but those are 32-bit. > So for the moment my question is : what causes 2020.01 to panic where???s Bernd`S 2019.10 > Doesn???t crash??? perhaps you know why, > until I know that > of course I will not send patches??? I don't get the rationale behind this statement... -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Tue Mar 3 20:48:05 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 4489E25B162 for ; Tue, 3 Mar 2020 20:48:05 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 48X8Gq68Fqz47YT for ; Tue, 3 Mar 2020 20:48:03 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x433.google.com with SMTP id q8so6207326wrm.4 for ; Tue, 03 Mar 2020 12:48:03 -0800 (PST) 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:date:references:to:in-reply-to:message-id; bh=wwpbsVamsWEVVgItA+u2QHsKbhvtIwlZKv0vttO4yRM=; b=rJIzNbSTTSWOAHShKNbs2S5AYchw4lGrn788M/TszBPeYGtukRf/inXxj00la8CV3n PMNOwHtZK6QuV9kQtvtdqw70e7hkRomJPSScSOPeQorVqJUSXx+yuLDsb3n9bDpgknQJ NaLan3Vt4LHDat+gSSNVNtTzejV6yTFDxnCx/DvSqYAY4L4r4NryCBHqKi4o4GF86BP3 HsTPalhVpF1IQxBtTfbUNFxoTH2oh6epaqqKBodyOnCs4L6hNMhGVvgSh+bAwmebrGTb +dt8ydxGqhIph4bMKBTL1QLm8ez9R1s469dd4DEjnDBCPIwruLFOTWaLa6Xcd8xd/Ag4 dIZA== X-Gm-Message-State: ANhLgQ3B4zn4j/NXwHT96eYzyMUCG97iJan8W6xS1lwA9BR5zI56KxIe m+AMhtgh731+/a2GQaxs9VI= X-Google-Smtp-Source: ADFU+vv3Pvzr9dUml6BB3qehVrNux5t5xnfkmycGt8NqbmMOTgFJfl7FT3Za/2ACdbogaWFqGmdsAQ== X-Received: by 2002:a5d:548a:: with SMTP id h10mr6516065wrv.125.1583268481625; Tue, 03 Mar 2020 12:48:01 -0800 (PST) Received: from [192.168.1.167] (x59cc9964.dyn.telefonica.de. [89.204.153.100]) by smtp.googlemail.com with ESMTPSA id y139sm390849wmd.24.2020.03.03.12.47.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 12:47:59 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Tue, 3 Mar 2020 21:47:58 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303141931.365fb9b9c85339190b7c405a@bidouilliste.com> <454BC07B-A0B5-467C-8682-00BE291D4CB7@googlemail.com> <20200303173349.bd9b69669633b048bbed107b@bidouilliste.com> <5F875EA0-E86A-4EF2-B4EF-0B07E166BA3D@googlemail.com> <20200303172801.GQ52462@cicely7.cicely.de> <4DA153F5-219A-4C5B-91DE-1F6C04DBA482@googlemail.com> <20200303191748.d28e64b2ee200ed9edc9abc7@bidouilliste.com> <20200303202711.GR52462@cicely7.cicely.de> To: ticso@cicely.de, Emmanuel Vadot , freebsd-arm@freebsd.org In-Reply-To: <20200303202711.GR52462@cicely7.cicely.de> Message-Id: <18E94917-DDE7-4669-8FF3-237C230878D6@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48X8Gq68Fqz47YT X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[100.153.204.89.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.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)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[3.3.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: (-9.05), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), 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: Tue, 03 Mar 2020 20:48:05 -0000 > Am 03.03.2020 um 21:27 schrieb Bernd Walter : >=20 >=20 > Klaus:Why waiting for months or so until they update if that???s = manageable by a backport-patches? > I don???t want to patch all updates from "MacOS 10.15.3 to MacOS = 9.2.2??? ;-) > Bernd:Maybe because he had no time to try himself yet?It is for = current after all. >=20 >=20 Yep, same for all of us, also don=E2=80=99t really have time.. =E2=80=A6 = that of course didn=E2=80=99t mean reproach to manu@ .. ..not easy in the English language=20 that all things arrive as they were meant to be;-) >> So for the moment my question is : what causes 2020.01 to panic = where???s Bernd`S 2019.10=20 >> Doesn???t crash??? perhaps you know why,=20 >> until I know that=20 >> of course I will not send patches??? >=20 > I don't get the rationale behind this statement... >=20 > --=20 > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. just a quick guess.. the rationale behind this statement =E2=80=A6 seems to have to do with = the api-storage.c ,which I=20 probably didn=E2=80=99t compile as it should =E2=80=A6=20 thanks manu@ for the clue=20 which I discovered on closer inspection of this thread Regards Klaus= From owner-freebsd-arm@freebsd.org Tue Mar 3 21:22:17 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 D87BB25BEBF for ; Tue, 3 Mar 2020 21:22:17 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48X92H5Xwvz48LS for ; Tue, 3 Mar 2020 21:22:15 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583270532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9e1CN0CEG7FtG4MzJnzzrv7ZK39Da863xAX+T8DagAM=; b=DyOB6Yr1BAjs3+BOYC3z9SlXAPT6sFbRQFQeAzSw/xAJuEiroMGNOIVbbaD3hWmts9lMsf t4xwsxnud/2kLCesoS9BaXDx9hh5vG3QPA2Fa/296yrXocTmC/UCqD9CHnRKRNHLM4K8xG kDRNiTQfajjOsU/esvPp2cZFJX6lvBU= Received: from tails.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 42a515d4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 3 Mar 2020 21:22:12 +0000 (UTC) Date: Tue, 3 Mar 2020 22:22:12 +0100 From: Emmanuel Vadot To: ticso@cicely.de Cc: Bernd Walter , Klaus =?ISO-8859-1?Q?K=FCchema?= =?ISO-8859-1?Q?nn?= , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200303222212.ac05af1355670e0d12dc5310@bidouilliste.com> In-Reply-To: <20200303102856.GP52462@cicely7.cicely.de> References: <20200302225606.GN52462@cicely7.cicely.de> <20200303102856.GP52462@cicely7.cicely.de> 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: 48X92H5Xwvz48LS X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=DyOB6Yr1; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.24)[ip: (-8.46), ipnet: 212.83.128.0/19(1.97), asn: 12876(0.29), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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: Tue, 03 Mar 2020 21:22:18 -0000 On Tue, 3 Mar 2020 11:28:56 +0100 Bernd Walter wrote: > On Tue, Mar 03, 2020 at 02:12:19AM +0100, Klaus K=FCchemann wrote: > > Hi Bernd, > >=20 > > exclusively made only for you ;-) : > >=20 > > https://wiki.freebsd.org/arm64/ROCKPro64 >=20 >=20 > Perfect - it works :-) > Thank you very much. >=20 > What have you done differently than me? > Beside that I noticed you've changed to console speed to more sane 115200= bps. >=20 > Well - I now have a new problem, which I've only noticed because I had > the USB reader left plugged in since yesterday. > It worked with the previous u-boot (and 2G RAM). >=20 > FreeBSD/arm64 (generic) (ttyu1) >=20 > login: ugen4.2: at usbus4 > umass0 on uhub3 > umass0: on usbus4 > umass0: SCSI over Bulk-Only; quirks =3D 0x8100 > umass0:0:0: Attached to scbus0 > (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 1= 0 00 00=20 > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid = command operation code) > (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex CAM device lock (CAM device lock) r =3D 0 (0xfffffd= 0015619cd0) locked @ /usr/src/sys/cam/cam_xpt.c:5477 > stack backtrace: > #0 0xffff000000476d7c at witness_debugger+0x64 > #1 0xffff000000477dc4 at witness_warn+0x400 > #2 0xffff000000770aa8 at data_abort+0xec > #3 0xffff00000076fee8 at do_el1h_sync+0x144 > #4 0xffff000000754078 at handle_el1h_sync+0x78 > #5 0xffff0000003e5ef0 at free+0x64 > #6 0xffff00000002d95c at probedone+0xabc > #7 0xffff00000001c47c at xpt_done_process+0x364 > #8 0xffff00000001e120 at xpt_done_td+0xd8 > #9 0xffff0000003cba58 at fork_exit+0x7c > x0: 0 > x1: 0 > x2: 21 > x3: 39d > x4: fffffd00ecd8e200 > x5: 44 > x6: 11c > x7: ffff0000403670b0 > x8: 1 > x9: ffff0000404b9100 > x10: 21 > x11: 0 > x12: ffff000000d44a18 > x13: ffff000000d44998 > x14: 1 > x15: 0 > x16: 1 > x17: 0 > x18: ffff0000403676a0 > x19: ffff0000009aae48 > x20: fffffd00e947e9f8 > x21: fffffd00e947e000 > x22: 280 > x23: fffffd00e947e9f8 > x24: ffff0000403678f0 > x25: fffffd000370b100 > x26: fffffd0060045810 > x27: fffffd0003514500 > x28: fffffd0060045800 > x29: ffff0000403676c0 > sp: ffff0000403676a0 > lr: ffff0000003e5ef4 > elr: ffff0000003e5ef4 > spsr: 20000145 > far: 0 > esr: 96000005 > panic: data abort in critical section or under mutex > cpuid =3D 2 > time =3D 1583230709 > KDB: stack backtrace: > db_trace_self() at db_trace_self_wrapper+0x28 > pc =3D 0xffff000000751a5c lr =3D 0xffff000000106be8 > sp =3D 0xffff000040367090 fp =3D 0xffff0000403672a0 >=20 > db_trace_self_wrapper() at vpanic+0x194 > pc =3D 0xffff000000106be8 lr =3D 0xffff00000040e378 > sp =3D 0xffff0000403672b0 fp =3D 0xffff000040367360 >=20 > vpanic() at panic+0x44 > pc =3D 0xffff00000040e378 lr =3D 0xffff00000040e120 > sp =3D 0xffff000040367370 fp =3D 0xffff0000403673f0 >=20 > panic() at data_abort+0x250 > pc =3D 0xffff00000040e120 lr =3D 0xffff000000770c0c > sp =3D 0xffff000040367400 fp =3D 0xffff0000403674b0 >=20 > data_abort() at do_el1h_sync+0x144 > pc =3D 0xffff000000770c0c lr =3D 0xffff00000076fee8 > sp =3D 0xffff0000403674c0 fp =3D 0xffff0000403674f0 >=20 > do_el1h_sync() at handle_el1h_sync+0x78 > pc =3D 0xffff00000076fee8 lr =3D 0xffff000000754078 > sp =3D 0xffff000040367500 fp =3D 0xffff000040367610 >=20 > handle_el1h_sync() at free+0x64 > pc =3D 0xffff000000754078 lr =3D 0xffff0000003e5ef0 > sp =3D 0xffff000040367620 fp =3D 0xffff0000403676c0 >=20 > free() at probedone+0xabc > pc =3D 0xffff0000003e5ef0 lr =3D 0xffff00000002d95c > sp =3D 0xffff0000403676d0 fp =3D 0xffff0000403678b0 >=20 > probedone() at xpt_done_process+0x364 > pc =3D 0xffff00000002d95c lr =3D 0xffff00000001c47c > sp =3D 0xffff0000403678c0 fp =3D 0xffff0000403678e0 >=20 > xpt_done_process() at xpt_done_td+0xd8 > pc =3D 0xffff00000001c47c lr =3D 0xffff00000001e120 > sp =3D 0xffff0000403678f0 fp =3D 0xffff000040367940 >=20 > xpt_done_td() at fork_exit+0x7c > pc =3D 0xffff00000001e120 lr =3D 0xffff0000003cba58 > sp =3D 0xffff000040367950 fp =3D 0xffff000040367980 >=20 > fork_exit() at fork_trampoline+0x10 > pc =3D 0xffff0000003cba58 lr =3D 0xffff00000076fc1c > sp =3D 0xffff000040367990 fp =3D 0x0000000000000000 >=20 > KDB: enter: panic > [ thread pid 9 tid 100042 ] > Stopped at free+0x68: ldr x2, [x0] > db>=20 >=20 > --=20 > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. Try with hw.ncpu=3D4 in /boot/loader.conf There is some issue wrt big.LITTLE, this is not the same panic that I see but could be the same root problem. --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Mar 3 21:46: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 328C225C768 for ; Tue, 3 Mar 2020 21:46:59 +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 48X9Zm4knrz4DFv for ; Tue, 3 Mar 2020 21:46:55 +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 023LmIKZ040171 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Mar 2020 22:48:19 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1583272099; bh=wZOpcTkL74a8KnNQ1oSnTacXGyC2T4OuiMw6iy/ZXAU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=WzaFsxbQLNAQMmOYWBX6pFhZkq8Rvn89UZBP9JDPRoUHaq6aRO/SYCM8FptIlOlRI td4YV/AvpB2QonPkk1WSOtBpESAE13fjFdPnOdJb4tj4m4J5ZTzhUZrrxekz0YvvyS p45oCcLC7VaM3N+qnA9sJYw5YpkMgeABEiiQeNgM= 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 023LkkKL016955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Mar 2020 22:46:46 +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 023LkkfA010325; Tue, 3 Mar 2020 22:46:46 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id 023LkiTB010324; Tue, 3 Mar 2020 22:46:44 +0100 (CET) (envelope-from ticso) Date: Tue, 3 Mar 2020 22:46:44 +0100 From: Bernd Walter To: Emmanuel Vadot Cc: ticso@cicely.de, Bernd Walter , Klaus =?iso-8859-1?Q?K=FCchemann?= , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-ID: <20200303214644.GT52462@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20200302225606.GN52462@cicely7.cicely.de> <20200303102856.GP52462@cicely7.cicely.de> <20200303222212.ac05af1355670e0d12dc5310@bidouilliste.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200303222212.ac05af1355670e0d12dc5310@bidouilliste.com> 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: 48X9Zm4knrz4DFv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=WzaFsxbQ; 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.95)[-0.952,0]; 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]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; 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]; 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]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.02)] 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, 03 Mar 2020 21:46:59 -0000 On Tue, Mar 03, 2020 at 10:22:12PM +0100, Emmanuel Vadot wrote: > On Tue, 3 Mar 2020 11:28:56 +0100 > Bernd Walter wrote: > > > On Tue, Mar 03, 2020 at 02:12:19AM +0100, Klaus Küchemann wrote: > > > Hi Bernd, > > > > > > exclusively made only for you ;-) : > > > > > > https://wiki.freebsd.org/arm64/ROCKPro64 > > > > > > Perfect - it works :-) > > Thank you very much. > > > > What have you done differently than me? > > Beside that I noticed you've changed to console speed to more sane 115200bps. > > > > Well - I now have a new problem, which I've only noticed because I had > > the USB reader left plugged in since yesterday. > > It worked with the previous u-boot (and 2G RAM). > > > > FreeBSD/arm64 (generic) (ttyu1) > > > > login: ugen4.2: at usbus4 > > umass0 on uhub3 > > umass0: on usbus4 > > umass0: SCSI over Bulk-Only; quirks = 0x8100 > > umass0:0:0: Attached to scbus0 > > (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 > > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > > (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) > > (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > > Kernel page fault with the following non-sleepable locks held: > > exclusive sleep mutex CAM device lock (CAM device lock) r = 0 (0xfffffd0015619cd0) locked @ /usr/src/sys/cam/cam_xpt.c:5477 > > stack backtrace: > > #0 0xffff000000476d7c at witness_debugger+0x64 > > #1 0xffff000000477dc4 at witness_warn+0x400 > > #2 0xffff000000770aa8 at data_abort+0xec > > #3 0xffff00000076fee8 at do_el1h_sync+0x144 > > #4 0xffff000000754078 at handle_el1h_sync+0x78 > > #5 0xffff0000003e5ef0 at free+0x64 > > #6 0xffff00000002d95c at probedone+0xabc > > #7 0xffff00000001c47c at xpt_done_process+0x364 > > #8 0xffff00000001e120 at xpt_done_td+0xd8 > > #9 0xffff0000003cba58 at fork_exit+0x7c > > x0: 0 > > x1: 0 > > x2: 21 > > x3: 39d > > x4: fffffd00ecd8e200 > > x5: 44 > > x6: 11c > > x7: ffff0000403670b0 > > x8: 1 > > x9: ffff0000404b9100 > > x10: 21 > > x11: 0 > > x12: ffff000000d44a18 > > x13: ffff000000d44998 > > x14: 1 > > x15: 0 > > x16: 1 > > x17: 0 > > x18: ffff0000403676a0 > > x19: ffff0000009aae48 > > x20: fffffd00e947e9f8 > > x21: fffffd00e947e000 > > x22: 280 > > x23: fffffd00e947e9f8 > > x24: ffff0000403678f0 > > x25: fffffd000370b100 > > x26: fffffd0060045810 > > x27: fffffd0003514500 > > x28: fffffd0060045800 > > x29: ffff0000403676c0 > > sp: ffff0000403676a0 > > lr: ffff0000003e5ef4 > > elr: ffff0000003e5ef4 > > spsr: 20000145 > > far: 0 > > esr: 96000005 > > panic: data abort in critical section or under mutex > > cpuid = 2 > > time = 1583230709 > > KDB: stack backtrace: > > db_trace_self() at db_trace_self_wrapper+0x28 > > pc = 0xffff000000751a5c lr = 0xffff000000106be8 > > sp = 0xffff000040367090 fp = 0xffff0000403672a0 > > > > db_trace_self_wrapper() at vpanic+0x194 > > pc = 0xffff000000106be8 lr = 0xffff00000040e378 > > sp = 0xffff0000403672b0 fp = 0xffff000040367360 > > > > vpanic() at panic+0x44 > > pc = 0xffff00000040e378 lr = 0xffff00000040e120 > > sp = 0xffff000040367370 fp = 0xffff0000403673f0 > > > > panic() at data_abort+0x250 > > pc = 0xffff00000040e120 lr = 0xffff000000770c0c > > sp = 0xffff000040367400 fp = 0xffff0000403674b0 > > > > data_abort() at do_el1h_sync+0x144 > > pc = 0xffff000000770c0c lr = 0xffff00000076fee8 > > sp = 0xffff0000403674c0 fp = 0xffff0000403674f0 > > > > do_el1h_sync() at handle_el1h_sync+0x78 > > pc = 0xffff00000076fee8 lr = 0xffff000000754078 > > sp = 0xffff000040367500 fp = 0xffff000040367610 > > > > handle_el1h_sync() at free+0x64 > > pc = 0xffff000000754078 lr = 0xffff0000003e5ef0 > > sp = 0xffff000040367620 fp = 0xffff0000403676c0 > > > > free() at probedone+0xabc > > pc = 0xffff0000003e5ef0 lr = 0xffff00000002d95c > > sp = 0xffff0000403676d0 fp = 0xffff0000403678b0 > > > > probedone() at xpt_done_process+0x364 > > pc = 0xffff00000002d95c lr = 0xffff00000001c47c > > sp = 0xffff0000403678c0 fp = 0xffff0000403678e0 > > > > xpt_done_process() at xpt_done_td+0xd8 > > pc = 0xffff00000001c47c lr = 0xffff00000001e120 > > sp = 0xffff0000403678f0 fp = 0xffff000040367940 > > > > xpt_done_td() at fork_exit+0x7c > > pc = 0xffff00000001e120 lr = 0xffff0000003cba58 > > sp = 0xffff000040367950 fp = 0xffff000040367980 > > > > fork_exit() at fork_trampoline+0x10 > > pc = 0xffff0000003cba58 lr = 0xffff00000076fc1c > > sp = 0xffff000040367990 fp = 0x0000000000000000 > > > > KDB: enter: panic > > [ thread pid 9 tid 100042 ] > > Stopped at free+0x68: ldr x2, [x0] > > db> > > > > -- > > B.Walter http://www.bwct.de > > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > > Try with hw.ncpu=4 in /boot/loader.conf > There is some issue wrt big.LITTLE, this is not the same panic that I > see but could be the same root problem. With just the A53 cores I have no panic anymore: ... Tue Mar 3 20:08:12 UTC 2020 FreeBSD/arm64 (generic) (ttyu1) login: ugen4.2: at usbus4 umass0 on uhub3 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x8100 umass0:0:0: Attached to scbus0 (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (probe0:umass-sim0:0:0:0): Error 22, Unretryable error da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SPC-4 SCSI device da0: Serial Number 0627197471993281 da0: 400.000MB/s transfers da0: 7500MB (15360000 512 byte sectors) da0: quirks=0x2 root Password: Mar 3 20:09:50 generic login[1054]: ROOT LOGIN (root) ON ttyu1 Last login: Tue Mar 3 18:30:43 on ttyu1 FreeBSD 13.0-CURRENT (GENERIC) #0 r358358: Thu Feb 27 08:25:41 UTC 2020 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier Edit /etc/motd.template to change this login announcement. root@generic:~ # camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) root@generic:~ # dd if=/dev/da0 bs=1m count=100 of=/dev/null load: 0.21 cmd: dd 1062 [physrd] 16.78r 0.00u 0.02s 0% 4204k 15+0 records in 15+0 records out 15728640 bytes transferred in 16.796972 secs (936397 bytes/sec) 100+0 records in 100+0 records out 104857600 bytes transferred in 18.417493 secs (5693370 bytes/sec) -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Wed Mar 4 19:38: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 0F0B2276C8A for ; Wed, 4 Mar 2020 19:38:20 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Xkgr3Vy6z3ynD for ; Wed, 4 Mar 2020 19:38:16 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1583350692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9rR7VEcMuSq3zfAEVZ7lvgEJN8Yqb5za6VwmVeHuT0A=; b=iH3RK1Mm7AVX2/KNs5df4hnG2C1ony4tim9gbiZ54F/jusm1GdjIBDLKcGyG3YFFyjOjLb NN7Bpz8ke54jDkwohuBTKKD7af2c0NYLhYfIr3Iy5tdOqsD44mP7SCFhwXH6iiDnTFLX/K sQ1T0Nq+ajjATu+2gbXORv+LzP2B24g= Received: from skull.home.blih.net (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 0b253960 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 4 Mar 2020 19:38:12 +0000 (UTC) Date: Wed, 4 Mar 2020 20:38:11 +0100 From: Emmanuel Vadot To: ticso@cicely.de Cc: Bernd Walter , Klaus =?ISO-8859-1?Q?K=FCchema?= =?ISO-8859-1?Q?nn?= , freebsd-arm@freebsd.org Subject: Re: RockPro64 with u-boot 2010.01 Message-Id: <20200304203811.4b139dfacf5c68b3480d51fe@bidouilliste.com> In-Reply-To: <20200303214644.GT52462@cicely7.cicely.de> References: <20200302225606.GN52462@cicely7.cicely.de> <20200303102856.GP52462@cicely7.cicely.de> <20200303222212.ac05af1355670e0d12dc5310@bidouilliste.com> <20200303214644.GT52462@cicely7.cicely.de> 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: 48Xkgr3Vy6z3ynD X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=iH3RK1Mm; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.78 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; NEURAL_HAM_MEDIUM(-0.98)[-0.982,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.30)[ip: (-8.74), ipnet: 212.83.128.0/19(1.94), asn: 12876(0.29), country: FR(0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; 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, 04 Mar 2020 19:38:20 -0000 On Tue, 3 Mar 2020 22:46:44 +0100 Bernd Walter wrote: > On Tue, Mar 03, 2020 at 10:22:12PM +0100, Emmanuel Vadot wrote: > > On Tue, 3 Mar 2020 11:28:56 +0100 > > Bernd Walter wrote: > >=20 > > > On Tue, Mar 03, 2020 at 02:12:19AM +0100, Klaus K=FCchemann wrote: > > > > Hi Bernd, > > > >=20 > > > > exclusively made only for you ;-) : > > > >=20 > > > > https://wiki.freebsd.org/arm64/ROCKPro64 > > >=20 > > >=20 > > > Perfect - it works :-) > > > Thank you very much. > > >=20 > > > What have you done differently than me? > > > Beside that I noticed you've changed to console speed to more sane 11= 5200bps. > > >=20 > > > Well - I now have a new problem, which I've only noticed because I had > > > the USB reader left plugged in since yesterday. > > > It worked with the previous u-boot (and 2G RAM). > > >=20 > > > FreeBSD/arm64 (generic) (ttyu1) > > >=20 > > > login: ugen4.2: at usbus4 > > > umass0 on uhub3 > > > umass0: on usb= us4 > > > umass0: SCSI over Bulk-Only; quirks =3D 0x8100 > > > umass0:0:0: Attached to scbus0 > > > (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 = 00 10 00 00=20 > > > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > > > (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Inva= lid command operation code) > > > (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > > > Kernel page fault with the following non-sleepable locks held: > > > exclusive sleep mutex CAM device lock (CAM device lock) r =3D 0 (0xff= fffd0015619cd0) locked @ /usr/src/sys/cam/cam_xpt.c:5477 > > > stack backtrace: > > > #0 0xffff000000476d7c at witness_debugger+0x64 > > > #1 0xffff000000477dc4 at witness_warn+0x400 > > > #2 0xffff000000770aa8 at data_abort+0xec > > > #3 0xffff00000076fee8 at do_el1h_sync+0x144 > > > #4 0xffff000000754078 at handle_el1h_sync+0x78 > > > #5 0xffff0000003e5ef0 at free+0x64 > > > #6 0xffff00000002d95c at probedone+0xabc > > > #7 0xffff00000001c47c at xpt_done_process+0x364 > > > #8 0xffff00000001e120 at xpt_done_td+0xd8 > > > #9 0xffff0000003cba58 at fork_exit+0x7c > > > x0: 0 > > > x1: 0 > > > x2: 21 > > > x3: 39d > > > x4: fffffd00ecd8e200 > > > x5: 44 > > > x6: 11c > > > x7: ffff0000403670b0 > > > x8: 1 > > > x9: ffff0000404b9100 > > > x10: 21 > > > x11: 0 > > > x12: ffff000000d44a18 > > > x13: ffff000000d44998 > > > x14: 1 > > > x15: 0 > > > x16: 1 > > > x17: 0 > > > x18: ffff0000403676a0 > > > x19: ffff0000009aae48 > > > x20: fffffd00e947e9f8 > > > x21: fffffd00e947e000 > > > x22: 280 > > > x23: fffffd00e947e9f8 > > > x24: ffff0000403678f0 > > > x25: fffffd000370b100 > > > x26: fffffd0060045810 > > > x27: fffffd0003514500 > > > x28: fffffd0060045800 > > > x29: ffff0000403676c0 > > > sp: ffff0000403676a0 > > > lr: ffff0000003e5ef4 > > > elr: ffff0000003e5ef4 > > > spsr: 20000145 > > > far: 0 > > > esr: 96000005 > > > panic: data abort in critical section or under mutex > > > cpuid =3D 2 > > > time =3D 1583230709 > > > KDB: stack backtrace: > > > db_trace_self() at db_trace_self_wrapper+0x28 > > > pc =3D 0xffff000000751a5c lr =3D 0xffff000000106be8 > > > sp =3D 0xffff000040367090 fp =3D 0xffff0000403672a0 > > >=20 > > > db_trace_self_wrapper() at vpanic+0x194 > > > pc =3D 0xffff000000106be8 lr =3D 0xffff00000040e378 > > > sp =3D 0xffff0000403672b0 fp =3D 0xffff000040367360 > > >=20 > > > vpanic() at panic+0x44 > > > pc =3D 0xffff00000040e378 lr =3D 0xffff00000040e120 > > > sp =3D 0xffff000040367370 fp =3D 0xffff0000403673f0 > > >=20 > > > panic() at data_abort+0x250 > > > pc =3D 0xffff00000040e120 lr =3D 0xffff000000770c0c > > > sp =3D 0xffff000040367400 fp =3D 0xffff0000403674b0 > > >=20 > > > data_abort() at do_el1h_sync+0x144 > > > pc =3D 0xffff000000770c0c lr =3D 0xffff00000076fee8 > > > sp =3D 0xffff0000403674c0 fp =3D 0xffff0000403674f0 > > >=20 > > > do_el1h_sync() at handle_el1h_sync+0x78 > > > pc =3D 0xffff00000076fee8 lr =3D 0xffff000000754078 > > > sp =3D 0xffff000040367500 fp =3D 0xffff000040367610 > > >=20 > > > handle_el1h_sync() at free+0x64 > > > pc =3D 0xffff000000754078 lr =3D 0xffff0000003e5ef0 > > > sp =3D 0xffff000040367620 fp =3D 0xffff0000403676c0 > > >=20 > > > free() at probedone+0xabc > > > pc =3D 0xffff0000003e5ef0 lr =3D 0xffff00000002d95c > > > sp =3D 0xffff0000403676d0 fp =3D 0xffff0000403678b0 > > >=20 > > > probedone() at xpt_done_process+0x364 > > > pc =3D 0xffff00000002d95c lr =3D 0xffff00000001c47c > > > sp =3D 0xffff0000403678c0 fp =3D 0xffff0000403678e0 > > >=20 > > > xpt_done_process() at xpt_done_td+0xd8 > > > pc =3D 0xffff00000001c47c lr =3D 0xffff00000001e120 > > > sp =3D 0xffff0000403678f0 fp =3D 0xffff000040367940 > > >=20 > > > xpt_done_td() at fork_exit+0x7c > > > pc =3D 0xffff00000001e120 lr =3D 0xffff0000003cba58 > > > sp =3D 0xffff000040367950 fp =3D 0xffff000040367980 > > >=20 > > > fork_exit() at fork_trampoline+0x10 > > > pc =3D 0xffff0000003cba58 lr =3D 0xffff00000076fc1c > > > sp =3D 0xffff000040367990 fp =3D 0x0000000000000000 > > >=20 > > > KDB: enter: panic > > > [ thread pid 9 tid 100042 ] > > > Stopped at free+0x68: ldr x2, [x0] > > > db>=20 > > >=20 > > > --=20 > > > B.Walter http://www.bwct.de > > > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > >=20 > > Try with hw.ncpu=3D4 in /boot/loader.conf > > There is some issue wrt big.LITTLE, this is not the same panic that I > > see but could be the same root problem. >=20 > With just the A53 cores I have no panic anymore: > ... > Tue Mar 3 20:08:12 UTC 2020 >=20 > FreeBSD/arm64 (generic) (ttyu1) >=20 > login: ugen4.2: at usbus4 > umass0 on uhub3 > umass0: on usbus4 > umass0: SCSI over Bulk-Only; quirks =3D 0x8100 > umass0:0:0: Attached to scbus0 > (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 1= 0 00 00=20 > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid = command operation code) > (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Removable Direct Access SPC-4 SCSI device > da0: Serial Number 0627197471993281 > da0: 400.000MB/s transfers > da0: 7500MB (15360000 512 byte sectors) > da0: quirks=3D0x2 > root > Password: > Mar 3 20:09:50 generic login[1054]: ROOT LOGIN (root) ON ttyu1 > Last login: Tue Mar 3 18:30:43 on ttyu1 > FreeBSD 13.0-CURRENT (GENERIC) #0 r358358: Thu Feb 27 08:25:41 UTC 2020 >=20 > Welcome to FreeBSD! >=20 > Release Notes, Errata: https://www.FreeBSD.org/releases/ > Security Advisories: https://www.FreeBSD.org/security/ > FreeBSD Handbook: https://www.FreeBSD.org/handbook/ > FreeBSD FAQ: https://www.FreeBSD.org/faq/ > Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questi= ons/ > FreeBSD Forums: https://forums.FreeBSD.org/ >=20 > Documents installed with the system are in the /usr/local/share/doc/freeb= sd/ > directory, or can be installed later with: pkg install en-freebsd-doc > For other languages, replace "en" with a language code like de or fr. >=20 > Show the version of FreeBSD installed: freebsd-version ; uname -a > Please include that output and any error messages when posting questions. > Introduction to manual pages: man man > FreeBSD directory layout: man hier >=20 > Edit /etc/motd.template to change this login announcement. > root@generic:~ # camcontrol devlist > at scbus0 target 0 lun 0 (da0,pass0) > root@generic:~ # dd if=3D/dev/da0 bs=3D1m count=3D100 of=3D/dev/null > load: 0.21 cmd: dd 1062 [physrd] 16.78r 0.00u 0.02s 0% 4204k > 15+0 records in > 15+0 records out > 15728640 bytes transferred in 16.796972 secs (936397 bytes/sec) > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 18.417493 secs (5693370 bytes/sec) >=20 > --=20 > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. Thanks for confirming this, We now need someone smarted than me to debug this problem ... --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Wed Mar 4 21:12: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 A2ECA251980 for ; Wed, 4 Mar 2020 21:12:32 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (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 48Xmmb2f9zz4D0P for ; Wed, 4 Mar 2020 21:12:30 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x441.google.com with SMTP id z15so4302026wrl.1 for ; Wed, 04 Mar 2020 13:12:30 -0800 (PST) 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:date:references:to:in-reply-to:message-id; bh=JlHmXxxVK0es4pk9HsMU+uWL9PauBT+GkyOYGF6wTu8=; b=Man/JUNY1I3lDo7nO6c+53Oqw3z64WZ3bipMk4Qf0W38F2TiHWamTcGyfoopjRbDvE qf4qzoVQtFecZZJ/q0dOoduKZDtUGlDdZ9W3lBpnXFgVPD5SYqYD0MwCM8myG87hSy+Z eQXgHOKEzsuMhpIlWHHGePKl5K0wRPKQb/JA1wV0pNhTjJIlinU+rcibloWE7/dxf/je QqwXv1iOtahfIYDQPDw7KdvsPbSDwq6SWI6pI80pHFJuMhG+SJuurPpbNyKCBr0hD+wN nFGMfffa5K9VC6ws4bpDc7ivlvx6ps9nE+yufiWnvA/mdjp1V0EW9s9fs3yJ6xXhcnzL TWrA== X-Gm-Message-State: ANhLgQ1mkwImbliOOHo4n8QLwE0FKe0hsWgPjwvgG7sCeOwJ4W0Pzudy +PhwTBqzQqnkEVX44HCUMXy2WcA9 X-Google-Smtp-Source: ADFU+vsU8/GY4knxEghobY093qiZg9OsZN/80H6y3N43wDz7QWla/7YDrkdMuIWmYMF/AtMIXExrrA== X-Received: by 2002:adf:b345:: with SMTP id k5mr6225443wrd.55.1583356347819; Wed, 04 Mar 2020 13:12:27 -0800 (PST) Received: from [192.168.1.167] ([46.114.106.82]) by smtp.googlemail.com with ESMTPSA id w22sm6293699wmk.34.2020.03.04.13.12.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2020 13:12:27 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: RockPro64 with u-boot 2010.01 Date: Wed, 4 Mar 2020 22:12:25 +0100 References: <20200302225606.GN52462@cicely7.cicely.de> <20200303102856.GP52462@cicely7.cicely.de> <20200303222212.ac05af1355670e0d12dc5310@bidouilliste.com> <20200303214644.GT52462@cicely7.cicely.de> <20200304203811.4b139dfacf5c68b3480d51fe@bidouilliste.com> To: Emmanuel Vadot , Warner Losh , Bernd Walter , freebsd-arm@freebsd.org In-Reply-To: <20200304203811.4b139dfacf5c68b3480d51fe@bidouilliste.com> Message-Id: <5032D454-A9BD-4C05-A1D8-0AC4979D4C43@googlemail.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48Xmmb2f9zz4D0P X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[82.106.114.46.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; 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)[1.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.58), ipnet: 2a00:1450::/32(-2.40), asn: 15169(-1.66), 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, 04 Mar 2020 21:12:32 -0000 > Am 04.03.2020 um 20:38 schrieb Emmanuel Vadot : > =E2=80=A6... > We now need someone smarted than me to debug this problem ... >=20 > --=20 > Emmanuel Vadot lol, I don't feel addressed , nevertheless a few hints for the smartest = of the smart (perhaps imp in this context). It has to do with the SCSI-address of the card reader , since only = cardreaders panic ,similar like here : https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 Every other USB-plugged hardware(e.g HDD) I tested works =E2=80=A6 Here`s the probe from generic-mmccam : =E2=80=94 root@generic:~ # cat pagefault mountroot> ugen4.2: at usbus4 umass0 on uhub0 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks =3D 0x4001 umass0:1:0: Attached to scbus1 (probe0:umass-sim0:0:0:0): (noperiph:umass-sim0:0:-1:ffffffff): Periph = created xpt_async(AC_PATH_REGISTERED) (probe0:umass-sim0:0:0:0): Probe started (probe0:umass-sim0:0:0:0): Probe PROBE_INVALID to PROBE_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_INQUIRY to = PROBE_SUPPORTED_VPD_LIST (probe0:umass-sim0:0:0:0): Probe PROBE_SUPPORTED_VPD_LIST to = PROBE_DEVICE_ID (probe0:umass-sim0:0:0:0): Probe PROBE_DEVICE_ID to = PROBE_EXTENDED_INQUIRY (probe0:umass-sim0:0:0:0): Probe PROBE_EXTENDED_INQUIRY to = PROBE_SERIAL_NUM (probe0:umass-sim0:0:0:0): Probe PROBE_SERIAL_NUM to = PROBE_TUR_FOR_NEGOTIATION (probe0:umass-sim0:0:0:0): (noperiph:umass-sim0:0:0:0): Probe = PROBE_TUR_FOR_NEGOTIATION to PROBE_DONE xpt_async(AC_FOUND_DEVICE) (probe0:umass-sim0:0:0:0): Probe completed (probe0:umass-sim0:0:0:0): Periph invalidated Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex CAM bus lock (CAM bus lock) r =3D 0 = (0xfffffd00008af6e0) locked @ /usr/src/sys/cam/cam_xpt.c:1025 exclusive sleep mutex XPT topology lock (XPT topology lock) r =3D 0 = (0xffff000000b40600) locked @ /usr/src/sys/cam/cam_xpt.c:5347 exclusive sleep mutex CAM device lock (CAM device lock) r =3D 0 = (0xfffffd000335fcd0) locked @ /usr/src/sys/cam/cam_xpt.c:5474 stack backtrace: #0 0xffff000000478f8c at witness_debugger+0x64 #1 0xffff000000479fd4 at witness_warn+0x400 #2 0xffff000000774398 at data_abort+0xec #3 0xffff0000007737d8 at do_el1h_sync+0x144 #4 0xffff000000757878 at handle_el1h_sync+0x78 #5 0xffff0000000175a8 at xpt_remove_periph+0x38 #6 0xffff0000000136a4 at cam_periph_release_locked_buses+0x184 #7 0xffff00000001384c at cam_periph_release_locked+0x1c #8 0xffff0000000310f0 at probedone+0x17c4 #9 0xffff00000001e6d0 at xpt_done_process+0x31c #10 0xffff0000000203c8 at xpt_done_td+0xd8 #11 0xffff0000003cdb1c at fork_exit+0x7c x0: fffffd00008af6e0 x1: 8 x2: ffff0000008545c4 x3: 401 x4: fffffd00ecd94d00 x5: 11a x6: bb x7: ffff00004036c338 x8: deadc0dedeadc0de x9: deadc0dedeadc0de x10: deadc0df x11: 10000 x12: ffff000000d48b98 x13: ffffffff x14: 0 x15: 10000 x16: 1 x17: 10000 x18: ffff00004036c170 x19: fffffd000336eb00 x20: fffffd000335f800 x21: fffffd000335c000 x22: ffff000000a8b000 x23: ffff0000007ef50a x24: ffff0000011d5000 x25: fffffd0003303180 x26: fffffd000335c810 x27: fffffd000336eb00 x28: fffffd000335c800 x29: ffff00004036c180 sp: ffff00004036c170 lr: ffff0000000175ac elr: ffff0000000175cc spsr: 80000145 far: deadc0dedeadc13e esr: 96000004 panic: data abort in critical section or under mutex cpuid =3D 1 time =3D 113 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc =3D 0xffff000000754d7c lr =3D 0xffff000000110a04 sp =3D 0xffff00004036bb60 fp =3D 0xffff00004036bd70 db_trace_self_wrapper() at vpanic+0x194 pc =3D 0xffff000000110a04 lr =3D 0xffff000000410408 sp =3D 0xffff00004036bd80 fp =3D 0xffff00004036be30 vpanic() at panic+0x44 pc =3D 0xffff000000410408 lr =3D 0xffff0000004101b0 sp =3D 0xffff00004036be40 fp =3D 0xffff00004036bec0 panic() at data_abort+0x250 pc =3D 0xffff0000004101b0 lr =3D 0xffff0000007744fc sp =3D 0xffff00004036bed0 fp =3D 0xffff00004036bf80 data_abort() at do_el1h_sync+0x144 pc =3D 0xffff0000007744fc lr =3D 0xffff0000007737d8 sp =3D 0xffff00004036bf90 fp =3D 0xffff00004036bfc0 do_el1h_sync() at handle_el1h_sync+0x78 pc =3D 0xffff0000007737d8 lr =3D 0xffff000000757878 sp =3D 0xffff00004036bfd0 fp =3D 0xffff00004036c0e0 handle_el1h_sync() at xpt_remove_periph+0x38 pc =3D 0xffff000000757878 lr =3D 0xffff0000000175a8 sp =3D 0xffff00004036c0f0 fp =3D 0xffff00004036c180 xpt_remove_periph() at cam_periph_release_locked_buses+0x184 pc =3D 0xffff0000000175a8 lr =3D 0xffff0000000136a4 sp =3D 0xffff00004036c190 fp =3D 0xffff00004036c6a0 cam_periph_release_locked_buses() at cam_periph_release_locked+0x1c pc =3D 0xffff0000000136a4 lr =3D 0xffff00000001384c sp =3D 0xffff00004036c6b0 fp =3D 0xffff00004036c6c0 cam_periph_release_locked() at probedone+0x17c4 pc =3D 0xffff00000001384c lr =3D 0xffff0000000310f0 sp =3D 0xffff00004036c6d0 fp =3D 0xffff00004036c8b0 probedone() at xpt_done_process+0x31c pc =3D 0xffff0000000310f0 lr =3D 0xffff00000001e6d0 sp =3D 0xffff00004036c8c0 fp =3D 0xffff00004036c8e0 xpt_done_process() at xpt_done_td+0xd8 pc =3D 0xffff00000001e6d0 lr =3D 0xffff0000000203c8 sp =3D 0xffff00004036c8f0 fp =3D 0xffff00004036c940 xpt_done_td() at fork_exit+0x7c pc =3D 0xffff0000000203c8 lr =3D 0xffff0000003cdb1c sp =3D 0xffff00004036c950 fp =3D 0xffff00004036c980 fork_exit() at fork_trampoline+0x10 pc =3D 0xffff0000003cdb1c lr =3D 0xffff00000077350c sp =3D 0xffff00004036c990 fp =3D 0x0000000000000000 KDB: enter: panic [ thread pid 9 tid 100043 ] Stopped at xpt_remove_periph+0x5c: ldr x9, [x9, #96] From owner-freebsd-arm@freebsd.org Fri Mar 6 04:54:34 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 5DB48255EEF for ; Fri, 6 Mar 2020 04:54:34 +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 48YZzD257tz4l5Y for ; Fri, 6 Mar 2020 04:54:31 +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 0264shDa019176 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 Mar 2020 20:54:44 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 0264shaW019175; Thu, 5 Mar 2020 20:54:43 -0800 (PST) (envelope-from fbsd) Date: Thu, 5 Mar 2020 20:54:43 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Adding a swap partition to the March 5 snapshot image Message-ID: <20200306045443.GA19058@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: 48YZzD257tz4l5Y 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.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.55)[-0.554,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.25), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.90)[-0.899,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: Fri, 06 Mar 2020 04:54:34 -0000 I've been trying for a while to set up an armv7 RPI2 with a single root partition plus a swap partition at the end of mmcsd0. Letting firstboot invoke growfs seems not to help, since growfs leaves no space for swap. Attempts using gpart in single-user give the appearance of working, but on reboot the machine stops at the mountroot prompt. This method worked well in July of 2018. Seemingly, no more. Has something changed? Mounting the armv7 card on a second Freebsd box and making the changes appears to work also, but on the initial boot (firstboot disabled) the machine stops at the mountroot prompt on initial boot. If there's a better way to pursue the same end I'd be grateful for a hint. Perhaps giving a swap size parameter to firstboot? Thanks for reading, bob prohaska From owner-freebsd-arm@freebsd.org Fri Mar 6 05:26: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 E993625828D for ; Fri, 6 Mar 2020 05:26:49 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 48YbhR6Pyxz3PdK for ; Fri, 6 Mar 2020 05:26:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: jgy9dJYVM1nYJqhLJ5_sSw9iyJWSxnolqB_3yCcp68tGvBirP.CMkj6MTx650SY _u1PYIgswk1QS97dHIWNcQ4vEv6mHuJ_zCmyyS7lz_h0fQASbb87G8PTKul_UO3gEkF5kcS66Xkz O_pKNg3PhXv29O9dhFNzCprL9Ppf._mDHycDA0ezJ85Rbq6IyjZs4pVSOl8gnt0OIfqQGpkDKmnS iRwP3cTuctq4DgyehYc3C9HJ22AArwMEboBJr7QnKuTZAVTZ_.OnQ1I.WCaYMXr97_heYjrpWkvm Z3dxo70ZRwupV.8.wVm_c7PsvGzsw_dWbOeM1Ws5ZPqgkKdYbyT.onvqoyzNdLk3u.29GmF71qiG FeGg92dYUIC2oDFppY7YqREMbH4nKZKk8IVcb2__PPnXjJDSWRHMlcbI4mJ4izTozFoQ_QuQhx0L kW5obQZ1g_QgDddiFkeKaTsuZc_sonHksEn6rbuQo37trYgCwTA5gz5KyQIYI0x7JZtfC8sTAzbv PjP5GVPAzYu0IFMaDGCvwF6mRu637waI2X2kLX7Ew.HNbJHvRpPLMeorpyKjw1DRpivXEnprleHP 3AHTtZVO7nRXO_Y3X1k00hC7y45xCNHGo579WlVvAY6N5oWkOHIMv8HOXKwF0EpOY_QxxZoZxm2Y URiEL9AJv6zBTcB9zwHHF_OlRtCLaakS_OQ00CdfTjiYghowIYFgjsmhB6hOYnKaaS6nvJeP9gn6 y6J3ETAPcOdz5IK7KIBGPYfvJKj8ELFJx2Xdv84Efre2A48BgJoi.ROPRVoyH6tEnpL58LyEDzpY nRzO4crbjkoSWvAsDlxPLPhIsnAnAow6.dJXYfALCauQa3IovKWyyd7o_oRvSjM6cicJTtSAArCR TTuoBAIeP3sohfpXYEPtub3AmynaU__17fUJNpXFhJlTeX5Ruk3nOvceQrdFhZNhGidE.p_ipEDS qiLgwygGC1NIPRuBGjNbVzCHJtGciz6iRnI48RpNyg_UVc7hpNAIeXBzGDaFqGiDiAcYi0EKKXI6 jm.3BRJka_GrQEsPEc8ehFciriuDnu91OauGdtBPY6HU7HQx9srfxP.prT08iq9log4B6rgt0aS5 wbn0Dfixd6OXxKCE.LPy0uCddo3S7Xj5cD.HErNir_skZFjoOutN1VKgXmi2YLgdwxa5Ro07H7ix TZW.8.ZztZ.P8N4xSWL6TGPKA5O94EyAd.PdKe0z66N_O_gKyiZIVuF0fWT9B3LRZHGZO0Fex1Lo xkH.r9Mxg5ABhSquVKi13k.hbRvIMdPIEzhfNlkdoM_Y6hKtj8oWF6WWF3unaZf0NEGBJOfTh7DV YIhepp7rp55YBJmP8BoBRiVdITQzqaNSnq6R0RSgkEFiZIb4G7qLxEmoXQIa1OEVyw7byzXOcsZq m9GkoDawVKU25y0YJXQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 6 Mar 2020 05:26:46 +0000 Received: by smtp407.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 287f42dc6d759b3c1c410fcd592fbc92; Fri, 06 Mar 2020 05:26:42 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Adding a swap partition to the March 5 snapshot image From: Mark Millard In-Reply-To: <20200306045443.GA19058@www.zefox.net> Date: Thu, 5 Mar 2020 21:26:42 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> References: <20200306045443.GA19058@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48YbhR6Pyxz3PdK X-Spamd-Bar: / X-Spamd-Result: default: False [0.31 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; 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(-0.09)[-0.094,0]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.90)[0.903,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[84.69.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; 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: (5.81), ipnet: 98.137.64.0/21(0.84), asn: 36647(0.67), 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: Fri, 06 Mar 2020 05:26:50 -0000 On 2020-Mar-5, at 20:54, bob prohaska wrote: > > I've been trying for a while to set up an armv7 RPI2 with a single > root partition plus a swap partition at the end of mmcsd0. Letting > firstboot invoke growfs seems not to help, since growfs leaves no > space for swap. > > Attempts using gpart in single-user give the appearance of > working, but on reboot the machine stops at the mountroot prompt. > This method worked well in July of 2018. Seemingly, no more. > > Has something changed? > > Mounting the armv7 card on a second Freebsd box and making the changes > appears to work also, but on the initial boot (firstboot disabled) the > machine stops at the mountroot prompt on initial boot. > > If there's a better way to pursue the same end I'd be grateful for > a hint. Perhaps giving a swap size parameter to firstboot? You have not reported what shows if you enter a "?" command at the mountroot prompt. (As I remember that lists what mount root classifies as available.) That might prove to be useful information. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Fri Mar 6 05:42:07 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 11FBB25A5C1 for ; Fri, 6 Mar 2020 05:42:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (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 48Yc254vjVz4GtP for ; Fri, 6 Mar 2020 05:42:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: CZRX6p8VM1kjlkzzi5kZp1iwVMDwWZm6De3OXk7SjTKFASO8U07P8zmOhkHaurx bSdAvZ.xm135LZCRflYAvg4JBxlAq8067bNWO7mVYsfPvlrbpK8o_3fZ3oxZUe4seY0uVe1U81ck AS65phQ0P1Z49OSPAJNRSa8B0wzc5jqBTFg_L21YxQ02ChSyYvx5.IvR3ptRGV2iDA_2K2vN0vfS cxK4mKSQlERz2spvjjfcDswTSHMFwJAG9GfV8v7WqBN.dXBAYmFCf3j3AR0LTozlWr.FNBzqJyoV djKKnYuHBJww708SgxIAI6iXOVoVLH06GvvsH8InXllsLAa3CuVXaO5yJsv9TVTlY6Lz23J0wV5V VYt9xUI93VBUm7rOzlNd7hfCt4glX2bF0RcBGwMjpq63RHJDuc37uJKvKad8CXHW_ZG2LrtKQQJk eIC.ooo9n8Js_kwsfnSefbRgoyAIV02wlyWRXujiu4CunxLelh3WeuH9WVG_2qilBrZK31UjB3P8 YL5RHD0mE.MkDCjyhLHn5WHT.OYrk2nb5CzP9mcsWNyP1iwKo6OMthZR.wJRfDHzxZ2pZhXgAZnw fUcJ2zN1nDz1iE1YtpzJfT9yks2lXLY5KXm.ntkWDBUK04DvwZc_.a6Va9WVB7GmvlUpHs1tcKYP O1spZkpJpXtVaqwNsGPJpKG8Dc6KyDOenXsWuxWZEIuwbYVSSfWQE.Ngsuq8qxEk9p22SFCOQoOZ ekiAgaXgbyZV0xsMKIeKARdiJdEkHf.ecTPGsWSXmBx71k6RZGS22MdGO00O36aYIIfZ.wRBTCYY ndTo.FXIruDJwoi5DOdviSOnxg4hrw.4IeUnaiudbjS0Ip.vkEp5GEOGVg0cc7WDbCNnADtQJYXb qPqAzPBwDoCr3w33jClHhuKKdjDPK0m.KIC66az.iIbWRWjo4MBQTBTih3zTlVyiwsXKfxPKkha9 nipf_rfKuKqlU0lO7hXXb_xAblV5sAZqEXw9z6wIxQv1q.DXHroUbyPPKvUcDTdHXTnQrEihNJQP zcFWpZdlpRJ5XG5q0FbyOSTWJx7WDS.fgIcpAA7wQQmeLirqTUlavcdzlzFdPLblJ77DOdrMKJqK TxHVRZfUtZgk85NJ0AV_Q7QzsYbemzzySbDYMn.52_waOMnS1fycqhBrFPVAGh9905YPnuSvbwex iQYqqVnO3f7u_tOW22LSJMmIsAKCSyPvQgl8S4HZHdRNwjzWony3jXK7Oc.SoH0J4HMXUG.wOBV5 fa8icgcMJXm7aLmMjBKEzS0ovHgYjYX0p9.Gqon48Ihyd5.Uycod20YvxCYQ4dZPK.o9m6C8f4gm Qnztxd8keWGSW04._JvCJMOJP1Q701u.Eg3sJDN4LqLke_0YPkAZSscfPVp029gGzi0.Bdg.R_il nNCh1ozMlFggs.b350h8- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Fri, 6 Mar 2020 05:42:03 +0000 Received: by smtp428.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9ea67022e32930c3b6fb911a581c46ba; Fri, 06 Mar 2020 05:42:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Adding a swap partition to the March 5 snapshot image From: Mark Millard In-Reply-To: <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> Date: Thu, 5 Mar 2020 21:42:01 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <5C66F8DD-F97B-4A44-8E84-1E48B920B8FA@yahoo.com> References: <20200306045443.GA19058@www.zefox.net> <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48Yc254vjVz4GtP X-Spamd-Bar: - X-Spamd-Result: default: False [-1.24 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; 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(-0.98)[-0.980,0]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.24)[0.243,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[146.68.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; 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.18), ipnet: 98.137.64.0/21(0.84), asn: 36647(0.67), 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: Fri, 06 Mar 2020 05:42:07 -0000 On 2020-Mar-5, at 21:26, Mark Millard wrote: > On 2020-Mar-5, at 20:54, bob prohaska wrote: >> >> I've been trying for a while to set up an armv7 RPI2 with a single >> root partition plus a swap partition at the end of mmcsd0. Letting >> firstboot invoke growfs seems not to help, since growfs leaves no >> space for swap. >> >> Attempts using gpart in single-user give the appearance of >> working, but on reboot the machine stops at the mountroot prompt. >> This method worked well in July of 2018. Seemingly, no more. >> >> Has something changed? >> >> Mounting the armv7 card on a second Freebsd box and making the changes >> appears to work also, but on the initial boot (firstboot disabled) the >> machine stops at the mountroot prompt on initial boot. >> >> If there's a better way to pursue the same end I'd be grateful for >> a hint. Perhaps giving a swap size parameter to firstboot? > > You have not reported what shows if you enter a "?" command at the > mountroot prompt. (As I remember that lists what mount root > classifies as available.) > > That might prove to be useful information. > Ahh, "March 5 snapshot image"? The only head 20200305 images are for amd64: everything else failed to build for head -r358658 . Are you using stable/12 images? Those built ( 12.1-STABLE -r358659 ), including for RPI2. All stable/11 builds failed. (You seem to usually use head but did not comment on using stable/12. So I'm just checking the context here.) === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Fri Mar 6 05:56:05 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 4F24425AA41 for ; Fri, 6 Mar 2020 05:56:05 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh504-vm11.bullet.mail.kks.yahoo.co.jp (nh504-vm11.bullet.mail.kks.yahoo.co.jp [183.79.57.97]) by mx1.freebsd.org (Postfix) with SMTP id 48YcL85Hcvz3QZQ for ; Fri, 6 Mar 2020 05:56:00 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.140] by nh504.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 05:55:57 -0000 Received: from [183.79.100.137] by t503.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 05:55:57 -0000 Received: from [127.0.0.1] by omp506.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 05:55:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 581058.45737.bm@omp506.mail.kks.yahoo.co.jp X-YMail-OSG: aVaVFpgVM1kHFLr3pgGV51BmXRYWqQkJZihzfQLgzbMM2bgzQHAWm.TuqU2_P12 aw4Y54SC9ahlXU.FZQjkv_JITTIZ7cusF2FEwDZRumrwTBAP1NQGlAalllvKOpHDl3oPT6jMNQkb k9ifRcYmUrkaEco1QsaQUE_NQv2KDlHnuiNf3uzKiJfMQp3OlsyUuopPrNq5jEea1BQRaMjLP9Y1 MbTj5HqDhVVOHbdHM0JtdLZXIH5rrUEtNIdw3gKHYKXLFwKXrk39VzmWtIXb3pw9YRrXeZenrHHO jQhGHGqvuEUCD0U.RLhGD2zV3VkUuYE4sRJu0tJ3AW2n5pR1dVdQagOwM2Whd24EB7Ojs4dEGw5i zyC_wqoVrvlTOLu4x_POgeXGiJppxE92zSbhKefxDI9vmkl9Jl5WnBR34KLQ13kOukJbhmi86AeV kaqonHXPgwH6MZJg0PUh6MYBb5.kCYv4d2wnatSZZAZfSMPMkbm3sLcF_Q35VTHOrdcm81b619xb PWmMagBVaIaUo6XhFSH43NzIMMPKck1BUzBfvwO921Kn3u8kLuOtlVoy0v__NdIPHmcikP_W7O.x h71W6lQB0Xb50jXtmx6_1O8vrP5kZxSl427C.8zhw.8PK2m1QEdY571xzC.LVTdOqvruH9yDs.pp IJX.99eU8loauPuKZTGNGNkgyYP3r5.HATs7AOEXk5wN7rd52sg92EE0eb9P2UPXmphZnEQgFVBF mmAqV4lLVebzWodDYo7a. Received: from jws702004.mail.kks.yahoo.co.jp by sendmailws502.mail.kks.yahoo.co.jp; Fri, 06 Mar 2020 14:55:57 +0000; 1583474157.088 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583474157; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=lHUOxdFH0OJxqGQXFLDrE80MICj3silacMF5vKKPTQo=; b=UgtFYaU1MJOEX607kSByPWd0Igm0ccIiwEtdPydv114q7mKjiNCfI/F2UhEImMDu zVTQuiPckzQRLpxjwl5tNe3E3kF3G7Qsza6bMow4lQArdw7ZEPk9dlZAvtXvwPutJL3 lz02ejntghtvOE1kSjlwCIN96kAutOZhLxIMu4pM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Y6ZmVOGqqNZgCVqAqdRbNRdOXGsNyTDVKbN/inmda0hwXg2KGkvx/rGwmK/WT5kJ AegiT4X7TI/u/vxFXja0FG8FAfO6x3Px6bo+2MCpG1erh86ksci3ivitgPmme7m27Fe O+Mapl8SWKjsOzTz/KJPWuCYaS/ZF1qzownMXbJ0=; Date: Fri, 6 Mar 2020 14:55:56 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" Message-ID: <2128278973.2661650.1583474156629.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <1989879823.835082.1583057147228.JavaMail.yahoo@mail.yahoo.co.jp> References: <1989879823.835082.1583057147228.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1989879823.835082.1583057147228.JavaMail.yahoo@mail.yahoo.co.jp> Subject: Re: A10 HDMI support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48YcL85Hcvz3QZQ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=UgtFYaU1; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.57.97 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-0.31 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:183.79.0.0/16]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; IP_SCORE(0.00)[ip: (5.09), ipnet: 183.79.0.0/16(2.38), asn: 24572(1.90), country: JP(0.04)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.40)[-0.403,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.99)[0.991,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[97.57.79.183.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_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: Fri, 06 Mar 2020 05:56:05 -0000 Hi I seem clkng don't have this method. #define TCON_PLL_WORST =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01000000 #define TCON_PLL_N_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 #define TCON_PLL_N_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A015 #define TCON_PLL_M_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09 #define TCON_PLL_M_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0127 #define TCON_PLLREF_SINGLE =C2=A0 =C2=A0 =C2=A03000 =C2=A0 =C2=A0/* kHz */ #define TCON_PLLREF_DOUBLE =C2=A0 =C2=A0 =C2=A06000 =C2=A0 =C2=A0/* kHz */ #define TCON_RATE_KHZ(rate_hz) =C2=A0((rate_hz) / 1000) #define TCON_RATE_HZ(rate_khz) =C2=A0((rate_khz) * 1000) #define HDMI_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 297000000 #define DEBE_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 300000000 static void calc_tcon_pll(int f_ref, int f_out, int *pm, int *pn) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 int best, m, n, f_cur, diff; =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D TCON_PLL_WORST; =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (n =3D TCON_PLL_N_MIN; n <=3D TCON_PLL_N_MA= X; n++) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (m =3D TCON_PLL= _M_MIN; m <=3D TCON_PLL_M_MAX; m++) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 f_cur =3D (m * f_ref) / n; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 diff =3D f_out - f_cur; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 if (diff > 0 && diff < best) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D diff; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pm =3D m; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pn =3D n; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 } } int a10_clk_tcon_activate(unsigned int freq) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct a10_ccm_softc *sc; =C2=A0 =C2=A0 =C2=A0 =C2=A0 int m, n, m2, n2, f_single, f_double, dbl, src_= sel; =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc =3D a10_ccm_sc; =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (sc =3D=3D NULL) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (ENXIO); =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D n =3D m2 =3D n2 =3D 0; =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 0; =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_SINGLE, TCON_RATE_KHZ= (freq), &m, &n); =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_DOUBLE, TCON_RATE_KHZ= (freq), &m2, &n2); =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_single =3D n ? (m * TCON_PLLREF_SINGLE) / n := 0; =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_double =3D n2 ? (m2 * TCON_PLLREF_DOUBLE) / n= 2 : 0; =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (f_double > f_single) { =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 1; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D m2; =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 n =3D n2; =C2=A0 =C2=A0 =C2=A0 =C2=A0 } =C2=A0 =C2=A0 =C2=A0 =C2=A0 src_sel =3D dbl ? CCM_LCD_CH1_SRC_SEL_PLL3_2X := CCM_LCD_CH1_SRC_SEL_PLL3; =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (n =3D=3D 0 || m =3D=3D 0) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (EINVAL); =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Set PLL3 to the closest possible rate */ =C2=A0 =C2=A0 =C2=A0 =C2=A0 a10_clk_pll3_set_rate(TCON_RATE_HZ(m * TCON_PLL= REF_SINGLE)); =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Enable LCD0 CH1 clock */ =C2=A0 =C2=A0 =C2=A0 =C2=A0 ccm_write_4(sc, CCM_LCD0_CH1_CLK, =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 CCM_LCD_CH1_SCLK2_GATING | CCM_LC= D_CH1_SCLK1_GATING | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (src_sel << CCM_LCD_CH1_SRC_SEL_S= HIFT) | (n - 1)); =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (0); } ----- Original Message ----- > From: Mori Hiroki > To: "freebsd-arm@freebsd.org" > Cc:=20 > Date: 2020/3/1, Sun 19:05 > Subject: A10 HDMI support >=20 > Hi >=20 > I have A10 PCduino.=C2=A0 >=20 > I try to use a10_hdmi.c and a10_fb.c >=20 > This code may be work at first implementation > at 2016.=C2=A0 >=20 > But change to dts away modify and chkng change > complete broken this code. >=20 > I modify dts and code on 12-Stable then almost > detect. But not work. >=20 > http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5402 >=20 >=20 > Dose some body repair this code? >=20 > Thanks >=20 > Hiroki Mori >=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" >=20 From owner-freebsd-arm@freebsd.org Fri Mar 6 06:57:30 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 896CC261249 for ; Fri, 6 Mar 2020 06:57:30 +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 48Ydj438Zfz46wr for ; Fri, 6 Mar 2020 06:57:28 +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 0266vj60019512 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 Mar 2020 22:57:46 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 0266vjLM019511; Thu, 5 Mar 2020 22:57:45 -0800 (PST) (envelope-from fbsd) Date: Thu, 5 Mar 2020 22:57:45 -0800 From: bob prohaska To: Mark Millard Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Adding a swap partition to the March 5 snapshot image Message-ID: <20200306065745.GA19280@www.zefox.net> References: <20200306045443.GA19058@www.zefox.net> <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> <5C66F8DD-F97B-4A44-8E84-1E48B920B8FA@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5C66F8DD-F97B-4A44-8E84-1E48B920B8FA@yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 48Ydj438Zfz46wr 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.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.73)[-0.728,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.24), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.91)[-0.906,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; 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: Fri, 06 Mar 2020 06:57:30 -0000 On Thu, Mar 05, 2020 at 09:42:01PM -0800, Mark Millard wrote: > > > On 2020-Mar-5, at 21:26, Mark Millard wrote: > > > > > On 2020-Mar-5, at 20:54, bob prohaska wrote: > >> > >> I've been trying for a while to set up an armv7 RPI2 with a single > >> root partition plus a swap partition at the end of mmcsd0. Letting > >> firstboot invoke growfs seems not to help, since growfs leaves no > >> space for swap. > >> > >> Attempts using gpart in single-user give the appearance of > >> working, but on reboot the machine stops at the mountroot prompt. > >> This method worked well in July of 2018. Seemingly, no more. > >> > >> Has something changed? > >> > >> Mounting the armv7 card on a second Freebsd box and making the changes > >> appears to work also, but on the initial boot (firstboot disabled) the > >> machine stops at the mountroot prompt on initial boot. > >> > >> If there's a better way to pursue the same end I'd be grateful for > >> a hint. Perhaps giving a swap size parameter to firstboot? > > > > You have not reported what shows if you enter a "?" command at the > > mountroot prompt. (As I remember that lists what mount root > > classifies as available.) > > > > That might prove to be useful information. > > > > Ahh, "March 5 snapshot image"? The only head 20200305 images are > for amd64: everything else failed to build for head -r358658 . > > Are you using stable/12 images? Those built ( 12.1-STABLE -r358659 ), > including for RPI2. > FreeBSD-12.1-STABLE-arm-armv7-RPI2-20200305-r358659.img Same trouble with the Feb 27 image. > All stable/11 builds failed. > > (You seem to usually use head but did not comment on using > stable/12. So I'm just checking the context here.) > Only on the Pi3. My intent was to set up production 8-) machines on new media, which are early Pi2 v 1.1 boards. I'll repeat the exercise in the morning and try to keep a transcript. Thanks for replying! bob prohaska From owner-freebsd-arm@freebsd.org Fri Mar 6 10:45: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 85ADF2651C0 for ; Fri, 6 Mar 2020 10:45:43 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh604-vm10.bullet.mail.ssk.yahoo.co.jp (nh604-vm10.bullet.mail.ssk.yahoo.co.jp [182.22.90.67]) by mx1.freebsd.org (Postfix) with SMTP id 48YkmN1y9yz44lp for ; Fri, 6 Mar 2020 10:45:39 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 06 Mar 2020 10:45:37 -0000 Received: from [182.22.91.133] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 06 Mar 2020 10:45:37 -0000 Received: from [127.0.0.1] by omp606.mail.ssk.yahoo.co.jp with NNFMP; 06 Mar 2020 10:45:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 10158.4526.bm@omp606.mail.ssk.yahoo.co.jp X-YMail-OSG: m6Pl7EMVM1k3QxAcncUk9aI0RRJTJlkhFZ5epO5odV0NBfn0x2kXcIcfU4KStY0 kwy553uD_xlwtgPX1_.1V90pcWB9bKU_upRPjaxek3JA9XoDKzNzH25264EJMUhrAItH3yZhee6S Cd7GQ8vKMGNxTnFjxKLeXUfgu5xpc0v9JM6qKDCfSwTCwk4pGuQgILQX_cLYYg7HPEyb8x.9cUou XLV7Dd6RanIDuV8zKqJfBs56463BI7rSgmh7XD94ILfZ9dSwjovvsKAO0onVX4MxcLgbBQLoMEUP DD2M9wcm9aGBsUnieqjGfM2GVvRtCGBewUhbSKQHlnuJk0aE_2Ew7h9ySOQXvnFfymPvXV4fg4lV UmBek4SOlZcxzgdszdmo11cyN3dPXu11Lh.Ujf6nz2lw0BOPJJ5TUyv6XMh4Rx232ttN8BbyffvL w03RmMNo_gAm6mnC0NX1l9j3S1mspP8dZ5B2B.tlSO5aH.Bw8xRrNfOP.6CcZSvasM534xbhWvE3 oAps2t9th6vXjSCtdWEiTlJLbKtj5zMG0LOkmdmu5R4AaqIJKJx_9h1pWdN7EILOZDXBUew8ic7u otsE0C0JUa3M_3ZJcE3FN7axKEqM19O7_A3vS_QMSBnbeOfPPZkgeHW1W1iwv7VunU1v8xCKxQfO 9OAH7veJBbDjzmuCR4eCG07Cdla0lbwV34I9fRLh.1QHJ8OZkcOrzjH85CaqKGOKPAAarZK5X8EV yRuB_HXXSia7hObibZy5q Received: from jws705002.mail.kks.yahoo.co.jp by sendmailws504.mail.kks.yahoo.co.jp; Fri, 06 Mar 2020 19:45:36 +0000; 1583491536.365 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583491536; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=4+FhZjmflUfviJ14CKo8wTXf1LaGE/UpuDKSF23I4DQ=; b=NrWlO/CabdtuZS0ozCAiHAsz3LiIpTuIrHPzSH7S112tT5SzszcRtNJXCMKjvACw vsuH7teIo+1EnnOYql2gkfEm+uizWC77hVcifYdNdWCKjiTaJyxHM/OY6xnDPMhO+3m ggqnWcpFYmnDWvHGxJYI2QCWRk6/fxBH3jprwfkE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mdGnnjOm6xGXALgkcNdN4UpHJB2rh8ANKLbaSVkSzGi9NGMSyNgiCc9WwmGYRXI0 /uymLC87wxQOjt6Emzos/96QyGIVCzDP+o2W7po2/BouuUDYd+XBUI5F57LlBHjRyex Ux07nJoRNgjoeov2aB21DTnSRUGAxE3hZFBfpNyU=; Date: Fri, 6 Mar 2020 19:45:36 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" Message-ID: <374090886.2770800.1583491536027.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <2128278973.2661650.1583474156629.JavaMail.yahoo@mail.yahoo.co.jp> References: <1989879823.835082.1583057147228.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1989879823.835082.1583057147228.JavaMail.yahoo@mail.yahoo.co.jp> <2128278973.2661650.1583474156629.JavaMail.yahoo@mail.yahoo.co.jp> Subject: Re: A10 HDMI support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48YkmN1y9yz44lp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=NrWlO/Ca; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.67 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-0.53 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.74), ipnet: 182.22.0.0/17(2.37), asn: 23816(1.89), country: JP(0.04)]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.61)[-0.612,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.99)[0.986,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[67.90.22.182.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[67.90.22.182.rep.mailspike.net : 127.0.0.17] 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: Fri, 06 Mar 2020 10:45:43 -0000 Hi I test this code. error =3D clk_set_freq(clk_vid,=C2=A0222000000, CLK_SET_ROUND_DOWN); error =3D clk_get_freq(clk_vid, &lcd_fout); device_printf(sc->dev, "MORI MORI freq=C2=A0CLK_PLL_VIDEO0 %llu\n", lcd_fou= t); Result is this. fb0: MORI MORI freq=C2=A0CLK_PLL_VIDEO0=C2=A0240000000 clkng is not work=C2=A0correctly. ----- Original Message ----- > From: Mori Hiroki > To: "freebsd-arm@freebsd.org" > Cc:=20 > Date: 2020/3/6, Fri 14:55 > Subject: Re: A10 HDMI support >=20 > Hi >=20 > I seem clkng don't have this method. >=20 >=20 > #define TCON_PLL_WORST =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01000000 > #define TCON_PLL_N_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 > #define TCON_PLL_N_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A015 > #define TCON_PLL_M_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09 > #define TCON_PLL_M_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0127 > #define TCON_PLLREF_SINGLE =C2=A0 =C2=A0 =C2=A03000 =C2=A0 =C2=A0/* kHz *= / > #define TCON_PLLREF_DOUBLE =C2=A0 =C2=A0 =C2=A06000 =C2=A0 =C2=A0/* kHz *= / > #define TCON_RATE_KHZ(rate_hz) =C2=A0((rate_hz) / 1000) > #define TCON_RATE_HZ(rate_khz) =C2=A0((rate_khz) * 1000) > #define HDMI_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 297000000 > #define DEBE_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 300000000 >=20 > static void > calc_tcon_pll(int f_ref, int f_out, int *pm, int *pn) > { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 int best, m, n, f_cur, diff; >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D TCON_PLL_WORST; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (n =3D TCON_PLL_N_MIN; n <=3D TCON_PLL_N_= MAX; n++) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (m =3D TCON_P= LL_M_MIN; m <=3D TCON_PLL_M_MAX; m++) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 f_cur =3D (m * f_ref) / n; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 diff =3D f_out - f_cur; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 if (diff > 0 && diff < best) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D diff; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pm =3D m; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pn =3D n; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > } >=20 > int > a10_clk_tcon_activate(unsigned int freq) > { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct a10_ccm_softc *sc; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 int m, n, m2, n2, f_single, f_double, dbl, sr= c_sel; >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc =3D a10_ccm_sc; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (sc =3D=3D NULL) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (ENXIO); >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D n =3D m2 =3D n2 =3D 0; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 0; >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_SINGLE, TCON_RATE_K= HZ(freq), &m, &n); > =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_DOUBLE, TCON_RATE_K= HZ(freq), &m2,=20 > &n2); >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_single =3D n ? (m * TCON_PLLREF_SINGLE) / n= : 0; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_double =3D n2 ? (m2 * TCON_PLLREF_DOUBLE) /= n2 : 0; >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (f_double > f_single) { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 1; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D m2; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 n =3D n2; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 =C2=A0 =C2=A0 src_sel =3D dbl ? CCM_LCD_CH1_SRC_SEL_PLL3_2X= : CCM_LCD_CH1_SRC_SEL_PLL3; >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (n =3D=3D 0 || m =3D=3D 0) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (EINVAL); >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Set PLL3 to the closest possible rate */ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 a10_clk_pll3_set_rate(TCON_RATE_HZ(m * TCON_P= LLREF_SINGLE)); >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Enable LCD0 CH1 clock */ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ccm_write_4(sc, CCM_LCD0_CH1_CLK, > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 CCM_LCD_CH1_SCLK2_GATING | CCM_= LCD_CH1_SCLK1_GATING | > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (src_sel << CCM_LCD_CH1_SRC_SEL= _SHIFT) | (n - 1)); >=20 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (0); > } > ----- Original Message ----- >> From: Mori Hiroki >> To: "freebsd-arm@freebsd.org" >> Cc:=20 >> Date: 2020/3/1, Sun 19:05 >> Subject: A10 HDMI support >>=20 >> Hi >>=20 >> I have A10 PCduino.=C2=A0 >>=20 >> I try to use a10_hdmi.c and a10_fb.c >>=20 >> This code may be work at first implementation >> at 2016.=C2=A0 >>=20 >> But change to dts away modify and chkng change >> complete broken this code. >>=20 >> I modify dts and code on 12-Stable then almost >> detect. But not work. >>=20 >> http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5402=20 >>=20 >>=20 >> Dose some body repair this code? >>=20 >> Thanks >>=20 >> Hiroki Mori >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 >> To unsubscribe, send any mail to=20 > "freebsd-arm-unsubscribe@freebsd.org" >>=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-arm@freebsd.org Fri Mar 6 12:07:15 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 48CBC2673F7 for ; Fri, 6 Mar 2020 12:07:15 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm1.bullet.mail.kks.yahoo.co.jp (nh501-vm1.bullet.mail.kks.yahoo.co.jp [183.79.56.131]) by mx1.freebsd.org (Postfix) with SMTP id 48YmZQ3lZHz46x8 for ; Fri, 6 Mar 2020 12:07:09 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 12:07:06 -0000 Received: from [183.79.100.136] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 12:07:06 -0000 Received: from [127.0.0.1] by omp505.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 12:07:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 968930.45177.bm@omp505.mail.kks.yahoo.co.jp X-YMail-OSG: owyKMP0VM1kRKGOk0O6NmzpcISDnBkDFNas9y2hfjt8UScrf3E2JPQuJEWrcfwb ORvTKjZzxyR7N.pF5MyWm3NWKqswG6bVTh3C07MjO.ho2OwIb9ThQANGdJrVcjU_jSC7HqcMvfj5 pygg_OYpEnldadnuWZmKst9zzTTxw1L7qXLSzp818K2K1trLKU1iyeJCpw2RimipzIT7r64U7B_w _7a6W5Yd0tpoc30MXt3JhiIxDARLxG09B.PnBLced480d88qsyp4z_h9lmJOAjTcs7qbKUsDbe.Z T69IZeQe3I13DHN3wBVq.1nB0WEEsW7o4qq9TrekWkvHZHqWR88o6ng8tb5TQwkvxDXEjR2ap2MZ jD_XPJbTmW2Zw9oSk8ekkKhMEaUfTUC0nxBlg2P0xvXFS.DicFHNX1y7e0WYYHfRH5ZfEHYCZDcQ qVDuGy0bMEHFTiGRK03ab7wxxd6kOqrXoeUTq2C0Tw1Xze1y2GkU3jQbYFbLhKagRfZk5QmOUqt6 aDrJIWMaIrpyA2oDDUBTui0mGWtRbeEto7EHi3rkJZEcg9Pz7vW7ytF_Zqv_qs7_4JBZgMMWdcgq F2ZmBwqx2ehFYyNlbqITFvCh_l0i64rnABBbl4qttX3JXukmK.6MZ9kOZp8Qosc73.Y1BK27EXR1 L72y7sFPT1nfdRIFhzLzs9Vv8p85LiXfeJL60SJZXMz7NesF.jDD5zgZjTgbEueNl3R8xdRIoz99 aPEwxVpd2ZQEDWxfx_Fi5 Received: from jws700105.mail.ssk.yahoo.co.jp by sendmailws613.mail.ssk.yahoo.co.jp; Fri, 06 Mar 2020 21:07:06 +0000; 1583496426.351 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583496426; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=rNPqD27oGEEows1aFAC2q/uwbzWYJd34hvb/fY6IJLc=; b=pxgIOLnMO2g6w/Z4K8EkZZeOfjFZnH4MQwXHc9hIYJd26Ek1zJtYtmj4sKVdYEkP dHaMxRZC28L8TjVXGrwKxhFadSayhkU1pplabw1s86w3uKMDSlIdPVOaTiO8jptlZUN sTW91Z3zWIX4Ea9dqKrvcTu2iasW5MKrfwXl9z/c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FGTbq44ht/yXYWge4JOo/956xCH+DPS9Vkcr5pUV2sktpkqjBn0cg5LaTeuvH0AS rWJDPnZGdo7/4Zk9kEGZDxmO2scO017OvufIP1xCo5wV6iXtPdGe578/f3YjmlAKczt BjxGF2L1aUsNJ5kIuSj/Y3/MWWbID/N8PXWunb88=; Date: Fri, 6 Mar 2020 21:07:05 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" Message-ID: <899170752.2669767.1583496425789.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <374090886.2770800.1583491536027.JavaMail.yahoo@mail.yahoo.co.jp> References: <1989879823.835082.1583057147228.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1989879823.835082.1583057147228.JavaMail.yahoo@mail.yahoo.co.jp> <2128278973.2661650.1583474156629.JavaMail.yahoo@mail.yahoo.co.jp> <374090886.2770800.1583491536027.JavaMail.yahoo@mail.yahoo.co.jp> Subject: Re: A10 HDMI support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48YmZQ3lZHz46x8 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=pxgIOLnM; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.56.131 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-0.37 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:183.79.0.0/16]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (4.70), ipnet: 183.79.0.0/16(2.38), asn: 24572(1.90), country: JP(0.04)]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.46)[-0.463,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.99)[0.988,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[131.56.79.183.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[131.56.79.183.rep.mailspike.net : 127.0.0.17] 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: Fri, 06 Mar 2020 12:07:15 -0000 Hi A10 and A20=C2=A0CLK_PLL_VIDEO0 is PLL3. PLL3 is 3000000(3M) step. But minimam is 27M(x9). 222M is just x74. aw_clk_frac.c is miss calculate clock. ----- Original Message ----- > From: Mori Hiroki > To: "freebsd-arm@freebsd.org" > Cc:=20 > Date: 2020/3/6, Fri 19:45 > Subject: Re: A10 HDMI support >=20 > Hi >=20 > I test this code. >=20 > error =3D clk_set_freq(clk_vid,=C2=A0222000000, CLK_SET_ROUND_DOWN); > error =3D clk_get_freq(clk_vid, &lcd_fout); > device_printf(sc->dev, "MORI MORI freq=C2=A0CLK_PLL_VIDEO0 %llu\n",=20 > lcd_fout); >=20 > Result is this. >=20 > fb0: MORI MORI freq=C2=A0CLK_PLL_VIDEO0=C2=A0240000000 >=20 > clkng is not work=C2=A0correctly. >=20 > ----- Original Message ----- >> From: Mori Hiroki >> To: "freebsd-arm@freebsd.org" >> Cc:=20 >> Date: 2020/3/6, Fri 14:55 >> Subject: Re: A10 HDMI support >>=20 >> Hi >>=20 >> I seem clkng don't have this method. >>=20 >>=20 >> #define TCON_PLL_WORST =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01000000 >> #define TCON_PLL_N_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 >> #define TCON_PLL_N_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A015 >> #define TCON_PLL_M_MIN =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09 >> #define TCON_PLL_M_MAX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0127 >> #define TCON_PLLREF_SINGLE =C2=A0 =C2=A0 =C2=A03000 =C2=A0 =C2=A0/* kHz= */ >> #define TCON_PLLREF_DOUBLE =C2=A0 =C2=A0 =C2=A06000 =C2=A0 =C2=A0/* kHz= */ >> #define TCON_RATE_KHZ(rate_hz) =C2=A0((rate_hz) / 1000) >> #define TCON_RATE_HZ(rate_khz) =C2=A0((rate_khz) * 1000) >> #define HDMI_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 297000000 >> #define DEBE_DEFAULT_RATE =C2=A0 =C2=A0 =C2=A0 300000000 >>=20 >> static void >> calc_tcon_pll(int f_ref, int f_out, int *pm, int *pn) >> { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 int best, m, n, f_cur, diff; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D TCON_PLL_WORST; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (n =3D TCON_PLL_N_MIN; n <=3D TCON_PLL_= N_MAX; n++) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for (m =3D TCON= _PLL_M_MIN; m <=3D TCON_PLL_M_MAX; m++) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 f_cur =3D (m * f_ref) / n; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 diff =3D f_out - f_cur; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 if (diff > 0 && diff < best) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 best =3D diff; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pm =3D m; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 *pn =3D n; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 } >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >> } >>=20 >> int >> a10_clk_tcon_activate(unsigned int freq) >> { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct a10_ccm_softc *sc; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 int m, n, m2, n2, f_single, f_double, dbl, = src_sel; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 sc =3D a10_ccm_sc; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (sc =3D=3D NULL) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (ENXIO); >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D n =3D m2 =3D n2 =3D 0; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 0; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_SINGLE, TCON_RATE= _KHZ(freq), &m,=20 > &n); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 calc_tcon_pll(TCON_PLLREF_DOUBLE, TCON_RATE= _KHZ(freq), &m2,=20 >> &n2); >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_single =3D n ? (m * TCON_PLLREF_SINGLE) /= n : 0; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 f_double =3D n2 ? (m2 * TCON_PLLREF_DOUBLE)= / n2 : 0; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (f_double > f_single) { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dbl =3D 1; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 m =3D m2; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 n =3D n2; >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 } >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 src_sel =3D dbl ? CCM_LCD_CH1_SRC_SEL_PLL3_= 2X :=20 > CCM_LCD_CH1_SRC_SEL_PLL3; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (n =3D=3D 0 || m =3D=3D 0) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (EINVAL)= ; >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Set PLL3 to the closest possible rate */ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 a10_clk_pll3_set_rate(TCON_RATE_HZ(m * TCON= _PLLREF_SINGLE)); >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Enable LCD0 CH1 clock */ >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 ccm_write_4(sc, CCM_LCD0_CH1_CLK, >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 CCM_LCD_CH1_SCLK2_GATING | CC= M_LCD_CH1_SCLK1_GATING | >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (src_sel << CCM_LCD_CH1_SRC_S= EL_SHIFT) | (n - 1)); >>=20 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 return (0); >> } >> ----- Original Message ----- >>> =C2=A0 From: Mori Hiroki >>> =C2=A0 To: "freebsd-arm@freebsd.org"=20 > >>> =C2=A0 Cc:=20 >>> =C2=A0 Date: 2020/3/1, Sun 19:05 >>> =C2=A0 Subject: A10 HDMI support >>>=20 >>> =C2=A0 Hi >>>=20 >>> =C2=A0 I have A10 PCduino.=C2=A0 >>>=20 >>> =C2=A0 I try to use a10_hdmi.c and a10_fb.c >>>=20 >>> =C2=A0 This code may be work at first implementation >>> =C2=A0 at 2016.=C2=A0 >>>=20 >>> =C2=A0 But change to dts away modify and chkng change >>> =C2=A0 complete broken this code. >>>=20 >>> =C2=A0 I modify dts and code on 12-Stable then almost >>> =C2=A0 detect. But not work. >>>=20 >>> =C2=A0 http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5402=20 >>>=20 >>>=20 >>> =C2=A0 Dose some body repair this code? >>>=20 >>> =C2=A0 Thanks >>>=20 >>> =C2=A0 Hiroki Mori >>>=20 >>> =C2=A0 _______________________________________________ >>> =C2=A0 freebsd-arm@freebsd.org mailing list >>> =C2=A0 https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 >>> =C2=A0 To unsubscribe, send any mail to=20 >> "freebsd-arm-unsubscribe@freebsd.org" >>>=20 >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 >> To unsubscribe, send any mail to=20 > "freebsd-arm-unsubscribe@freebsd.org" >>=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-arm@freebsd.org Fri Mar 6 12:20:38 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 2DEF526772D for ; Fri, 6 Mar 2020 12:20:38 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:a:f40b::1]) (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 "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Ymsv6Vv5z4THx for ; Fri, 6 Mar 2020 12:20:35 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver= DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 48Ymsl18L1zhl Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 48Ymsl18L1zhl for ; Fri, 6 Mar 2020 13:20:25 +0100 (CET) Received: from morzine.restart.bel (morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id 026CKLoZ005147 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=OK) for ; Fri, 6 Mar 2020 13:20:24 +0100 (CET) (envelope-from hlh@restart.be) X-Authentication-Warning: norquay.restart.bel: Host morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1] claimed to be morzine.restart.bel To: "freebsd-arm@freebsd.org" From: Henri Hennebert Subject: FreeBSD 13.0-CURRENT #0 r358465 on rockpro64 and RTC Message-ID: <2ff55aa2-b919-3f2b-715b-a97bb0debe21@restart.be> Date: Fri, 6 Mar 2020 13:20:21 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48Ymsv6Vv5z4THx X-Spamd-Bar: / X-Spamd-Result: default: False [0.50 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[restart.be:s=tignes]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:a:f40b::1/128]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_SPAM_MEDIUM(0.99)[0.989,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.88)[-0.882,0]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[restart.be:+]; DMARC_POLICY_ALLOW(-0.50)[restart.be,reject]; TO_DN_EQ_ADDR_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(1.40)[ipnet: 2001:41d0::/32(4.92), asn: 16276(2.06), country: FR(0.00)]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; 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: Fri, 06 Mar 2020 12:20:38 -0000 Hello I am running FreeBSD 13.0-CURRENT #0 r358465 on a rockpro64 4GB with a RTC BACKUP BATTERY HOLDER - CR-2032. (u-boot from https://wiki.freebsd.org/arm64/ROCKPro64 to run with the 4GB and with hw.ncpu=4 in loader.conf) I tested the 3V of the battery. It seems that the RTC is not managed for now (time lost after power off), is it correct? Henri From owner-freebsd-arm@freebsd.org Fri Mar 6 14:20:14 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 CFD84269760 for ; Fri, 6 Mar 2020 14:20:14 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48YqWw2DFtz3yxp for ; Fri, 6 Mar 2020 14:20:11 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Fri, 06 Mar 2020 14:20:09 +0000 Received: from [127.0.0.1] (winnie.ispras.ru [83.149.199.91]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 2C2ED894-573B-459B-88DB-1494DC9A192F.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Fri, 06 Mar 2020 14:20:09 +0000 Date: Fri, 6 Mar 2020 14:20:07 +0000 (UTC) From: Greg V To: Henri Hennebert Cc: "freebsd-arm@freebsd.org" Message-ID: <71529742-60eb-4301-808a-d9dd3902d50e@localhost> In-Reply-To: <2ff55aa2-b919-3f2b-715b-a97bb0debe21@restart.be> References: <2ff55aa2-b919-3f2b-715b-a97bb0debe21@restart.be> Subject: Re: FreeBSD 13.0-CURRENT #0 r358465 on rockpro64 and RTC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <71529742-60eb-4301-808a-d9dd3902d50e@localhost> DKIM-Signature: v=1; a=rsa-sha256; bh=3QHi3dDr5x6vGOBENR+NAbAHCuO++BsRfXpzcIrw0KE=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=dKiELODkdpeI79Sec1abgjseOHssHp6omXM+T7PbXCywTY20fv4C9yknmvdPeXdfxXiWk0E1HEDK+Z3GCcc2DNYQnSGipGWpyzhron6HXto8B/RGGY6Rwmo6OzkzU7HDDrFzHA3ogDp8nrb9IWN43lz1lIkrEA0otokYrDyy4FE= X-Rspamd-Queue-Id: 48YqWw2DFtz3yxp X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=dKiELODk; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-4.28 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.85)[ip: (-9.79), ipnet: 91.121.0.0/16(-1.52), asn: 16276(2.06), country: FR(0.00)]; NEURAL_HAM_MEDIUM(-0.93)[-0.932,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[63.223.121.91.list.dnswl.org : 127.0.10.0]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; RCVD_COUNT_TWO(0.00)[2]; 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: Fri, 06 Mar 2020 14:20:14 -0000 Mar 6, 2020 3:21:03 PM Henri Hennebert via freebsd-arm : > Hello > > I am running FreeBSD 13.0-CURRENT #0 r358465 on a rockpro64 4GB with a > RTC BACKUP BATTERY HOLDER - CR-2032. > > (u-boot from https://wiki.freebsd.org/arm64/ROCKPro64 to run with the > 4GB and with hw.ncpu=4 in loader.conf) > > I tested the 3V of the battery. > > It seems that the RTC is not managed for now (time lost after power > off), is it correct? Hi, the RTC driver is not merged yet: https://reviews.freebsd.org/D22692 From owner-freebsd-arm@freebsd.org Fri Mar 6 17:15:52 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 A36DC26C8B1 for ; Fri, 6 Mar 2020 17:15:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (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 48YvQb6Tb9z3yWB for ; Fri, 6 Mar 2020 17:15:51 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1583514950; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=rolx7/IzpOwqZaXMAib7XRBoCw6Q3mHTuZhiSSbh1nkpp6iN9vlQA0/Hzx1wvbnjr48NcK51Gr79e kjhRVeu+1f2AybVX8Yyzvog/I39DkPfQwMFZWKLr0JXbI59O+sUgj+L6kvIdMckoW/JCvH3jRv5rfJ H2RGLfEMA4peXkaxqVSZWAc0FEG5M11UCSEtXPmDkkNwQU0fG9xxvU2sb6OJvtUsplbom8bMcCx4XA kGQHYFbiIXF6VB0XUyiy+eROlpjRJXTyovKlfMlfJNReqtAWbVijChqomSeLnHHFmumarJXf2NpCDV PKsvrXOpMKH1h5Q6s1Fgl5d4axuvhiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=CiZIgykwn4GOVmimZU7eQ/naMYSo5zy/UBps3BomjxQ=; b=M4E67p3p3AMxQ5I/Vmyt8wQvA9dHMF3xZ5voT0xcfEd9nVCcx01EVQErrcdRK33PyiFTBJNbpmMOV Uc/GwVITx8vD/GUNwyM7FFrwHGfyJQ1zJqGqtu237BbyjGfkhxb8Sdu1WRS3dy0J2n2VBT/TqiTWod nJP/5TrBYpA2CwqIHn+0We5edHdNPqxr3uW5dgcHdNHeO3hv/F2lNBKpslAnlvT4vZjrZpf0zrSEOZ M83SpZicG6WNMw607N/kq54JdchExuQUvgjv5CcBCto1v/pvCt1PulJCPRfbzIiidNhC71bixcduhp 9GEvNLpwK9LmImeZmW96gg0iQYxYVjw== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=CiZIgykwn4GOVmimZU7eQ/naMYSo5zy/UBps3BomjxQ=; b=EYUbBGcsRG5vZGTE2FNO0vXPjD6LDoPq/WRqd9ec88ddyxtXgmRmWYpgokvXIZ6siuOOe202mQCJg Fcg6bnrMxPrcEPBfnat4ugMi/8j+FB6WYQuUg2uUajjq7gLJe3JHQIHIBBFCXX9SXc48eeOnZtqT/l w0qmlkip1TOk9dlWImt8IXdjp79JCQ7Kz+658dfIMyz4h3DrBINnGEWZ393jNy06dooWe3dOzgjr6g uiWPbrYP934wn6OUn2MrhN+mLwf2LdirT7tD/ga3lFROaa9n/NAKTF8K2tnb7ZvOWOVOfylFwULULg nEcQON2GE0S76lqG/2eNFVHmKlOJx0A== X-MHO-RoutePath: aGlwcGll X-MHO-User: 1f178112-5fce-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 1f178112-5fce-11ea-9eb3-25e2dfa9fa8d; Fri, 06 Mar 2020 17:15:48 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 026HFlH2028688; Fri, 6 Mar 2020 10:15:47 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <76e66ea321b8d7480af75cfbd38fa55f5ac40afd.camel@freebsd.org> Subject: Re: Cross-building ports with release(7) From: Ian Lepore To: Sergey Ivlev , "freebsd-hackers@freebsd.org" , "freebsd-arm@FreeBSD.org" Date: Fri, 06 Mar 2020 10:15:47 -0700 In-Reply-To: <2228511583493903@vla3-bebe75876e15.qloud-c.yandex.net> References: <2228511583493903@vla3-bebe75876e15.qloud-c.yandex.net> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48YvQb6Tb9z3yWB X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-0.38 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.60)[0.602,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.98)[-0.982,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: Fri, 06 Mar 2020 17:15:52 -0000 On Fri, 2020-03-06 at 16:25 +0500, Sergey Ivlev wrote: > Hello! > > I've successfully built FreeBSD 13.0-CURRENT (r358609) image for > ARMv7 on AMD64 host using release(7). > > I wonder is it possible for AMD64 host to build/install ports into > the image? > > I've defined arm_do_quirk function in my configuration file, where > I'm calling `make DESTDIR=${CHROOTDIR}/${DESTDIR} TARGET=arm > TARGET_ARCH=armv7 ... build install clean`. But it ended up with > error, of course, because that make(1) chroots into > ${CHROOTDIR}/${DESTDIR} and runs executables from there, but > ${CHROOTDIR}/${DESTDIR} is where **built target** located (i.e. where > files for ARMv7; ${CHROOTDIR}/${DESTDIR} is {my chrrot > dir}/usr/obj/usr/src/arm.armv7/release/{kernel name}). Altering the > PATH variable so it will specify ${CHROOTDIR} as the first entry, > doesn't help either -- I end up with the same ``exec format error'' > (env PATH="${CHROOTDIR}:${PATH}" make DESTDIR=...). > > I had also tried to `chroot ${CHROOTDIR} make DESTDIR=${DESTDIR} > TARGET=arm TARGET_ARCH=armv7 ... build install clean`, but > mount_nullfs(8) failed under chroot(8). > > Therefore, my question is: is it possible while building an image for > ARMv7 on AMD64 host with release(7) also building and installing > ports into the result image? > > Thanks in advance! > Cross-building ports is done with poudriere and qemu. There is some info on setting it up in https://wiki.freebsd.org/QemuUserModeHowTo but I think that's pretty out of date. There may be newer how-to info that I'm not aware of. I'm going to CC the freebsd-arm@ list on this reply, because the folks there probably know of better information resources for all this. I also have no idea how to integrate poudriere-based building with release(7) stuff. It may be a matter of building a local package repo using poudriere, then configuring the release script stuff to use it. -- Ian From owner-freebsd-arm@freebsd.org Fri Mar 6 17:19: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 7163A26CA6A for ; Fri, 6 Mar 2020 17:19:31 +0000 (UTC) (envelope-from carlj@peak.org) Received: from filter06.peak.org (filter06.peak.org [69.59.194.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48YvVn679nz47tb for ; Fri, 6 Mar 2020 17:19:29 +0000 (UTC) (envelope-from carlj@peak.org) Received: from zmail-mta01.peak.org ([207.55.16.111]) by filter06.peak.org ({0c47b2c3-829a-4f18-b445-de68be8d048d}) via TCP (outbound) with ESMTPS id 20200306171909728_0000 for ; Fri, 06 Mar 2020 09:19:09 -0800 X-RC-FROM: X-RC-RCPT: Received: from localhost (localhost [127.0.0.1]) by zmail-mta01.peak.org (Postfix) with ESMTP id B2C26982A1 for ; Fri, 6 Mar 2020 09:19:03 -0800 (PST) Received: from zmail-mta01.peak.org ([127.0.0.1]) by localhost (zmail-mta01.peak.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yF0yjbiWZD9a for ; Fri, 6 Mar 2020 09:19:03 -0800 (PST) Received: from mailproxy-lb-02.peak.org (mailproxy-lb-02.peak.org [207.55.17.92]) by zmail-mta01.peak.org (Postfix) with ESMTP id 922B098291 for ; Fri, 6 Mar 2020 09:19:03 -0800 (PST) Received: from localhost.localnet ([127.0.0.1] helo=elm.localnet) by elm.localnet with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1jAGco-0007Qh-Pb for freebsd-arm@freebsd.org; Fri, 06 Mar 2020 09:19:02 -0800 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id 026HJ1mN028562; Fri, 6 Mar 2020 09:19:01 -0800 (PST) (envelope-from carlj) From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: Adding a swap partition to the March 5 snapshot image References: <20200306045443.GA19058@www.zefox.net> Date: Fri, 06 Mar 2020 09:19:01 -0800 In-Reply-To: <20200306045443.GA19058@www.zefox.net> (bob prohaska's message of "Thu, 5 Mar 2020 20:54:43 -0800") Message-ID: <86k13x4d16.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: peakinternet.redcondor.net@207.55.16/22 X-Rspamd-Queue-Id: 48YvVn679nz47tb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 69.59.194.82 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-2.11 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.20)[-0.199,0]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-0.01)[country: US(-0.05)]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; RCVD_IN_DNSWL_LOW(-0.10)[82.194.59.69.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:395796, ipnet:69.59.194.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(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: Fri, 06 Mar 2020 17:19:31 -0000 bob prohaska writes: > I've been trying for a while to set up an armv7 RPI2 with a single > root partition plus a swap partition at the end of mmcsd0. Letting > firstboot invoke growfs seems not to help, since growfs leaves no > space for swap. > > Attempts using gpart in single-user give the appearance of > working, but on reboot the machine stops at the mountroot prompt. > This method worked well in July of 2018. Seemingly, no more. > > Has something changed? > > Mounting the armv7 card on a second Freebsd box and making the changes > appears to work also, but on the initial boot (firstboot disabled) the > machine stops at the mountroot prompt on initial boot. > > If there's a better way to pursue the same end I'd be grateful for > a hint. Perhaps giving a swap size parameter to firstboot? What I usually do is to use a USB SD card adapter on another computer to add a swap partition. I usually now add it as da0s2b, but I have previously used da0s3 also. I just use gpart from the other computer and use something like: gpart resize -i2 da0s2 gpart add -t freebsd-swap -b56G -a16M da0s2 The resize expands the da0s2 partition to fill the card, and then add the swap partition at the end of it. I was using a 64G card, so the 56G needs to be changed to give the desired size on whatever size card you are using, and da0 may need to be changed for your system. The growfs in the first boot will expand the file system on da0s2a to fill the available space. I hope this helps, but ask if you need more information. -- Carl Johnson carlj@peak.org From owner-freebsd-arm@freebsd.org Fri Mar 6 17:57:55 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 4C6A526D57D for ; Fri, 6 Mar 2020 17:57:55 +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 48YwM43z1pz4fLG for ; Fri, 6 Mar 2020 17:57:52 +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 026HwAi7021456 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 6 Mar 2020 09:58:11 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 026HwAGh021455; Fri, 6 Mar 2020 09:58:10 -0800 (PST) (envelope-from fbsd) Date: Fri, 6 Mar 2020 09:58:10 -0800 From: bob prohaska To: Mark Millard Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Adding a swap partition to the March 5 snapshot image Message-ID: <20200306175810.GA21376@www.zefox.net> References: <20200306045443.GA19058@www.zefox.net> <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 48YwM43z1pz4fLG 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.81 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.25)[-0.246,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.24), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.90)[-0.904,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; 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: Fri, 06 Mar 2020 17:57:55 -0000 On Thu, Mar 05, 2020 at 09:26:42PM -0800, Mark Millard wrote: > > On 2020-Mar-5, at 20:54, bob prohaska wrote: > > > > I've been trying for a while to set up an armv7 RPI2 with a single > > root partition plus a swap partition at the end of mmcsd0. Letting > > firstboot invoke growfs seems not to help, since growfs leaves no > > space for swap. > > > > Attempts using gpart in single-user give the appearance of > > working, but on reboot the machine stops at the mountroot prompt. > > This method worked well in July of 2018. Seemingly, no more. > > > > Has something changed? > > > > Mounting the armv7 card on a second Freebsd box and making the changes > > appears to work also, but on the initial boot (firstboot disabled) the > > machine stops at the mountroot prompt on initial boot. > > > > If there's a better way to pursue the same end I'd be grateful for > > a hint. Perhaps giving a swap size parameter to firstboot? > > You have not reported what shows if you enter a "?" command at the > mountroot prompt. (As I remember that lists what mount root > classifies as available.) > > That might prove to be useful information. > Indeed so. I've put a near transcript of a session at http://www.zefox.net/~fbsd/rpi2/rpi2_swap_installation The punchline seems to be that in the course of resizing mmcsd0s2a and adding mmcsd0s2b the /dev/ufs/ device went away. Manually entering ufs:/dev/mmcsd0s2a allows a one-time mount and boot to multi-user. I certainly didn't intentionally delete any files, the only change (apart from the rather drastic measures taken with gpart) was to rename /firstboot to /no.firstboot. The only hint of possible mischief is: # gpart resize -i 2 mmcsd0 GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to revert them. mmcsd0s2 reized ^^^^^^ [Note the misspelled message. I do not recall the prompt to commit from 2018] [The gpart man page implies commit is automatic, except using special options] Hopefully sharper wits than mine trained on the transcript will find the error. Some of the comments in growfs imply it takes a size parameter. That would help, but I couldn't recognize how to do it. Thanks for reading, bob prohaska From owner-freebsd-arm@freebsd.org Fri Mar 6 18:15:37 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 982B026DBA2; Fri, 6 Mar 2020 18:15:37 +0000 (UTC) (envelope-from m.vale@live.com.au) Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-oln040092255044.outbound.protection.outlook.com [40.92.255.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48YwlY0wfVz499L; Fri, 6 Mar 2020 18:15:36 +0000 (UTC) (envelope-from m.vale@live.com.au) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=njjszqG/Dh4A4Fnh4mZUNJ0FMaFbEeNWQa1uKGfWaThyhWqGM0AODtcyylFOt4b0MUJCSZsozC3BC8zunwj69Jv5B0Vsx6ekE9dUBBC4hMuEoY4GUnItnHAgnKQNXJvWQPFMGQfVmbGFdhI6FzeKh2Ks0+pS0CRk/0dqiaZB3TV7y7fRYNwGT8zZx1iqjfOTCq0lqkFKu3PrvqkdAMVXugQ06nGvJpUL8AQIcFCKfILqGNwnKsaqS39DgsH4Lb0RoUJdM7zRRMaf2qFWSsQeKrjUDSnWq5CpNjRT4BqxDhtPIVyV0K85GldwUJ7A4Lib+HaVQCauHWGmUXijEhVOBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0IUqeW+wcBbNqC4oDzisfzKSFdzMt/18MNyjRIX2t9U=; b=NCaHbFZ930vdhviO4uxYqjYhPkPtB+u9Tw+FBAHegkZdesENMrjjc0qprQmTaQz6A+y08+XFv5HUhFqpJWJwRYT+rdV+M7hyeop01yAj4dqVKDiO5q5TjjRbFN1DHm26ruBIAzvMDeAoflV3dxnRhYe73RDbyUmI2qOAWH7sFyLFqiADTiNv/esw0A5YN/5JIWRW6XoK2FemZ7vjoGl9X4UWeO63kX1mOwoPH2ngm/QqUKh5HR8h7f6CsQHhNEGJCeoUKRQqZDxiETLjC8LVQLik201qccO1dJ+ALT6WN46zyhF9ZWAPq1AwiVr1PRIY/HpXLBwq5JVzC67nI3vcrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from SG2APC01FT048.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::37) by SG2APC01HT063.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::355) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11; Fri, 6 Mar 2020 18:15:31 +0000 Received: from PS2P216MB0305.KORP216.PROD.OUTLOOK.COM (10.152.250.58) by SG2APC01FT048.mail.protection.outlook.com (10.152.251.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.11 via Frontend Transport; Fri, 6 Mar 2020 18:15:31 +0000 Received: from PS2P216MB0305.KORP216.PROD.OUTLOOK.COM ([fe80::b9c1:dc9c:52d4:9b2d]) by PS2P216MB0305.KORP216.PROD.OUTLOOK.COM ([fe80::b9c1:dc9c:52d4:9b2d%3]) with mapi id 15.20.2772.019; Fri, 6 Mar 2020 18:15:31 +0000 Received: from [IPv6:2001:8004:2750:3441:f2d6:a5fb:72ff:2d99] (2001:8004:2750:3441:f2d6:a5fb:72ff:2d99) by SYXPR01CA0096.ausprd01.prod.outlook.com (2603:10c6:0:2e::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.16 via Frontend Transport; Fri, 6 Mar 2020 18:15:29 +0000 From: Michael Vale To: Ian Lepore CC: Sergey Ivlev , "freebsd-hackers@freebsd.org" , "freebsd-arm@FreeBSD.org" Subject: Re: Cross-building ports with release(7) Thread-Topic: Cross-building ports with release(7) Thread-Index: AQHV89sMY8wJG0KlcEGsoSg2BlhLMKg73q0A Date: Fri, 6 Mar 2020 18:15:31 +0000 Message-ID: In-Reply-To: <76e66ea321b8d7480af75cfbd38fa55f5ac40afd.camel@freebsd.org> Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SYXPR01CA0096.ausprd01.prod.outlook.com (2603:10c6:0:2e::29) To PS2P216MB0305.KORP216.PROD.OUTLOOK.COM (2603:1096:300:28::13) x-incomingtopheadermarker: OriginalChecksum:7858F6BFAB16720FE222078E860DD6747308494C0EFB4C935B44026947BC216C; UpperCasedChecksum:29115AC559AA3604399DB0DF4E2A173AE9A43D3C07A0169A0E3FE0D603EA14D0; SizeAsReceived:7799; Count:52 x-ms-exchange-messagesentrepresentingtype: 1 x-android-message-id: x-tmn: [s95kkz+StduwhsY+IIMcUMAw47/+L+z2h2nyzy0wBnxSzzDstKLaqTjbDDtf5k4zKORQ4uEBSQc=] x-microsoft-original-message-id: x-ms-publictraffictype: Email x-incomingheadercount: 52 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 87424c21-2334-43bc-a811-08d7c1fa5b19 x-ms-traffictypediagnostic: SG2APC01HT063: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gM/GyNp8rkmOVo4eXnWTzQJNJtFb+YzqsUXp2nziErMwo7MhNxzi4aR9JpSb4tJsLhTMKZTzvKi+/j3+RNaLID3I4CvUjhsWBqcMr8j4M4J2OUkyzIpWjpp4VY8h96F0fNHa0AymlRmI8jO43T9/8//vhpq1t2Xl2l01HZYCsiK0umRQtpc39y/+Od3rlHLTwTZ5TKgBxqOFoqGgWlYVVBBjaZEEG9MAZJ9ywwgro6s= x-ms-exchange-antispam-messagedata: MlQKEWiEGzzvKbzOEoLOve9F1ngLH+/u77bm3lFxWyP6Xjvij0k5FnVAy2w+/aq9cvY3WW9xi7QIzm9Gb7WlYgr5uKIEjATIJ8ZO6nd1D9xDj9FKkLXbE+sOBymaKnPq/+6bSrlgsdDLD9TnJGeC65EQ3sqhBiu0UtjBAdNlNEjMpBXVPHRP6c9CJdppYfxQPwdAxbd8bu7M8Y+uE8HusQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 87424c21-2334-43bc-a811-08d7c1fa5b19 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2020 18:15:31.5105 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT063 X-Rspamd-Queue-Id: 48YwlY0wfVz499L X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.39 / 15.00]; NEURAL_SPAM_MEDIUM(0.60)[0.603,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-0.99)[-0.993,0] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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: Fri, 06 Mar 2020 18:15:37 -0000 U2VyZ2V5LA0KDQpJIHNlZSB3aGF0IHlvdSBhcmUgdHJ5aW5nIHRvIGFjaGlldmUgaGVyZS4gU29y cnkgYnV0IHRoZSBjcm9zcyBwb3J0cyBidWlsZCBzY3JpcHRpbmcgaGFzIGJlZW4gbmVnbGVjdGVk LiAgSXQgcmVxdWlyZXMgc3RhZ2luZy4gIEkgd2lsbCB0YWtlIGEgbG9vayBhdCB0aGlzIHRvZGF5 IGJ1dCBJIGNhbid0IHByb21pc2UgYW55dGhpbmcgYXMgb3RoZXIgdGhpbmdzIGhhdmUgdGFrZW4g cHJpb3JpdHkgaW4gbGlmZS4gIFlvdSBjYW4gZm9yIHRoZSBpbnRlcmltIG1ha2UgcGFja2FnZXMg YW5kIGluc3RhbGwgdGhlbSBhZnRlciB0aGUgZmFjdCBvciB1c2UgSWFuJ3Mgc3VnZ2VzdGlvbi4N Cg0KT24gNyBNYXIgMjAyMCAwNDoxNSwgSWFuIExlcG9yZSA8aWFuQGZyZWVic2Qub3JnPiB3cm90 ZToNCg0KT24gRnJpLCAyMDIwLTAzLTA2IGF0IDE2OjI1ICswNTAwLCBTZXJnZXkgSXZsZXYgd3Jv dGU6DQo+IEhlbGxvIQ0KPg0KPiBJJ3ZlIHN1Y2Nlc3NmdWxseSBidWlsdCBGcmVlQlNEIDEzLjAt Q1VSUkVOVCAocjM1ODYwOSkgaW1hZ2UgZm9yDQo+IEFSTXY3IG9uIEFNRDY0IGhvc3QgdXNpbmcg cmVsZWFzZSg3KS4NCj4NCj4gSSB3b25kZXIgaXMgaXQgcG9zc2libGUgZm9yIEFNRDY0IGhvc3Qg dG8gYnVpbGQvaW5zdGFsbCBwb3J0cyBpbnRvDQo+IHRoZSBpbWFnZT8NCj4NCj4gSSd2ZSBkZWZp bmVkIGFybV9kb19xdWlyayBmdW5jdGlvbiBpbiBteSBjb25maWd1cmF0aW9uIGZpbGUsIHdoZXJl DQo+IEknbSBjYWxsaW5nIGBtYWtlIERFU1RESVI9JHtDSFJPT1RESVJ9LyR7REVTVERJUn0gVEFS R0VUPWFybQ0KPiBUQVJHRVRfQVJDSD1hcm12NyAuLi4gYnVpbGQgaW5zdGFsbCBjbGVhbmAuICBC dXQgaXQgZW5kZWQgdXAgd2l0aA0KPiBlcnJvciwgb2YgY291cnNlLCBiZWNhdXNlIHRoYXQgbWFr ZSgxKSBjaHJvb3RzIGludG8NCj4gJHtDSFJPT1RESVJ9LyR7REVTVERJUn0gYW5kIHJ1bnMgZXhl Y3V0YWJsZXMgZnJvbSB0aGVyZSwgYnV0DQo+ICR7Q0hST09URElSfS8ke0RFU1RESVJ9IGlzIHdo ZXJlICoqYnVpbHQgdGFyZ2V0KiogbG9jYXRlZCAoaS5lLiB3aGVyZQ0KPiBmaWxlcyBmb3IgQVJN djc7ICR7Q0hST09URElSfS8ke0RFU1RESVJ9IGlzIHtteSBjaHJyb3QNCj4gZGlyfS91c3Ivb2Jq L3Vzci9zcmMvYXJtLmFybXY3L3JlbGVhc2Uve2tlcm5lbCBuYW1lfSkuICBBbHRlcmluZyB0aGUN Cj4gUEFUSCB2YXJpYWJsZSBzbyBpdCB3aWxsIHNwZWNpZnkgJHtDSFJPT1RESVJ9IGFzIHRoZSBm aXJzdCBlbnRyeSwNCj4gZG9lc24ndCBoZWxwIGVpdGhlciAtLSBJIGVuZCB1cCB3aXRoIHRoZSBz YW1lIGBgZXhlYyBmb3JtYXQgZXJyb3InJw0KPiAoZW52IFBBVEg9IiR7Q0hST09URElSfToke1BB VEh9IiBtYWtlIERFU1RESVI9Li4uKS4NCj4NCj4gSSBoYWQgYWxzbyB0cmllZCB0byBgY2hyb290 ICR7Q0hST09URElSfSBtYWtlIERFU1RESVI9JHtERVNURElSfQ0KPiBUQVJHRVQ9YXJtIFRBUkdF VF9BUkNIPWFybXY3IC4uLiBidWlsZCBpbnN0YWxsIGNsZWFuYCwgYnV0DQo+IG1vdW50X251bGxm cyg4KSBmYWlsZWQgdW5kZXIgY2hyb290KDgpLg0KPg0KPiBUaGVyZWZvcmUsIG15IHF1ZXN0aW9u IGlzOiBpcyBpdCBwb3NzaWJsZSB3aGlsZSBidWlsZGluZyBhbiBpbWFnZSBmb3INCj4gQVJNdjcg b24gQU1ENjQgaG9zdCB3aXRoIHJlbGVhc2UoNykgYWxzbyBidWlsZGluZyBhbmQgaW5zdGFsbGlu Zw0KPiBwb3J0cyBpbnRvIHRoZSByZXN1bHQgaW1hZ2U/DQo+DQo+IFRoYW5rcyBpbiBhZHZhbmNl IQ0KPg0KDQpDcm9zcy1idWlsZGluZyBwb3J0cyBpcyBkb25lIHdpdGggcG91ZHJpZXJlIGFuZCBx ZW11LiAgVGhlcmUgaXMgc29tZQ0KaW5mbyBvbiBzZXR0aW5nIGl0IHVwIGluIGh0dHBzOi8vd2lr aS5mcmVlYnNkLm9yZy9RZW11VXNlck1vZGVIb3dUbyBidXQNCkkgdGhpbmsgdGhhdCdzIHByZXR0 eSBvdXQgb2YgZGF0ZS4gIFRoZXJlIG1heSBiZSBuZXdlciBob3ctdG8gaW5mbyB0aGF0DQpJJ20g bm90IGF3YXJlIG9mLiAgSSdtIGdvaW5nIHRvIENDIHRoZSBmcmVlYnNkLWFybUAgbGlzdCBvbiB0 aGlzIHJlcGx5LA0KYmVjYXVzZSB0aGUgZm9sa3MgdGhlcmUgcHJvYmFibHkga25vdyBvZiBiZXR0 ZXIgaW5mb3JtYXRpb24gcmVzb3VyY2VzDQpmb3IgYWxsIHRoaXMuDQoNCkkgYWxzbyBoYXZlIG5v IGlkZWEgaG93IHRvIGludGVncmF0ZSBwb3VkcmllcmUtYmFzZWQgYnVpbGRpbmcgd2l0aA0KcmVs ZWFzZSg3KSBzdHVmZi4gIEl0IG1heSBiZSBhIG1hdHRlciBvZiBidWlsZGluZyBhIGxvY2FsIHBh Y2thZ2UgcmVwbw0KdXNpbmcgcG91ZHJpZXJlLCB0aGVuIGNvbmZpZ3VyaW5nIHRoZSByZWxlYXNl IHNjcmlwdCBzdHVmZiB0byB1c2UgaXQuDQoNCi0tIElhbg0KDQoNCl9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQpmcmVlYnNkLWFybUBmcmVlYnNkLm9yZyBt YWlsaW5nIGxpc3QNCmh0dHBzOi8vbGlzdHMuZnJlZWJzZC5vcmcvbWFpbG1hbi9saXN0aW5mby9m cmVlYnNkLWFybQ0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYW55IG1haWwgdG8gImZyZWVic2QtYXJt LXVuc3Vic2NyaWJlQGZyZWVic2Qub3JnIg0KDQo= From owner-freebsd-arm@freebsd.org Fri Mar 6 18:24:11 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 BA85426E020 for ; Fri, 6 Mar 2020 18:24:11 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (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 48YwxP3slrz4Th9 for ; Fri, 6 Mar 2020 18:24:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: xzn3yrYVM1mOptdkw75AR76veyAbSTarTAiVot0yGcWNFbyl7_mY8L59m4sg9ej ihAW7.W9QGIQz1gppodCJ9BkWkoGD9IkA0u_YHbqm5r.C9uwFVXSd4T0vFzjLxUta_oPvjbiecD1 GqPtERo6_6Rpv9UeRa6k2BRTx4VLHWE_Hf1kQkIZiHkC9sXRa42Uvy8O7lmA4UNI9PPO9IgTubQO 9CMLvYz4hhclAJ1LFKQ0hEPK7aov8xxgEhFSz.WabzC1gO1UDIcV885b89re78iN0Qa_w1NhyvvL 6OlXNeIRWKe4za8QXM.hYFLwJgn0LdwAG2yBr6mx9msSXSO0Q12pesj1Bzr7OHfHrhugxGYtGVem y5DWgKCVH_mi2tds.1oTRLTdpBoi3Bz4NGp2TCjRNx4ZJMMu18E5wwSVQM6.VC6qZm1kmh.DrtJv ItNf9CmGhwQj46hbG0Kw0e.Q67SwHHZ6sBGxYRrdLXWXlsu7ndwRMCB0ScnvPNivJc0C2EauXYpX yGv.NbdE1kuAHPd_RHG4t.nWuXP.gRU1jGywSXa3K0pFQ0A5gCn3givuvWRQ8g58WDGMNtPfXzSs D3jj2fVBXuO5sk7CfOVUrM7d0pzrokPCZ6h6zjOWNZAIP7MpXdBnMeSx0QMI9qfCVJdGwl9ePgHl ZILAm3Cd1qj74pMtRr7rpLbCPIuSEddQTK2J0sS98fXIYtLgwftiieFvwPQ7r2fL_QVhUXlqJKdn UhKXyH5_23qCMYZlP52YA6af7SyeFk0IXKLJ5tiKl4R92P0T2b.qF29GablxAvTt2Ztr8m_x.wVd LzHQjdz5cY8koejjn4lr.EQXdhI96d5XcpDw5_DCoVd5P4AaRdnUb30Ttp5RDFxSNhEXKBduk81V dsJW1wSDiju1O_gCEBpORLcS_xWi7dSmIBDqbvHyXduFQHPjCh39zDoxnrpYmxHqMxzamACZQ2Jh vXpXqc_li3mwCCmQO.zwQ8oowFYXRyuLo2oguz8Je6HroFb4ChQsAPgutF6jEpNXvpLZxAiDYhr9 hMzUXx0vaz3n3QL3fse0pVtjUDWVnBISlGKL0IRnV4UjqZOoHG.ag8D8tcsGLk97uhhdx5_uhnmX MPWu0myD8pAgqZfKClfY6K5n2Og1v71Lrrzt3nq4WVTaYJdWTXr0mVTkUyqQTa099AbnLxJuCW9M dwttWz0ZChzjt9oXEcdhOVT8WaB5hyjkqx0.q6lEFls7Hv_OvO8HI7abe3ockbIT9wbK_ow78.n6 C7T7OVV2IeOqei267nqmhItiH8jd4GZNprBtBvouP8SRiH_KT5TT_DqZcZa6Q.OheOMl1yEsyCVk SMdZ7LvoYue2tAfwLUkzEQdXhbAg8BgPUDUumn0HqJD6UhmRCSKCVcAqdQKGuNc.GST6oo4Xz21F KywP7Vf5AGeWdkyo4oI4- Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Fri, 6 Mar 2020 18:24:07 +0000 Received: by smtp430.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2893c9a500157e277f60a7f783aefa3b; Fri, 06 Mar 2020 18:24:03 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: Adding a swap partition to the March 5 snapshot image From: Mark Millard In-Reply-To: <20200306175810.GA21376@www.zefox.net> Date: Fri, 6 Mar 2020 10:24:01 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20200306045443.GA19058@www.zefox.net> <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> <20200306175810.GA21376@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48YwxP3slrz4Th9 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.05 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; 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(-0.39)[-0.385,0]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_SPAM_MEDIUM(0.84)[0.838,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[205.65.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; 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: (4.45), ipnet: 98.137.64.0/21(0.84), asn: 36647(0.67), 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: Fri, 06 Mar 2020 18:24:11 -0000 On 2020-Mar-6, at 09:58, bob prohaska wrote: > On Thu, Mar 05, 2020 at 09:26:42PM -0800, Mark Millard wrote: >>=20 >> On 2020-Mar-5, at 20:54, bob prohaska wrote: >>>=20 >>> I've been trying for a while to set up an armv7 RPI2 with a single >>> root partition plus a swap partition at the end of mmcsd0. Letting >>> firstboot invoke growfs seems not to help, since growfs leaves no >>> space for swap. >>>=20 >>> Attempts using gpart in single-user give the appearance of=20 >>> working, but on reboot the machine stops at the mountroot prompt. >>> This method worked well in July of 2018. Seemingly, no more.=20 >>>=20 >>> Has something changed?=20 >>>=20 >>> Mounting the armv7 card on a second Freebsd box and making the = changes=20 >>> appears to work also, but on the initial boot (firstboot disabled) = the=20 >>> machine stops at the mountroot prompt on initial boot. >>>=20 >>> If there's a better way to pursue the same end I'd be grateful for >>> a hint. Perhaps giving a swap size parameter to firstboot?=20 >>=20 >> You have not reported what shows if you enter a "?" command at the >> mountroot prompt. (As I remember that lists what mount root >> classifies as available.) >>=20 >> That might prove to be useful information. >>=20 >=20 > Indeed so. I've put a near transcript of a session at > http://www.zefox.net/~fbsd/rpi2/rpi2_swap_installation >=20 > The punchline seems to be that in the course of resizing > mmcsd0s2a and adding mmcsd0s2b the /dev/ufs/ device > went away. Manually entering ufs:/dev/mmcsd0s2a allows > a one-time mount and boot to multi-user. >=20 > I certainly didn't intentionally delete any files, the only > change (apart from the rather drastic measures taken with > gpart) was to rename /firstboot to /no.firstboot. >=20 > The only hint of possible mischief is: > # gpart resize -i 2 mmcsd0 > GEOM_PART: mmcsd0s2 was automatically resized. > Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` = to revert them. > mmcsd0s2 reized > ^^^^^^ > [Note the misspelled message. I do not recall the prompt to commit = from 2018] > [The gpart man page implies commit is automatic, except using special = options] >=20 >=20 > Hopefully sharper wits than mine trained on the transcript will find = the error. > Some of the comments in growfs imply it takes a size parameter. That = would help, > but I couldn't recognize how to do it.=20 The growfs description starts with: DESCRIPTION The growfs utility makes it possible to expand an UFS file system. Before running growfs the partition or slice containing the file = system must be extended using gpart(8). . . . It does not change the partition size and so is used after separately adjusting the partition size. (firstboot does more than just growfs.) After you get to either of: # gpart show mmcsd0s2 =3D> 0 124939305 mmcsd0s2 BSD (60G) 0 41 - free - (21K) 41 121634816 1 freebsd-ufs (58G) 121634857 3304448 - free - (1.6G) or: # gpart show mmcsd0s2 =3D> 0 124939305 mmcsd0s2 BSD (60G) 0 41 - free - (21K) 41 121634816 1 freebsd-ufs (58G) 121634857 27648 - free - (14M) 121662505 3276800 2 freebsd-swap (1.6G) you need to do the growfs for /dev/mmcsd0s2a . Note: Some of the information may be stored at the end of the partition, such as the information for /dev/ufs/NAME (labeling). Thus the lack of a growfs might explain the lack of the lack of the label: it has not been moved to the right place yet. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Fri Mar 6 19:49:46 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 82F4926F989 for ; Fri, 6 Mar 2020 19:49:46 +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 48Yyr74hzgz43L5 for ; Fri, 6 Mar 2020 19:49:42 +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 026Jo1v9021790 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 6 Mar 2020 11:50:02 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id 026Jo18R021789; Fri, 6 Mar 2020 11:50:01 -0800 (PST) (envelope-from fbsd) Date: Fri, 6 Mar 2020 11:50:01 -0800 From: bob prohaska To: Mark Millard Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Adding a swap partition to the March 5 snapshot image Message-ID: <20200306195001.GC21376@www.zefox.net> References: <20200306045443.GA19058@www.zefox.net> <58BB6CC3-34C7-413F-9ED4-D84E63FBCD2D@yahoo.com> <20200306175810.GA21376@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 48Yyr74hzgz43L5 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.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.72)[-0.721,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.06)[ip: (0.24), ipnet: 50.1.16.0/20(0.12), asn: 7065(-0.03), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.92)[-0.918,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; 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: Fri, 06 Mar 2020 19:49:46 -0000 On Fri, Mar 06, 2020 at 10:24:01AM -0800, Mark Millard wrote: > > you need to do the growfs for /dev/mmcsd0s2a . > > Note: Some of the information may be stored at the > end of the partition, such as the information for > /dev/ufs/NAME (labeling). Thus the lack of a growfs > might explain the lack of the lack of the label: it > has not been moved to the right place yet. > [large sigh] It's amazing how much I can forget in a year and a half....... Apologies for the noise and thanks for your patience!. bob prohaska > > From owner-freebsd-arm@freebsd.org Fri Mar 6 22:36:28 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 218C7252A7A for ; Fri, 6 Mar 2020 22:36:28 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh502-vm5.bullet.mail.kks.yahoo.co.jp (nh502-vm5.bullet.mail.kks.yahoo.co.jp [183.79.56.150]) by mx1.freebsd.org (Postfix) with SMTP id 48Z2XR49qqz4Nyw for ; Fri, 6 Mar 2020 22:36:23 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh502.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 22:36:18 -0000 Received: from [183.79.100.133] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 22:36:18 -0000 Received: from [127.0.0.1] by omp502.mail.kks.yahoo.co.jp with NNFMP; 06 Mar 2020 22:36:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 926386.14106.bm@omp502.mail.kks.yahoo.co.jp X-YMail-OSG: bKTbvH0VM1nP9ao3.k8mzfhj2sAIiam8QAYzGl29PX78qTa3OVCMund2LVMztW7 J9aXsjFltnS9gWoixBIPToOurXV_OQsvn_w.npw5rUg75pF6HiIlzQ1TVXHw_CUJ6VccE.LReqmd CDQikQL8aRYOCcEV9oblA3uQ_EPr0_3z_5zEaIZXHv0pXo.PwDAWUE6WK16ZpavR.v7oMWiiE4AY uQbrcWAxN2vjk9b6j._Lz3RnYkJuhtc31oSIntP1mZU98xU8e_HztZx4JHjCgOffmSbpATV9GyeW O5jh7aCLLaIpGeP1cztM5ESJgR2h2CyByWqzxDSQkCuiOzKRSihHQHvrfMoOaSkFMrgwigz0bEUS hV6QZVAPxfD42ulsOsKBqcpH4m82lb6spMec2D4UKCFc_1sB.W5GmFDNWZGBPyXXV0gI9QJLggKQ Jrd9kOc6NDNly2mbs.SrDHOd9ohZ4Dpm6Yw2Im2YoUGj9CCxtJ9b1XcDaI2qTaKm93yk2tpOIxQ2 FMMORviq6qDA6u0hpgubjVzrhOXaWvwpA8UHSdbBjP8AtjFVBvIGfbzwaFdeM1aNWb2Bwu9isBQZ xjaWyIgBSaxPjgFF40TbtzuyYrj_x8FiBC8Th6.fteHQVsamx4kkRL34gkYP2J7Nx1hiduS0X4ZW NgEhsBTSjXnAzlNvSioMKBTXKFZK6h5gAAvzru0Oi1zqCLvz2F_g8iNB_f03jiS0KjRdch0e9iH2 7PHS561uqGgbj3iv6Vp.s Received: from jws704104.mail.ssk.yahoo.co.jp by sendmailws607.mail.ssk.yahoo.co.jp; Sat, 07 Mar 2020 07:36:18 +0000; 1583534178.206 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1583534178; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=JJzMxtyag1Sg9rX8JRipgmBlETHpYiugYYDm6bWsewI=; b=BgGIRwQ7qKNkljv/RRY1TgSq13q3qcVUyIvxMe7MLwXNwhQBh9VzNQkqWGPrulZ4 agXWOlzlnwKi923S4npV3EoJQ1rLyXNJT+uq93FcuQf4FTNxDzmUshpJ3avLtfFH9QV +7eACEoaKRsmcdU8/y0AJfJKgQUOQsxLkuGMr0yM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Cc:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=XjKfkZR+vqqVqxA1SEX+RiczLVq+ZK6x3NzlLYgVdj03Afdo5f1fIla47VEc1/+7 u0qyaGdLg1Rmq/whoiwQ3zo0kSrAXdoucb4ySzm52XJQxSzTXQ7/cqb0k4vHaHgSa6G ZhhRDl3+4Naq5wpcIystDqj2vOr0cEEorQNxG4y4=; Date: Sat, 7 Mar 2020 07:36:16 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: Michael Vale , Ian Lepore Cc: "freebsd-hackers@freebsd.org" , "freebsd-arm@FreeBSD.org" , Sergey Ivlev Message-ID: <897989234.2677616.1583534177064.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: References: <76e66ea321b8d7480af75cfbd38fa55f5ac40afd.camel@freebsd.org> Subject: Re: Cross-building ports with release(7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48Z2XR49qqz4Nyw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=BgGIRwQ7; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.56.150 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-1.23 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:183.79.0.0/16]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; FREEMAIL_TO(0.00)[live.com.au]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; IP_SCORE(0.00)[ip: (3.89), ipnet: 183.79.0.0/16(2.38), asn: 24572(1.91), country: JP(0.04)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.79)[-0.785,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.45)[0.451,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[150.56.79.183.list.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: Fri, 06 Mar 2020 22:36:28 -0000 Hi ZRouter.org support ports cross build. https://zrouter.org I do build mips, mipsel, arm, armv7 ports by ZRouter. I put paper to AsiaBSDCon 2020 about cross build ports. The paper is accept. But AsiaBSDCon is cancelled. This is prepared slide. https://docs.google.com/presentation/d/1iybunLiYIKbpOKHYHNHDnaQ7jO23DpXGk_U= R9mF21NY/edit?usp=3Dsharing ----- Original Message ----- > From: Michael Vale > To: Ian Lepore > Cc: "freebsd-hackers@freebsd.org" ; "freebsd= -arm@FreeBSD.org" ; Sergey Ivlev > Date: 2020/3/7, Sat 03:15 > Subject: Re: Cross-building ports with release(7) >=20 > Sergey, >=20 > I see what you are trying to achieve here. Sorry but the cross ports buil= d=20 > scripting has been neglected.=C2=A0 It requires staging.=C2=A0 I will tak= e a look at this=20 > today but I can't promise anything as other things have taken priority in= =20 > life.=C2=A0 You can for the interim make packages and install them after = the fact or=20 > use Ian's suggestion. >=20 > On 7 Mar 2020 04:15, Ian Lepore wrote: >=20 > On Fri, 2020-03-06 at 16:25 +0500, Sergey Ivlev wrote: >> Hello! >>=20 >> I've successfully built FreeBSD 13.0-CURRENT (r358609) image for >> ARMv7 on AMD64 host using release(7). >>=20 >> I wonder is it possible for AMD64 host to build/install ports into >> the image? >>=20 >> I've defined arm_do_quirk function in my configuration file, where >> I'm calling `make DESTDIR=3D${CHROOTDIR}/${DESTDIR} TARGET=3Darm >> TARGET_ARCH=3Darmv7 ... build install clean`.=C2=A0 But it ended up wit= h >> error, of course, because that make(1) chroots into >> ${CHROOTDIR}/${DESTDIR} and runs executables from there, but >> ${CHROOTDIR}/${DESTDIR} is where **built target** located (i.e. where >> files for ARMv7; ${CHROOTDIR}/${DESTDIR} is {my chrrot >> dir}/usr/obj/usr/src/arm.armv7/release/{kernel name}).=C2=A0 Altering t= he >> PATH variable so it will specify ${CHROOTDIR} as the first entry, >> doesn't help either -- I end up with the same ``exec format=20 > error'' >> (env PATH=3D"${CHROOTDIR}:${PATH}" make DESTDIR=3D...). >>=20 >> I had also tried to `chroot ${CHROOTDIR} make DESTDIR=3D${DESTDIR} >> TARGET=3Darm TARGET_ARCH=3Darmv7 ... build install clean`, but >> mount_nullfs(8) failed under chroot(8). >>=20 >> Therefore, my question is: is it possible while building an image for >> ARMv7 on AMD64 host with release(7) also building and installing >> ports into the result image? >>=20 >> Thanks in advance! >>=20 >=20 > Cross-building ports is done with poudriere and qemu.=C2=A0 There is some > info on setting it up in https://wiki.freebsd.org/QemuUserModeHowTo but > I think that's pretty out of date.=C2=A0 There may be newer how-to info t= hat > I'm not aware of.=C2=A0 I'm going to CC the freebsd-arm@ list on this rep= ly, > because the folks there probably know of better information resources > for all this. >=20 > I also have no idea how to integrate poudriere-based building with > release(7) stuff.=C2=A0 It may be a matter of building a local package re= po > using poudriere, then configuring the release script stuff to use it. >=20 > -- Ian >=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-arm@freebsd.org Sat Mar 7 11:06:26 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 DDBD9261D74 for ; Sat, 7 Mar 2020 11:06:26 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:a:f40b::1]) (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 "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48ZM9s4jg4z4WNj for ; Sat, 7 Mar 2020 11:06:25 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver= DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 48ZM9p0Xc4zj0 Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 48ZM9p0Xc4zj0; Sat, 7 Mar 2020 12:06:20 +0100 (CET) Received: from morzine.restart.bel (morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id 027B6Je2085011 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=OK); Sat, 7 Mar 2020 12:06:19 +0100 (CET) (envelope-from hlh@restart.be) X-Authentication-Warning: norquay.restart.bel: Host morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1] claimed to be morzine.restart.bel Subject: Re: FreeBSD 13.0-CURRENT #0 r358465 on rockpro64 and RTC To: Greg V Cc: "freebsd-arm@freebsd.org" References: <2ff55aa2-b919-3f2b-715b-a97bb0debe21@restart.be> <71529742-60eb-4301-808a-d9dd3902d50e@localhost> From: Henri Hennebert Message-ID: <95809d4d-9375-70b7-df83-1ba614ad6a8a@restart.be> Date: Sat, 7 Mar 2020 12:06:19 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <71529742-60eb-4301-808a-d9dd3902d50e@localhost> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48ZM9s4jg4z4WNj X-Spamd-Bar: / X-Spamd-Result: default: False [0.46 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[restart.be:s=tignes]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:a:f40b::1/128:c]; NEURAL_HAM_LONG(-0.93)[-0.927,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.994,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[restart.be:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[restart.be,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(1.40)[ipnet: 2001:41d0::/32(4.92), asn: 16276(2.06), country: FR(0.00)]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; 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: Sat, 07 Mar 2020 11:06:26 -0000 On 3/6/20 3:20 PM, Greg V wrote: > > > Mar 6, 2020 3:21:03 PM Henri Hennebert via freebsd-arm : > >> Hello >> >> I am running FreeBSD 13.0-CURRENT #0 r358465 on a rockpro64 4GB with a >> RTC BACKUP BATTERY HOLDER - CR-2032. >> >> (u-boot from https://wiki.freebsd.org/arm64/ROCKPro64 to run with the >> 4GB and with hw.ncpu=4 in loader.conf) >> >> I tested the 3V of the battery. >> >> It seems that the RTC is not managed for now (time lost after power >> off), is it correct? > > Hi, the RTC driver is not merged yet: > > https://reviews.freebsd.org/D22692 > I try it and it work for me! Thanks Henri > > From owner-freebsd-arm@freebsd.org Sat Mar 7 11:10:36 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 5CC94261EBE for ; Sat, 7 Mar 2020 11:10:36 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (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 48ZMGd4P0xz3CVQ for ; Sat, 7 Mar 2020 11:10:33 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x341.google.com with SMTP id f7so607532wml.4 for ; Sat, 07 Mar 2020 03:10:33 -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=q6zgKWE31BMbw62umhZ9Gb1a46nJ5qydxrXi3oIkI7E=; b=RUTzuWXLEk8MC6CuQafWvITUNqHukblaNBUGi+G+6kTEcVsaw5m7KbetxfjUcyI3Fm E7Uc9YUHapB0olwWZA//+5WiMRXAsfuxn5udx+gpbQ003vIUMtY/Enr5d3VebjFQVwjv kn8eIdPZfG7cMdM/1sYnVefSqZfkSmj24Hug1XDhX25iOJhwi6boFL1p5opFPk153DCV gtI/Gw45tnptIOR05SpuEJO1KuJxG1hZg3ccx3+7kaZKX4Rb119x6HAqxh/ckDh5WQWm 0lMVOtqpmUPHmVyYnHTEVHCR7laH5Jh7Bapg4y4Z/mS1MwJx2y/RFZRMsPpVpWzWOfIH NbyQ== 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=q6zgKWE31BMbw62umhZ9Gb1a46nJ5qydxrXi3oIkI7E=; b=URHpvcoP3c0oPHDw0P82qAjF9IDrDLREXxaBULOJUHQ2yO+//bgC3V7OqKqfQEkloF 60UVCNnEThq9iSAA3zhwIfquU0WPRLZc4RQHjP6mRwJoZNKLu1UdAIdAcMPXbm0HyjUe 90JZM3+fat6ULMiI2EP4lUFGFABrITql4AQlLgI4waSqKa9uqJ0imY2psJLTpGf8WErC xNFo1M/lKi9+7ZVMhhgC/zb7EJQKVWE2OE0tRB2xBD4/kfceuo+A4/zdAoW46IrnbBXE oxUNUNLtAP+klGN3UU4oByA63kmcmlEHqAoGtFHGsND/pdNZ2xfVcbyYtjxkpiXVQYLF TvMg== X-Gm-Message-State: ANhLgQ2MZ2xFT+dGp0Q6gSAe2psOYhx7eTMHs21gErswMiAvkPytzvmo 3BA9kijawmFOCK9pKhW5g7QfIJIS X-Google-Smtp-Source: ADFU+vu8FHAhg3c4xcl1j034GAL23PI0c1Y99I5S4vFS60QicouFlZAaMmzzjaOQx2jnlsGM7L5CYg== X-Received: by 2002:a1c:a1c2:: with SMTP id k185mr9143154wme.164.1583579430965; Sat, 07 Mar 2020 03:10:30 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id w22sm18194903wmk.34.2020.03.07.03.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Mar 2020 03:10:30 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: FreeBSD 13.0-CURRENT #0 r358465 on rockpro64 and RTC From: =?utf-8?Q?S=C3=B8ren_Schmidt?= In-Reply-To: <95809d4d-9375-70b7-df83-1ba614ad6a8a@restart.be> Date: Sat, 7 Mar 2020 12:10:29 +0100 Cc: Greg V , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8C5EF3EA-FC28-4051-817C-FDAE96ADDF5D@gmail.com> References: <2ff55aa2-b919-3f2b-715b-a97bb0debe21@restart.be> <71529742-60eb-4301-808a-d9dd3902d50e@localhost> <95809d4d-9375-70b7-df83-1ba614ad6a8a@restart.be> To: Henri Hennebert X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48ZMGd4P0xz3CVQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RUTzuWXL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::341 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-2.49 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(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]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.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)[]; MID_RHS_MATCH_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.991,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[1.4.3.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.74), ipnet: 2a00:1450::/32(-2.40), asn: 15169(-1.65), 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: Sat, 07 Mar 2020 11:10:36 -0000 On 7 Mar 2020, at 12.06, Henri Hennebert via freebsd-arm = wrote: >=20 > On 3/6/20 3:20 PM, Greg V wrote: >> Mar 6, 2020 3:21:03 PM Henri Hennebert via freebsd-arm : >>> Hello >>>=20 >>> I am running FreeBSD 13.0-CURRENT #0 r358465 on a rockpro64 4GB with = a >>> RTC BACKUP BATTERY HOLDER - CR-2032. >>>=20 >>> (u-boot from https://wiki.freebsd.org/arm64/ROCKPro64 to run with = the >>> 4GB and with hw.ncpu=3D4 in loader.conf) >>>=20 >>> I tested the 3V of the battery. >>>=20 >>> It seems that the RTC is not managed for now (time lost after power >>> off), is it correct? >> Hi, the RTC driver is not merged yet: >> https://reviews.freebsd.org/D22692 > I try it and it work for me! I have something similar here, this one misses a workaround for the fact = that the rockchip RTC has 31days in November (at least the one I have in = my pinebookpro) =E2=80=A6 -S=C3=B8ren