martenjacobs wrote:legalr wrote:
I learning to work with github, 'git checkout dev' dit not work, git checkout -b dev work, and indicates i am in the dev,
pi@raspberrypi:~/ToonRooter $ git checkout -b dev
Switched to a new branch 'dev'
what do i have to do to load the dev part?
That's weird, '-b' is supposed to be implied. It should also have told you it was tracking origin/dev. Maybe there were some local changes or something. Could you remove the directory and try again using these commands:
Code: Select all
git clone --single-branch -b dev https://github.com/martenjacobs/ToonRooter.git
cd ToonRooter/
git log -n1
The last command should show the latest commit id starts with '5a7d1f'. If this is what you see, you're on the correct branch and you can try running the application.
Did the steps discribed as above, with the following result.
pi@raspberrypi:~ $ rm -rf ToonRooter
pi@raspberrypi:~ $ ls
openocd
pi@raspberrypi:~ $ git clone --single-branch -b dev
https://github.com/martenjacobs/ToonRooter.git
Cloning into 'ToonRooter'...
remote: Counting objects: 123, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 123 (delta 3), reused 13 (delta 3), pack-reused 110
Receiving objects: 100% (123/123), 289.50 KiB | 0 bytes/s, done.
Resolving deltas: 100% (58/58), done.
pi@raspberrypi:~ $ cd ToonRooter/
pi@raspberrypi:~/ToonRooter $ git log -n1
commit 5a7d1f7d4ec924e08506b72144fc223cc57ea7f2
Author: Marten Jacobs <
mail@vanmarten.nl>
Date: Sat Aug 11 15:15:56 2018 +0200
Added new functions to README
pi@raspberrypi:~/ToonRooter $ sudo python . --jtag-available
INFO:__main__:Starting up...
CRITICAL:__main__:Cannot autodetect jtag hardware
pi@raspberrypi:~/ToonRooter $ sudo python . --output-level DEBUG
INFO:__main__:Starting up...
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/pi/ToonRooter/__main__.py", line 173, in <module>
main()
File "/home/pi/ToonRooter/__main__.py", line 138, in main
jtag_hardware = detect_jtag_hardware()
File "/home/pi/ToonRooter/__main__.py", line 120, in detect_jtag_hardware
raise Exception("Cannot autodetect jtag hardware")
Exception: Cannot autodetect jtag hardware
pi@raspberrypi:~/ToonRooter $