I'm working through the hello world example, and trying to get setup to compile the firmware, following the directions here: https://developer.motorola.com/build/tools/build-from-source
I'm stuck at the "make" step, under "compile nuttx". I get this error:
Traceback (most recent call last):
File "/home/lars/programming/moto_mod/bootrom-tools/create-tftf", line 35, in <module>
from tftf import Tftf, TFTF_SECTION_TYPE_RAW_CODE, \
File "/home/lars/programming/moto_mod/bootrom-tools/tftf.py", line 34, in <module>
from string import rfind
ImportError: cannot import name 'rfind'
dd: failed to open 'nuttx.tftf': No such file or directory
make: *** [Makefile.unix:451: pass2] Error 1
If I just comment out line 34, and retry I get:
Traceback (most recent call last):
File "/home/lars/programming/moto_mod/bootrom-tools/create-tftf", line 390, in <module>
main()
File "/home/lars/programming/moto_mod/bootrom-tools/create-tftf", line 332, in main
tftf_header = Tftf(args.header_size)
File "/home/lars/programming/moto_mod/bootrom-tools/tftf.py", line 407, in __init__
self.reserved = [0] * TFTF_HDR_NUM_RESERVED
TypeError: can't multiply sequence by non-int of type 'float'
dd: failed to open 'nuttx.tftf': No such file or directory
make: *** [Makefile.unix:451: pass2] Error 1
I scoured the web, but can't find any answers. I'm using arch linux, not ubuntu, so maybe that's part of the problem. Anyone have any clues or ideas for me to try?