Here are a couple of ways of cooking eggs in a campfire.
First cut an onion in half and scoop out the middle layers to form a cup. Break an egg into this cup.
Place in the embers of your fire and leave to cook.
The egg absorbs the flavour of the onion as it cooks.
Another method of cooking an egg is to cut one end off of a large potato, then hollow the potato out and crack an egg into it.
Wipe some egg white around the top of the potato and place the top back on. Wrap the potato in foil and place in the embers and leave to cook for 40 -50 minutes. This is the end result.