Wash rice and soak in water for 3 hours. Drain, dry and grind to a fine powder. Sift twice to get a smooth powder.
Add jaggery syrup and salt to rice flour. Mix well to make a smooth paste.
Heat oil in a frying pan, add coconut and fry till golden brown, stirring constantly. Remove from oil and mix with rice jaggery paste.
Add shallots to pan and fry till brown. Mix into rice-jaggery paste.
Sprinkle in cardamom powder, mix well and pour mixture into a round pan.
Cover pan with a flat lid which has a ridge, and cook for 30 minutes with hot coals on the lid and low heat below. You can also bake it in an oven pre-heated to 1800 C (3500F) for 20 minutes.