Missing file in Fenix VIM1 (original version)

/fenix/build/u-boot/fip//acs_tool.pyc': [Errno 2] No such file or directory

Did a recent pull and tried to build for a VIM1 and got the error. Did a make clean and that did not help.
Please let me know where to go with this.

Hello @foxsquirrel

/fenix/build/u-boot/fip//acs_tool.pyc this path seems wrong

What image have you tried to build, can you share your configuration ?

Yes, that is at my other office and I will post that later.

Do you mean the fenix build config?

Yes, 4.9 kernel and mainline kernel build is possible from my side without any issue.

Just cloned a fresh tree on a different machine so I could rule out local machine issues.

This has a different issue related to python.

== ENV CONFIG =======================
VERSION=1.5.2
KHADAS_BOARD=VIM1
LINUX=4.9
UBOOT=2015.01
DISTRIBUTION=Ubuntu
DISTRIB_RELEASE=focal
DISTRIB_RELEASE_VERSION=20.04
DISTRIB_TYPE=server
DISTRIB_ARCH=arm64
INSTALL_TYPE=SD-USB
COMPRESS_IMAGE=no

== ONE LINE CONFIG ==================
source setenv.sh -q -s  KHADAS_BOARD=VIM1 LINUX=4.9 UBOOT=2015.01 DISTRIBUTION=Ubuntu DISTRIB_RELEASE=focal DISTRIB_RELEASE_VERSION=20.04 DISTRIB_TYPE=server DISTRIB_ARCH=arm64 INSTALL_TYPE=SD-USB COMPRESS_IMAGE=no

End of the environment setup.
Execute 'make' to start the build or try 'make help'.
fred@eng-dev6:~/hdd1/git-clones/fenix$ 




Fresh tree.

make[1]: Leaving directory '/home/fred/hdd1/git-clones/fenix/build/u-boot'
1948+0 records in
1948+0 records out
1948 bytes (1.9 kB, 1.9 KiB) copied, 0.00591315 s, 329 kB/s
3156+0 records in
3156+0 records out
3156 bytes (3.2 kB, 3.1 KiB) copied, 0.00938843 s, 336 kB/s
RuntimeError: Bad magic number in .pyc file
make: *** [Makefile:2: all] Error 1

Here is another try using mainline

== ENV CONFIG =======================
VERSION=1.5.2
KHADAS_BOARD=VIM1
LINUX=mainline
UBOOT=mainline
DISTRIBUTION=Debian
DISTRIB_RELEASE=bullseye
DISTRIB_RELEASE_VERSION=11
DISTRIB_TYPE=server
DISTRIB_ARCH=arm64
INSTALL_TYPE=SD-USB
COMPRESS_IMAGE=no

== ONE LINE CONFIG ==================
source setenv.sh -q -s  KHADAS_BOARD=VIM1 LINUX=mainline UBOOT=mainline DISTRIBUTION=Debian DISTRIB_RELEASE=bullseye DISTRIB_RELEASE_VERSION=11 DISTRIB_TYPE=server DISTRIB_ARCH=arm64 INSTALL_TYPE=SD-USB COMPRESS_IMAGE=no

End of the environment setup.
Execute 'make' to start the build or try 'make help'.
fred@eng-dev6:~/hdd1/git-clones/fenix$ make

make[1]: Leaving directory '/home/fred/hdd1/git-clones/fenix/build/u-boot-mainline-v2021.04'
[i] inject dtb logo
2172+0 records in
2172+0 records out
2172 bytes (2.2 kB, 2.1 KiB) copied, 0.00640136 s, 339 kB/s
3180+0 records in
3180+0 records out
3180 bytes (3.2 kB, 3.1 KiB) copied, 0.00929926 s, 342 kB/s
RuntimeError: Bad magic number in .pyc file
make: *** [Makefile:2: all] Error 1

Would you have happen to know what the exact version of python was used when fenix was built, I am just assuming it is fenix code. I might be some other python code in the path.

@foxsquirrel with python3 version 3.10 on Ubuntu 22.04 it runs fine.

It works for VIM3 20.04 and 4.9

The VIM 1 does not build.
Do you have the py source code for these files so I can recompile them.

./build/u-boot/fip/acs_tool.pyc
./build/u-boot/fip/stool/signing-tool-gxl/pem_extract_pubkey.pyc
./build/u-boot/fip/stool/signing-tool-g12a/pem_extract_pubkey.pyc
./build/u-boot-mainline-v2021.04/fip/acs_tool.pyc
./packages/u-boot-mainline/fip/VIM1/acs_tool.pyc
./packages/u-boot-mainline/fip/VIM2/acs_tool.pyc

py3compile .
  File "/home/fred/hdd1/archive/git-clones/fenix/build/u-boot/fip/stool/signing-tool-gxl/pem_extract_pubkey.py", line 219
    B = 0x100000000L
                  ^
SyntaxError: invalid hexadecimal literal