PDA

View Full Version : Cemu10b v1.8 AR - New - By LazyBastard


seaboard18
04-13-2007, 05:30 AM
Cemu10b v1.8 AR
- Apr12/07 fix for autoroll,
- file naming sanity, logs use ".log" extension, keys use ".key" extension.
- cemu.cnf only for DJGPP. All OS's not restricted to 8.3 filename use
cemu.conf - that means no more speed dial for windoze users.
- make small fixed.
- cross compiling support for 32bit on 64bit now in makefile.



Cemu10b v1.70 AR - Cemu10b Autoroll

New Features:

Repaired the originalghetoroll token not getting set correctly - Overnite

Ghetoroll routines added for 0905 and 0906 Provider Keys - By Coward
Bootdisk option to read/write keys from flopy drive - By Overnite

** New cemu.cnf configuration features
New Token bootdisk
if bootdisk 0 then cemu will read/write keys as usual
if bootdisk 1 then cemu wil read/write keys from A: floppy drive



Cemu10b v1.70 AR - Cemu10b Autoroll

Compiled and tested in Linux/Cygwin/Mingw/DJGPP, autorolls with D*sh, B3V on all platforms.

New Features in cemu10b 170 AR:
-Fixed Autoroll Routines - By Overnite and unnamed others
-Added Active Key Display - By Overnite
-Replaced the bad length nano and unknown ecm nano message with a waiting for keys message (cmd07.cc lines 965 & 983) - By Overnite
Look to the above line numbers to replace the if you need to see them
-Added ghettoroll routines see info below - By coward

**New cemu.cnf configuration features:
New tokens ghettoroll, checkdelaykey

If Autoroll goes down, just change in cemu.cnf
ghetoroll 0 to ghetoroll 1

this will disable the autoroll function , and cemu will wait for 3 files to be updated
86.key,96.key
and as soon it see the file reload.key it will change the keys from these files,

If we need the ghetoroll now we have a option in cemu.cnf
called : checkdelaykey

by default if its not present in cemu.cnf it will check every 30sec for the magic file reload.key
if you have set ghetoroll 1 in cemu.cnf

so when we will need you can adjust the frecency for cemu to check for that file
for example

checkdelaykey 300

and it will check every 5 minutes

-New Makefile for this version



New Featuers in cemu10b_1.6_AR
-Switched to openssl BIGNUM libraries for map3b and map57, these development libs are required for compiling.
-Updated morph routines to include ST19 opcodes

-Interactive Keyboard Commands:
Usage h/H - HELP Outputs Help screen
Usage c/C - CMD output IRD command traffic
Usage 7 - CMD07 output CMD07 info
Usage 6 - 6805 debug the 6805 emulator commands. This is very intensive
Usage p/P - MAP debug the map functions from libgmp
Usage i/I - INPUT output incoming byte strings
- OUTPUT output outgoing byte strings
Usage l/L - COMM debug low level communication
Usage r/R - RUN output various info taken from a running bin (keys, etc)
Usage k/K - KEY output just key info
Usage m/M - EMM output EMM's that have been decoded
Usage b/B - B1 output B1 morph
Usage u/U - EMU output B1 processing emulator, verbose output
Usage 8 - EMU_0x80 output B1 emulator, limited to 0x80 - 0xC0, must used with EMU
Usage n/N - NAGRA debug ROM102 MAPROM/MAPMEM
Usage d/D - DEBUG turn on/off debug debug processing
Usage 1 - BIG_INT debug big_int
Usage x/X - NONE turn ALL debugging/output off
Usage a/A - ALL turn ALL debugging/output on
Usage s/S - LOG Open/close dumplog and capture screen output
Usage e/E - SAVE Save EEPROM

Key commands turn on/off by repeating the same key. This is true for all key cmds except Enable ALL and Disable ALL..
Still allows for setting initial debug settings in cemu.cnf.
If you get lost type 'x' or 'X' which disables all output.

-Keyboard enabled logging with dual output to console and file "dumplog.txt"

