- Posts: 225
- Thank you received: 178
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
- TOLP2
- Offline
- Elite Member
-
Less
More
3 years 8 months ago #265536
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Wth the template I might have a mistake, which causes this behavior.
With he reinstall: did it work?
With he reinstall: did it work?
Please Log in or Create an account to join the conversation.
- deroj
- Offline
- Senior Member
-
Less
More
- Posts: 63
- Thank you received: 21
3 years 8 months ago #265555
by deroj
Replied by deroj on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
No it didn't...
There is a simple thing I am not doing right I think.
But I don't know where to look.
Do I have to clone the branch into a certain folder or path?
Or only poetry add?
I tried to clone the branch with git clone.
Then went into the cloned LiteX-CNC folder.
Then the poetry run command kind of worked. But it also did not include any of the "litexcnc_...py" modules
There is a simple thing I am not doing right I think.
But I don't know where to look.
Do I have to clone the branch into a certain folder or path?
Or only poetry add?
I tried to clone the branch with git clone.
Then went into the cloned LiteX-CNC folder.
Then the poetry run command kind of worked. But it also did not include any of the "litexcnc_...py" modules
Please Log in or Create an account to join the conversation.
- deroj
- Offline
- Senior Member
-
Less
More
- Posts: 63
- Thank you received: 21
3 years 7 months ago #265730
by deroj
Here is the terminal...compilation failed because I did not use "sudo".
But it shows the behaviour.
Only when I am in the LiteX-CNC folder, the poetry command kind of works
Replied by deroj on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Code:
oj@VMLinuxCNC:~/LiteX-CNC$ poetry run litexcnc install_Driver
Usage: litexcnc [OPTIONS] COMMAND [ARGS]...
Try 'litexcnc --help' for help.
Error: No such command 'install_Driver'.
oj@VMLinuxCNC:~/LiteX-CNC$ poetry run litexcnc install_driver
INFO: Retrieving main driver to compile...
Copying file 'watchdog.h'
Copying file 'litexcnc.c'
Copying file 'halcompile.py'
Copying file 'watchdog.c'
Copying file 'wallclock.c'
Copying file 'litexcnc.h'
Copying file 'wallclock.h'
Copying file '__init__.py'
Copying file 'pos2vel.h'
Copying file 'pos2vel.c'
INFO: Retrieving modules to compile...
INFO: Retrieving board drivers to compile...
INFO: Compiling LitexCNC driver...
Compiling realtime litexcnc.c
litexcnc.c: In function ‘litexcnc_register’:
litexcnc.c:494:1: warning: label ‘fail0’ defined but not used [-Wunused-label]
fail0:
^~~~~
Linking litexcnc.so
cp litexcnc.so /usr/lib/linuxcnc/modules/
cp: reguläre Datei '/usr/lib/linuxcnc/modules/litexcnc.so' kann nicht angelegt werden: Keine Berechtigung
make: *** [/usr/share/linuxcnc/Makefile.modinc:105: install] Fehler 1
Error: Compilation of the driver failed.
oj@VMLinuxCNC:~/LiteX-CNC$ cd ..
oj@VMLinuxCNC:~$ poetry run litexcnc install_driver
/home/oj/src/litexcnc does not contain any element
oj@VMLinuxCNC:~$ litexcnc install_driver
INFO: Compiling LitexCNC driver...
Compiling realtime litexcnc.c
Linking litexcnc.so
cp litexcnc.so /usr/lib/linuxcnc/modules/
cp: reguläre Datei '/usr/lib/linuxcnc/modules/litexcnc.so' kann nicht angelegt werden: Keine Berechtigung
make: *** [/usr/share/linuxcnc/Makefile.modinc:105: install] Fehler 1
Error: Compilation of the driver failed.
oj@VMLinuxCNC:~$
Here is the terminal...compilation failed because I did not use "sudo".
But it shows the behaviour.
Only when I am in the LiteX-CNC folder, the poetry command kind of works
Please Log in or Create an account to join the conversation.
- deroj
- Offline
- Senior Member
-
Less
More
- Posts: 63
- Thank you received: 21
3 years 7 months ago #266230
by deroj
It seems that this for.loop do not find any files.
I added "print("Module") to check if there is any output.
Maybe the path is not right? What should be in "os.path.basename(file)" ?
Replied by deroj on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Code:
for module in ModuleBaseModel.__subclasses__():
print("Module")
for file in module.driver_files:
click.echo(f"Copying file '{os.path.basename(file)}'")
shutil.copy2(file, os.path.join(temp_dir, os.path.basename(file)))
if re.search("litexcnc_.*\.c", os.path.basename(file)):
modules.append(os.path.basename(file))
It seems that this for.loop do not find any files.
I added "print("Module") to check if there is any output.
Maybe the path is not right? What should be in "os.path.basename(file)" ?
Please Log in or Create an account to join the conversation.
- song_gy
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 2
3 years 7 months ago #267222
by song_gy
Replied by song_gy on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Do you have any shades for this project? What's new? He's great.
Please Log in or Create an account to join the conversation.
- Pro_El
- Offline
- Premium Member
-
Less
More
- Posts: 95
- Thank you received: 3
3 years 7 months ago #267248
by Pro_El
Replied by Pro_El on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I really hope this project gain attention and we can have good documentation for the ordinary user can build the machine with these board.
In future will be good to implemente driver in linuxcnc and some configuration tool will be game changer for a lot users.
In future will be good to implemente driver in linuxcnc and some configuration tool will be game changer for a lot users.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 1.475 seconds