Brown onion and bacon; drain and put aside. Cube squash into 1 inch cubes. Boil in enough water to cover squash, add chicken bouillon cubes. Boil until squash is soft. Put squash in a large bowl and lightly mash. Mix in bacon and onion mixture and add shredded cheese.
In a lightly greased baking dish add mixture, and cover with parmesan cheese.