Skip to content

Commit

Permalink
move esptool
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Aug 24, 2017
1 parent afb5509 commit 5821e28
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .panda import Panda, PandaWifiStreaming, PandaDFU
from .panda import Panda, PandaWifiStreaming, PandaDFU, ESPROM, CesantaFlasher
6 changes: 3 additions & 3 deletions boardesp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ else
endif

flashall: user1.bin user2.bin
./tools/esptool.py write_flash 0 $(SDK_BASE)/bin/boot_v1.5.bin 0x01000 user1.bin 0x81000 user2.bin 0x3FE000 $(SDK_BASE)/bin/blank.bin
../panda/esptool.py write_flash 0 $(SDK_BASE)/bin/boot_v1.5.bin 0x01000 user1.bin 0x81000 user2.bin 0x3FE000 $(SDK_BASE)/bin/blank.bin

proxy-0x00000.bin: proxy
./tools/esptool.py elf2image $^
../panda/esptool.py elf2image $^

proxy: proxy.o

Expand All @@ -42,7 +42,7 @@ obj/rsa.o: ../crypto/rsa.c
$(CC) $(CFLAGS) -c $^ -o $@

oldflash: proxy-0x00000.bin
./tools/esptool.py write_flash 0 proxy-0x00000.bin 0x40000 proxy-0x40000.bin
../panda/esptool.py write_flash 0 proxy-0x00000.bin 0x40000 proxy-0x40000.bin

user1.bin: obj/proxy.o obj/elm327.o obj/webserver.o obj/sha.o obj/rsa.o
$(CC) $(CFLAGS) $^ -o a.out -L$(SDK_BASE)/ld -T$(SDK_BASE)/ld/eagle.app.v6.new.1024.app1.ld $(LDLIBS)
Expand Down
Empty file removed boardesp/__init__.py
Empty file.
Empty file removed boardesp/tools/__init__.py
Empty file.
1 change: 1 addition & 0 deletions panda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import time
import traceback
from dfu import PandaDFU
from esptool import ESPROM, CesantaFlasher

__version__ = '0.0.3'

Expand Down
4 changes: 2 additions & 2 deletions boardesp/tools/esptool.py → panda/esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
import tempfile
import time
import traceback
from panda import Panda
import usb1

__version__ = "1.2"

import usb1
class FakePort(object):
def __init__(self, serial=None):
from panda import Panda
self.panda = Panda(serial)

# will only work on new st, old ones will stay @ 921600
Expand Down
3 changes: 1 addition & 2 deletions release/flash_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from __future__ import print_function
import sys
import time
from panda import Panda, PandaDFU
from panda.boardesp.tools.esptool import ESPROM, CesantaFlasher
from panda import Panda, PandaDFU, ESPROM, CesantaFlasher
from zipfile import ZipFile

def status(x):
Expand Down

0 comments on commit 5821e28

Please sign in to comment.