Peel and cut the onions into eighths. Peel the ginger and grate finely.
Heat about 4-5 tablespoons of oil in a wok. Fry the spices briefly, then add the onion pieces and fry them. Salt and stir now and then.
When the onions have turned golden yellow, add 2 tablespoons of water, bring to the boil, then reduce the heat and cover the wok. Stew the onions for approx. 10-15 minutes until soft.