Sorry, i didn't know that you talk about HEX8A1. What i post there is for original cgminer. For HEX8A1 you need patch.
cgminer.conf generated by cgminer after you run cgminer for the first time. After cgminer run, type S then W then enter.
After that you can edit it.
Latest patch from technobit still for cgminer-4.2.2
1. git clone https://github.com/ckolivas/cgminer.git
2. mv cgminer cgminer-4.2.2
3. cd cgminer-4.2.2
4. git checkout 5ed45a0d7a3bd71ed1b8726e5f1cdac55bf68196
5. wget https://www.dropbox.com/s/1kspms3gw0336du/5ed45a0d7a3bd71ed1b8726e5f1cdac55bf68196.patch
6. patch -p1 < 5ed45a0d7a3bd71ed1b8726e5f1cdac55bf68196.patch
7. ./autogen.sh --enable-hexminera --enable-hexminerc --enable-hexminerb --enable-hexmineru --enable-hexminer8
8. make
Add setting to cgminer.conf
sudo nano /home/"user"/.cgminer/cgminer.conf
{
"pools" : [
{
"url" : "stratum+tcp://stratum-lb-usa48.btcguild.com:3333",
"user" : "user",
"pass" : "123"
}
]
,
"api-listen" : true,
"api-allow" : "R:127.0.0.1",
"api-mcast-port" : "4028",
"api-port" : "4028",
"expiry" : "120",
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"queue" : "1",
"scan-time" : "60",
"shares" : "0",
"hexminera-voltage" : "1460",
"hexminera-options" : "16:480",
"hexminerc-voltage" : "1100",
"hexminerc-options" : "16:1500",
"hexminerb-voltage" : "900",
"hexminerb-options" : "16:540",
"hexminer8-set-diff-to-one" : "0",
"hexminer8-chip-mask" : "255",
"hexminer8-voltage" : "1000",
"hexminer8-options" : "8:260",
"hexmineru-frequency" : "54",
"set_default_to_8" : true,
"kernel-path" : "/usr/local/bin"
}