Posts

Poudriere Build setup, update FreeBSD 14.0-CURRENT packages & source code release

Image
 Poudriere,  update Raspberry Pi 4B FreeBSD 14.0-CURRENT packages & source code release  Modified July 29, 2023 Update the Source, Luke.  Before engaging the Drive login to root user account on Raspberry Pi 4B with 8 gigs dram and wired Ethernet connection to internet pkg update pkg upgrade portsnap  fetch update cd  /usr/src git -C /usr/src pull --ff-only  Installing FreeBSD Source Code 14.0-CURRENT to /usr/src Originally download original /usr/src code head for FreeBSD cd /usr git -C /usr clone -o freebsd -b main --depth 1 https://git.freebsd.org/src.git src – https://old.reddit.com/r/freebsd/comments/keme3b/heads_up_freebsd_changing_from_subversion_to_git/ghxggjm/ EXAMPLE: root@generic-arm64:/usr/src # pwd /usr/src root@generic-arm64:/usr/src # cd /usr root@generic-arm64:/usr # git -C /usr clone -o freebsd -b main --depth 1 https://git.freebsd.org/src.git src Cloning into 'src'... remote: Enumerating objects: 98541, done. remote: Counting obje...

GPIO Pins on Raspberry Pi 4B; How to use them in FreeBSD.

 GPIO Pins  on Raspberry Pi 4B;   How to use them in FreeBSD. Useful  RaspberryPi and FreeBSD documentation to help understand UART3 usage on a Raspberry Pi 4B.    Looking to enable and setup UART3 for a serial 9600 baud GPS data stream. https://man.freebsd.org/cgi/man.cgi?query=gpioctl&sektion=8&apropos=0&manpath=FreeBSD+13.1-RELEASE+and+Ports   GPIOCTL  gpio pin control  manual page https://github.com/raspberrypi/utils/blob/master/ovmerge/ovmerge   OVMERGE Tool https://blog.khubla.com/freebsd/understanding-the-raspberry-pi-freebsd-gpio-device    GPIO device understanding blog,  KHubla Blog 2013 , https://github.com/raspberrypi/linux/tree/raspberrypi-kernel_1.20210303-1/arch/arm/boot/dts/overlays/ Latest January 2023  Raspberry Pi firmware from Raspberrypi.com https://github.com/raspberrypi/linux/releases/tag/1.20230106 https://github.com/raspberrypi/linux/tags/ https://lists.freebsd.org/archives/fr...

Multifunction Ports on the Raspberry Pi 4B, Pinout and Alternate Name Functions

Multifunction Ports on the Raspberry Pi 4B,  Pinout and Alternate Name Functions https://raspberrypi.stackexchange.com/questions/104464/where-are-the-uarts-on-the-raspberry-pi-4 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269104   John R.  forum Post https://www.studiopieters.nl/raspberry-pi-4-model-b-pinout/   Sudio Pieters Netherlands Raspi4B pinout. https://lambdaland.org/posts/2020-12-23_freebsd_rpi4/   2020 FreeBSD install, Tier 3 now Tier 1,  Rust Language setup. https://github.com/raspberrypi/linux/blob/7f465f823c2ecbade5877b8bbcb2093a8060cb0e/arch/arm/boot/dts/bcm2711.dtsi#L41 Interrupt Code for Raspberry Pi 4 from Raspberry Pi Linux As Joan has stated only 1 of UART0/1 is accessible (UART0   /dev/ttyAMA0   is connected to Bluetooth on later model Pi). There are additional UART on the Pi4. Raspberry Pi4 UART  is a more up to date answer. https://raspberrypi.stackexchange.com/questions/104464/where-are-the-uarts-on-the-raspberry-...

GDB test connection from FreeBSD 13.0 x86_64 (GhostBSD ) to Black Magic Probe hardware

   GDB test connection from FreeBSD 13.0 x86_64 (GhostBSD ) to Black Magic Probe hardware https://black-magic.org/usage/gdb-commands.html   BMP GDB commands https://sourceware.org/gdb/    GDB command listing sudo gdb GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD] Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-portbld-freebsd14.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at:     <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" t...

GDB package install onto FreeBSD 14.0 for Raspberry Pi 4B

 GDB package install onto FreeBSD 14.0 for Raspberry Pi 4B    fred@Fred_RasPi4B:~ $ gdb -sh: gdb: not found fred@Fred_RasPi4B:~ $ whereis gdb gdb: /usr/ports/devel/gdb fred@Fred_RasPi4B:~ $ pkg install gdb pkg: Insufficient privileges to install packages fred@Fred_RasPi4B:~ $ sudo pkg install gdb Password: Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED:         gdb: 12.1_2         source-highlight: 3.1.9_3 Number of packages to be installed: 2 The process will require 64 MiB more space. 13 MiB to be downloaded. Proceed with this action? [y/N]: y [1/2] Fetching gdb-12.1_2.pkg: 100%   12 MiB   4.1MB/s    00:03     [2/2] Fetching source-highlight-3.1.9_3.pkg:  92%    1 MiB   1.1MB...

USB Serial Port connection From GhostBSD / FreeBSD 13.1 to Raspberry Pi 4B hardware, through the Black Magic Probe virtual USB serial port to 3.3V ttl level

  USB Serial Port connection From GhostBSD / FreeBSD 13.1 to Raspberry Pi 4B hardware, through the Black Magic Probe virtual USB serial port to 3.3V ttl level   Open a MATE terminal or Xterm terminal  from Applications  -->  System Tools --> MATE terminal Check pstat -t  to see what devices are available  pstat -t       LINE   INQ  CAN  LIN  LOW  OUTQ  USE  LOW   COL  SESS  PGID STATE      ttyu2 23040    0    0 2304 23064    0 2307    11     0     0 ICOiX      ttyv0  1920    0    0  192  1984    0  199   625  4081  4081 Oicl      ttyv1  1920    0    0  192  1984  ...

Spruce Up tools to view amount of Free Memory and Disk Usage

Image
Spruce Up tools to view amount of Free Memory and Disk Usage URLs: https://puppylinux-or-pcbsd.blogspot.com/    Here is my source list of Free Memory Tools Tools to check Free Memory available and How much SWAP memory is used Use a perl shell script made for BSDs: https://stackoverflow.com/questions/4093786/what-is-equivalent-of-linuxs-free-command-on-freebsd-v8-1 https://forums.freebsd.org/threads/free-command-perl-script-for-freebsd.299/   example of using 'free' cli You can use this script. # fetch http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt # mv freebsd-memory.pl.txt /usr/local/bin/free # chmod +x /usr/local/bin/free # perl --version # whereis perl # vi /usr/local/bin/free change first line #!/usr/bin/perl to #!/usr/local/bin/perl # free Linux like free command for my FreeBSD server Freecolor is a free replacement that displays free memory graphically as a bargraph. It supports the same options as free. Install freecolor, enter: # cd /usr/por...