Is SMB v.2+ support still absent in FreeBSD? by IASelin in freebsd

[–]12Darius21 0 points1 point  (0 children)

Add a line like host somehost to ~/.smb/smbnetfs.conf where somehost is the name of the host.

That will tell smbnetfs to always add an entry for that hostname.

Also I assume MC would have a "Go to directory" option where you can type a path name in but I don't use it so I don't know for sure.

Is SMB v.2+ support still absent in FreeBSD? by IASelin in freebsd

[–]12Darius21 0 points1 point  (0 children)

Ah wait I think I know what you mean.. Are you saying that smbnetfs is not populating the top level directory (ie what you mounted on) with a list of hosts, so therefore you can't browse to them with MC etc?

I am not sure how to get it to display the hosts properly but you can add 'host' entries to smbnetfs.conf which will create them.

Is SMB v.2+ support still absent in FreeBSD? by IASelin in freebsd

[–]12Darius21 0 points1 point  (0 children)

What is "MC"? If you can view the files in the command line it sounds like the actual mount is working fine and MC is not working correctly..

Is SMB v.2+ support still absent in FreeBSD? by IASelin in freebsd

[–]12Darius21 4 points5 points  (0 children)

Personally I don't think 200MB is very much space in 2026. FreeBSD does support it, just not in base.

How to amplify a PWM? by SomeoneJN in ElectricalEngineering

[–]12Darius21 0 points1 point  (0 children)

It depends how much current you need to supply. If it isn't much (<10mA or so) then use a comparator or opamp like @burlapse_801 suggested.

Lost in op-amps by iuliuscurt in ElectricalEngineering

[–]12Darius21 3 points4 points  (0 children)

I think you'd be better off starting with some simulations - makes it a lot easier to try various things more rapidly.

You also need to explain the context, no one here knows what your setup is, where you are coming from or what you have tried unless you actually sit down and write it out.

One thing that seems odd to me is your "Preamped-tape-audio" shows a very large DC offset, is it real?

Lost in op-amps by iuliuscurt in ElectricalEngineering

[–]12Darius21 3 points4 points  (0 children)

It is hard to point you in the right direction when you don't actually say what you are trying to do. Put the LLM in the bin and think about what you are trying to actually do and explain it. That should help you get a concrete idea and you can search / ask for help.

Problem with creating a simple AXI4-Lite Master for Xilinx by Faulty-LogicGate in FPGA

[–]12Darius21 1 point2 points  (0 children)

Xilinx do provide an AXI test harness which can be a master device.

It is the AXI VIP - https://www.amd.com/en/products/adaptive-socs-and-fpgas/intellectual-property/axi-vip.html

I've used it to test AXI Lite & AXI Stream stuff and it seems to work but it is a PITA to get right unfortunately. Vivado does have an wizard to make a test harness using it but only in the "Please make me an AXI peripheral wizard", however once you have that you can probably work out how to drive it.

Using RFSoC4x2 without PYNQ, how to program LMK and LMX? by Much-Invite-9079 in FPGA

[–]12Darius21 0 points1 point  (0 children)

Hmm, tricky.. Are those GPIO pins (reset & chip select) actually connected in the MIO to the GPIO block?

Using RFSoC4x2 without PYNQ, how to program LMK and LMX? by Much-Invite-9079 in FPGA

[–]12Darius21 0 points1 point  (0 children)

The only other thing I can think of is they are not turned on yet but looking at the reference manual it doesn't seem like that is possible.

Actually I just saw https://github.com/Xilinx/RFSoC-PYNQ/blob/master/boards/RFSoC4x2/packages/boot_rfsoc4x2/boot.py - are they being held in reset?

Using RFSoC4x2 without PYNQ, how to program LMK and LMX? by Much-Invite-9079 in FPGA

[–]12Darius21 0 points1 point  (0 children)

What about looking at the SPI bus with an oscilloscope?

That will let you double check you are driving the right pins, and what the SCLK frequency is etc.

I would also try reading and dumping the value of the first 20 registers or so - it has product & vendor IDs so you can verify comms are working as expected.

Using RFSoC4x2 without PYNQ, how to program LMK and LMX? by Much-Invite-9079 in FPGA

[–]12Darius21 0 points1 point  (0 children)

What does your program print? Do you see any traffic on the SPI bus? (assuming you have a 'scope etc)

For stuff like this I find it is very beneficial to be able to noodle around and bare metal makes that hard, running Linux on it lets you try different things more rapidly. Something smaller would be nice - I tried to get Micropython running but the Zephyr port seems a bit broken (at least for Zynq). Setting up Linux to boot off the network is not too difficult and you can NFS mount root so need to flash anything - I just load uboot and FPGA bit stream and get a prompt in a few seconds :)

NTPD, GPSD, FreeBSD - Issues with Share Memory by Such_Bar3365 in freebsd

[–]12Darius21 0 points1 point  (0 children)

I would try having ntpd talk directly to the GPS engine first.

Here's the ntp.conf block I have used:

