I have been playing with this today now that I have an interface board.
Previously with the debian-8.4 image ( I think as this is the one I had
saved ), I could see all the hm2 pins
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2: loading Mesa
HostMot2 driver version 0.15
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2_soc_ol: loading
Mesa AnyIO HostMot2 socfpga overlay driver version 0.9
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0: IDRom:
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
IDRom Type: 0x00000003
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Offset to Modules: 0x00000040
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Offset to Pin Description: 0x000001C0
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Board Name: TERADE0N
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
FPGA Size: 9
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
FPGA Pins: 144
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Port Width: 17
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0: IO
Ports: 4
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0: IO
Width: 68
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Clock Low: 50000000 Hz (50000 KHz, 50 MHz)
Jul 26 10:25:10 mksocfpga msgd:0: hal_lib:5742:rt hm2/hm2_de0n.0:
Clock High: 200000000 Hz (200000 KHz, 200 MHz)
etc etc
Now , both with an upgraded 8.4 image and a new 8.5 image, the
hm2_soc_ol module errors thus
Nov 12 15:05:36 mksocfpga msgd:0: startup pid=2818 flavor=rt-preempt
rtlevel=1 usrlevel=1 halsize=524288 shm=Posix gcc=4.9.2 version=unknown
Nov 12 15:05:36 mksocfpga msgd:0: ØMQ=4.0.5 czmq=3.0.2 protobuf=2.6.1
libwebsockets=<no version symbol>
Nov 12 15:05:36 mksocfpga msgd:0: configured: sha=ba632dd
Nov 12 15:05:36 mksocfpga msgd:0: built: Nov 12 2016 12:30:29
sha=ba632dd
Nov 12 15:05:36 mksocfpga msgd:0: register_stuff: actual hostname as
announced by avahi='mksocfpga.local'
Nov 12 15:05:36 mksocfpga msgd:0: zeroconf: registering: 'Log service on
mksocfpga.local pid 2818'
Nov 12 15:05:36 mksocfpga msgd:0: rtapi_app:2823:user accepting commands
at ipc:///tmp/0.rtapi.a42c8c6b-4025-4f83-ba28-dad21114744a
Nov 12 15:05:36 mksocfpga msgd:0: hal_lib:2823:rt hm2: loading Mesa
HostMot2 driver version 0.15
Nov 12 15:05:37 mksocfpga msgd:0: hal_lib:2823:rt hm2_soc_ol: loading
Mesa AnyIO HostMot2 socfpga overlay driver version 0.9
Nov 12 15:05:37 mksocfpga msgd:0: zeroconf: registered 'Log service on
mksocfpga.local pid 2818' _machinekit._tcp 0 TXT
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a"
"instance=7759df84-a8e9-11e6-9629-bad04a9c4ece"
Nov 12 15:05:39 mksocfpga rtapi:0:
hal_call_usrfunct(newinst,config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dtbo
num_stepgens=4 num_encoders=1 num_mencoders=4") failed: -1 - Operation
not permitted
Nov 12 15:05:39 mksocfpga msgd:0: hal_lib:2823:rt hm2_soc_ol: failed to
map hm2-socfpg0 to /dev/uioX
Nov 12 15:05:39 mksocfpga msgd:0: hal_lib:2823:rt hm2_soc_ol:
soc_mmap_fail hm2-socfpg0
Nov 12 15:05:39 mksocfpga msgd:0: hal_lib:2823:rt hm2/foo: failed to
program fpga, aborting hm2_register
Nov 12 15:05:39 mksocfpga msgd:0: hal_lib:2823:rt foo: hm2_soc_ol_board
fails HM2 registration
Nov 12 15:05:39 mksocfpga msgd:0: hal_lib:2823:rt hm2_soc_ol: error
registering UIO driver
Nov 12 15:05:39 mksocfpga msgd:0: rtapi_app:2823:user
hal_call_usrfunct(newinst,config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I85S_GPIO_GPIO.dtbo
num_stepgens=4 num_encoders=1 num_mencoders=4") failed: -1
Nov 12 15:05:40 mksocfpga msgd:0: hal_lib:2823:rt hm2: ignoring request
to unregister foo: not found
Nov 12 15:05:40 mksocfpga msgd:0: hal_lib:2823:rt hm2: unloading
This happens irrespective of whether there is a 7i76 attached and is so
early in the process that it is something fairly fundamental
eg
`hm2_soc_ol: failed to map hm2-socfpg0 to /dev/uioX`
I am currently in the process of making a debian-8.4 image based card
and trying that, in the meanwhile any ideas???
BTW the debian-8.5 image does not seem to include `xauth`, so that needs
to be added before you can ssh into it and get X forwarding working.
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github:
https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.