scp_get_default_fw_path(9)
β¨ scp_get_default_fw_path β get the default SCP firmware path π
Hey bestie, welcome to the scp_get_default_fw_path(9) page π this one lives in the Kernel API Manual and it's short, sweet, and honestly iconic for it. Let's go πΈ
π SYNOPSIS
const char * scp_get_default_fw_path (struct device *dev , int core_id );
Like, that's the whole vibe. One call, two args, one const char * coming back at you β¨
π«Ά ARGUMENTS
devβ the SCP Device, bestie. That's the one.core_idβ the SCP Core number. Which core are we talking about, fr fr.
π DESCRIPTION
Okay so here's the tea β this function generates a path based on the following format:
mediatek/(soc_model)/scp(_cX).imgβ for multi-core, andmediatek/(soc_model)/scp.imgβ for single core SCP HW
No cap, that's literally the whole description. (soc_model) gets filled in, and the _cX bit is the multi-core version's whole thing π«
β RETURN
A devm allocated string containing the full path to a SCP firmware, or an error pointer π so yeah β check that return value, bestie, because an error pointer is not a path no matter how much you want it to be π
π SEE ALSO
Kernel file ./drivers/remoteproc/mtk_scp.c plus the whole friend group: scp_get(9), scp_put(9), scp_get_device(9), scp_get_rproc(9), scp_get_vdec_hw_capa(9), scp_get_venc_hw_capa(9), scp_mapping_dm_addr(9) π¦
Sign-off time, bestie π this little gem comes from ./drivers/remoteproc, dated October 2026, and it's filed under scp_get_default_fw_path(9). Slay, go get that firmware path πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms