You can try running sudo npi-config.
In that program you will find Advanced Options -> Serial -> serial2 Enable/Disable
By default it is disabled, so this may be causing your error.
In that program you will find Advanced Options -> Serial -> serial2 Enable/Disable
By default it is disabled, so this may be causing your error.