Can Beaglebone pretend to be a standard USB storage

My home TV can connect an external USB Flash driver. When I connect beagebone to tv, tv can detect it but can’t read anything from it.

When I connect beaglebone to PC, it can be displayed as USB external driver. But I think it is because of that PC has installed some driver to system.

It theoritically could with this kind of code:

Never tried.