I have read about a generalization of Maxwell equation on manifolds that employs differential forms and Hodge duality that goes as follow: $$dF = 0\qquad \text{and}\qquad d \star F = J.\tag{1}$$ As I understand exterior derivative is defined to be the differential on 0-forms and to be an antiderivation (roughly speaking). The Hodge dual of a $p$-form $w$ is defined as the unique $(n-p)$-form $\star w$ that satisfy $\eta \wedge \star w = \langle \eta , w \rangle \mathrm{vol}$ for all $p$-forms $\eta$. We can express the Faraday tensor in coordinates such that the metric tensor is trivialized at one point i.e. $g_{\mu \nu} = \eta_{\mu \nu}$. Then one should compute the hodge dual using the general formula in a basis: \begin{equation} \star \alpha = \frac{1}{k!(n-k)!} \epsilon_{i_1,\dots,i_n} \sqrt{|\det(g)|} \alpha_{j_1,\dots,j_k} g^{i_1,j_1} \cdots g^{i_k,j_k} e^{i_{k+1}} \wedge \cdots \wedge e^{i_n} \end{equation} That formula can be used to obtain $\star F$ in a single point if one put $g_{\mu \nu} = \eta_{\mu \nu}$. But due to the vanishing of first derivative of the metric tensor once differentiate with the exterior derivative one gets the correct expression in the point where the metric was trivialized. By decomposing the effect of the derivative as spatial and temporal parts one gets Maxwell equation. Here I'm following John Baez and Javier P. Muniain "Gauge fields, knots and gravity". Thus one sees that in an local inertial coordinate reference usual Maxwell equation are obtained. This formulation uses the fact that there is a Lorenzian metric and that the manifold is orientable, but doesn't rely on any addiction structure like a connection.
However I am aware of another way to generalize maxwell equation: the minimal coupling which is the substitution of usual partial derivative with the covariant derivative leading to $$\nabla_a F^{ab} = J^{b}\qquad \text{and}\qquad\nabla_{[a} F_{bc]} = 0.\tag{2}$$ With the Levi-Civita connection.
I don't understand how this two are connected. Are those two generalization the same? How can it be possible if the differential form formulation is not aware of Levi-Civita connection? It will be remarkable if the "right" connection popped out from the differential forms version of the Maxwell equation!