Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/control
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/control	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/control	(revision 14569)
@@ -0,0 +1,12 @@
+Package: enigma2-plugin-swapemus-gbox.804
+Version: 1.0
+Description: gbox 804 and Configs! SWAPSTICK IS NEEDED!
+Section: swapemus
+Priority: optional
+Maintainer: AAF Forum
+Architecture: sh4
+OE: gbox 804 for Swapstick
+Homepage: http://www.aaf-digital.info
+Depends:
+Source: http://www.aaf-digital.info
+
Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/postinst	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/postinst	(revision 14569)
@@ -0,0 +1,63 @@
+#!/bin/sh
+TMP=/tmp/.emu
+PLUGINDIR=/var/swap/bin
+CONFIGDIR=/var/swap/etc
+PLUGINDIR=/var/swap/keys
+
+
+if [ ! -e /var/swap/keys/cwshare.cfg ]; then
+	echo "use ipk config file: cwshare.cfg"
+	echo "rename /var/swap/keys/cwshare.cfg.gbox > /var/swap/keys/cwshare.cfg"
+	mv /var/swap/keys/cwshare.cfg.gbox /var/swap/keys/cwshare.cfg
+else
+	echo "found user config file: cwshare.cfg"
+	echo "skip ipk config file: cwshare.cfg.gbox"
+fi
+
+if [ ! -e /var/swap/bin/gbox_cfg ]; then
+	echo "use ipk config file: gbox_cfg"
+	echo "rename /var/swap/bin/gbox_cfg.gbox > /var/swap/bin/gbox_cfg"
+	mv /var/swap/bin/gbox_cfg.gbox /var/swap/bin/gbox_cfg
+else
+	echo "found user config file: gbox_cfg"
+	echo "skip ipk config file: gbox_cfg.gbox"
+fi
+
+if [ ! -e /var/swap/keys/ignore.list ]; then
+	echo "use ipk config file: ignore.list"
+	echo "rename /var/swap/keys/ignore.list.gbox > /var/swap/keys/ignore.list"
+	mv /var/swap/keys/ignore.list.gbox /var/swap/keys/ignore.list
+else
+	echo "found user config file: ignore.list"
+	echo "skip ipk config file: ignore.list.gbox"
+fi
+
+if [ ! -e /var/swap/keys/nagra ]; then
+	echo "use ipk config file: nagra"
+	echo "rename /var/swap/keys/nagra.gbox > /var/swap/keys/nagra"
+	mv /var/swap/keys/nagra.gbox /var/swap/keys/nagra
+else
+	echo "found user config file: nagra"
+	echo "skip ipk config file: nagra.gbox"
+fi
+
+if [ ! -e /var/swap/keys/softcam.cfg ]; then
+	echo "use ipk config file: softcam.cfg"
+	echo "rename /var/swap/keys/softcam.cfg.gbox > /var/swap/keys/softcam.cfg"
+	mv /var/swap/keys/softcam.cfg.gbox /var/swap/keys/softcam.cfg
+else
+	echo "found user config file: softcam.cfg"
+	echo "skip ipk config file: softcam.cfg.gbox"
+fi
+
+echo "successfully installed"
+link=`readlink /var/swap`
+if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
+	SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+else
+	echo "syncing disk"
+	sync
+fi
+exit 0
Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/postrm	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/postrm	(revision 14569)
@@ -0,0 +1,16 @@
+#!/bin/sh
+TMP=/tmp/.emu
+
+rm -r /var/swap/bin/gbox_804_swap
+
+echo "successfully removed"
+link=`readlink /var/swap`
+if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
+	SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+else
+	echo "syncing disk"
+	sync
+fi
+exit 0
Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/preinst	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/preinst	(revision 14569)
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+TMP=/tmp/.emu
+
+model=`cat /etc/model`
+echo""
+echo "Checking your Boxtype...."
+echo "Some Plugins will not work correctly on your $model!"
+echo ""
+if [ "$model" = "" ]; then
+	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
+	echo "Aborting installation..."
+	exit 1
+else
+	echo "Boxtype: $model OK"
+fi
+
+echo "checking swapstick"
+if [ ! -d /var/swap/bin/ ]; then
+  echo "--------------------------"
+	echo "no swapstick found...."
+	echo "--------------------------"
+	exit 1
+fi
+echo "swapstick found...."
+echo "installing gbox 802 to swapstick..."
+link=`readlink /var/swap`
+if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
+	SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
+	FREE=`expr $SPACE - 100`
+	SIZE=870
+	echo "checking freespace"
+	echo packege size $SIZE kb
+	echo freespace size $FREE kb
+	if  [ "$FREE" -lt "$SIZE" ]; then
+		echo "sorry no freespace left on device"
+		exit 1
+	else
+		echo ok		
+	fi
+else
+	echo "syncing disk"
+	sync
+fi
+
+buildgroup=`cat /etc/.buildgroup`
+echo "checking OS"	 
+if  [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 	 	 
+	echo --------------------------- 	 	 
+	echo DONT USE this IPK Package!! 	 	 
+	echo --- 	 	 
+	echo Only for $buildgroup Image!! 	 	 
+	echo --------------------------- 	 	 
+	exit 1 	 	 
+fi
+
+exit 0
Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/prerm
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/prerm	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/prerm	(revision 14569)
@@ -0,0 +1,40 @@
+#!/bin/sh
+TMP=/tmp/.emu
+
+if [ ! -e /var/swap/keys/nagra.gbox ]; then
+	echo "remove ipk nagra"
+	rm /var/swap/keys/nagra
+fi
+
+if [ ! -e /var/swap/keys/cwshare.cfg.gbox ]; then
+	echo "remove ipk cwshare.cfg"
+	rm /var/swap/keys/cwshare.cfg
+fi
+
+if [ ! -e /var/swap/bin/gbox_cfg.gbox ]; then
+	echo "remove ipk gbox_cfg"
+	rm /var/swap/bin/gbox_cfg
+fi
+
+if [ ! -e /var/swap/keys/ignore.list.gbox ]; then
+	echo "remove ipk ignore.list"
+	rm /var/swap/keys/ignore.list
+fi
+
+if [ ! -e /var/swap/keys/softcam.cfg.gbox ]; then
+	echo "remove ipk softcam.cfg"
+	rm /var/swap/keys/softcam.cfg
+fi
+
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+else
+	echo "syncing disk"
+	sync
+fi
+
+echo "Removing gbox_804_swap from Swapstick"
+exit 0
+
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/gbox_cfg
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/gbox_cfg	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/gbox_cfg	(revision 14569)
@@ -0,0 +1,187 @@
+# gbox config file
+
+# Trace, Debug
+#    xx yz ; xx=00 no konsole output
+#    xx yz ; xx=01 konsole output
+#    xx yz ; y=0 debug output (dont use)
+#    xx yz ; y=1 no debug output
+#    xx yz ; z=0 ouput to konsole
+#    xx yz ; z=1 output to /var/tmp/debug.txt
+#    xx yz ; z=2 Output to UDP (to capture with gboxt)
+Z: { 01 10 } 192.168.1.2 8024
+
+# gbox working mode
+#    00 pure Emu
+#    01 pure SoftCam (when card inside), Emu (when no card inside)
+#    02 pure Net Client
+#    03 Mixed mode !!!!! always use this !!!!!
+G: { 01 }
+
+# Display ECM messages on Konsole
+#    00 dont show any ECMs
+#    01 show only valid ECMs
+#    02 show valid and bad ECMs with complete data display
+#    1X show ca access
+#    2X use nagra aladin 1801 in betacrypt mode (for UM-I02)
+C: { 01 }
+
+# Display EMM messages on Konsole
+#    00 dont show any EMMs
+#    01 show only valid EMMs
+#    02 show valid and bad EMMs with complete data display
+#    1* Log any tier change on PW-Nagra-17xx cards into /var/keys/pwupdate.log
+M: { 01 }
+
+# Auto Update
+#    00 is ignored (default)
+#    01 enable AU
+#    02 Auto AU !!!!! always use this !!!!!
+A: { 02 }
+
+# Key Update
+#    01 update only new keys, default setting
+#    02 update all keys (used for valid PMK checking)
+U: { 01 }
+
+# Hash pids
+#    00 hash all pids, DO NOT USE THIS OPTION, IT IS ONLY FOR TESTING STUFF
+#    01 hash only pids with implemented algos and available keys !!!!! always use this
+H: { 01 }
+
+# Key files folder
+#    00 keyfiles in /var/keys
+#    01 keyfiles in /var/tmp
+T: { 00 }
+
+# On Screen Display for the Multysystemcam on com1/com2
+#    00 No OSD (default)
+#    01 display Smartcard messages in Neutrino
+#    02 display Smartcard messages in Neutrino new nhttpd format
+#    03 display Smartcard messages in Enigma
+#    04 display Smartcard messages in Enigma2
+O: { 00 } 192.168.0.3 coolstream
+
+# Logger and NET-mode UDP port Init
+#    00 do not init UDP port
+#    01 Init UDP port for IP, port, UDP
+L: { 00 } 192.168.0.251 7025
+
+# demux, multicam/comport configuration
+# example: yz = 0x0A = 00001010 (use com2 with inverted CTS detection line)
+#    *x ** ; x = device nummber to be used (0= default)
+#    D* ** ; force use of /proc/bus/gtx for cw write operations
+             (in the dbox2 the gbox writes directly the CWs, 00 is the
+             recommended mode ! No drivers are required) use D* ** ONLY if
+             you have Problems. 0* ** should be prefered !!!
+#    F* ** ; write CWs in both devices (used for PVR in STB04xxx devices)
+#    ** y* ; y=0001b (0x1*) use slot1 as Multicam (only on STB04xxx)
+#    ** y* ; y=0010b (0x2*) use slot2 as Multicam (only on STB04xxx)
+#    ** y* ; y=0011b (0x3*) use slot1 and slot2 as Multicams (only on STB04xxx)
+#    ** *z ; z=0001b (0x*1) use com1 as Multicam
+#    ** *z ; z=0010b (0x*2) use com2 as Multicam
+#    ** *z ; z=0011b (0x*3) use com1 and com2 as Multicams
+#    ** yz ; yz=00110011b (0x33) use slot1+slot2+com1+com2 as Multicams
+#    ** *z ; z=0100b (0x*4) invert CTS detection on com1
+#    ** *z ; z=1000b (0x*8) invert CTS detection on com2
+V: { 00 30 }
+
+# RS232 SSSP mode
+#    x    debug messages, 1=on, 0=off
+#     y   com port to use (0=none, 1=com1, 2=com2)
+R: { 00 }
+
+# Task type
+#    00 **  normal mode gbox mode (no season, use Multicam instead)
+#    01 **  Season Emulation in a Irdeto allcam chid 0602 nonZ
+#    10 **  Season Emulation in a Irdeto allcam chid 1702 nonZ
+#    11 **  Season Emulation in a Irdeto allcam chid 1702 Z
+#    12 **  Season Emulation in a Irdeto allcam chid 1722 Z
+#    13 **  Season Emulation in a Irdeto allcam chid 1762 Z
+#    ** *1  Com port to use for season emulatiom (1 or 2)
+#    ** 0*  Use CTS for RST detection
+#    ** 1*  Use DCD for RST detection
+#    ** **   9600 = Baudrate to be used (working only on dbox2)
+W: { 00 00 } 9600
+
+# =============================================================================
+# extra options to override default seting in case you expirience Problems,
+# normaly these setings are not required.
+
+# GboxTwin mode
+# this options for the 2nd gbox ONLY
+# you must have an extra gbox, gbox_cfg and cwshare.cfg running on /tmp,
+# all other files can linked to the org. files
+#F: { A6 } 5
+
+# cpu, api, cw write method
+#     00 auto
+#     01 80X86
+#     02 MPC823
+#     03 IBM STB04xxx
+#        00 auto
+#        01 ibm
+#        02 api2
+#        03 api3
+#           00 cw write style = use internal routine (only dbox2)
+#           01 cw write style = CA_SET_DESCR type1 (dbox2, vdr)
+#           02 cw write style = CA_SET_DESCR type2
+#           03 cw write style = CA_SET_DESCR type3
+#           04 cw write style = 16 byte /proc/bus/gtx
+#           05 cw write style = 4096 byte /proc/bus/gtx, cw offset=0x04D0
+#              xx write cw in 1st device with index=xx
+#                 yy write cw in 2nd device with index=yy
+#                    01 means with .index=0 (default)
+#                    02 means with .index=1
+#                    03 means with .index=0 and .index=1
+#                    .. any bitwise combination ...
+#                    FF means with all 8 indexes (0-7)
+#J: { 00 03 01 00 00 }
+
+# Files, folders, devices
+#          folder/device             comment
+#F: { 01 } /var/tmp/pmt.gbx		// pmt file
+#F: { 02 } /var/tmp/emm.info		// key update log file
+#F: { 03 } /var/tmp/ecm.info		// ecm info file
+#F: { 04 } /var/tmp/atack.txt		// atack info file
+F: { 08 } 1				// pmt mode (0 - pmt file mode, 1 - pmt socket mode)
+F: { 11 } /var/swap/keys // folder for config files
+#F: { 12 } /var/tmp			// folder for temporary file
+F: { 13 } /var/swap/keys // folder for keyfiles 
+#F: { 21 } /dev/null			// ca device
+#F: { 22 } /dev/null			// dvr device
+#F: { 23 } /dev/null			// demux device
+#F: { 31 } /dev/null			// second ca device to write cw's (recording)
+#F: { 41 } /dev/sci0			// STB04xxx slot1
+#F: { 42 } /dev/sci1			// STB04xxx slot1
+#F: { 43 } /dev/tts/0			// rs232 com1
+#F: { 44 } /dev/tts/1			// rs232 com2
+
+# For overclocking freaks, Clocking internal STB04xxx slots with:
+# 1=7.80MHz 2=6.30MHz 3=5.25MHz 4=4.50MHz 5=3.94MHz 6=3.50MHz 7=3.15MHz
+# Irdeto works fine on 7.8MHz, all other fine on 6.30MHz or 5.25MHz
+# The Dream has not a clean clock signal, some cards that are sensitive will
+# refuse to work even on 3.5MHz, thats why 3.15MHz is the default value there.
+# On other STB04xxx recievers the same cards work with 6.30MHz
+#F: { 51 } 02                        // irdeto
+#F: { 52 } 03                        // seca
+#F: { 53 } 03                        // viaccess
+#F: { 54 } 03                        // nagra
+#F: { 55 } 03                        // crypto
+#F: { 57 } 03                        // conax
+#F: { 58 } 03                        // nds
+
+# force a name change of the season or sssp rs232 device
+#F: { 45 } /dev/ttyS1
+
+# set stay alive ping time in seconds (default is 300)
+#F: { A0 } 300
+
+# disable direct serial port I/O access on 80x86cpus (win and linux)
+# direct port i/o is used to set unusual Baudrates, if you want to
+# a 3.579MHz card in a 6.000MHz reader etc ...
+#
+# Enabled (A1=0) is the default setting, has always been !!!
+#
+# Disable (set to 1) it ONLY if you have problems with ioperm or you want
+# to use a usb-to-rs232 smartcard reader
+F: { A1 } 1
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu	(revision 14569)
@@ -0,0 +1,4 @@
+emuname  =Gbox Version 804 swap
+binname  =gbox_804_swap
+startcam =cd /var/swap/bin; ./gbox_804_swap &
+stopcam  = touch /tmp/gbox.kill
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/cwshare.cfg
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/cwshare.cfg	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/cwshare.cfg	(revision 14569)
@@ -0,0 +1,68 @@
+# allow maximum 06 share level for recieved card data
+I: { 06 }
+
+#    01 repeat EMM's
+#    00 consider every EMM only once
+#       01 restart pid on overflow
+#          1* reset ENX on every channel change
+#          2* rezap after start (calling pzapit -rz --pal)
+#          *1 check/reset ENX freezes on FTA
+#          *2 check/reset ENX freezes on PayTV
+#          *3 check/reset ENX freezes on FTA and PayTV
+#             00 write nothing in atack.txt
+#             01 write into atack.txt: password is wrong
+#             02 write into atack.txt: ID unknown
+#             04 write into atack.txt: IP is wrong
+#             08 write into atack.txt: port is worng
+#             10 write into atack.txt: share.stat
+#             20 create online.log for online/offline logging
+#             3F write everything. (combine bits for other combinations)
+#                4000 send ecm again after 4 Seconds if no reply.
+#                     6000 resync decode after 6 Seconds if net decode failed
+N: { 00 01 03 1F 4000 6000 }
+
+# Send ECM's at maximum 5 cards (please use this as default)
+X: { 05 }
+
+# Send ECM's in any case to these card ID's, even they are more then X:
+# some examples ...
+#G: { 17020000 1234 }
+#G: { 0B000000 ABCD }
+#G: { 05021510 AB34 }
+#G: { 0D03A000 A234 }
+
+
+# For W: please read the cwshare.txt, here only some examples (max. 128 PID)
+# use card 1 only for the following pids
+#W: { 01 02 02 } 1022 100A 100B 102B 1009 101D 1029 1014 1011 101B
+# don't use card 2 for the following pids
+#W: { 02 03 03 } 1008 1016
+
+# S: is the same as W:, just using the SID instead of the ECMPID (max. 128 SID)
+
+# cwshare.cfg sharing parameters
+# M: { hostname { password }}
+# D: { hostname { rx_port tx_port { password { loc_code net_code }}}}
+#
+# loc_code: bit 7 6 5 4 3 2 1 0
+#		0 0 0 0 | | | |
+#		        +-+-+-+- level
+#
+# net_code: bit 7 6 5 4 3 2 1 0
+#		0 0 0 | | | | |
+#		      | +-+-+-+- level
+#		      +--------- drop level zero cards
+# example: D: { friend1.homeip.net { 8010 8020 { B142AB11 { 05 15 }}}}
+#
+#                            password
+#M: { mydbox2.homeip.net    { AA242456 }}
+
+#
+#    Internet Friends        rx   tx     password   cod
+#D: { friend1.homeip.net    { 8010 8010 { B142AB11 { 5 5 }}}}
+#D: { friend2.homelinux.net { 8010 8010 { 81BFF901 { 5 5 }}}}
+
+#
+#    other local boxes
+#D: { 192.168.0.51          { 8020 8020 { AB333441 { 5 5 }}}}
+#D: { 192.168.0.52          { 8020 8020 { BA334B24 { 5 5 }}}}
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/nagra
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/nagra	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/nagra	(revision 14569)
@@ -0,0 +1,67 @@
+####################################################################
+# [CAS] Nagra Boxkey/Camkey
+# UA - card unique address (4 byte)
+# BX - boxkey (8 byte)
+#
+# DT06 session negation (Key 0D)
+# B: { UA UA UA UA { B0 B1 B2 B3 B4 B5 B6 B7 }} |--- 24 byte compressed pq ---| 
+#
+# DT08 session negation (Key 0A) 
+# try to use internal rsa modulus or user defined modulus
+# B: { UA UA UA UA { B0 B1 B2 B3 B4 B5 B6 B7 }}
+# o.
+# B: { UA UA UA UA { B0 B1 B2 B3 B4 B5 B6 B7 }} |--- 64 byte rsa modulus ---| 
+#
+ATR:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # deine s02 ATR
+Nagravision card
+ROM Version: DNASP181
+Revision   : DVRL00
+CAM ident  : UA:0x10xxxxxx # xxxxxx deine s02 UA
+Provider   : 0401
+Ird        : FFFFFFFF
+Ird status : 01
+Expire date: 25.09.2011|04:02
+Timezone   : 05
+Camkey 5F0D20043760F1130EB35223B7802407
+Baudrate = 9600 Baud
+B: { xx xx xx xx { A7 64 2F 57 BC 96 D3 7C }} # Sky S02 xx deone
+B: { xx xx xx xx { A7 64 2F 57 BC 96 D3 7C }} # HD+ Karte xx deine
+
+
+# example DT06 -
+# ROM181L00 S02/D02
+# ROM110A22 UM01
+# ROM122XXX UM02
+# B: { UA UA UA UA { 66 60 A9 AE 55 A4 84 7B }} F49237277885131A2A577DAFC0CB8AFE13D9477ECE0550BB
+
+# example DT08 - 
+# ROM110A22 UM01
+# B: { UA UA UA UA { A7 64 2F 57 BC 96 D3 7C }} 8A54468867159C1188D13ACE7DF348FA08BDF8BE33F1B2F72F74FBCD184C825519E517E3494A6DD8CF046630456111F952979DECCFF5176D890AE93F4E267711 
+# ROM?????? UM02
+# B: { UA UA UA UA { A7 64 2F 57 BC 96 D3 7C }} B55E0EB0562805F1788BDA0CD8B856BF696CFF1CBF4ED62B85E643F385B0F8899275DEA669AC77BDA43A20CCB844A3AF5A2BE0622779FAB153D156957DF367FF 
+# ROM?????? D02 
+# B: { UA UA UA UA { A7 64 2F 57 BC 96 D3 7C }} B55E0EB0562805F1788BDA0CD8B856BF696CFF1CBF4ED62B85E643F385B0F8899275DEA669AC77BDA43A20CCB844A3AF5A2BE0622779FAB153D156957DF367FF
+# ROM181L01 D09:
+# B: { UA UA UA UA { 66 60 A9 AE 55 A4 84 7B }} 8A54468867159C1188D13ACE7DF348FA08BDF8BE33F1B2F72F74FBCD184C825519E517E3494A6DD8CF046630456111F952979DECCFF5176D890AE93F4E267711
+# ROM181L00 S02
+# B: { UA UA UA UA { A7 64 2F 57 BC 96 D3 7C }}
+#
+#
+
+####################################################################
+# [EMU] Nagra2 ECM keyset
+# ID - system id (eg. 1101,4101,...)
+# KN - key number (eg. 06,07,46,...)
+#	06 - ECM IDEA06
+#	46 - ECM IDEA46
+#	07 - ECM IDEA SIG
+# 
+# ECM RSA modulus (64 byte)
+# R: { ID ID { 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17 20 21 22 23 24 25 26 27 30 31 32 33 34 35 36 37 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 60 61 62 63 64 65 66 67 70 71 72 73 74 75 76 77 }}
+#
+# ECM IDEA key (16 byte)
+# I: { ID ID KN { 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F }}
+#
+# ........................
+# :::::::: NAGRA 2 :::::::
+# ^^^^^^^^^^^^^^^^^^^^^^^^
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/softcam.cfg
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/softcam.cfg	(revision 14569)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/keys/softcam.cfg	(revision 14569)
@@ -0,0 +1,64 @@
+# SoftCam EMM Log configuration
+#
+# Save EMM data
+#    00 Do not save anything (default)
+#    01 Save processed EMMs (/var/tmp/emmproc.bin)
+#    02 Save rejected EMMs (/var/tmp/emmblock.bin)
+#    03 Save both EMMs
+L: { 00 }
+
+# Check additional OSC Frequency !!! ONLY FOR DBOX2 !!!
+#    00 No Check (default)
+#    01 Check on, Value in KHz , example 8MHz=08000
+F: { 0000 }
+
+# Check additional Baurate for ATR !!! ONLY FOR DBOX2 !!!
+#    00 No Check (default)
+#    01 Check on, Value in bit/s, example 81861
+B: { 0000 }
+
+# Enable TPScrypt Support
+#    00 TPScrypt off
+#    01 TPScrypt on (default)
+#    1* don't use PTS on Viaccess cards
+#    2* don't use PTS on Cryptoworks cards
+#    3* don't use PTS on Viaccess and Cryptoworks cards
+#    4* use ICE on Cryptoworks cards
+Y: { 00 }
+
+# Empty RS232 buffer before writing
+#    00 No reset
+#    01 Reset Buffer (default)
+E: { 01 }
+
+# SoftCam Blocker/Filter definition
+#
+# 00 = Allow EMM (default for all)
+# 01 = Block EMM addressed to:
+#     all card
+#     |  shared address/provider
+#     |  |  unique address/hex_serial
+# ----------------------------------
+I: { 00 00 00 } Irdeto  All  SA  UA
+V: { 00 00 00 } Via       -  SA  UA
+S: { 00 00 00 } Seca      -  SA  UA
+N: { 00 00 00 } Nagra   All  SA  UA
+C: { 00 00 00 } Crypto  All  SA  UA
+O: { 00 00 00 } Conax     -  SA  UA
+D: { 00 00 00 } NDS     All  SA  UA
+
+# Timeout Definitions AND com1/com2 delays, all delays to be entered in decimal !
+T: { 00 02 02 } ATR timeout (normal*X), instruction timeout (normal*X)
+T: { 01 00000 000 } Irdeto      : byte delay (1e-6 s), instruction delay (1e-3 s)
+T: { 02 00000 000 } Seca
+T: { 03 00000 000 } Viaccess
+T: { 04 00002 000 } Nagra
+T: { 05 00000 000 } CryptoWorks
+T: { 06 00000 000 } Geldkarte
+T: { 07 00000 000 } Conax
+T: { 08 00000 000 } NDS
+
+# Use constant CW's for
+#    caid  pid     CW0 ...                 CW1 ... 
+#0: { 01 00 56 00 { 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF }
+
