Thank you for the guidance. I have made some progress but cannot get this working. I have spent time googling and trying solutions but if you have any ideas I would appreciate it, my goal is to get Android 7 installed and WIFI working. My stretch goal is to getting it working with phone calls.
I used Framaroot 1.9.3 APK to root the phone.
I used ODIN 3.12.3 to load the i777_4GB data - 45mb preload - 1GB system.pit
I used ODIN to load CWM recovery which allowed me to load TWRP 2.8 (I cannot find TWRP I777 3.1.1.0)
Using this I can then wipe and load lineage-14.1-20171008-UNOFFICIAL-u1att.zip (I have also tried cm-13.0-20160927-UNOFFICIAL-u1att.zip and GalaxyS2Root.com_SGH-I777_UCLE5.zip)
I then wipe Cache, Davik etc and reboot
It hangs on the ROM logo and just stays there. (Ie gets past recovery)
Then I tried avatar-3.0-arion-1344-20130629-i777.zip which loads fine. I can load GAPPS for this and the phone appeared to work until I tried to load a SIM. Then I find there is no IMEI number in the system (IT is still physically printed on the phone). So with this Android 4 software and WIFI the phone seems to work fine.
Trying to get to Android 7 I reinstalled TWRP 2.8 and it says cannot mount /efs (In Avatar I can install root file manager and browse /efs so it only seems TWRP has this issue. )
I have tried GS2_repair apk but didn't resolve. I tried Chamelephon but it doesn't work on GS2.
The only other suggestion I read was to reinstall the stock android and that may recover EFS but I cannot find a stock I777 Android to download.
Thanks
PS Found a the EFS Professional Tool. This can repair NV Data File Permissions:
Checking device connection... Device is connected!
Detected EFS partition location: /dev/block/mmcblk0p1
Re-mounting ROOT file system... Okay.
Mounting EFS folder as read/write... Okay.
Repairing ownership of 'efs/nv_data.bin'... Okay.
Operation successful!
In the EFS folder I can see many files from 2014. Eg .nv_core.back; .nv_state; nv_data.bin etc but when I check in settings IMEI is still blank.
I went through multiple times trial and error. I still not sure the right order but finally got it to work
1. Use Odin 3.07 PDA slot
CWM-KitKatCompatible-i777 v6.0.4.5
USB connected +/- power for Download
USB disconnected +/- power for Recovery
2. Flash SGH-i777_TWRP_v2.8.7.0
3. latest Omni install boot reboot recovery
omni-5.1.1.20150711-i777-HOMEMADE.zip
4. install virtual repartition
5. lineage-14.1-20171008-UNOFFICIAL-u1att
6. reboot into recovery TWRP 3.1.1.0
7. Load recovery image and do the data format and partition wipes
8.. SD card no longer works so load files thru MTP
9. Boot lineage-14.1-20171008-UNOFFICIAL-u1att
let it boot and config before gapps
gapps mini fits but nano is good enough
disable animations
force gpu