This boot script script should support boot from both UBI as well as BTRFS on SD card (or USB) and others.