Cant update firmware

I get the message “Failed to discover board id. Please reconnect via usb and try again.” When I try to install the arducopter 4.05 firmware. The Flight Controller is a Raspberry pi 4 with a Navio 2 hat that supports ardupilot. Its connected, as you can see in the photos.

This is not the way to update Navio Ardu firmware…

Go to

and change arducopter-3.5 by arducopter-4.0 in command lines

No need to create bash file, you can do all the commands from terminal and check progress of your work.