That solenoid appears to be,or was used as a battery isolator. If you get me better pics,and if possible any terminal markings on it. I'd bet you I can tell you how to wire it up,or replace it with a $10.00 relay. No solar charger needed, 2nd battery would charge whenever the truck is running. Sorry won't have a diaghram for you but as simple as that is,it's going to be so easy you won't need a diaghram. I already wrote this,but it disappeared somehow. Get me better pics of that solenoid/ Isolator I'm making assumptions based on one little pic. Looks like B+ on Batt 2 is connected to the large post,the smaller lighter gauge wire I assume is the trigger wire,all you need to do is run a 16 gauge wire with a 20 amp fuse from the other isolator big post to the B+ terminal of the other battery. Using 16 gauge will act like a primitive voltage regulator,letting you charge at approximately 15 amps. No solar panel needed.To double check operation of that isolator get a 12 volt test light. Check for constant 12v on the 1st big post. 12v on little post only when the truck is running,or possibly just when the key is in the run position. Other big post should only have 12v when the truck is running,possibly just when the key is turned. If that checks out run a fused 16 gauge wire and you are done. The reason for the 2 possibilities is it depends on what the p.o. is using for a trigger,I suppose there's a 3rd possibilty,could be using a toggle switch as the trigger. Post back results you find with your test light.