This guide will walk you through the process of taking the Samsung Galaxy Tab 2 7.0 (GSM) from stock to having the ability to flash the latest version of CyanogenMod.
Don’t forget to back up your data. If you have synced the device with a Google account, then the contacts, calendar, Gmail, & select other Google-related data will not be lost and will come back after the next sync. However, you should backup anything you want to keep that is not stored on the SD card:
It would also be a good idea to backup everything stored on the SD card in the rare case the SD card must be formatted to resolve any major problems.
If the Samsung Galaxy Tab 2 7.0 already has the ClockworkMod Recovery installed, skip this section.
heimdall flash --recovery recovery.img