From nobody Sun Jul 30 21:17:19 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 4RDZ3K4B09z4pTlJ for ; Sun, 30 Jul 2023 21:17:52 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao201.oxsus-vadesecure.net (mta-231a.oxsus-vadesecure.net [15.204.3.4]) (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 4RDZ32125Mz3rX4 for ; Sun, 30 Jul 2023 21:17:49 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webcom.xion.oxcs.net header.s=mail1 header.b=OSsey0Jv; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 15.204.3.4 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com DKIM-Signature: v=1; a=rsa-sha256; bh=P0SFy0+wOTtRWSVrthvjr9AuRUkEnqHQEnQMjM nRRk8=; c=relaxed/relaxed; d=webcom.xion.oxcs.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=mail1; t=1690751866; x=1691356666; b=OSsey0JvK2kZIx+OREEqHVHepTd708nPv2DUuB/xT YWWK6wpLs4iuaiHEmb4zyNrpo9YbD24Qe1Sz2YYM3ZhTworoSX+4HN06EomNdz8Zzr7FMfd P5IsO4PGYKGeUCPfKfd1AsLp1ULRbdNXpVwOhj8Wxr37mCgY5SCFNXFprjXWgHs0Vydr+Ea 8nbFDvoKv2iTv2r2eeCRNj179hDGb3CYZEJT73IBsN0oiJHkxzDiigLTwJPcXRIpuSK0lpG qFZ8mkpcCJ6+hYajAfrcT48MMqCKOuI3oYdZBAqscFid0VJBE3hfJ9umzpq3ptvIwUg1Cx9 TAYeyfSQ3+uuHXPhQ== Received: from proxy-8.proxy.cloudus.ewr.xion.oxcs.net ([76.14.239.229]) by oxsus2nmtao01p.internal.vadesecure.com with ngmta id 065227f3-1776c1dd18bdc6d3; Sun, 30 Jul 2023 21:17:46 +0000 Content-Type: multipart/alternative; boundary="------------dVp08GWspIZYESi3v6e3bgRa" Message-ID: Date: Sun, 30 Jul 2023 14:17:19 -0700 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: yklaxds@gmail.com, freebsd-arm@freebsd.org From: Fred Finster Subject: [SOLVED] July 002839 post: u-boot.bin Not Booting on Raspberry Pi 4B? Replace with older working version u-boot.bin X-Spamd-Result: default: False [-4.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; R_SPF_ALLOW(-0.20)[+ip4:15.204.3.4/30]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[15.204.3.4:from]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16276, ipnet:15.204.0.0/17, country:FR]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[15.204.3.4:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-Rspamd-Queue-Id: 4RDZ32125Mz3rX4 X-Spamd-Bar: ---- This is a multi-part message in MIME format. --------------dVp08GWspIZYESi3v6e3bgRa Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Yes, I also had problems with booting latest FreeBSD 14.0-CURRENT snapshot on a Raspberry Pi 4B with 8 GB ram  SoC B0T version 1.2 https://lists.freebsd.org/archives/freebsd-arm/2023-July/002839.html Your post https://lists.freebsd.org/archives/freebsd-arm/2023-July/002789.html My [SOLVED] answer to replace u-boot.bin with an older working version https://ghostbsd-arm64.blogspot.com/2021/05/audit-your-boot-files-with-md5deep.html How to Audit your directories and files using MD5DEEP or HASH utility. Read the comments section  verify what the MD5 checksum is on your u-boot.bin  file.  Replace that newer u-boot.bin file with an older version that does work to boot the RASPBERRY PI. 602552 71287bb1f4d4ceb9dc9cbf1efb0186a8 /media/msdos/u-boot.bin Look at the size and the MD5 checksum value to determine a working version compared to a broken version root@Fred_RasPi4B:/mnt/rpifat32 # ls -l u* -rwxr-xr-x  1 root  wheel  568960 Oct 21  2021 u-boot.bin -rwxr-xr-x  1 root  wheel  602552 Jun 22 07:08 u-bootJune22_broken.bin root@Fred_RasPi4B:/mnt/rpifat32 # root@Fred_RasPi4B:/mnt/msdos # md5 u-boot.bin   # 568960 Oct 21 2021 u-boot.bin  Working Older Copy MD5 (u-boot.bin) = 4c2998a9bd108775ada821a56e6362a7    # Working Older Copy of u-boot.bin -rwxr-xr-x  1 root  wheel   602552 Jun 22 07:08 u-boot.bin root@Fred_RasPi4B:/mnt/rpifat32 # md5 u-boot.bin    # MD5 (u-boot.bin) = be6c1637a6c775fad754efa723eff516      # Not booting June 22 2023 u-boot.bin replaced FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20230706-884eaacd24bd-263985.img.xz I would be glad for your testing assistance on Raspberry Pi 4B with FreeBSD software. https://ghostbsd-arm64.blogspot.com/2022/09/freebsd-140-compiling-kernel-for.html See the VCHIQ_AUDIO_PATCH_file.txt , https://reviews.freebsd.org/D37878  This patch allows HDMI Audio to work on the speakers from your HDMI TV / Monitor. https://reviews.freebsd.org/D37878?download=true  Get the Patch File text saved  HDMI_VCHIQ_sound_patch.txt (or filename patch_vchiq_D37878_diff.txt) fred@generic-arm64:/usr $ ls -l pat* -rw-r--r--  1 root  wheel 47621 Jul 30 19:27 patch_vchiq_D37878_diff.txt fred@generic-arm64:/usr $ md5 patch* MD5 (patch_vchiq_D37878_diff.txt) = 0d5f9016a8b07c5cdb1966e3486da376 fred@generic-arm64:/usr $ wc patch*     1694    5413   47621 patch_vchiq_D37878_diff.txt cd /usr/src Does this match your usage work flow? I am asking you to verify the steps, so that I or others can duplicate those steps and have a working kernel to install. please modify, add, or update the steps below: su root cd /usr/src patch -v

Yes, I also had problems with booting latest FreeBSD 14.0-CURRENT snapshot on a Raspberry Pi 4B with 8 GB ram  SoC B0T version 1.2

https://lists.freebsd.org/archives/freebsd-arm/2023-July/002839.html  Your post

https://lists.freebsd.org/archives/freebsd-arm/2023-July/002789.html  My [SOLVED] answer to replace u-boot.bin with an older working version

https://ghostbsd-arm64.blogspot.com/2021/05/audit-your-boot-files-with-md5deep.html  How to Audit your directories and files using MD5DEEP or HASH utility.

Read the comments section  verify what the MD5 checksum is on your u-boot.bin  file.  Replace that newer u-boot.bin file with an older version that does work to boot the RASPBERRY PI.

602552 71287bb1f4d4ceb9dc9cbf1efb0186a8 /media/msdos/u-boot.bin

Look at the size and the MD5 checksum value to determine a working version compared to a broken version

root@Fred_RasPi4B:/mnt/rpifat32 # ls -l u*
-rwxr-xr-x  1 root  wheel  568960 Oct 21  2021 u-boot.bin
-rwxr-xr-x  1 root  wheel  602552 Jun 22 07:08 u-bootJune22_broken.bin
root@Fred_RasPi4B:/mnt/rpifat32 #

root@Fred_RasPi4B:/mnt/msdos # md5 u-boot.bin   # 568960 Oct 21 2021 
u-boot.bin  Working Older Copy
MD5 (u-boot.bin) = 4c2998a9bd108775ada821a56e6362a7    # Working Older 
Copy of u-boot.bin

-rwxr-xr-x  1 root  wheel   602552 Jun 22 07:08 u-boot.bin
root@Fred_RasPi4B:/mnt/rpifat32 # md5 u-boot.bin    #
MD5 (u-boot.bin) = be6c1637a6c775fad754efa723eff516      # Not booting 
June 22 2023 u-boot.bin replaced


FreeBSD-14.0-CURRENT-arm64-aarch64-RPI-20230706-884eaacd24bd-263985.img.xz

I would be glad for your testing assistance on Raspberry Pi 4B with FreeBSD software.

https://ghostbsd-arm64.blogspot.com/2022/09/freebsd-140-compiling-kernel-for.html

See the VCHIQ_AUDIO_PATCH_file.txt ,  https://reviews.freebsd.org/D37878  This patch allows HDMI Audio to work on the speakers from your HDMI TV / Monitor.

https://reviews.freebsd.org/D37878?download=true  Get the Patch File text saved  HDMI_VCHIQ_sound_patch.txt (or filename patch_vchiq_D37878_diff.txt)

fred@generic-arm64:/usr $ ls -l pat*
-rw-r--r--  1 root  wheel  47621 Jul 30 19:27 patch_vchiq_D37878_diff.txt
fred@generic-arm64:/usr $ md5 patch*
MD5 (patch_vchiq_D37878_diff.txt) = 0d5f9016a8b07c5cdb1966e3486da376
fred@generic-arm64:/usr $ wc patch*
    1694    5413   47621 patch_vchiq_D37878_diff.txt

cd /usr/src

Does this match your usage work flow? I am asking you to verify the steps, so that I or others can duplicate those steps and have a working kernel to install. please modify, add, or update the steps below:
su root cd /usr/src patch -v <HDMI_VCHIQ_sound_patch.txt time make -j4 buildkernel KERNCONF=GENERIC-VCHIQ time make -j4 installkernel KERNCONF=GENERIC-VCHIQ reboot FreeBSD operating system and use the newly compiled kernel
uname -aK    What is the presently running kernel version.
ls -l /boot/kernel      Look at the file sizes and file dates FYI

    

Now I expect that HDMI port #0 sound will work and output to my Television connected via HDMI cable to TV's HDMI input #2. So when my tv is displaying the Raspberry Pi 4B desktop screen. Opening FireFox version 104 browser to youtube.com will play some Video and AUDIO too.

Respectfully,

Fred L Finster


ps.

Giving a presentation at LinuxFestNorthWest  October 20-22 2023 Bellingham Washington

https://dev.events/conferences/linux-fest-northwest-bellingham-9-2023

https://sessionize.com/app/speaker/session/500667

Find Stability Using FreeBSD 14.0 O/S on your ARM64 Raspberry Pi 4B device

Description

Bring stable FreeBSD server & desktop software to YOUR HOME computer. How I stream YouTube video and hdmi audio on my RasPi4B to a HDMI screen. Some FreeBSD wifi device driver development notes, port OpenBSD wifi driver to FreeBSD 14.0
https://forums.raspberrypi.com/viewtopic.php?t=343233
Future look at FreeBSD on a Rock5 SBC wiki.radxa.com/rock5



--------------dVp08GWspIZYESi3v6e3bgRa--