Rootfs: Fix big endian support

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>