Page 25 of 28

Re: Fully automated rooting script

PostPosted: Wed Oct 02, 2019 11:23 am
by Monoposto013
Aaah, don't know what happened, but lost my chrony.conf :oops: completely empty..

What to do? Just wanted to make modifications to the timeserver.

Re: Fully automated rooting script

PostPosted: Wed Oct 02, 2019 11:33 am
by TheHogNL
Monoposto013 wrote:Aaah, don't know what happened, but lost my chrony.conf :oops: completely empty..

What to do? Just wanted to make modifications to the timeserver.


In the chrony.ipk package there is a new fresh conf for you.

Just start the update-rooted.sh script with option -o (to open the VPN and setup the opkg repository for you). Then type:
Code: Select all
opkg update
opkg remove --force-depends chrony
opkg install chrony

Re: Fully automated rooting script

PostPosted: Wed Oct 02, 2019 11:58 am
by Monoposto013
TheHogNL wrote:
Monoposto013 wrote:Aaah, don't know what happened, but lost my chrony.conf :oops: completely empty..

What to do? Just wanted to make modifications to the timeserver.


In the chrony.ipk package there is a new fresh conf for you.

Just start the update-rooted.sh script with option -o (to open the VPN and setup the opkg repository for you). Then type:
Code: Select all
opkg update
opkg remove --force-depends chrony
opkg install chrony


Worked like a charm! Thanks!!

I'm still struggling with what to do next?
Rooted the Toon using the automated script, but have seen a lot of modifications in this forum and elsewhere on the internet.
-I would like the Toon not to ping quby
-use a different timeserver
-enable all the Toon/Eneco features including Zon
-install the Toonstore

Where to start? I mean, is this all done through SSH? Are there scripts available to make these adjustments?
Any help is welcome :P

Re: Fully automated rooting script

PostPosted: Wed Oct 02, 2019 12:29 pm
by TheHogNL
Monoposto013 wrote:I'm still struggling with what to do next?
Rooted the Toon using the automated script, but have seen a lot of modifications in this forum and elsewhere on the internet.
-I would like the Toon not to ping quby
-use a different timeserver
-enable all the Toon/Eneco features including Zon
-install the Toonstore

Where to start? I mean, is this all done through SSH? Are there scripts available to make these adjustments?
Any help is welcome :P


That is what the update-rooted.sh -f option is for :-)

Re: Fully automated rooting script

PostPosted: Wed Oct 02, 2019 1:05 pm
by Monoposto013
TheHogNL wrote:That is what the update-rooted.sh -f option is for :-)


POWERFUL!! Great work, hats off!! This is even better than I thought :D

Re: Fully automated rooting script

PostPosted: Wed Nov 13, 2019 9:02 am
by Knol010
Ishimaru wrote:Hi,

can someone help me with this issue?

root@raspberrypi:~/ToonRooter# sudo python . --jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware

root@raspberrypi:~/ToonRooter# sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
--- waiting forever :-) --

root@raspberrypi:~/ToonRooter# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 1
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 2
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : 2a02082
Serial : 0000000003d4f64b


I have the same problem and don't no what now.
I checked the wiring 1000 times. When I try to root without the script I can change uboot and get in the root shell. I then get stuck with the internet connection...

Re: Fully automated rooting script

PostPosted: Wed Nov 13, 2019 7:53 pm
by TheHogNL
Most users forget to disable the serial console on the raspberry pi (using raspi_config). That results in the toonrooter and the serial console using the serial port at the same time.

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 8:26 am
by Knol010
TheHogNL wrote:Most users forget to disable the serial console on the raspberry pi (using raspi_config). That results in the toonrooter and the serial console using the serial port at the same time.