-Dynamic B1sig assignment..NO b1sig needed in cemu.cnf

-EMMG keysets hardcoded in keysets.h. No longer used in cemu.cnf. If you use your own then change them in there prior to compiling.

-Date stamping of EMMLOG and STREAMLOG, also user defined log names in cemu.cnf..(look in there for details)

-Improved error handling/logging capabilities

**Required bin images(Unchanged):

D*sh: EEP01_102.bin (18k) for DOS use EEP1_102.bin
B3V: EEP08_102.bin (not tested) (18k) for DOS use EEP8_102.bin
D*sh & B3v: Both use included ROM102.bin (98k)
**the 102 bins require the above naming convention, except in DOS**

Rom102to10: dish.bin or bev.bin.
Still needs rom10.bin.


**New cemu.cnf configuration features:
New tokens emmlog, STREAMLOG, streamlog.

EMMLOG 1 --- turn emm logging on. emmlog emmlogname.txt will create a file named emmlogname.txt, now user defined.. Only works if EMMLOG 1 is set.
Same for STREAMLOG token.

Can still set debug options, keyboard commands will adjust to initial settings in cemu.cnf.

**Hardware Requirement(no changes):

Need to use the 2-chip flashes(ird6k/other irds) for 2313 Max/Mel emu boards to allow for autoroll.

If using an 8515 based AVR, existing flashes should work.

Should have a Max232/233 interfacing between IRD and serial port anyway to minimize risk to the IRD...you 1-chip users have been warned.

**Compiling Issues
Compiles without errors/warnings in linux/mingw/cygwin/djgpp.
New Makefile added mingw=1 switch for support of that environment(see Makefile for compiling options)
Use static gmp libraries for cygwin static builds, will eliminate the .dll dependencies..
make small=1 no longer an option..
Compression sizes in all environments between 140k(linux) - 276k(DOS).

**Known Issues
DJGPP requires openssl dev libraries for this version. A lot involved to get that platform compiled. Precompiled libraries are included.

After a lot of testing/debugging I don't believe the freezing/desubbing issue is related to cemu..check your serial port settings/hardware combo, play with the FIFO buffers. Solved the occasional freeze by going to a USB/Serial adapter in linux.

************************************************** *

Again like last time, will last as long as the current key packets or Map calls don't change. Currently support map3b and map57 for both providers.

Million thanks to NoOneImportant...LazyBastard...ginman...and others involved in cemu development.
Thanks to all the testers, you know who you are!!

Enjoy!

ToDo:
Add EMM-S support for B3v.
Consider serial comm routines with improved buffers and support for modded serial cards.

htxp://www.thefileshop.com/showthread.php?t=3287

fred_j
04-15-2007, 06:54 PM
i am new here i didn't see where this is at to be downloaded

smilingjack
04-15-2007, 07:18 PM
htxp://www.thefileshop.com/showthread.php?t=3287

seaboard18
04-20-2007, 07:37 AM
Hi Crazy,


It sounds like you have the cemu.conf file mis-configured.
Just change your zip, TZ and this should work for you. If not, let me know.
Good to hear from you again!



