- Posts: 1635
- Thank you received: 595
Pimping the mini-lathe
- RotarySMP
- Offline
- Platinum Member
-
Less
More
6 years 3 months ago #175907
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
I am sure helping me with this feels like pulling teeth for you.
minilathe@minilathe:~$ cd ~
minilathe@minilathe:~$ rm -rf mesaflash
minilathe@minilathe:~$ refetch/rebuild
bash: refetch/rebuild: No such file or directory
minilathe@minilathe:~$ rebuild mesaflash
Command 'rebuild' not found, did you mean:
command 'debuild' from deb devscripts
command 'rebuildd' from deb rebuildd
I am sorry, that sometimes I stumble on the simplest linux stuff.
minilathe@minilathe:~$ cd ~
minilathe@minilathe:~$ rm -rf mesaflash
minilathe@minilathe:~$ refetch/rebuild
bash: refetch/rebuild: No such file or directory
minilathe@minilathe:~$ rebuild mesaflash
Command 'rebuild' not found, did you mean:
command 'debuild' from deb devscripts
command 'rebuildd' from deb rebuildd
I am sorry, that sometimes I stumble on the simplest linux stuff.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago #175912
by PCW
Replied by PCW on topic Pimping the mini-lathe
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 3 months ago #175944
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
It still not giving me the current mesaflash...
Code:
minilathe@minilathe:~$ git clone github.com/LinuxCNC/mesaflash.git
fatal: repository 'github.com/LinuxCNC/mesaflash.git' does not exist
minilathe@minilathe:~$ git clone https://github.com/LinuxCNC/mesaflash.git
Cloning into 'mesaflash'...
remote: Enumerating objects: 265, done.
remote: Counting objects: 100% (265/265), done.
remote: Compressing objects: 100% (159/159), done.
remote: Total 1922 (delta 155), reused 193 (delta 103), pack-reused 1657
Receiving objects: 100% (1922/1922), 805.14 KiB | 1.88 MiB/s, done.
Resolving deltas: 100% (1352/1352), done.
minilathe@minilathe:~$ cd mesaflash
minilathe@minilathe:~/mesaflash$ sudo make install
[sudo] password for minilathe:
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c mesaflash.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c common.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c lbp.c
lbp.c: In function ‘lbp_read’:
lbp.c:75:15: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
lbp.c:75:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
lbp.c: In function ‘lbp_write’:
lbp.c:92:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send;
^~~~
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c lbp16.c
lbp16.c: In function ‘lbp16_read’:
lbp16.c:39:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
lbp16.c: In function ‘lbp16_write’:
lbp16.c:61:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send;
^~~~
lbp16.c: In function ‘lbp16_board_reset’:
lbp16.c:75:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send;
^~~~
lbp16.c: In function ‘lbp16_board_reload’:
lbp16.c:86:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send;
^~~~
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c bitfile.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c hostmot2.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c eeprom.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c anyio.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c eth_boards.c
eth_boards.c: In function ‘eth_scan_one_addr’:
eth_boards.c:140:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send = 0, recv = 0, ret = 0;
^~~~
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c epp_boards.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c usb_boards.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c pci_boards.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c sserial_module.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c encoder_module.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c eeprom_local.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c eeprom_remote.c
eeprom_remote.c: In function ‘read_page’:
eeprom_remote.c:41:15: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
eeprom_remote.c:41:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
eeprom_remote.c: In function ‘write_page’:
eeprom_remote.c:54:15: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
eeprom_remote.c:54:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
eeprom_remote.c: In function ‘erase_sector’:
eeprom_remote.c:71:15: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int send, recv;
^~~~
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c spi_boards.c
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -c serial_boards.c
serial_boards.c: In function ‘serial_boards_scan’:
serial_boards.c:176:19: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int send = 0, recv = 0;
^~~~
serial_boards.c:176:9: warning: variable ‘send’ set but not used [-Wunused-but-set-variable]
int send = 0, recv = 0;
^~~~
serial_boards.c: In function ‘serial_print_info’:
serial_boards.c:217:15: warning: variable ‘recv’ set but not used [-Wunused-but-set-variable]
int i, j, recv;
^~~~
rm -f libanyio.a mesaflash
ar rcs libanyio.a common.o lbp.o lbp16.o bitfile.o hostmot2.o eeprom.o anyio.o eth_boards.o epp_boards.o usb_boards.o pci_boards.o sserial_module.o encoder_module.o eeprom_local.o eeprom_remote.o spi_boards.o serial_boards.o
ranlib libanyio.a
gcc -O0 -g -Wall -Werror=format -Werror=format-security -std=c99 -D_GNU_SOURCE -o mesaflash mesaflash.o libanyio.a -lm -lpci
install -p -D --mode=0755 --owner root --group root mesaflash /bin/mesaflash
install -p -D --mode=0644 --owner root --group root mesaflash.1 /share/man/man1/mesaflash.1
minilathe@minilathe:~/mesaflash$ mesaflash --device 7i96 --addr 10.10.10.10 --readhmid
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA7I96
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 3
Width of one I/O port: 17
Clock Low frequency: 100.0000 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 3 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: PWM
There are 1 of PWM in configuration
Version: 0
Registers: 5
BaseAddress: 4100
ClockFrequency: 200.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: StepGen
There are 4 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: QCount
There are 1 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5B00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: Transformer
There are 1 of Transformer in configuration
Version: 0
Registers: 2
BaseAddress: 7D00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for P1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort None
14 1 IOPort None
2 2 IOPort None
15 3 IOPort None
3 4 IOPort None
16 5 IOPort None
4 6 IOPort None
17 7 IOPort None
5 8 IOPort None
6 9 IOPort None
7 10 IOPort None
8 11 IOPort Transformer 0 Drive (Out)
9 12 IOPort Transformer 0 Ref (Out)
10 13 IOPort Transformer 0 Null3 (Out)
11 14 IOPort Transformer 0 Null4 (Out)
12 15 IOPort Transformer 0 Null5 (Out)
13 16 IOPort Transformer 0 Null6 (Out)
IO Connections for TB1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort StepGen 0 Step/Table1 (Out)
14 18 IOPort StepGen 0 Dir/Table2 (Out)
2 19 IOPort StepGen 1 Step/Table1 (Out)
15 20 IOPort StepGen 1 Dir/Table2 (Out)
3 21 IOPort StepGen 2 Step/Table1 (Out)
16 22 IOPort StepGen 2 Dir/Table2 (Out)
4 23 IOPort StepGen 3 Step/Table1 (Out)
17 24 IOPort StepGen 3 Dir/Table2 (Out)
5 25 IOPort PWM 0 PWM (Out)
6 26 IOPort PWM 0 Dir (Out)
7 27 IOPort QCount 0 Quad-A (In)
8 28 IOPort QCount 0 Quad-B (In)
9 29 IOPort QCount 0 Quad-IDX (In)
10 30 IOPort SSerial 0 RXData1 (In)
11 31 IOPort SSerial 0 TXData1 (Out)
12 32 IOPort SSerial 0 TXEn1 (Out)
Segmentation fault (core dumped)
minilathe@minilathe:~/mesaflash$
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 years 3 months ago #175947
by tommylight
Replied by tommylight on topic Pimping the mini-lathe
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago #175950
by PCW
Replied by PCW on topic Pimping the mini-lathe
I wonder if you have another older mesaflash in your executable path...
you might try
cd ~/mesaflash
./mesaflash --device 7i96 --addr 10.10.10.10 --readhmid
To see if that is the case
you might try
cd ~/mesaflash
./mesaflash --device 7i96 --addr 10.10.10.10 --readhmid
To see if that is the case
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 3 months ago #175953
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
You are right tommy, but I would still like to be able to read out the cards state correctly.
PCW, that was correct. with the commands you gave I get the correct hmid readout:
What should I do to remove the incorrect instance?
PCW, that was correct. with the commands you gave I get the correct hmid readout:
Code:
nilathe@minilathe:~/mesaflash$ cd ~/mesaflash
minilathe@minilathe:~/mesaflash$ ./mesaflash --device 7i96 --addr 10.10.10.10 --readhmid
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA7I96
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 3
Width of one I/O port: 17
Clock Low frequency: 100.0000 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 3 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: PWM
There are 1 of PWM in configuration
Version: 0
Registers: 5
BaseAddress: 4100
ClockFrequency: 200.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: StepGen
There are 4 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: QCount
There are 1 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5B00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: SSR
There are 1 of SSR in configuration
Version: 0
Registers: 2
BaseAddress: 7D00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for TB3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
TB3 1 0 IOPort None
TB3 2 1 IOPort None
TB3 3 2 IOPort None
TB3 4 3 IOPort None
TB3 5 4 IOPort None
TB3 6 5 IOPort None
TB3 7 6 IOPort None
TB3 8 7 IOPort None
TB3 9 8 IOPort None
TB3 10 9 IOPort None
Internal 10 IOPort None
TB3 13,14 11 IOPort SSR 0 Out-00 (Out)
TB3 15,16 12 IOPort SSR 0 Out-01 (Out)
TB3 17,18 13 IOPort SSR 0 Out-02 (Out)
TB3 19,20 14 IOPort SSR 0 Out-03 (Out)
TB3 21,22 15 IOPort SSR 0 Out-04 (Out)
TB3 23,24 16 IOPort SSR 0 Out-05 (Out)
IO Connections for TB1/TB2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
TB1 2,3 17 IOPort StepGen 0 Step/Table1 (Out)
TB1 4,5 18 IOPort StepGen 0 Dir/Table2 (Out)
TB1 8,9 19 IOPort StepGen 1 Step/Table1 (Out)
TB1 10,11 20 IOPort StepGen 1 Dir/Table2 (Out)
TB1 14,15 21 IOPort StepGen 2 Step/Table1 (Out)
TB1 16,17 22 IOPort StepGen 2 Dir/Table2 (Out)
TB1 20,21 23 IOPort StepGen 3 Step/Table1 (Out)
TB1 22,23 24 IOPort StepGen 3 Dir/Table2 (Out)
TB2 2,3 25 IOPort PWM 0 PWM (Out)
TB2 4,5 26 IOPort PWM 0 Dir (Out)
TB2 7,8 27 IOPort QCount 0 Quad-A (In)
TB2 10,11 28 IOPort QCount 0 Quad-B (In)
TB2 13,14 29 IOPort QCount 0 Quad-IDX (In)
TB2 16,17 30 IOPort SSerial 0 RXData0 (In)
TB2 18,19 31 IOPort SSerial 0 TXData0 (Out)
Internal 32 IOPort SSerial 0 TXEn0 (Out)
Internal 33 IOPort SSR 0 AC Ref (Out)
IO Connections for P1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 34 IOPort None
14 35 IOPort None
2 36 IOPort None
15 37 IOPort None
3 38 IOPort None
16 39 IOPort None
4 40 IOPort None
17 41 IOPort None
5 42 IOPort None
6 43 IOPort None
7 44 IOPort None
8 45 IOPort None
9 46 IOPort None
10 47 IOPort None
11 48 IOPort None
12 49 IOPort None
13 50 IOPort None
minilathe@minilathe:~/mesaflash$
What should I do to remove the incorrect instance?
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.149 seconds