Forum Discussion
De10-standard:U-boot for my personal design issue
- 3 years ago
Hi,
Yeah for that issue need to do this:
To resolve the NameError: name 'unicode' is not defined, replace the occurrence of "unicode()" with "str()". This issue occurs because unicode() was renamed to str() in Python 3.
Locate the unicode() in "cv_example.sdmmc/cv_soc_devkit_ghrd/software/bootloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/hps.py"
Then replace the unicode with str, for e.g.:
from
...( unicode("const u8 sys_mgr_init_table[] = {\n"))...
to
...( str("const u8 sys_mgr_init_table[] = {\n"))...
From my last experience these two seem to be the only issue I faced last time, it should be good after.
Thanks for your feedback! Yeah we are investigating the Python version for this and will fix the issue for future versions. We apologize for any inconvenience.
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.
Hi,
Can you find the file mentioned in the error, hps.py you can locate it as mentioned in the error, the directory.
In the hps.py in the line "537" change it to this and re-try:
print ("***Error:Found unexpected HPS child node:%s" % childNode.nodeName)
- CAlex3 years ago
Contributor
Hi,
Good news is that fixed that syntax problem.
-------------------------------------------------------
Bad news is there are many new error:
regurads.
- CAlex3 years ago
Contributor
BTW, my python version is 3.9.1-arm64 because the python SOC have in host-tool cause the bsp-editor warning.(I'm working on CyClone V so I must use bsp-editor)