P4ELTE / t4p4s

Retargetable compiler for the P4 language
http://p4.elte.hu/
Apache License 2.0
119 stars 42 forks source link

Error: Cannot find model (e.g. v1model or psa) for example l3-routing-full (error code: 10) #40

Open KekeZheng opened 2 years ago

KekeZheng commented 2 years ago

Hello,I am Coco, a student from China. I've just learning P4 and i want to use the t4p4s,i have installed the environment, but I am not sure how to test it. When I execute this command today. Such an error has occurred,i don't know if i forgot to download someting.

root@t4p4s:/home/coco/t4p4s/t4p4s# ./t4p4s.sh examples/l3-routing-full.p4 Error: Cannot find model (e.g. v1model or psa) for example l3-routing-full (error code: 10)

Thanks for reply.

FlorianC31 commented 2 years ago

Hello, I had the same issue as you, and using what the team already did with P4Pi, we figured out that you need to edit the examles.cfg file to add parameters. For exemple, for l3-routing-full, add at the end of the file: l3-routing-full arch=dpdk model=v1model hugepages=1024

It would be a good thing to edit the README file of the repo to add this info.