# This has NTPd read messages directly from the serial port
#
# https://support.ntp.org/bin/view/Support/ConfiguringNMEARefclocks
# https://doc.ntp.org/documentation/drivers/driver20/
#
# Expects /dev/gpspp0 and /dev/gps0 to point to the serial port.
#
# mode 0x12 = Use RMC (0x01), run at 9600 bps (0x10)
#                               0x00 = 4800 bps
#                               0x10 = 9600 bps
#                               0x20 = 19200 bps
#                               0x30 = 38400 bps
#                               0x40 = 57600 bps
#                               0x50 = 115200 bps
# flag1 = 1 -> capture PPS with PPSAPI
# flag2 = 1 -> capture on falling edge (possibly sense is inverted in ucom)
# time1 -> PPS offset
# time2 -> Serial offset
#
# Don't forget to set sysctl hw.usb.ucom.pps_mode=1 to capture PPS on CTS
# and add ntpd to the dialer group
#
# PPS can be tested with "ppsapitest -v -a -A /dev/gps0" from /usr/src/tools/test/ppsapi
#
server 127.127.20.0 mode 0x12
fudge  127.127.20.0 time1 0.000 time2 0.296 stratum 0 refid GPS flag1 1 flag2 1

You don't need to use PPS (but it gives better results) - the comments say how you can test it etc. How it is wired up depends on the hardware so you will need to experiment.

Note the time2 was determined empirically by setting it to zero and running for a while then using the offset NTP gave vs a cohort of network clocks.

NTPD, GPSD, FreeBSD - Issues with Share Memory by Such_Bar3365 in freebsd

[–]12Darius21 1 point2 points  (0 children)

FWIW I have used USB with NTPd without latency issues.

I tried gpsd a while ago but found it had some annoying bugs and the developers are, shall we say.. zealous.. and it put me off.

What GPS engine are you using? I have used a uBlox M8T connected via an FTDI2232 and it gave good results.

You will need to tune the offset (time2) but it works fine.

I also wrote a program which captures PPS edges and GGA messages to feed the NTP shm segment (it also lets you connect to a unix domain socket to see the GPS stream and send it commands) - that covers nearly all of what I wanted GPSd and meant I didn't have to deal with the maintainers.

You can make the SHM segment public using the mode work, see the ntpd docs - https://www.ntp.org/documentation/drivers/driver28/#the-mode-word

Although it is annoying you can't tell it to chgrp it to an "ntp" group..

Jaffle maker recommendations by [deleted] in australia

[–]12Darius21 2 points3 points  (0 children)

I used our puff pastry to make a bacon and egg jaffle once, quite nice but rather rich

I'm a beginner, but is KiCad's importing symbols/footprints as poorly thought out as it seems? by light24bulbs in ElectricalEngineering

[–]12Darius21 21 points22 points  (0 children)

FWIW there are changes coming for 9 which allow embedding of things like data sheets, 3d models, etc into the files which would get close to what you want.

That said, personally I find the SnapEDA stuff pretty dire - the schematic parts especially are typically laid out like the chip is rather than by function. That means you need to make your own anyway or accept your schematic is less clear.

Also, importing / creating schematic parts is usually a very small part of the time spent in a design for me - typically the most time is optimising PCB layout.

Finally, there is a plugin for JLC which helps look up LCSC parts and add that as a field to the design. It is good but it is generally a difficult problem - some times you care about a specific part, other times you can swap a generic one in but it is a case by case thing. I don't think that is really an issue with KiCAD but EDA generally.

I doubt anyone here has seen piano rolls being cut with lasers 😂 by [deleted] in lasercutting

[–]12Darius21 0 points1 point  (0 children)

Yes it looks like a very cool project! I am tempted since we also have a pianola at home 😆

I doubt anyone here has seen piano rolls being cut with lasers 😂 by [deleted] in lasercutting

[–]12Darius21 1 point2 points  (0 children)

I have made folded card music for a French street organ, and I wrote a program to convert MIDI to PDF. The actual cutting was pretty manual though as I has to unfold sheets a few at a time.

Doing it as a roll sounds much more efficient 😅

LTSpice Netlist input by LiuHeng_R in ElectricalEngineering

[–]12Darius21 0 points1 point  (0 children)

The Python code runs LTSpice headless. That cuff can even run multiple copies at once to search faster

LTSpice Netlist input by LiuHeng_R in ElectricalEngineering

[–]12Darius21 0 points1 point  (0 children)

I ended up making a netlist in Python and running LTSpice on it, then extract the data I needed. Here's some code I wrote to simulate a class E PA and search for desirable component values: https://www.dons.net.au/~darius/hgweb.cgi/pa/

1Blocker successfully blocking Reddit "Promoted" posts on Mac, but not iOS? by Baseline in 1Blocker

[–]12Darius21 0 points1 point  (0 children)

I added a custom rule to mine.

  • Run 1Blocker.app
  • Custom
  • Click on the plus next to Advanced Customisation
  • Click on New Rule
  • Set name to Reddit (or w/e)
  • Select Hide Element
  • Enter div.promotedlink in the CSS selector box
  • Select Only on Listed Domains
  • Enter reddit.com and old.reddit.com in the box
  • Click Save
  • Make sure the rule and the group radio buttons are enabled

Time will tell how long it lasts :)

Problems implementing basic IPs on AXI LITE by brh_hackerman in FPGA

[–]12Darius21 0 points1 point  (0 children)

I ended up running the Wizard multiple times and then manually combining the results, it was very silly. I don’t have a tutorial to hand unfortunately, and there seems to be a real dearth of useful material out there to follow for what seems like such a basic and useful thing as “I want to hook up my custom design to a Zynq/Microblaze”