Scrap off the loose stuff down to bare sheetrock, if possible, then patch with drywall compound if necessary. When it dries, sand it smooth and use a GOOD primer, like Bin sealer 123. Also use a good quality eggshell finish paint, like Benjamin Moore, or Sherwin Williams. You can't use flat...