Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: PKG file help needed :( Pls?
  

Results 1 to 8 of 8
  1. #1 Question PKG file help needed :( Pls? 
    loki is offline Registered User
    Join Date
    Oct 2010
    Posts
    6
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Hey folks,

    Tried posting this on ps3news, but it got deleted without warning, but dunno why... Was in the right section n' everything ?! So thought I'd try here, cos I've been blind and didn't realise there was a coding section!

    I've been trying to build a .pkg file with the gen_pkg bit from the OM makefile source, mainly because SDK Package Maker keeps throwing up unhandled exceptions, although last night worked wonderfully, but now wont?! So I've got this coming up from the "make gen_pkg" cmd in msys:

    Code:
    $ make gen_pkg
    /c/usr/local/cell/host-win32/ppu/bin/ppu-lv2-strip -s boxster.elf -o objs/boxste
    r.elf
    /c/usr/local/cell/host-win32/bin/make_fself.exe objs/boxster.elf EBOOT.BIN# to u
    se in /app_home/PS3_GAME
    /c/usr/local/cell/host-win32/bin/make_fself_npdrm.exe objs/boxster.elf PS3_GAME/
    USRDIR/EBOOT.BIN
    ERROR: open PS3_GAME/USRDIR/EBOOT.BIN
    make: *** [gen_pkg] Error 1
    Here is the makefile:
    Code:
    .PHONY: gen_pkg npdrm_package
    
    CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
    
    include $(CELL_MK_DIR)/sdk.makedef.mk
    
    NET_UTIL    =  ../../network/net/util
    
    PPU_CFLAGS   += -mp32
    PPU_CFLAGS   += -DBIG_ENDIAN -DBYTE_ORDER
    PPU_LDFLAGS  += -mp32
    PPU_INCDIRS  += \
    	-I$(NET_UTIL)
    
    PPU_SRCS     = main.c
    PPU_LDLIBS   = -lnetctl_stub -lsysmodule_stub
    PPU_LDLIBS  += -lnet_stub -lhttp_util_stub -lhttp_stub -lnet_stub -lnetctl_stub\
                        -lpngdec_stub -lm -ldbgfont_gcm -lgcm_cmd -lgcm_sys_stub\
    		    -lio_stub -lsysmodule_stub -lsysutil_stub -lfs_stub
    PPU_LIBS     = $(NET_UTIL)/network_util.a
    
    PPU_TARGET   = boxster.elf
    
    include $(CELL_MK_DIR)/sdk.target.mk
    
    $(NET_UTIL)/network_util.a:
    	$(MAKE) -C $(NET_UTIL) 
    
      gen_pkg:: $(PPU_TARGET)
    	$(PPU_STRIP) -s $< -o $(OBJS_DIR)/$(PPU_TARGET)
    	$(MAKE_FSELF) $(OBJS_DIR)/$(PPU_TARGET) EBOOT.BIN				# to use in /app_home/PS3_GAME
    	$(MAKE_FSELF_NPDRM) $(OBJS_DIR)/$(PPU_TARGET) PS3_GAME/USRDIR/EBOOT.BIN
    	$(MAKE_PACKAGE_NPDRM) package.conf PS3_GAME/				# to install pkg
    The code compiles fine which is amazing, cos I've only been playing with the sdk for an hour or so!

    My dir structure has been changed from:
    PS3_GAME/USRDIR - with the EBOOT.BIN in it, to:
    USRDIR/ - because I thought I'd messed it up, but that doesn't work either?!

    I just need someone to point out my obvious mistake, because it's been YEARS since I've used makefiles and even then my knowledge with slightly less than needed

    edit - Forgot to mention that the .conf file I'm using is that from the 1.16 OM release, just renamed to package.conf. Maybe that's where I'm going wrong?

    Cheers in advance!
    Last edited by loki; 10-11-2010 at 08:35 AM. Reason: Missed some info....
    Reply With Quote  

  2. #2  
    Derr is offline Member
    Join Date
    Oct 2010
    Posts
    464
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Seems like a simple misnamed folder, probably OpenManager folder needs renamed to PS3_GAME. So (within the same folder as the makefile) you want to have the /PS3_GAME/USRDIR/

    The other paths seem to be set right, I could be wrong and apologize if the explanation isn't clear, I'm still not fully awake
    Reply With Quote  

  3. #3  
    loki is offline Registered User
    Join Date
    Oct 2010
    Posts
    6
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    No worries at all. I made a couple of changes and got a bit further! But this 'new' error, seems like a right show-stopper

    Code:
    >> !ERROR!: PS3_GAME/USRDIR/EBOOT.BIN is not a supported NPDRM SELF. (SYS_PROCES
    S_PARAM is required)
    >> !ERROR!: USRDIR/EBOOT.BIN is required.
    Illegal Package: USRDIR/EBOOT.BIN is required.
    
    Registration error.
    Dunno what it's complaining about. PS3_GAME/USRDIR is all there, with everything in it, and the EBOOT.BIN is there too. Back to playing with paths ! Cheers for your help.
    Last edited by loki; 10-11-2010 at 09:07 AM. Reason: might learn how to post in forums at some point... sighs.
    Reply With Quote  

  4. #4  
    Derr is offline Member
    Join Date
    Oct 2010
    Posts
    464
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Are you using the 1.92 SDK or the newer 3.41 release? Seems like the eboot didn't compile properly and as far as I know the most recent OM source won't compile properly in 3.41
    Reply With Quote  

  5. #5  
    loki is offline Registered User
    Join Date
    Oct 2010
    Posts
    6
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    1.92 here. I didn't even know that the 3.41 was available tbh. I'm only using the .SFO and .conf and a modified makefile from the 1.16 OM source, the rest of the code is my own. I had used sdk package maker to create the eboot.bin originally. I'll have a further play, it's all experience
    Reply With Quote  

  6. #6  
    loki is offline Registered User
    Join Date
    Oct 2010
    Posts
    6
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    D'oh! My bad, I'd forgotten the: SYS_PROCESS_PARAM(1001, 0x10000) call. Once I added that, it built the .pkg fine Got there in the end. Cheers for all your help Derr!
    Reply With Quote  

  7. #7  
    Krazygio305 is offline Registered User
    Join Date
    Jan 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    How can i get the SYS_PROCESS_PARAM?
    Reply With Quote  

  8. #8  
    Ben Jeremy's Avatar
    Ben Jeremy is offline Developer and master of common sense
    Join Date
    Aug 2010
    Posts
    737
    Downloads
    4
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    92
    I don't think you will be able to make a package with an unencrypted EBOOT.BIN file, and at this point, makeself doesn't work to encrypt the EBOOT.BIN.

    We can decrypt and modify the EBOOT.BIN files for backup managers, but without properly encrypting/signing them the package process won't work.

    Please, stop trying to make package files for homebrew (or modified EBOOTs) until you hear the news that we can now ALL create self files that work on retail PS3s.

    Geohot has not fully released the source for his working make_self. Until then we have only broken makeself.
    Working hard on UberCFW, incorporating NTFS, sub-free NetFlix and Blockbuster, PSN cheat system with built-in swearbot and MAC-spoofing, Adding MKV, RAM and BIK movie support, and Xbox360 emu*.

    *not really. Get a life, newbs...

    My YouTube channel: http://www.youtube.com/user/BenJeremy
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •