Convert 3.3V PWM of Beaglbone black to 5V PWM
There's lots and lots of ways to do this but will depend upon your constraints, such as switching speed, acceptable losses, etc.

Something like this would work. When the GPIO is high, Q1 is on, bringing the gate of M1 low and therefore turning it on:







simulate this circuit &ndash; Schematic created using CircuitLab