Do not understand what you are talking about. Do not understand why you need to change the ubuntu rootfs for Raspberry.
Why in your view, a ubuntu rootfs is related to a certain device.
A certain device is related to Linux kernel, not rootfs.
The way, the document introduces to create ubuntu rootfs can be run on any arm device.