warm up doesn't really mean expending a lot of your energy
it can be simple things like stretching, or maybe 10 jumping
jacks
It's more for reducing the risks of injury
so for 2.4km, what I would do would just to stretch the thighs,
calves, hamstrings, glutes and abs.
for basketball or soccer or squats, perhaps all the above plus
some simple glute activation exercises