From nobody Tue Mar 05 10:07:06 2024 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 4Tprp82cGpz5CL5F for ; Tue, 5 Mar 2024 10:07:12 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao201.oxsus-vadesecure.net (mta-231b.oxsus-vadesecure.net [15.204.3.5]) (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 4Tprp72pDMz4Vxg for ; Tue, 5 Mar 2024 10:07:11 +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=KTfR52AZ; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 15.204.3.5 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; arc=pass ("oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1") ARC-Seal: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1709633229; cv=none; b=D/4QEgmFHFgoQD4ScMaNPTPTnEGAI0Nk4aZHNiS/jqPzr+MKXLEJiEmZth7V87FjROV0G3hcW7rSxsIB4Fxo3DjZmhfM6UuOY1FidsgWrwaWWpkXz/vWLQgrmR0qfYe5kU1pYY/+y/viZXLGIX0TtEQAKGDtr9hnfuLMbDzENbvz2IiR0kIdrqwirEztgCpdpdz42B+LnPlOZ66Owxouy0pehMX7+9p06HfeTZ7kp3qAezGQOPruQ/amETzz45hKolZ4pf+s3q0H2BJc9G+VtHlvZk7u/eH6F0q12ErKnpvIeaNo5+auYx5B9V1cZ1yjiBcxy+zyBOTy7OmCnMxjbQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=oxsus-vadesecure.net; s=arc-202309-rsa2048; t=1709633229; c=relaxed/relaxed; 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; bh=M/3cbNuKYlHp3tvEQuPG6zszTW9rKL0ioM5unUFmths=; b=izMs7FyN+KmI4/89bZO8dQ664KlicVrX7HeKvcpEKX4m3PSxYYfK9P65F5BC+ndcnZQX/Igc6XPovMsJWaRTKmmW/mLYaVu62oA/c9FKay1rMkN0GjT8Dao5ZnSO65g4zHxpLEN2sBIuz7+9cJbO0UGqLFVnqB0cOp3NTKPKR5Lb3/5IxYbPWEUyYmIciXw0Iz10WGf17HIk+hD/pJK7ip0aBfk9xQzXG8hi70bZsZJIDXsdp/Z2uvqSoRK05jfIIXGoqfW7JRBPRxJxDUFYRMPKchg72h6sbN6mb4HD9I8KJCnj8DKoCHFKae2tkLY7QmvHJz8wGKivHd2tU8EpHQ== ARC-Authentication-Results: i=1; DKIM-Signature: v=1; a=rsa-sha256; bh=M/3cbNuKYlHp3tvEQuPG6zszTW9rKL0ioM5unU Fmths=; 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=1709633229; x=1710238029; b=KTfR52AZlY2EKOpWd6U+N/T+UwNZi+hZ9y6I+wzxD DAEZiv8BHIKXf9wRxY/2evi9yb9x9YohZxx4CCPei3rRcvMs7BhHRZdYr3rwwLUZCaOXMOl WO9cqanYW28NBW3Vuv7lOwQeZ4GKpxfIaxipre+ejKMXkCQymRySv6knsJYWpklZwdmrMdm daBbD2tvWfWh+AXAQU7tVC8nHJ29xG61KZRPQqhdbAPd9OtUTaokrXuLWGCBgQT8Cy4p6pS cjveRdxTYW+TzMEWDFxFMC6d7JQ6PqydDvMxS2IGo/zs7knSAp7q/D0euIMtx5PXo/xZgCV URTSmYkGU/LOnFKYA== Received: from proxy-8.proxy.cloudus.ewr.xion.oxcs.net ([76.14.239.229]) by oxsus2nmtao01p.internal.vadesecure.com with ngmta id 5a7f2a13-17b9d65cfdda1f40; Tue, 05 Mar 2024 10:07:09 +0000 To: freebsd-arm@freebsd.org Cc: "fredfinster58@gmail.com" From: "Fred G. Finster" Subject: Tiga Ird Board, OpenOCD, GDB-aarch64-none-gnu, Sharing URLs to read on using a Raspberry Pi 4B with GhostBSD / FreeBSD Organization: Kliktel.co Message-ID: Date: Tue, 5 Mar 2024 02:07:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-5.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[oxsus-vadesecure.net:s=arc-202309-rsa2048:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:15.204.3.4/30]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[15.204.3.5:from]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[15.204.3.5:from]; FREEMAIL_CC(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ASN(0.00)[asn:16276, ipnet:15.204.0.0/17, country:FR]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+] X-Rspamd-Queue-Id: 4Tprp72pDMz4Vxg Here is a newer version of Raspberry Pi 4B, 3B, 400 image to download 728 Mbytes http://ghostbsdarm64.hopto.org/packages/Ghost14_5G_selfbuilt_raspi4b_Feb7_1.img or download a,000 byte shell script file , write_freebsd_img_dd_to_da1.sh, to automate the downloading , decompressing, and writing into /dev/da1 usb flash drive that large image file. Raspberry Pi 5 status thread, where I shared 3 patch files to enable HDMI Audio out the TV speakers with FreeBSD https://forums.FreeBSD.org/threads/raspberry-pi-5-status.91406/post-641494 Forum Post with URL Links to JTAG post, UART3, OpenOCD, GDB https://forums.FreeBSD.org/threads/arm-arm64-gpio-irq-cpu-affinity-is-it-supported.92490/post-645899 Has anybody tested the extra UART 2, 3, 4, 5 serial ports on the Raspberry Pi 4? https://forums.FreeBSD.org/threads/raspberry-pi-5-status.91406/post-643076 Directions for patching in source code to enable HDMI Audio Speakers on the TV. https://forums.FreeBSD.org/threads/raspberry-pi-5-status.91406/post-641494 What I am looking for is the setup of the .dts and dtsi files to enable the UART3 serial port to operate in FreeBSD aarch64 on the Raspberry Pi 4B with 8 GB dram, a 500GB SSD, and ethernet DHCP connection to the router. 2nd I have OpenOCD connected and running through a Tigard Board FT2232H FTDI USB uart serial port devices connected to the Raspberry Pi 4B. board. I want to test and look into why the UART3 serial port is not getting setup and used by FreeBSD. Serial UART3 port setup blog post https://ghostbsd-arm64.blogspot.com/2024/02/uart3-serial-port-how-to-locate-source.html uart3-overlay.dts /dts-v1/; /plugin/; /{ compatible = "brcm,bcm2711"; fragment@0 { target = <&uart3>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; status = "okay"; }; }; fragment@1 { target = <&uart3_pins>; __dormant__ { brcm,pins = <4 5 6 7>; brcm,pull = <0 2 2 0>; }; }; __overrides__ { ctsrts = <0>,"=1"; }; }; DIFFERENT VERSION of Uart3 DTSI description: I will send email now, and study tomorrow what is different between these 2 files. uart3: serial@7e201600 { compatible = "arm,pl011", "arm,primecell"; reg = <0x7e201600 0x200>; interrupts = ; clocks = <&clocks BCM2835_CLOCK_UART>, <&clocks BCM2835_CLOCK_VPU>; resets = <&dvp 0>; interrupt-parent = <&aon_intr>; interrupts = <0>, <1>, <2>, <3>, <4>, <5>; interrupt-names = "cec-tx", "cec-rx", "cec-low", "wakeup", "hpd-connected", "hpd-removed"; ddc = <&ddc0>; dmas = <&dma 10>; dma-names = "audio-rx"; # status = "disabled"; status = "okay"; }; Need to understand how what is written in this overlay file converts to code or is related to already existing code and adds the interrupt signal 121 to look at UART3 and see if it has an empty transmit register or has received charters to read from the receive register. Maybe add the interrupt description to the Uart3-overlay.dts file. Look at the bcm2711.dts and the raspi4-b-overlay.dts files In writing this email to you, I am considering the problem I am having with the UART3 code. From the overlay above, it may enable/setup the GPIO pins, from 40 pin header, 7 Uart3 TX and 29 Uart3 RX to connect with open the internal UART3 device on the SOC. Maybe I should move the description of ther interrupts and GIC interrupt controller to be listed in this DTS Overlay description. That is the question I am asking. I will give this a good google search to find examples of describing the interrupt connections at the Uart3-overlay.dts 2nd, What tools do you use like ddb or gdb or JTAG to get a pick inside the target device Arm64 SOC? I wish to dump the register at adress 0x7e20 1600 to see how it is setup? Maybe poke a character 0x41 to the TX transmit register and watch it come out on the Serial Terminal as a Capital A. This would verify that the hardware is working and the signals are connected correctly. Ghidra, Does anybody use this with Arm64 machine language? Or do you have plenty of access using GDB to disassembly code and set breakpoints? Is there a llvm lldb debugger to use in place of GDB? Question, Questions. Wish I could be more helpful to this group with FreeBSD - Arm64 development. IT seems like I am having to difficult of time just setting up my test and debug equipment. Those are my thoughts. I shared some reading material about JTAG on the Raspbery Pi 4 board.. I hope someone does test HDMI Audio sound on a Raspberry Pi 5 sbc. Looking for someone to get a working FreeBSD / GhostBSD desktop with HDMI Audio sound working, Uart3 working, Then can look at porting OpenBSD or NetBSD wifi driver code for the CY43455 WIFI Chip. Now owned by Infineon?? -- Fred Finster GhostBSD-Arm64.blogspot.com t.me/ghostbsd Telegram Channel GhostBSD.org website