scp_get_default_fw_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, and
  • mediatek/(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