Hi Stefan,
All excellent advice from Rob.
One thing that I do with my OSC flats is to learn how to monitor what is going one without having to deBayer first - you already see the three 'peaks' in the histogram that correspond to the RGB channels after deBayering, but thos three peaks (more likely four in reality) will also be present in the original non-deBayered image(s). IN other words you might have one peak for Red and one peak for Blue, and maybe even a 'double' peak for the two sets of Green CFA pixels.
But, you still need to follow Rob's advice - try to get the exposure times such that the 'highest' peak isn't too high, and the 'lowest peak' isn't too low. And take quite a few Flat Frames (for which you may also need a corresponding number of FlatDarks, of the same exposure time, and may even need to apply Bias Frames as well - it all depends on your camera). By the way, if you do need Bias Frames, then they are just the Bias Frames that would be used for all your other calibration requirements.
Personally, I take my OSC Flats, and Flat Darks (not that I really need them as my dark current at -20°C is virtually zero) after I have finished imaging for the night and am packing up all of the rest of the equipment in the observatory. I aim for about 100 of each, and then finally walk away leaving the imager to take Darks (again, not that I really need them) once I head back home and fall asleep.
The next day, all being well, I should then have all the data I need, and I transfer this to my big i7 12-core number-cruncher PC before deleting it and looking for property for sale at around 5000m above sea level