The Smart Serial devices (like the 7i77, and the various things you can plug into it) are a bit awkward to write pre-configured configs for.
I am afraid that you are going to have to get a bit familiar with the HAL command-line interface.
As a start, with Linuxcnc not running, open a terminal window and type
halrun
You will see the command prompt change, showing that you are in halcmd, not in the shell.
loadrt hostmot2
This will load the base Mesa card driver
loadrt hm2_pci
This will load the driver for PCI cards, like the 5i25, query its capabilities and (by default) enable every function on the card, and on the attached sub-cards.
show pin
will give you a list of all the HAL pins that you can use which are related to the card. This is a much smaller list than you will see when LinuxCNC is running, as it is only the Mesa hardware pins.
show param
Will list all the parameters.
You can even start the card up, and make things happen, if you want.
loadrt threads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
addf hm2_5i25.0.pet-watchdog thread1
start
Actually, I am not sure if it is pet_watchdog or pet-watchdog. You can find out with
show funct
Then you can toggle individual output bits with, for example
setp hm2_5i25.0.7i77.0.digitalout-00 1
setp hm2_5i25.0.7i77.0.digitalout-00 0
Again, I am guessing the actual pin names, but you made a list earlier, didn't you?
Documentation:
linuxcnc.org/docview/html/man/man1/halrun.1.html