You don't need to know the positions of the beacons unless you want an instant location fix. You can use SLAM with inertial odometry or visual inertial odometry to find a precise position using UWB beacons at unknown positions. SLAM algorithms will also give you the positions of the beacons. The catches are that it requires compute, and it requires you to move around for the model to converge.