Now I get this message:

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
ERROR:rooter:Unable to log in using password (need JTAG, but it's disabled)

I have a JTAG and I can flash the boot loader with that, but when I done that and press the reset button in the root shell nothing happens so I can't go on from there neither.

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 8:56 am
by TheHogNL
Knol010 wrote:
TheHogNL wrote:Most users forget to disable the serial console on the raspberry pi (using raspi_config). That results in the toonrooter and the serial console using the serial port at the same time.


Now I get this message:

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
ERROR:rooter:Unable to log in using password (need JTAG, but it's disabled)

I have a JTAG and I can flash the boot loader with that, but when I done that and press the reset button in the root shell nothing happens so I can't go on from there neither.


You need to add "--jtag-available" as commandline option

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 10:19 am
by Knol010
TheHogNL wrote:
Knol010 wrote:
TheHogNL wrote:Most users forget to disable the serial console on the raspberry pi (using raspi_config). That results in the toonrooter and the serial console using the serial port at the same time.


Now I get this message:

pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-hardware rpi3
INFO:__main__:Starting up...
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
ERROR:rooter:Unable to log in using password (need JTAG, but it's disabled)

I have a JTAG and I can flash the boot loader with that, but when I done that and press the reset button in the root shell nothing happens so I can't go on from there neither.


You need to add "--jtag-available" as commandline option



When i only use --jtag avaiable i get:
pi@raspberrypi:~/ToonRooter $ sudo python . ---jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware

So i have to combine jtag avaiable and jtag hardware?
How do i do that?

Thanks

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 11:15 am
by TheHogNL
Knol010 wrote:
When i only use --jtag avaiable i get:
pi@raspberrypi:~/ToonRooter $ sudo python . ---jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware

So i have to combine jtag avaiable and jtag hardware?
How do i do that?

Thanks


I did say you needed to add the option. It is really not that hard...

sudo python . --jtag-hardware rpi3 ---jtag-available

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 12:19 pm
by Knol010
TheHogNL wrote:
Knol010 wrote:
When i only use --jtag avaiable i get:
pi@raspberrypi:~/ToonRooter $ sudo python . ---jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware

So i have to combine jtag avaiable and jtag hardware?
How do i do that?

Thanks


I did say you needed to add the option. It is really not that hard...

sudo python . --jtag-hardware rpi3 ---jtag-available


For me it is. Thanks it worked nu Toon is rooted now!

Re: Fully automated rooting script

PostPosted: Fri Nov 15, 2019 12:54 pm
by TheHogNL
Knol010 wrote:For me it is. Thanks it worked nu Toon is rooted now!


Welcome to the club ;-)

Re: Fully automated rooting script

PostPosted: Sun Feb 16, 2020 6:19 pm
by Floats
Having an issue with rooting my Toon

When I try to install openOCD :
Code: Select all
pi@raspberrypi:~ $ bash
pi@raspberrypi:~ $ git clone --recursive git://git.code.sf.net/p/openocd/code openocd
Cloning into 'openocd'...
remote: Enumerating objects: 62985, done.
remote: Counting objects: 100% (62985/62985), done.
remote: Compressing objects: 100% (26823/26823), done.
remote: Total 62985 (delta 51779), reused 43800 (delta 35996)
Receiving objects: 100% (62985/62985), 14.22 MiB | 4.93 MiB/s, done.
Resolving deltas: 100% (51779/51779), done.
Submodule 'jimtcl' (https://repo.or.cz/jimtcl.git) registered for path 'jimtcl'
Submodule 'src/jtag/drivers/libjaylink' (https://repo.or.cz/libjaylink.git) registered for path 'src/jtag/drivers/libjaylink'
Submodule 'tools/git2cl' (https://repo.or.cz/git2cl.git) registered for path 'tools/git2cl'
Cloning into '/home/pi/openocd/jimtcl'...
remote: Counting objects: 7715, done.       
remote: Total 7715 (delta 0), reused 0 (delta 0)        /s     
Receiving objects: 100% (7715/7715), 6.05 MiB | 4.17 MiB/s, done.
Resolving deltas: 100% (5609/5609), done.
Cloning into '/home/pi/openocd/tools/git2cl'...
remote: Counting objects: 64, done.       
remote: Total 64 (delta 0), reused 0 (delta 0)       
Cloning into '/home/pi/openocd/src/jtag/drivers/libjaylink'...
remote: Counting objects: 1004, done.       
remote: Total 1004 (delta 0), reused 0 (delta 0)       
Receiving objects: 100% (1004/1004), 236.74 KiB | 1.94 MiB/s, done.
Resolving deltas: 100% (767/767), done.
Submodule path 'jimtcl': checked out 'a9bf5975fd0f89974d689a2d9ebd0873c8d64787'
Submodule path 'src/jtag/drivers/libjaylink': checked out 'f73ad5e667ae8b26a52b847c603fdadaabf302a6'
Submodule path 'tools/git2cl': checked out '8373c9f74993e218a08819cbcdbab3f3564bbeba'
pi@raspberrypi:~ $ cd openocd
pi@raspberrypi:~/openocd $ sudo apt install make libtool libtool-bin pkg-config autoconf automake texinfo libusb-1.0 libusb-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0'
libusb-1.0-0 is already the newest version (2:1.0.22-2).
libusb-1.0-0 set to manually installed.
make is already the newest version (4.2.1-1.2).
make set to manually installed.
pkg-config is already the newest version (0.29-6).
The following additional packages will be installed:
  autotools-dev libauthen-sasl-perl libdata-dump-perl libencode-locale-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libltdl-dev liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libsigsegv2 libtext-unidecode-perl
  libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
  libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
  libxml-sax-perl m4 perl-openssl-defaults tex-common
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext libdigest-hmac-perl
  libgssapi-perl libtool-doc libcrypt-ssleay-perl gfortran
  | fortran95-compiler gcj-jdk libauthen-ntlm-perl libxml-sax-expatxs-perl
  m4-doc debhelper texlive-base texlive-latex-base texlive-generic-recommended
  texinfo-doc-nonfree texlive-fonts-recommended
The following NEW packages will be installed:
  autoconf automake autotools-dev libauthen-sasl-perl libdata-dump-perl
  libencode-locale-perl libfile-listing-perl libfont-afm-perl
  libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
  libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libltdl-dev
  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libsigsegv2
  libtext-unidecode-perl libtimedate-perl libtool libtool-bin libtry-tiny-perl
  liburi-perl libusb-1.0-0-dev libusb-1.0-doc libusb-dev libwww-perl
  libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
  libxml-sax-perl m4 perl-openssl-defaults tex-common texinfo
0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,711 kB of archives.
After this operation, 25.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.
pi@raspberrypi:~/openocd $


And then when I try to Root the toon :

Code: Select all
pi@raspberrypi:~ $ bash
pi@raspberrypi:~ $ sudo apt install python-serial python-cryptography
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-cryptography is already the newest version (2.6.1-3+deb10u2).
python-cryptography set to manually installed.
python-serial is already the newest version (3.4-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ git clone https://github.com/martenjacobs/ToonRooter.git
Cloning into 'ToonRooter'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 200 (delta 7), reused 3 (delta 0), pack-reused 181
Receiving objects: 100% (200/200), 439.99 KiB | 1.30 MiB/s, done.
Resolving deltas: 100% (96/96), done.
pi@raspberrypi:~ $ cd ToonRooter
pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
CRITICAL:__main__:[Errno 2] No such file or directory

pi@raspberrypi:~/ToonRooter $ --output-level DEBUG
bash: --output-level: command not found


I'm using a raspberry Pi 3 B+ with fresh installed Raspbian.

Re: Fully automated rooting script

PostPosted: Mon Feb 17, 2020 1:05 pm
by mAiden
Floats wrote:Having an issue with rooting my Toon

When I try to install openOCD :
Code: Select all
pi@raspberrypi:~ $ bash
pi@raspberrypi:~ $ git clone --recursive git://git.code.sf.net/p/openocd/code openocd
Cloning into 'openocd'...
remote: Enumerating objects: 62985, done.
remote: Counting objects: 100% (62985/62985), done.
remote: Compressing objects: 100% (26823/26823), done.
remote: Total 62985 (delta 51779), reused 43800 (delta 35996)
Receiving objects: 100% (62985/62985), 14.22 MiB | 4.93 MiB/s, done.
Resolving deltas: 100% (51779/51779), done.
Submodule 'jimtcl' (https://repo.or.cz/jimtcl.git) registered for path 'jimtcl'
Submodule 'src/jtag/drivers/libjaylink' (https://repo.or.cz/libjaylink.git) registered for path 'src/jtag/drivers/libjaylink'
Submodule 'tools/git2cl' (https://repo.or.cz/git2cl.git) registered for path 'tools/git2cl'
Cloning into '/home/pi/openocd/jimtcl'...
remote: Counting objects: 7715, done.       
remote: Total 7715 (delta 0), reused 0 (delta 0)        /s     
Receiving objects: 100% (7715/7715), 6.05 MiB | 4.17 MiB/s, done.
Resolving deltas: 100% (5609/5609), done.
Cloning into '/home/pi/openocd/tools/git2cl'...
remote: Counting objects: 64, done.       
remote: Total 64 (delta 0), reused 0 (delta 0)       
Cloning into '/home/pi/openocd/src/jtag/drivers/libjaylink'...
remote: Counting objects: 1004, done.       
remote: Total 1004 (delta 0), reused 0 (delta 0)       
Receiving objects: 100% (1004/1004), 236.74 KiB | 1.94 MiB/s, done.
Resolving deltas: 100% (767/767), done.
Submodule path 'jimtcl': checked out 'a9bf5975fd0f89974d689a2d9ebd0873c8d64787'
Submodule path 'src/jtag/drivers/libjaylink': checked out 'f73ad5e667ae8b26a52b847c603fdadaabf302a6'
Submodule path 'tools/git2cl': checked out '8373c9f74993e218a08819cbcdbab3f3564bbeba'
pi@raspberrypi:~ $ cd openocd
pi@raspberrypi:~/openocd $ sudo apt install make libtool libtool-bin pkg-config autoconf automake texinfo libusb-1.0 libusb-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0'
libusb-1.0-0 is already the newest version (2:1.0.22-2).
libusb-1.0-0 set to manually installed.
make is already the newest version (4.2.1-1.2).
make set to manually installed.
pkg-config is already the newest version (0.29-6).
The following additional packages will be installed:
  autotools-dev libauthen-sasl-perl libdata-dump-perl libencode-locale-perl
  libfile-listing-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libltdl-dev liblwp-mediatypes-perl
  liblwp-protocol-https-perl libmailtools-perl libnet-http-perl
  libnet-smtp-ssl-perl libnet-ssleay-perl libsigsegv2 libtext-unidecode-perl
  libtimedate-perl libtry-tiny-perl liburi-perl libwww-perl
  libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
  libxml-sax-perl m4 perl-openssl-defaults tex-common
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext libdigest-hmac-perl
  libgssapi-perl libtool-doc libcrypt-ssleay-perl gfortran
  | fortran95-compiler gcj-jdk libauthen-ntlm-perl libxml-sax-expatxs-perl
  m4-doc debhelper texlive-base texlive-latex-base texlive-generic-recommended
  texinfo-doc-nonfree texlive-fonts-recommended
The following NEW packages will be installed:
  autoconf automake autotools-dev libauthen-sasl-perl libdata-dump-perl
  libencode-locale-perl libfile-listing-perl libfont-afm-perl
  libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
  libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libltdl-dev
  liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl
  libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libsigsegv2
  libtext-unidecode-perl libtimedate-perl libtool libtool-bin libtry-tiny-perl
  liburi-perl libusb-1.0-0-dev libusb-1.0-doc libusb-dev libwww-perl
  libwww-robotrules-perl libxml-libxml-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
  libxml-sax-perl m4 perl-openssl-defaults tex-common texinfo
0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,711 kB of archives.
After this operation, 25.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.
pi@raspberrypi:~/openocd $


And then when I try to Root the toon :

Code: Select all
pi@raspberrypi:~ $ bash
pi@raspberrypi:~ $ sudo apt install python-serial python-cryptography
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-cryptography is already the newest version (2.6.1-3+deb10u2).
python-cryptography set to manually installed.
python-serial is already the newest version (3.4-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ git clone https://github.com/martenjacobs/ToonRooter.git
Cloning into 'ToonRooter'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 200 (delta 7), reused 3 (delta 0), pack-reused 181
Receiving objects: 100% (200/200), 439.99 KiB | 1.30 MiB/s, done.
Resolving deltas: 100% (96/96), done.
pi@raspberrypi:~ $ cd ToonRooter
pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
INFO:__main__:Starting up...
INFO:__main__:Detected JTAG hardware 'rpi3'
INFO:__main__:Written private and public key pair to ./id_rsa and ./id_rsa.pub, respectively
INFO:rooter:Waiting for Toon to restart
INFO:rooter:Toon has U-Boot version 2010.09-R10
INFO:rooter:Loading new bootloader
INFO:rooter:Starting openocd
CRITICAL:__main__:[Errno 2] No such file or directory

pi@raspberrypi:~/ToonRooter $ --output-level DEBUG
bash: --output-level: command not found


I'm using a raspberry Pi 3 B+ with fresh installed Raspbian.


You did the install of OpenOCD wrong, look at this:

Code: Select all
git clone --recursive git://git.code.sf.net/p/openocd/code openocd
cd openocd
sudo apt install make libtool libtool-bin pkg-config autoconf automake texinfo libusb-1.0 libusb-dev
{
./bootstrap &&\
./configure --enable-sysfsgpio\
     --enable-bcm2835gpio \
     --prefix=/usr\
&&\
make -j4
} 2>&1 | tee openocd_build.log
sudo make install


Go to OpenOCD:

Code: Select all
cd openocd


Then run the following command (Use everything what here stand!):

Code: Select all
sudo apt install make libtool libtool-bin pkg-config autoconf automake texinfo libusb-1.0 libusb-dev
{
./bootstrap &&\
./configure --enable-sysfsgpio\
     --enable-bcm2835gpio \
     --prefix=/usr\
&&\
make -j4
} 2>&1 | tee openocd_build.log


And the run this command:

Code: Select all
sudo make install