{"action":"created","issue":{"url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/96","repository_url":"https://api.github.com/repos/machinekit/machinekit-hal","labels_url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/96/comments","events_url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/96/events","html_url":"https://github.com/machinekit/machinekit-hal/issues/96","id":347441277,"node_id":"MDU6SXNzdWUzNDc0NDEyNzc=","number":96,"title":"possible aarch64 support","user":{"login":"ArcEye","id":770392,"node_id":"MDQ6VXNlcjc3MDM5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/770392?v=4","gravatar_id":"","url":"https://api.github.com/users/ArcEye","html_url":"https://github.com/ArcEye","followers_url":"https://api.github.com/users/ArcEye/followers","following_url":"https://api.github.com/users/ArcEye/following{/other_user}","gists_url":"https://api.github.com/users/ArcEye/gists{/gist_id}","starred_url":"https://api.github.com/users/ArcEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArcEye/subscriptions","organizations_url":"https://api.github.com/users/ArcEye/orgs","repos_url":"https://api.github.com/users/ArcEye/repos","events_url":"https://api.github.com/users/ArcEye/events{/privacy}","received_events_url":"https://api.github.com/users/ArcEye/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-03T15:29:32Z","updated_at":"2018-08-03T15:29:37Z","closed_at":null,"author_association":"COLLABORATOR","body":"<a href=\"https://github.com/bjharper\"><img src=\"https://avatars3.githubusercontent.com/u/16556803?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [bjharper](https://github.com/bjharper)**\n_Sun Sep  3 03:34:00 2017_\n_Originally opened as https://github.com/machinekit/machinekit/issues/1269_\n\n----\n\nI have had some success compiling and running LinuxCNC on aarch64 (Ubuntu 16.04) using Realtime preempt 4.11 kernel but I am struggling a little with machine kit.  I seems to always end up with an error looking for sys/io.h\r\n```\r\nCompiling machinetalk/support/sizes.c\r\nIn file included from rtapi/rtapi.h:1016:0,\r\n                 from hal/lib/hal.h:126,\r\n                 from ./emc/motion/motion.h:80,\r\n                 from machinetalk/support/sizes.c:2:\r\nrtapi/rtapi_io.h:39:43: fatal error: sys/io.h: No such file or directory\r\ncompilation terminated.\r\nMakefile:420: recipe for target 'objects/machinetalk/support/sizes.o' failed\r\n```\r\n\r\nBasic steps is to install all dependencies then\r\n$ debian/configure -pr\r\n$ sudo mk-build-deps -ir\r\n$ cd src\r\n$ ./autogen.sh\r\n$ ./configure --with-rt-preempt  --with-posix\r\n$ make -j2\r\n\r\nKernel im working with at the moment is development Realtime PREEEMT branch \"'Linux odroid64 4.11.12-rt10 #6 SMP PREEMPT RT Sat Aug 26 17:27:03 AEST 2017 aarch64 aarch64 aarch64 GNU/Linux\"\r\n\r\nIm working on a HAL driver for the Odroid C2 and its GPIO pins so I dont know if I really need the io.h support in rtapi (no PCI interface ill be hitting GPIO registers directly hopefully) and if I need outb / inb functions then it looks like I could probably emulate them myself.\r\n\r\nLooks like I will need to setup an aarch64 specific configuration in the machinekit source or maybe install for further dependencies for aarch64?  Im compiling machinekit on an aarch64 platform also, no cross-compiling.\n"},"comment":{"url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/comments/410289644","html_url":"https://github.com/machinekit/machinekit-hal/issues/96#issuecomment-410289644","issue_url":"https://api.github.com/repos/machinekit/machinekit-hal/issues/96","id":410289644,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDI4OTY0NA==","user":{"login":"ArcEye","id":770392,"node_id":"MDQ6VXNlcjc3MDM5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/770392?v=4","gravatar_id":"","url":"https://api.github.com/users/ArcEye","html_url":"https://github.com/ArcEye","followers_url":"https://api.github.com/users/ArcEye/followers","following_url":"https://api.github.com/users/ArcEye/following{/other_user}","gists_url":"https://api.github.com/users/ArcEye/gists{/gist_id}","starred_url":"https://api.github.com/users/ArcEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArcEye/subscriptions","organizations_url":"https://api.github.com/users/ArcEye/orgs","repos_url":"https://api.github.com/users/ArcEye/repos","events_url":"https://api.github.com/users/ArcEye/events{/privacy}","received_events_url":"https://api.github.com/users/ArcEye/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T15:29:37Z","updated_at":"2018-08-03T15:29:37Z","author_association":"COLLABORATOR","body":"<a href=\"https://github.com/bjharper\"><img src=\"https://avatars3.githubusercontent.com/u/16556803?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [bjharper](https://github.com/bjharper)**\n_Sun Sep  3 11:09:34 2017_\n\n----\n\n`odroid@odroid64:\\~$ uname -a\r\nLinux odroid64 4.11.12-rt10 #6 SMP PREEMPT RT Sat Aug 26 17:27:03 AEST 2017 aarch64 aarch64 aarch64 GNU/Linux\r\nodroid@odroid64:~$ sudo cyclictest -t1 -p 80 -n -i 10000 -l 10000\r\n\\# /dev/cpu_dma_latency set to 0us\r\npolicy: fifo: loadavg: 0.93 0.42 0.16 2/218 27058          \r\n\r\nT: 0 (27052) P:80 I:10000 C:  10000 Min:      7 Act:   10 Avg:   10 Max:      23`\r\n\r\nthat was done with a `odroid@odroid64:~$ cat /dev/zero > /dev/null` on the odroid and a `$ sudo ping -i 0.01 10.1.1.12` from my host to the odroid.   Impressive I guess but I can bust the max out if I really try.  (ie 100 x glxgears running over ssh & X11 or heavy disk IO got it up to 200 ms)\n"}}
{"actor":{"display_login":"ArcEye"}}