How to setting the vi and csi for 8 cameras

You should have 4 sensor connect to csi0 4 lanes and others connect to csi2 4 lanes.
And the vc-id should be 0-3 only.