New Theme for EZ-Flash Omega!

Discussion in 'GBA - Flashing Hardware and Software' started by Sterophonick, Oct 13, 2018.

  1. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD

    Attached Files:

    Last edited by Sterophonick, Oct 15, 2018
  2. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Update 1.4:
    Made the GBA force hard reset when you launch a game from PSRAM.
    Altered the colors a bit.
    Fixed a few strings
    Fixed the text for loading a game not being visible.
    Fixed the blue bar on the right of the icons.
    Reduced battery usage in some areas of the menus.
     

    Attached Files:

    Last edited by Sterophonick, Oct 15, 2018
    zfreeman likes this.
  3. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Update 1.5:
    A few text fixes, and a few color tweaks.
     

    Attached Files:

  4. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Update 1.6:
    This is a biggie update

    Changes and additions:
    Merged Kuwanger's Pogoshell Addon for the Omega, also comes preloaded with a bunch of plugins.
    Text fixes
    Changed the location of the system folders, into one big folder, called SYSTEM.
    Extra icons for Emulated ROMs and files that have working PogoShell plugins.

    Installation:
    Create a folder called SYSTEM.
    Move the following folders into there.
    RTS, SAVER, IMGS, CHEAT, PATCH
    Also copy the PLUG folder in the zip file to the SYSTEM folder.
    Install the kernel as usual.

    This package comes with the following plugins:
    The ModPlayer plugin (.mod)
    The JPEG plugin (.jpg .jpeg)
    The BMP plugin (.bmp)
    SMSAdvance (.sms .gg .sg)
    ZXAdvance (.z80 .sna)
    PCEAdvance (.pce)
    SwanAdvance (.ws .wsc)
    MSXAdvance (.rom)
    Wasabi (.sv)
    NGPAdvance (.ngp .ngc .ngpc)

    Note: MSXAdvance comes with the C-BIOS.
     

    Attached Files:

    zfreeman and Axel-MaV like this.
  5. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    Just got my omega today, and man is it awesome. However, i stumbled upon a fatal bug in your custom kernel. When a rom is written to NOR the omega will crash. I tried my own slight mod of the original kernel it worked fine. Thanks for this amazing update though.
     
    Last edited by PsxFan107, Nov 4, 2018
  6. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Strange. It works fine here.
     
  7. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    Again, the stock kernel works fine and yet yours locks up.
     
  8. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Try this one.
     

    Attached Files:

    • dev.zip
      File size:
      542 KB
      Views:
      27
  9. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    Nope. Still crashing.
     
  10. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    I got nothing, I tested it and it works fine for me.
     
  11. kuwanger

    kuwanger GBAtemp Maniac

    Member
    8
    Jul 26, 2006
    United States
    What ROM (with md5) are you writing to NOR, with what settings, and Write to NOR Clean or Write to NOR Addons?

    Edit - Also, Sterophonick would you mind including the source for your fork of my fork of the ez omega kernel? If it's on your gitlab page, I didn't see it.
     
    Last edited by kuwanger, Nov 4, 2018
  12. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    This is not rom dependent, I have tried several roms and the kernel locks up just before writing the rom to NOR. This happens with both Clean and With Addons. The strange thing is the NOR Flash works fine when I am using the stock kernel from the ezflash website.

    Also, https://gitlab.com/Sterophonick/omega-kernel

    Edit: Ok, so it turns out it's not crashing like I thought it was. I was getting confused because for whatever reason the progress indicator is not showing on the bottom of the screen like it should.
     
    Last edited by PsxFan107, Nov 4, 2018
  13. kuwanger

    kuwanger GBAtemp Maniac

    Member
    8
    Jul 26, 2006
    United States
    Thanks for the link. In any case, I found one bug (I don't think it's related). Line 1129 in ezkernel.c should be "page+=0x800;" The reason I made the change is because while nominally ROMs are loaded in 128KB blocks and page switches can occur at the maximum 8MB blocks the EZ Omega supports, if you're using an emulator that's not a multiple of 128KB (which is the norm), you could get into the situation where a 128KB block write would extend past the 8MB range (cutting off the end) and leaving a whole at the start of the next 8MB page. If you instead increment in 4MB pages (ie 0x800), you'll never run into that issue.

    Edit - I should probably throw in that the documentation the !*IMPORTANT!*.TXT is incorrect that .mb does a hard reset. It'd be nice if that were a doable thing. By the same token, it'd be neat if you supported .mb and .mbz files natively. Of course, that's really a feature request. :)
     
    Last edited by kuwanger, Nov 4, 2018
  14. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    So, to clarify, it is NOT crashing. The progress indication text is just blank after the "Checking Save Data..." text with the left edge of the C showing.


    Also, I hate to be that one guy, but I would prefer not having the psram hard reset. Would you mind telling me what needs to be changed in the source code to disable it?
     
    Last edited by PsxFan107, Nov 4, 2018
  15. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Every time that you see SetRompageWithHardReset(0x200,1), change it to SetRompageWithHardReset(0x200,key_L);
     
  16. PsxFan107

    PsxFan107 Member

    Newcomer
    1
    Apr 27, 2017
    United States
    Thanks! I hope it's possible to fix the text bug.

    Edit: I was able to fix progress text "bug". It turns out you didn't compensate for the change from white text to black text with the NOR writing text. Also, the edge of the "C" is because of a difference in the width of the new font. I was able to tweak a few things and now everything looks fine. I also hid the prompt for the NOR format (when it starts) so the progress display doesn't overlap it.
     
    Last edited by PsxFan107, Nov 7, 2018
  17. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    Update 2.0:
    Some redesign, added a new menu when you hit select, (though all you can do with it currently is toggle thumbnails), and fixed a few text bugs, like the NOR writing issue.
     

    Attached Files:

  18. kuwanger

    kuwanger GBAtemp Maniac

    Member
    8
    Jul 26, 2006
    United States
    After a lot of fiddling, I've created a new version of reset_ez4.s for the EZ Omega. The major difference is simply waiting ~5 seconds before actually doing the reset. This is important because one of the last things pocketnes, goomba, etc does is save menu settings to the SRAM, and that could lead to corruption. The solution the EZ Omega kernel does is to simply NOP out the writeconfig(), but that has the unfortunately side-effect of settings not being saved. And it still leaves users to wait the necessary time to not cause corruption.

    The reason it took me so long with fiddling is because later versions of pocketnes include built in code to do resetting for Visoly, EZ, G6, and M3 carts (there might be more). So, it turns out you need to do the waiting before issuing those magic writes (AFAIK all the relevant code is in EXWRAM/IWRAM so it's not that), so I ended up having to reorder the function calls. The oddity to me most of all is that it froze. *shrug*

    Anyways, here's the new binary and source. It only takes 16 more bytes to actually do the wait so it should fit with all the other patched plugins. I hope you find this useful.

    Edit: Patching Goomba Paletted is also a little more complicated because it supports ez4 reset built in. So, I just overwrote the last 16 bytes before the return address in visoly's init_flashcart function since that's really otherwise pretty much a dummy function.
     

    Attached Files:

    Last edited by kuwanger, Dec 2, 2018
  19. mitch200584

    mitch200584 Member

    Newcomer
    2
    Jul 21, 2018
    United States
    So does this firmware allow for SMS & GG games to be played natively?
     
  20. Sterophonick
    OP

    Sterophonick Advanced Member

    Newcomer
    2
    Jul 17, 2018
    United States
    My Laptop XD
    If you have the SYSTEM folder set up, yes.
     
Loading...