Are you sure you can’t resort to uboot console? It’s going to be immensely easier, if you can use it. Art and data are located in different partitions, and using the built-in commands of uboot you can flash those automagically!