TNAP-6 Image Discussion

From your previous post (592), slot 23 has debris in it. The clone should work if everything is OK. What about the receiver menus? Do they show the extended slots?

You may clone slots using terminal. Just cd to the plugin location in the receiver like we did earlier. Test and see if terminal cloning works:
Clone Command Syntax:

python3 clone_slot.py [SOURCE_SLOT] [DESTINATION_SLOT]

Your Example:

python3 clone_slot.py 4 23

What this does:
- Source: Slot 4 (TNAP 6 - internal)
- Destination: Slot 23 (Empty - SD card)
- Result: Clones slot 4 → slot 23 (complete copy)

More Examples:

# Clone current slot 21 to empty slot 23
python3 clone_slot.py 21 23

# Clone internal slot 2 to SD slot 10
python3 clone_slot.py 2 10

# Clone between SD slots
python3 clone_slot.py 10 20

# Clone SD slot back to internal
python3 clone_slot.py 16 3

What Happens:

1. Validation:
- Checks source slot has valid image ✓
- Checks destination slot exists ✓
- Asks for confirmation (destination will be overwritten)
2. Cloning Process:
- Clones kernel partition (dd copy)
- Clones rootfs partition (rsync copy)
- Preserves all files, permissions, symlinks
3. Result:
- Destination slot is exact copy of source
- Bootable immediately
- Shows same image name in list

Important Notes:

⚠ Destination will be COMPLETELY OVERWRITTEN
- Any data in slot 23 will be lost
- Plugin will ask for confirmation first

✓ Works for any slot combination:
- Internal → Internal (1-4)
- Internal → SD (1-4 → 5-29)
- SD → SD (5-29 → 5-29)
- SD → Internal (5-29 → 1-4)

✓ Much faster than backup/restore:
- No compression/decompression
- Direct partition copy
- Takes ~2-5 minutes for 2GB image

✓ Now validates properly:
- Won't clone from empty slots (e.g., slot 20 with 445M leftover)
- Won't clone from slots without complete images

Your Specific Case:

python3 clone_slot.py 4 23

Before:
- Slot 4: TNAP 6 (582.1M)
- Slot 23: Empty (340.1M leftover)

After:
- Slot 4: TNAP 6 (582.1M) - unchanged
- Slot 23: TNAP 6 (582.1M) - exact copy! ✓
 
I installed 01-21 into slot 22 and enigma2-plugin-extensions-tnapslotmanager_1.1.17-r3_all.ipk. Then ran the cd /usr/lib/enigma2/python/Plugins/Extensions/TNAPSlotManager && python3 list_slots.py > /tmp/slot_list_output.txt 2>&1 && cat /tmp/slot_list_output.txt command. I am still showing left over files in certain slots even though they indicate as being empty.

Since I can't use Filezilla to identify the slots with leftovers, what's the best terminal command to erase any left over files in each slot and allow the slot to remain intact for future use.
 

Attachments

Ok so the enigma2 edits to the image seem to be successful as you are "seeing" the extended slots now in the enigma2 image menus....Progress I guess.

Two scripts are attached. One will clean your slots. This script can be modified to clean other slots by editing it. Send both scripts to /tmp of the receiver. Open telnet and cd to /tmp of the receiver. Then make executable:
chmod +x clean_empty_slots.sh
Run it:
./clean_empty_slots.sh

There are a couple of unidentified images lurking about in your last .txt file, I think slots 27 and 28?? So let's see about identifying a solution to make them visible.
chmod +x diagnose_unknown_slots.sh ./diagnose_unknown_slots.sh > /tmp/slot_diagnosis.txt
Then either upload the generated file or just copy the output:
/tmp/slot_diagnosis.txt
Or
cat /tmp/slot_diagnosis.txt
 

Attachments

OK will give the file.zip a go...

Due to the embedded left over files in certain slots, I am guessing that slot manager plugin cloning is not working correctly.

I tried to clone slot 4 to 23 and got this message...
 

Attachments

  • SlotManager clone of slot 4 to slot 23 error.webp
    SlotManager clone of slot 4 to slot 23 error.webp
    125.3 KB · Views: 3
OK ran the cleanup script and here's the slot_diagnosis info.
LOL. When you show errors like that, then it triggers a fix! Or at least an attempt. We knew there was a cloning problem, but the screenshot announces what the problem is and where it lives! Install attached .ipk and try cloning again.
Thought the last ipk was R3, my bad.
 

Attachments

To make sure everything is proper for my minimum system, I backed up a slot, then cloned it. Total time = 49 seconds.
enigma2-plugin-extensions-tnapslotmanager_1.1.17-r4_all.ipk

Seems you may have corrupted slots or something? Slot 27 and 28 in one of your .txt files shows images but they are unknown...???? The last diagnostic script for this turned up nothing. Please find attached and run: detailed_slot_diagnosis
 

Attachments

I didn't have much time earlier to completely check out the clone from slot 4 to slot 23. When booted into slot 23 it seemed to behave correctly by just checking and running the bouquets. Did not get a chance to check plugins or anything else.

I am currently back on 01-21 in slot 22 with the last R4 ipk installed and doing some terrestrial recordings. All seems well. Although I have yet to check all plugins.
 

Attachments

Back
Top