Earth's geodynamo has operated for over 3.5 billion years. The magnetic field is currently powered by thermocompositional convection in the outer core, which involves the release of light elements and latent heat as the inner core solidifies. However, since the inner core nucleated no more than 1.5 billion years ago, the early dynamo could not rely on these buoyancy sources. Given recent estimates of the thermal conductivity of the outer core, an alternative mechanism may be required to sustain the geodynamo prior to nucleation of the inner core. One possibility is a silicate dynamo operating in a long-lived basal magma ocean. Here, we investigate the structural, thermal, buoyancy, and magnetic evolution of an Earth-like terrestrial planet. Using modern equations of state and melting curves, we include a time-dependent parameterization of the compositional evolution of an iron-rich basal magma ocean. We combine an internal structure integration of the planet with energy budgets in a coupled core, basal magma ocean, and mantle system. We determine the thermocompositional convective stability of the core and the basal magma ocean, and assess their respective dynamo activity using entropy budgets and magnetic Reynolds numbers. Our conservative nominal model predicts a transient basal magma ocean dynamo followed by a core dynamo after 1 billion years. The model is sensitive to several parameters, including the initial temperature of the core-mantle boundary, the parameterization of mantle convection, the composition of the basal magma ocean, the radiogenic content of the planet, as well as convective velocity and magnetic scaling laws. We use the nominal model to constrain the range of basal magma ocean electrical conductivity and core thermal conductivity that sustain a dynamo. This highlights the importance of constraining the parameters and transport properties that influence planetary evolution using experiments and simulations conducted at pressure, temperature, and composition conditions found in planetary interior, in order to reduce model degeneracies.