From owner-freebsd-arm@freebsd.org Fri Oct 18 18:17:22 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A6BF158270 for ; Fri, 18 Oct 2019 18:17:22 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (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 46vvQ943gFz3P4m for ; Fri, 18 Oct 2019 18:17:21 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from [10.137.113.129] (108-169-4-232.dynamic.dsl.sonic.net [108.169.4.232] (may be forged)) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id x9IIHG0Z008411 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 18 Oct 2019 11:17:17 -0700 From: glenn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: ClearFog Base serial console on FreeBSD 11.2? Date: Fri, 18 Oct 2019 11:17:16 -0700 References: To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: <7478894E-DF5D-49D9-AFD5-4D6ADE1A2084@sonic.net> X-Mailer: Apple Mail (2.3445.9.1) X-Sonic-CAuth: UmFuZG9tSVZkj6ZwpTeHeTQyXp8hmxKtNkljhVKX/WnH9N4MEc4xBFqOfG6O36kgIWExX7hdQM6eEoEcAbaVBKvbTzldavl3 X-Sonic-ID: C;PlMbhNPx6RGVuLhhg01YJw== M;WK9jhNPx6RGVuLhhg01YJw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Rspamd-Queue-Id: 46vvQ943gFz3P4m X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of pygr@sonic.net has no SPF policy when checking 64.142.111.80) smtp.mailfrom=pygr@sonic.net X-Spamd-Result: default: False [4.14 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[232.4.169.108.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.90)[0.899,0]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.02)[asn: 7065(-0.04), country: US(-0.05)]; NEURAL_SPAM_LONG(0.96)[0.961,0]; DMARC_NA(0.00)[sonic.net]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[80.111.142.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7065, ipnet:64.142.96.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(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, 18 Oct 2019 18:17:22 -0000 Hi Marcin, Thank you for your quick response and suggestion, but it=E2=80=99s not = clear to me how to proceed. Attempts to compile (with dtc) the file = armada-388-gp.dts located in 11.2 sys/boot/fdt/dts/arm failed to include = files (like skeleton.dtsi and = dt-bindings/interrupt-controller/arm-gic.h) that weren=E2=80=99t there = but were in sys/gnu/dts. If dts files in 12.0 source are used to create dtb files, shouldn=E2=80=99= t those dtb files work with 11.2? I=E2=80=99ve also tried to get into a fresh install and boot of the OS = on the device via ssh, but without success. To that end, there is the = following /etc/rc.conf: hostname=3D=E2=80=9CFreeBSD11.2=E2=80=9D defaultrouter=3D=E2=80=9C10.137.113.1=E2=80=9D syslog_flags=3D=E2=80=9C-ss=E2=80=9D sshd_enable=3D=E2=80=9CYES=E2=80=9D ifconfig_mvneta0=3D=E2=80=9Cinet 10.137.113.200/24=E2=80=9D Pings to 10.137.113.200 fail as if nothing is there. Glenn > On Oct 17, 2019, at 4:03 PM, Marcin Wojtas wrote: >=20 > Hi Glenn, >=20 > The release/11.2.0 is missing a huge amount of patches for a38x, which > were merged later. However the initial support should work - please > try dts from sys/boot/fdt/dts/arm/. At that time the port was not > compatible with the Linux bindings from sys/gnu/dts/arm. >=20 > Please let know if it helped. >=20 > Best regards, > Marcin >=20 > pt., 18 pa=C5=BA 2019 o 00:40 glenn napisa=C5=82(a): >>=20 >> FreeBSD12.0 and 12.1 can be made to work properly on a ClearFog Base, = but so far, for 11.2, I haven=E2=80=99t been able to get an interactive = serial console after control is passed to the kernel during the boot = process. U-boot and ubldr.bin seem to work well. >>=20 >> ... >> U-Boot env: loaderdev not set, will probe all devices. >> Found U-Boot device: disk >> Probing all disk devices... >> Checking unit=3D0 slice=3D partition=3D... good. >> Booting from disk0s3a: >> /boot/kernel/kernel data=3D0x82c5e4+0xaba1c = syms=3D[0x4+0x8cd30+0x4+0xe2c1f] >> /boot/dtb/armada-388-clearfog.dtb size=3D0x675c >> Loading /boot/defaults/loader.conf >> / >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... >> Using DTB from loaded file '/boot/dtb/armada-388-clearfog.dtb'. >> Kernel entry at 0xc00100... >> Kernel args: (null) >>=20 >>=20 >>=20 >> The reason for wanting to get 11.2 working is that, currently, = OPNsense doesn=E2=80=99t run on 12.0 or 12.1. >>=20 >> What does it take to get a serial console driver like uart-dev-snps.c = to work with 11.2? >>=20 >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20