<eliasph88>
Any suggestions? Can share more info if nedeed but don´t want to spam with more than 2 lines here
<PaulFertser>
eliasph88: hi!
<PaulFertser>
eliasph88: right, you can use pastebin for more context. But first things first, does /sys/bus/pci/devices/0000:09:00.0/config exist? Do you have permissions to read it?
<eliasph88>
Hi, Paul. Thanks for replying
<eliasph88>
Yes, I can "edit" /sys/bus/pci/devices/0000:09:00.0/config. Although is not human format
<PaulFertser>
eliasph88: and how do you know it's the right device?
<PaulFertser>
Please show permissions for that file.
<eliasph88>
certainly
<eliasph88>
-rw-r--r-- 1 root root 4096 jun 18 16:08 config
<PaulFertser>
OK, and are you running OpenOCD as root?
<eliasph88>
no
<eliasph88>
make sense only OpenOCD as root can red the config file according to the permissions
<eliasph88>
right?
<PaulFertser>
Yes
<eliasph88>
Thanks
<PaulFertser>
open(filename, O_RDWR | O_SYNC);
<eliasph88>
A lot!
<PaulFertser>
And it needs WR so
<eliasph88>
Perfect, I will try so. Thanks again!
<PaulFertser>
Welcome :)
<Haohmaru>
don't run it as root if possible
<eliasph88>
ok
<eliasph88>
will change the permissions to my user and chmod +w
<PaulFertser>
Haohmaru: you think one can change permissions of that config file on sysfs? I'm not so sure.
<Haohmaru>
i don't know, but for like USB devices, on some distributions there are ways to give yourself permission without running the whole program as root
<Haohmaru>
so i thought... ^^^
<Haohmaru>
i guess this ain't usb, so no clue
rigid has joined #openocd
zmatt has quit [Read error: Connection reset by peer]