-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup needed: contents of SW/MK directory outdated #11
Comments
update: just transferred https://github.com/machinekit/machinekit-dkms |
Note: adcreg is the driver that functions: adcfs contains the c++ (api) and userspace test programs that work with it. |
@the-snowwhite - I propose to go ahead with the cleanup as outlined above if no objectsion I will file a PR. |
https://github.com/mhaberler/machinekit-dkms/blob/master/drivers/adcreg/adcreg.c ok ...: Whats missing is the adcreg driver demo, and documentation examples of how it can be used (works): https://github.com/machinekit/mksocfpga/blob/master/SW/MK/kernel-drivers/Adc-commands.txt https://github.com/machinekit/mksocfpga/blob/master/SW/MK/kernel-drivers/adcfs/adcfs.cpp This should be rather straight forward to port into a normal c - c++ style hal module. |
right, but that should be a normal HAL component and posted as PR against mk/mk - the dkms repo is the wrong place for this, as is the mksocfpga repo |
@cdsteinkuehler |
AFAIK, the kernel driver isn't really needed, the generic UIO drivers already in the kernel will allow direct memory access and interrupts with a proper device tree overlay. The device-tree example is useful in theory, but what's in the repo is undocumented and not particularly helpful. IMHO, only the mksocmemio and uio_irq_test are likely to be useful. |
Signed-off-by: Michael Brown <[email protected]>
ok I'm currently compiling some documentation (from recent threads on the google group) and expect to commit a sketch soon to and upodated fork the docs repo (hope for some feedback on that). Also in works is a pure cleanup commit to get rid of the "old fuzz". BTW: the mksocmemio utility has mananged to "sneek" in: So I guess its safe to delete that folder also.... as long as I remember to put the documentation somewhere ? |
Signed-off-by: Michael Brown <[email protected]>
SW/MK contains lots of dead bodies and duplication:
the hm2_soc.c/h ll hostmot driver is superseded which already goes into the mk packages and works
hm2_socfpga-mk.patch is merged
Same for kernel-drivers::
the only one needed is hm2reg_uio - the status of the other stuff is unclear and I am not sure work-in-progress code should be in a machinekit organisation repo
also, I came up with the dkms wrappings for hm2reg_uio and adcreg_uio - this is the preferred method for any kernel drivers downstream
do the Makefile.tar.gz serve any purpose (?)
same for the config - already in mk/mk
proposal:
@the-snowwhite - as the adcreg code matures:
Also, documentation should go into docs proper but that needs a bit of organizing first
The text was updated successfully, but these errors were encountered: