From nobody Mon Jan 23 21:41:28 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P13TR06phz3bTL3 for ; Mon, 23 Jan 2023 21:41:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4P13TQ4vZ2z3FZ3 for ; Mon, 23 Jan 2023 21:41:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674510104; bh=nxDt9HxEKpDuz9i4AbHGUNY7KRMUVXFHX7H+YtdpIu4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=d7pZutyDsd0lUIbM7QMRpvtL7Iao0FY6Ybu2zGbLOa89tAqr5pbYSvowt48qvDUsDUI6KHyp5Agtj1pfuWToNfcN78d/S35lJPeNCWBUfzAFcpsXK8jurZMs4TkxikumFr4F3v5gozNH+LJrgnUiNV4xW+gGGW98kDLxbpqfC1ozsY3WZyZGy7dy2vCojNMq+r6fq7rWKSPFTeGJfotSIlvdP8AR28XG0/+dO5Llw8j6Rmgm6Wsax3QxD5ApDdaghIG0m+C1XpvDN/6TQ8BFJvbblR0GPwk9h0j9EUEsi8t8jvawB/Sjb4ivC26IfV74ibJXlY5kY4CN6lQV9jKNlQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674510104; bh=f2XxlDNXbTWuUpBTCa9sxQ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62p.VQKxqgUeH6VZLOXdoriuiRFRa5p.f7rNLJcwaBEDONVJCENqn.ATPlkPtEc3 Fn52UHy4XzJmEB60SX7KCa1qu1LXRQ4tyb22tc7ONbnl1V0BRPCu9QEEYiqvhtoov6DqMqjh9F5Y 9lfvq5k_T5BE8tCq9fpy.DHHrYAQoMqg.9ds5y4gOhnPAUS7.WXQ6GU_ZeXvqagWy2SHcA6PP3uw RV9Jwi3lOIZir0mtsrAmvwRL2FeF7Z4flBxo25C1x2utUsf5kFyaxUxe6sBEighwqmDnc643IHOb eqC9aVqGnB.HWUsbV0z6PhHG17kE4.Hk0q8iIXyhse7ROPac6gfkncfp6XV_xtShCzlgwayk5KRl B5RmJQ7ONeYaen4t6sVd6KR91.nSPKkrk0CGSd7ee8z0ia9ndRpjqkUNn9BtdbGx0FcnKy9IHl2. D9LPxWqRfp8uMKdD7iGZzWuztgrmWAPFAnY7vpummCSzKPXZOPfwBMeWG0ON.exqi_17QeUmuSN6 _c0mrjuzba9.Jj4XJqnuILK8s.kg4w_ELM2bvyQUU.NKlY.5iZnwAJfQBKUUq4.XyZoyeAoGz7ga vsQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Mon, 23 Jan 2023 21:41:44 +0000 Received: by hermes--production-bf1-6bb65c4965-2q6bd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 11c2f90e7f36908914bebd4b37ffcc9a; Mon, 23 Jan 2023 21:41:40 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: Raspberry Pi 4B is now booting single user mode on FreeBSD 14.0 aarch64. Does it work for you? From: Mark Millard In-Reply-To: <68e61133-cb1c-60ae-59bf-5569a0f18d40@thegalacticzoo.com> Date: Mon, 23 Jan 2023 13:41:28 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7187F5AE-A36F-407D-8784-B9527A620820@yahoo.com> References: <68e61133-cb1c-60ae-59bf-5569a0f18d40@thegalacticzoo.com> To: Fred Finster X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4P13TQ4vZ2z3FZ3 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Jan 23, 2023, at 06:53, Fred Finster wrote: > On 1/21/23 17:12, Mark Millard wrote: >> On Jan 20, 2023, at 06:22, Fred Finster = wrote: >>=20 >>> was just trying to boot into single user mode from this = documentation below: >>> https://people.freebsd.org/~rodrigc/doc/handbook/makeworld.html >>> Once in single-user mode, run these commands if the system is = formatted with UFS: >>>=20 >>> |#| *|mount -u /|* >>> |#| *|mount -a -t ufs|* >>> |#| *|swapon -a|* >>>=20 >>> example I created this blog = post:https://ghostbsd-arm64.blogspot.com/2023/01/time-make-j4-buildworld.h= tml >>> I could boot into multi-user mode but not into Single User Mode on = this Raspberry Pi 4B. >>> What do you suggest and how to trouble shoot? I turned on verbose = mode and saw that it hung after starting /sbin/init >>> but do not know why this aarch64 ARM64 BCM2711 cpu hangs on FreeBSD = 14.0 going into "single user mode". >>>=20 >>> This Version: >>>=20 >>> root@Fred_RasPi4B:~ # uname -Kmnopr >>> FreeBSD Fred_RasPi4B 14.0-CURRENT arm64 aarch64 1400077 >>> root@Fred_RasPi4B:~ # uname -a >>> FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #6 = main-n259952-7e2600ea7be2-dirty: Sun Jan 15 18:14:05 PST = 2023root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ = arm64 >> . . . >>=20 >> I've never tried GENERIC-VCHIQ. >>=20 >> Have you tried testing a standard build on some >> media, such as trying a dd of an uncompressed: >>=20 >> = http://ftp3.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0= -CURRENT-arm64-aarch64-RPI-20230120-43703bc489ec-260163.img.xz >>=20 >> and seeing if the problem replicates for that in >> your context? If it replicates, then at least you >> know it is not something more specific to your >> context and other folks would be able to test >> similarly with a sufficiently analogous context. >>=20 >> But, if it does not replicate when you try such a >> test, then folks likely would have to try to >> reproduce your context to have a sufficiently >> analogous context to test. >>=20 >> =3D=3D=3D >> Mark Millard >> marklmi at yahoo.com >>=20 > Mark thank you for answering my email question directly! I realize = you, Mark, are busy, with some many details. Your suggestion of using a = Snapshot image is good for debugging. > = http://ftp3.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/14.0/FreeBSD-14.0= -CURRENT-arm64-aarch64-RPI-20230120-43703bc489ec-260163.img.xz > Is there a shell script file to build this image, just like = FreeBSD.org does? I would like to natively build an image with the = VCHIQ patch included from my /usr/src hosted > on the Raspberry Pi 4B /8G dram with a 500GB SSD drive with 92GB = FreeBSD partition. The 43703bc489ec part of the *.img.xz name indicates the exact commit used for the snapshot build. Thus you can set up to be using the exact same source content for buildkernel (or even buildworld). This does get into avoiding src.conf and make.conf tailoring and using the same kernel configuration file in order to fully have things the same when that happens to be what is wanted. (This can allow seeing if your own build of deliberately-the-same manages to match the snapshot's behavior.) You can rename the original /boot/kernel in the installed snapshot ( such as to /boot/kerorg ). You can installkernel your own kernel build as /boot/kernel . =46rom the loader you can pick kernel which to boot. The renaming I used as an example makes your build the default for booting. This avoids needing to buildworld or installworld at the time: just a kernel update. It allows trying both kernels with the rest held constant in order to compare/constrast. You can also go the other way: do possible renaming (or deleting) of the kernel on the media that you have been using and copy over /boot/kernel from the snapshot to a desired /boot/* name on your media and then use the snapshot's kernel to try booting with your build of world. Again, it can allow booting both ways and doing comparison and contrast investigations. Of course, you can also do buildworld buildkernel with your intended tailoring, such as using the alternate kernel configuration file, but otherwise based on the same source files used for a snapshot. The official release building scripts and such are intended generally for avoiding any non-standardness in the builds. So I doubt that you would use them for making locally-tailored builds. I do not use them. The tail part of UPDATING has material about doing various types of personal builds/installs/updates, starting with the text "To build a kernel". There are also more instructions in the likes of the /usr/src/Makefile in its initial comment block. It starts around the text: "If you want to build your system from source," It does not cover as many variations. But it can be good to read both sets of instructions. =3D=3D=3D Mark Millard marklmi at yahoo.com