p4pi
p4pi copied to clipboard
compiling failure
Compiling error by following the tutorial in the youtube video 'T4P4S: Translator for P4 Switches' from the time mark 11:37 to time mark 14:49. The error code shown in our terminal is "Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)".
This error is reported from this line t4p4s.sh#L288
Could you please check if t4p4s.service has been stopped (with systemctl status t4p4s.service)?
Alternatively, you can disable the service and reboot.
systemctl disable t4p4s.service
reboot
After reboot, you should be able to run the switch as follows:
sudo -i
cd /root/t4p4s/
./t4p4s.sh :arp_icmp p4rt
Sorry for the late response. This was not out problem because as you mentioned systemctl status t4p4s.service), we turned it off and instead got some another kind of compiling failure. We suspect it is because we can't get internet to the P4Pi device.
We also have this problem where we can't run in the web interface, which is probably also because of internet.
This error is reported from this line t4p4s.sh#L288
Could you please check if t4p4s.service has been stopped (with
systemctl status t4p4s.service)?Alternatively, you can disable the service and reboot.
systemctl disable t4p4s.service rebootAfter reboot, you should be able to run the switch as follows:
sudo -i cd /root/t4p4s/ ./t4p4s.sh :arp_icmp p4rt
Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)
This error indicates that t4p4s.sh has failed to reserve enough hugepages. It is not related to having an internet connection.
we turned it off and instead got some another kind of compiling failure
Was there an error message? (perhaps @slaki may be able to help)
We tried the regular way as the image above, but got compiling failure.
We tried with internet by a certain way: Testing as a hotspot sharing the Internet access of a home router (or a private network domain)
And we tried again as the image above, but still got compiling failure.
Error: Was asked to reserve 1024 hugepages, got only 693 (error code: 1)
This error indicates that
t4p4s.shhas failed to reserve enough hugepages. It is not related to having an internet connection.we turned it off and instead got some another kind of compiling failure
Was there an error message? (perhaps @slaki may be able to help)