Jump to content


Photo

@xman Re. Nkp11_config_open.bin And Virtual Eeprom


  • Please log in to reply
4 replies to this topic

#1 Nightbird

Nightbird

    X-S Member

  • Members
  • Pip
  • 113 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 11 June 2011 - 11:16 PM

Xman. I've been using 'NKP11_config_open.bin' to boot into VGA mode and a VGA configured XBMC using code below:
CODE
%define OPEN_PATH          '\Device\Harddisk0\Partition6\VGA\default.xbe'
;;; use this to enable all of NKP (disable to boot some other HACK)
%define    OPEN_DASH_WITH_NKP    
;;; use this to disable shadowC in open (alt) dash
;%define    OPEN_DASH_shadowC_OFF
;;;---------------------------------------------------------------------------
%define VIDEO_FORCE_RGB

It works really well, but my question is, is there a way of either enabling or disabling the virtual eeprom in the 'config_runtime.inc'? The reason is, I have my real eeprom set to 480p and 720p and my virtual eeprom set to 480p only. When I boot with the tray closed, I also use 'eeprom_off.bin' and the xbox boots to XBMC in 720p with the real eeprom. When I i boot with the tray open, I remove 'eeprom_off.bin', and the xbox boots to a 480p VGA configured XBMC using the virtual eeprom. The reason I use different eeprom's is because when in VGA mode if 720p is enabled it causes some emulators and games to black screen because they detect and use the highest resolution set in the eeprom.
At the moment I'm just using ''eeprom_off.bin' to control things, but is there a way to either enable or disable the virtual eeprom using the tray, like you can with the video mode and shadow_c. It would make things easier for me.
Thanks in advance.

#2 xman954

xman954

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,028 posts
  • Location:the bottom of Tampa Bay
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 June 2011 - 07:56 PM

make the changes and recompile NKP11

dont use eeprom_off.bin it will override new setings



CODE


;-----------------------------------------------------------------
;IN VIRTEEPROM.ASM FILE
;-----------------------------------------------------------------

installvirteeprom:
               push eax  ; save them
               push ebx

               mov ebx,[options+4] ; reload tray options   <<<<<< add !!!!!!!
               test ebx,256  ; eeprom off mask       <<<<<< add !!!!!!!
               jne short ee_off.          ;                       <<<<<< add !!!!!!!

               lea eax,[ee_fp] ; eeprom off file name
               call open_file ; go try to open eeprom_off file
               cmp     [esi+4],dword 01h; status was put here by NtOpenfile (8 bytes total)
               jne short do_ve. ; file not there !
;---------------------------------------
               push dword [ebx]
               call dword [NtClose]
ee_off.        add esp,4+4  ; unwind stack       ; <<<<<< add ee_off.
               ret   ; were done, no virtual eeprom
;---------------------------------------
do_ve.         pop ebx
               pop eax


;-----------------------------------------------------------------
;IN RTC.ASM FILE
;-----------------------------------------------------------------

%ifdef BOOT_DASH_ONLY
%define TV7 128
%endif



%ifdef EEPROM_OFF_NIGHTBIRD           ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!
%define TV8 256         ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!
%endif    ; <<<<<<<<<<<<<<<<<<<< add !!!!!!!

;------------------------------
%ifdef  VIDEO_FORCE_PROGRESSIVE
%define VFP 1
%endif
%ifdef  VIDEO_FORCE_RGB
%define VFR 2
%endif
%ifdef  FLICKER_FILTER
%define VFF 4
%endif
%ifdef  FLICKER_FILTER_VALUE
%define FF_VAL FLICKER_FILTER_VALUE
%endif
;------------------------------
%define VID_SET  VFR+VFP+VFF
%define TRAY_VAL        TV0+TV1+TV2+TV3+TV4+TV5+TV6+TV7+TV8  ; <<<<<<< add (+TV8)

;-----------------------------------------------------------------
;IN THE CONFIG_RUNTIME.INC FILE THAT YOU WANT THE EEPROM OFF
;-----------------------------------------------------------------

%define EEPROM_OFF_NIGHTBIRD





#3 Nightbird

Nightbird

    X-S Member

  • Members
  • Pip
  • 113 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 June 2011 - 09:41 PM

Xman, you're a star. Thank you very much for that piece of code. It works perfect. I've saved it on a text file on my xbox in case I ever lose it. Now I can control everything I need to with the tray. It's made things so much easier for me. It's saved me having to keep moving the 'eeprom_off.bin' in and out of the 'NKP11' folder.
Thanks again.

Note: If you omit 'EEPROM_OFF_NIGHTBIRD' in 'config_runtime.inc' it gives 'error: symbol 'TV8' undefined'. Although it makes no difference to me as it will be permanently defined.
Cheers.

Edited by Nightbird, 12 June 2011 - 09:53 PM.


#4 xman954

xman954

    X-S Messiah

  • Dev/Contributor
  • PipPipPipPipPipPipPip
  • 3,028 posts
  • Location:the bottom of Tampa Bay
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 June 2011 - 10:04 PM

glad to hear it

to fix error

CODE


;----------------------------------------------------------

;    IN rtc.asm

;---------------------------------------------------------

%define TV6 0
%define TV7 0

%define TV8 0            ; <<<<<<<<<< add

%define VFR 0




#5 Nightbird

Nightbird

    X-S Member

  • Members
  • Pip
  • 113 posts
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 12 June 2011 - 10:29 PM

Just added that and it now works spot on.
Much appreciated.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users