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    0  199     7  4082  4082 Oil
         ttyv2  1920    0    0  192  1984    0  199     7  4083  4083 Oil
         ttyv3  1920    0    0  192  1984    0  199     7  4084  4084 Oil
         ttyv4  1920    0    0  192  1984    0  199     7  4085  4085 Oil
         ttyv5  1920    0    0  192  1984    0  199     7  4086  4086 Oil
         ttyv6  1920    0    0  192  1984    0  199     7  4087  4087 Oil
         ttyv7  1920    0    0  192  1984    0  199     7  4088  4088 Oil
         ttyv8  1920 1459    0  192  1984    0  199     0     0     0 Oil
         ttyv9     0    0    0    0     0    0    0     0     0     0 -
         ttyva     0    0    0    0     0    0    0     0     0     0 -
         ttyvb     0    0    0    0     0    0    0     0     0     0 -
         ttyU0     0    0    0    0     0    0    0     0     0     0 IC
         ttyU1 23040    0    0 2304 23064    0 2307   137     0     0 ICOiX
         pts/0  1920    0    0  192  1984    0  199     4  4481  4481 Oi
         pts/1  1920    0    0  192  1984    0  199    11  5057  5262 Oi
         pts/2  1920    0    0  192  1984    0  199  1729  5310  5439 Oi
         pts/3  1920    0    0  192  1984    0  199     0  5465  5988 Oi

  • Check if usb_template is set to 3   sysctl hw.usb.template   or set  sysctl hw.usb.template=3
    # sysctl hw.usb.template
    hw.usb.template: 3
    # sudo sysctl hw.usb.template=3
    Password:
    hw.usb.template: 3 -> 3
     
  • cu -s 115200 -l /dev/ttyU1
    /var/spool/lock/LCK..ttyU1: No such file or directory
    Can't open lock file.
    all ports busy

    sudo cu -s 115200 -l /dev/ttyU1

    login: fred
    Password:
    Last login: Mon Jan 23 04:17:52 on ttyu0
    FreeBSD 14.0-CURRENT #6 main-n259952-7e2600ea7be2-dirty: Sun Jan 15 18:14:05 PST 2023     root@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ

    Welcome to FreeBSD!



Comments

Popular posts from this blog

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick April 24, 2024 update edition.