<div dir="ltr"><div dir="ltr">Hello Chris,</div><div dir="ltr">I'm getting the following error in python3.7:</div><div dir="ltr"><br></div><div dir="ltr">===</div><div dir="ltr">rtems-tools $>./misc/rtems-boot-image -b u-boot-beaglebone -o . $HOME/myimage<br>RTEMS Tools - Boot Image, 5 (881f7419784e modified)<br>Traceback (most recent call last):<br>  File "./misc/tools/cmd-boot-image.py", line 41, in <module><br>    boot.run(sys.argv[1:], command_path = base)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 1020, in run<br>    argopts.board)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 282, in __init__<br>    super(uboot_config, self).__init__(command_path, 'u-boot')<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 133, in __init__<br>    self.load_config(bootloader, boot_ini)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 292, in load_config<br>    super(uboot_config, self).load_config(bootloader, config)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 192, in load_config<br>    for i in self.config.get_items(s):<br>  File "/home/lunatic/development/rtems/rtems-tools/rtemstoolkit/configuration.py", line 131, in get_items<br>    for name, value in self.config.items(section, raw = self.raw):<br>  File "/usr/lib64/python3.7/configparser.py", line 857, in items<br>    return [(option, value_getter(option)) for option in d.keys()]<br>  File "/usr/lib64/python3.7/configparser.py", line 857, in <listcomp><br>    return [(option, value_getter(option)) for option in d.keys()]<br>  File "/usr/lib64/python3.7/configparser.py", line 854, in <lambda><br>    section, option, d[option], d)<br>  File "/usr/lib64/python3.7/configparser.py", line 394, in before_get<br>    self._interpolate_some(parser, option, L, value, section, defaults, 1)<br>  File "/usr/lib64/python3.7/configparser.py", line 444, in _interpolate_some<br>    "found: %r" % (rest,))<br>configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%{arch}-rtems%{version}-'<br></div><div dir="ltr">===</div><div dir="ltr"><br></div><div>I tried replacing all the %{value} to %%{value} in the ini file and that got past the error,</div><div>this however doesn't show up in python2.</div><div><br></div><div>after getting past this one, I'm getting another error:</div><div><br></div><div>===</div><div>rtems-tools $>./misc/rtems-boot-image -b u-boot-beaglebone -o . $HOME/myimage<br></div><div>RTEMS Tools - Boot Image, 5 (881f7419784e modified)<br>Traceback (most recent call last):<br>  File "./misc/tools/cmd-boot-image.py", line 41, in <module><br>    boot.run(sys.argv[1:], command_path = base)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 1020, in run<br>    argopts.board)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 282, in __init__<br>    super(uboot_config, self).__init__(command_path, 'u-boot')<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 133, in __init__<br>    self.load_config(bootloader, boot_ini)<br>  File "/home/lunatic/development/rtems/rtems-tools/misc/tools/boot.py", line 297, in load_config<br>    if not path.exists(self['first_stage']):<br>  File "/home/lunatic/development/rtems/rtems-tools/rtemstoolkit/path.py", line 162, in exists<br>    return _exists(shell(paths))<br>  File "/home/lunatic/development/rtems/rtems-tools/rtemstoolkit/path.py", line 154, in _exists<br>    p = shell(join(os.getcwd(), host(p)))<br>  File "/home/lunatic/development/rtems/rtems-tools/rtemstoolkit/path.py", line 101, in join<br>    path += '/' + shell(arg)<br>TypeError: cannot concatenate 'str' and 'NoneType' objects<br></div><div>===</div><div>I didn't have a look at this one, maybe I'm missing some options in the command line?</div><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 10, 2019 at 12:55 PM <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
These patches add a new command to the rtems-tools called rtems-boot-image.<br>
This tool creates boot images for SD cards on FreeBSD, MacOS and Linux. The<br>
tool lets you boot an RTEMS executable from u-boot from an SD card, or<br>
you can support networking options and have u-boot perform a net boot.<br>
<br>
The tool uses a configuration file `rtems-boot.ini` that defines the<br>
boards, commands and formats a board needs. Please update for your<br>
board and send in patches.<br>
<br>
V2 patches add more network support with network booting and network loading<br>
of a single FDT. I plan to add overlays once I push these patches to<br>
master.<br>
<br>
Please test and report.<br>
<br>
Finally,the beaglebone black running libbsd is really neat so a big thanks to<br>
everyone who has been working on this BSP and making it happen.<br>
<br>
Thanks<br>
Chris<br>
<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>