Can anyone help me in installing openroad tool wi...
# general
k
Can anyone help me in installing openroad tool with pdk
m
Copy code
git clone <https://github.com/efabless/caravel_user_project>
cd caravel_user_project
make setup
p
HI, i tried with caravel installation but, during
make setup
i got errors logs as,
Copy code
if [ -d "/home/renps/caravel_user_project/caravel" ]; then\
	echo "Deleting exisiting /home/renps/caravel_user_project/caravel" && \
	rm -rf /home/renps/caravel_user_project/caravel && sleep 2;\
fi
echo "Installing caravel-lite.."
Installing caravel-lite..
git clone -b 2024.09.12-1 <https://github.com/efabless/caravel-lite> /home/renps/caravel_user_project/caravel --depth=1
Cloning into '/home/renps/caravel_user_project/caravel'...
remote: Enumerating objects: 442, done.
remote: Counting objects: 100% (442/442), done.
remote: Compressing objects: 100% (303/303), done.
remote: Total 442 (delta 135), reused 300 (delta 82), pack-reused 0 (from 0)
Receiving objects: 100% (442/442), 192.35 MiB | 5.16 MiB/s, done.
Resolving deltas: 100% (135/135), done.
Note: switching to '5593d992bbeb5608b7524bc279d91237371612f1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (350/350), done.
export CARAVEL_ROOT=/home/renps/caravel_user_project/caravel && export MPW_TAG=2024.09.12-1 && make -f /home/renps/caravel_user_project/caravel/Makefile check-env
make[1]: Entering directory '/home/renps/caravel_user_project'
make[1]: Nothing to be done for 'check-env'.
make[1]: Leaving directory '/home/renps/caravel_user_project'
export CARAVEL_ROOT=/home/renps/caravel_user_project/caravel && export MPW_TAG=2024.09.12-1 && make -f /home/renps/caravel_user_project/caravel/Makefile install_mcw
make[1]: Entering directory '/home/renps/caravel_user_project'
if [ -d "/home/renps/caravel_user_project/mgmt_core_wrapper" ]; then \
	echo "Deleting existing /home/renps/caravel_user_project/mgmt_core_wrapper" && \
	rm -rf /home/renps/caravel_user_project/mgmt_core_wrapper && sleep 2;\
fi
Installing mcw-litex-vexriscv..
Cloning into '/home/renps/caravel_user_project/mgmt_core_wrapper'...
remote: Enumerating objects: 847, done.
remote: Counting objects: 100% (847/847), done.
remote: Compressing objects: 100% (576/576), done.
remote: Total 847 (delta 328), reused 643 (delta 257), pack-reused 0 (from 0)
Receiving objects: 100% (847/847), 442.56 MiB | 5.13 MiB/s, done.
Resolving deltas: 100% (328/328), done.
Note: switching to '503eda0790085712ffef7f4ad8934c7daed3237f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (770/770), done.
make[1]: Leaving directory '/home/renps/caravel_user_project'
cd openlane && make openlane
make[1]: Entering directory '/home/renps/caravel_user_project/openlane'
if [ -d "/home/renps/caravel_user_project/dependencies/openlane_src" ]; then\
	echo "Deleting exisiting /home/renps/caravel_user_project/dependencies/openlane_src" && \
	rm -rf /home/renps/caravel_user_project/dependencies/openlane_src && sleep 2; \
	fi
git clone <https://github.com/The-OpenROAD-Project/OpenLane> -b 2023.07.19-1 --depth=1 /home/renps/caravel_user_project/dependencies/openlane_src && \
	cd /home/renps/caravel_user_project/dependencies/openlane_src && \
	export OPENLANE_IMAGE_NAME=efabless/openlane:2023.07.19-1 && \
	export IMAGE_NAME=efabless/openlane:2023.07.19-1 && \
	make pull-openlane
Cloning into '/home/renps/caravel_user_project/dependencies/openlane_src'...
remote: Enumerating objects: 427, done.
remote: Counting objects: 100% (427/427), done.
remote: Compressing objects: 100% (378/378), done.
remote: Total 427 (delta 55), reused 200 (delta 17), pack-reused 0 (from 0)
Receiving objects: 100% (427/427), 8.25 MiB | 4.94 MiB/s, done.
Resolving deltas: 100% (55/55), done.
Note: switching to '30ee1388932eb55a89ad84ee43997bfe3a386421'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

make[2]: Entering directory '/home/renps/caravel_user_project/dependencies/openlane_src'
Makefile:23: warning: undefined variable 'DOCKER_SWAP'
Makefile:26: warning: undefined variable 'DOCKER_MEMORY'
Makefile:42: warning: undefined variable 'ROUTING_CORES'
Makefile:84: warning: undefined variable 'STD_CELL_LIBRARY'
/bin/sh: 1: docker: not found
make[2]: *** [Makefile:115: pull-openlane] Error 127
make[2]: Leaving directory '/home/renps/caravel_user_project/dependencies/openlane_src'
make[1]: *** [Makefile:95: openlane] Error 2
make[1]: Leaving directory '/home/renps/caravel_user_project/openlane'
make: *** [Makefile:205: openlane] Error 2
So, need help with it..
m
Seems like
docker
is not installed. Can you check the web to figure out how to install
docker
and try again?
p
Sorry, wasn't aware of installing docker before caravel. thanks. i installed the docker and started with the mentioned steps, above by you. I think worked. but, i'm seeing
makefile:324: warning: undefined variable 'PWD'
as warnings for more than 70+ times after executing
sudo make setup
, i hope it won't cause any issues, will it? also i'm totally new to Caravel projects, shuttles, etc. so, apart from this https://github.com/efabless/caravel_user_project/blob/main/docs/source/index.md docs, are you aware of something to try & test on for getting started or say beginner friendly, please?
m
I wouldn’t use
sudo
. Can you reclone and just run
make setup
? > are you aware of something to try & test on for getting started or say beginner friendly, please? Unfortunately, I’m not a designer - just backend support. I think there are a lot of videos. Matt Venn probably has something you might find useful.
p
After removing & re-cloned it and just
make steup
did installed it without any
makefile:324: warning: undefined variable 'PWD'
but,
Copy code
make[2]: Entering directory '/home/renps/caravel_user_project/dependencies/openlane_src'
Makefile:23: warning: undefined variable 'DOCKER_SWAP'
Makefile:26: warning: undefined variable 'DOCKER_MEMORY'
Makefile:42: warning: undefined variable 'ROUTING_CORES'
Makefile:84: warning: undefined variable 'STD_CELL_LIBRARY'
2023.07.19-1: Pulling from efabless/openlane
these only 4 warnings were shown. ok. Will search for his videos. Thanks !