Which mPCIe Slot for mSATA [Solved]

There is no guide and i did not update mine yet. I have another idea how to implement it without risking the bootloader. Updating the MCU (STM32) on the board is far simpler and seems less risky.

This is the relevant code part:

if (i2c_read(TURRIS_I2C_MCU_CHIP, TURRIS_I2C_MCU_ADDR_STATUS, 1, (uchar *)&mode, 2)) {
	puts("I2C read failed, default PEX\n");
            return turris_board_topology_config_pex;
    }
if (!(mode & TURRIS_I2C_MCU_CARDDET)) {
	puts("NONE\n");
	return turris_board_topology_config_pex;
}
    if (mode & TURRIS_I2C_MCU_SATA) {
	puts("SATA\n");
	return turris_board_topology_config_sata;
}
puts("PEX\n");
return turris_board_topology_config_pex;

If we changed this to

puts("SATA override\n");
return turris_board_topology_config_sata;

we would be done for the moment but it will require changing the bootloader if you want to use a PCIe card later.

Adding a flag to the MCU code would allow us to check and change this from running TurrisOS. The board should in theory be able to run without the MCU fully working if something happens. And the MCU has a bootloader and is flashable from TurrisOS. Missing piece is the code for the MCU.