# Lines beginning with a # are comments and are not read by cemu
# ---- PORT Settings ---
# Linux/Cygwin : /dev/ttyS0 for COM1, /dev/ttyS1 for COM2 .....
# Dos/Windows/DJGPP : COM1 or 1 for Com1, COM2 or 2 for Com2....
# Linux USB->Serial Adapter : /dev/ttyUSB0
# Stream file input : stream
port COM1
baud 115200
# If your com port dosn't use the sandard IRQ and Base Address,
# use the options below to set them
# Standard IRQ and BASE Addresses are as follows:
# Port Base Address IRQ
# COM1 0x3f8 4
# COM2 0x2f8 3
# COM3 0x3e8 4
# COM4 0x2e8 3
#
# change these 2 lines if you com port uses a different irq or address
#irq 5
#address 3e8
#AVR or mofified serial port
#protocol modserial
protocol avr
sendatrstart 0 #(for modded serial)
sendatrreset 0 #(for modded serial)
#atrbaud 4800 #(for modded serial)
# Daylight Saving Time
#1 - For Daylight Saving Time (March to November), 0 - Standard Time (November to March)
daylight 1
# Choose your Time Zone below, this works with Zip Code and DayLight
# make sure only one timezone line in uncommented. ie no # in front of it
# tz newfounland
# tz atlantic
tz central
# tz central
# tz mountain
# tz pacific
# tz alaska
# tz virgin
# tz honolulu
# Zip code in decimal
# For Bev, choose a zip code from the following list
# British Columbia: 3758,5464-5483,5490,5493,5496-5718,6240-6266
# Alberta: 3706,4935,4940-5461,5486,5488,5984-6006
# Saskatchewan: 4680-4921,4937
# Manitoba: 3784,3921-3924,4121-4147,4420-4654,5982
# Ontario, Quebec: 780,1560-3638,3732,3900-3919,3926-4091,5980
# Maritimes: 15-17,73-559,1040-1280,3836
# Newfoundland: 0-13,26-65
zip 77550
#
# The name of your ROM file
rombin rom10.bin
# The name of your EEPROM file (File to upgrade with your information)
dishbin dish.bin
# Write to bin = NoSave 0, Dont Write to bin = NoSave 1
nosave 1
# Use this option to display different output information
# CMD IRD command, and other cmds logged
# CMD07 debug CMD07s
# CAM not used yet
# SAVE not used yet
# 6805 debug the 6805 emulator commands. This is very intensive
# MAP debug the map functions from libgmp
# ROM3 debug bytes placed in ROM
# NYI not Yet Implemented feature debug
# INPUT debug incoming byte strings
# OUTPUT debug outgoing byte strings
# COMM debug low level communication
# RUN output various info taken from a running bin (keys, etc)
# KEY output just key info
# EMM debug EMM's that have been decoded
# B1 debug B1 morph
# EMU debug B1 processing emulator, verbose output
# EMU_0x80 debug B1 processing emulator, limits output to 0x80 - 0xC0, must used with EMU
# NAGRA debug ROM102 MAPROM/MAPMEM
# EMMALL debug decryption of all EMMs with all keysets
# DEBUG turn on debug debug processing :)
# BIG_INT debug big_int
# NONE turn ALL debugging off
# ALL turn on ALL debugging from above
# Below are some examples
#debug RUN KEY NYI EMM INPUT OUTPUT MAP 6805
#debug RUN KEY NYI EMM INPUT OUTPUT ROM3
#debug RUN KEY NYI EMM ROM3
#debug B1 EMM KEY EMU EMU_0x80
#debug INPUT OUTPUT CAM KEY
# This lines is the line to edit for debugging things like keys on your screen
debug KEY
#debugging on = 1, debugging off = 0 used to debug the cemu program. Usage: b/d/e/g/s/q/r/w
debugging 0
#Needed for key recognition
cmdforkeys B1
offsetkey86 14
offsetkey96 14
stringtofind86 42001006080010
stringtofind96 42001046080010
# Command for ghetoroll
# ghetoroll on 1 and ghettoroll off 0
ghetoroll 0
# Time Interval to check for reload.key in seconds
# The number below sets the time to 5 minutes
checkdelaykey 300
#altcmds not needed at present
#altcmdforkeys B1
#altoffsetkey86 14
#altoffsetkey96 14
#altstringtofind86 42001006080010
#altstringtofind96 46001046080010
#
#Output EMM decrypt data, including keys, use any log name you'd like..EMMLOG 1-->ON
EMMLOG 0
#emmlog emmlog.txt
sessionkey 1
nbprecomp 5
# Output raw stream to a text file, use any log name you'd like..STREAMLOG 1-->ON
STREAMLOG 0
#streamlog streamlog.txt

Crazy1_79
04-20-2007, 08:03 AM
thank you SB i will test it tomorrow and report back. preliminary inspecton shows yours is different than mine when it comes to B1 cmd's