If I use `mpw-5` of the `caravel_user_project`` I...
# caravel
h
If I use
mpw-5
of the `caravel_user_project`` I get the following error on `make openlane`:
Copy code
Step 5/31 : RUN yum install -y <https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm> && 	yum install -y git
 ---> Running in f1f8e87a4e21
Loaded plugins: fastestmirror, ovl
Cannot open: <https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm>. Skipping.
Error: Nothing to do
The command '/bin/sh -c yum install -y <https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm> && 	yum install -y git' returned a non-zero code: 1
Variables are set like this:
Copy code
export CARAVEL_USER_PROJECT_COMMIT=mpw-5
export CARAVEL_COMMIT=mpw-5
export OPEN_PDKS_COMMIT=c5730b574461889c82858b08d12ba42423d9c2cb
export OPENLANE_TAG=2021.12.17_05.07.41
m
yes it looks like this is broken atm. I just wrote about it in the #shuttle channel
I think we'll need to override the OPENLANE_TAG
h
Thanks for the hint, just joined the #shuttle channel :-)
m
just trying your tag OPENLANE_TAG=2021.12.17_05.07.41
no doesn't work either
h
I pulled this tag from the mpw-5 caravel repo, but does not work, unfortunately, same errors as yours
m
@User @User @User can hopefully help
h
It would be ideal if one could just pull
caravel_user_project
with the right tag, and everything else is then taking care of by the makefiles… no messing around with commit lables 🙂
m
yep
where did you find the OPENLANE_TAG?
the one I have in my mpw-5 tagged repo is 2021.11.23_01.42.34
I tried yours because it's later, but it doesn't seem to be in the repo
oh it's in the github workflows yaml
h
does it work? it looked through the source-code diff of mpw-3 vs. mpw-5 and found that the TAG changed…
m
no I've tried both and they both fail with the same old URL
the github action on the repo is working for caravel build, but I assume that's because it's on the main branch with a different set of tags
m
The dependency on endpoint.com was dropped in master but perhaps needs to be merged to the mpw tags (@User)
m
I tried a workaround with adding endpont.com to my /etc/hosts but it doesn't seem to work for docker
o
@User https://packages.endpoint.com was migrated to https://packages.endpointdev.com sometime last November, building a new
openlane
image with the tag
2021.11.23_01.42.34
will not be possible. I will raise visibility to this issue and hopefully we provide a resolution soon.
m
@User @User After the failed
make openlane
in the cloned
caravel_user_project
, you can also execute these commands.
Copy code
pushd $OPENLANE_ROOT
export IMAGE_NAME=efabless/openlane:2021.11.23_01.42.34
sed -i.bak -e 's/endpoint.com/endpointdev.com/' -e '/endpoint/s/-1.7-1//' docker/{base,openlane}/Dockerfile
make openlane
popd
The build will complete; testing the pdk now.
👍 2
Also,
make pdk
in
OpenLane
runs in docker, but
make pdk
in
caravel_user_project
runs native and
make pdk-nonnative
runs in docker. @User Just to verify, the
caravel_user_project/openlane/Makefile
uses
efabless/openlane:2021.11.23_01.42.34
but executing
make pdk-nonnative
from
caravel_user_project
uses
efabless/openlane:2021.09.19_20.25.16
- an older version. Should
make pdk-nonnative
use
efabless/openlane:2021.11.23_01.42.34
instead?
d
Yes… let me fix the Makefile real q
ok this is not a "real q" fix because for some reason, make pdk-nonnative does not derive from the caravel makefile. ill raise this with the caravel team
m
@User I don't think that fix is correct, it needs to be in the caravel/openlane/Makefile instead:
your suggestion fails with a 'no rule to make target'
d
Correct, yeah, apologies. I'm in a lecture at the present moment.
m
This is the tag I get efabless/openlane:2021.11.23_01.42.34
d
Pinned your message for visibility
That is the correct tag, yes
1
m
thanks! sorry to interrupt your lecture
d
oh no no don't worry about it. just justifying the fact my "fix" was superficial :)
m
OK, I pulled the docker image and that worked
next error:
I'm calling it a day, and I know you're in a lecture
but it would be great to have a set of tested and working instructions for mpw5 as soon as possible please
👍 1
d
ensure that the openlane_root, caravel_root and all other environment variables have absolute paths, docker gets cranky
m
FWIW,
make user_project_wrapper
"works" for me, but I get
Copy code
[WARNING]: The version of open_pdks installed does not match the one required by the OpenLane flow scripts (installed: 27ecf1c16911f7dd4428ffab96f62c1fb876ea70, expected: c5730b574461889c82858b08d12ba42423d9c2cb)
This is because the
OpenLane
directory installed with
make openlane
from the
caravel_user_project/Makefile
expects the
open_pdks
commit from
OpenLane/dependencies/tool_metafile.yml
to match the
$PDK_ROOT/sky130A/SOURCES
commit. But the actual
open_pdks
commit installed with
make pdk-nonnative
from the
caravel_user_project/Makefile
is specified in the
$CARAVEL_ROOT/Makefile
as
OPEN_PDKS_COMMIT ?= 1.0.264
. (From Nov.) Maybe add something like
Copy code
OPEN_PDKS_COMMIT ?= $(shell python3 $(OPENLANE_ROOT)/dependencies/tool.py open_pdks -f commit)
to
caravel_user_project/Makefile
and then pass
OPEN_PDKS_COMMIT
to docker in
make pdk-nonnative
?
m
continuing from yesterda
it seems MGMT_AREA_ROOT must be set, which it isnt' when I run make user_project_wrapper
after setting it by hand
the tools fail here
image.png
there is no openlane/user_project_wrapper_empty directory
looks like a submodule version mismatch
m
Matt, the
caravel_user_project/openlane/user_project_wrapper/config.tcl
has been updated in the latest commit.
mpw-5
doesn't work but
main
(
9dda5c661ae0c15e22cf5477b46fbb033a4a8274
) does (better).