1. pistone

    pistone GBAtemp Advanced Fan
    Member

    Joined:
    Feb 18, 2010
    Messages:
    507
    Country:
    Albania
    done it now it shows up
    Code:
    sh: 1: del: not found
    source/bootloader.s: Assembler messages:
    source/bootloader.s:7: Error: junk at end of line, first unrecognized character is `/'
    sh: 1: xcopy: not found
    arm-none-eabi-ld: cannot find bootloader.o
    sh: 1: copy: not found
    arm-none-eabi-objcopy: 'a.out': No such file
    sh: 1: /home/p3rand0r/Desktop/nintendo3ds/3DS_Homebrew_Stuff2-masterlibp3ds3dsploit.py: not found
    sh: 1: del: not found
    sh: 1: del: not found
    sh: 1: del: not found
    
    i think i may have a install a virtual machine with xp on it :(
     
    Snailface likes this.
  2. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:
    Another thing I see is (look at the bold part):
    sh: 1: /home/p3rand0r/Desktop/nintendo3ds/3DS_Homebrew_Stuff2-master_Missing"/"_libp3ds_Missing"/"_3dsploit.py: not found
     
  3. justinkb

    justinkb GBAtemp Advanced Fan
    Member

    Joined:
    Oct 7, 2012
    Messages:
    619
    Country:
    Netherlands
    Interesting stuff, I may try messing around with this. Not running anyone else's code tho, unless I have a way to unbrick.
     
  4. gamesquest1

    gamesquest1 Nabnut
    Moderator

    Joined:
    Sep 23, 2013
    Messages:
    15,053
    Yeah the whole bricking fiasco has kinda made me a bit paranoid in terms of homebrew, no offence to the coders, I don't actually think this is advanced enough yet for doing the level of damage the brick code does.....but you can't be too careful :ph34r:
     
  5. TheCruel

    TheCruel Developer
    Banned

    Joined:
    Dec 6, 2013
    Messages:
    1,350
    Country:
    United States

    OMG fffffff, my 3DS exploded!

    ;)

    Well, my compiler exploded since it seems you probably didn't update the git repo with your latest files.

    For instance: https://github.com/nop90/3DS_Homebrew/blob/master/HID.h

    Code:
    ifndef HID_H
    #define MEMORY_H
    Looks like a quick copy & paste from memory.h lol and forgot the #

    Also, you changed the names of some of your constants:

    Code:
    src/draw.c:59:10: error: 'BOTTOM_FRAME0' undeclared
    Thanks a lot though, I'm toying with it right now. But I'm also struggling to figure other things out. Where did you get the addresses for your framebuffers? I'm looking at the 3dsbrew.org documentation and I'm not seeing some of these things.
     
  6. Abcdfv

    Abcdfv What comes around goes around.
    Member

    Joined:
    Dec 24, 2013
    Messages:
    1,459
    Country:
    United States

    http://3dbrew.org/wiki/LCD#Framebuffers
    http://3dbrew.org/wiki/GPU
    http://3dbrew.org/wiki/IO
    http://3dbrew.org/wiki/PXI

    I think some more 3dsBrew links should be in the main page as we learn more about what information is useful.
     
    Cyberdrive likes this.
  7. TheCruel

    TheCruel Developer
    Banned

    Joined:
    Dec 6, 2013
    Messages:
    1,350
    Country:
    United States
    Yeah, but what I meant was that the information wasn't anywhere on 3dsbrew. His addresses are different than the ones documented. He has these address:

    Code:
    #define TOP_LEFT_FRAME1 0x20184E60
    #define TOP_LEFT_FRAME2 0x201CB370
    #define TOP_RIGHT_FRAME1 0x20282160 
    #define TOP_RIGHT_FRAME2 0x202C8670
    #define BOTTOM_FRAME1 0x202118E0
    #define BOTTOM_FRAME2 539039968
    Is there a base address that is offsetting these or something?
     
  8. Abcdfv

    Abcdfv What comes around goes around.
    Member

    Joined:
    Dec 24, 2013
    Messages:
    1,459
    Country:
    United States
    From the "Python Tools for 3DS" thread.

     
  9. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:
    (I think what 3dbrew shows is the registers that give the addresses not the addresses themselves. Those addresses are correct though except the last one)

    Sort of unrelated to your question but noteworthy:
    There is a bug in the paint_pixel function that is causing it to draw 3 bytes past the addresses.

    as it is:
    int coord = 720 * x + 720 - (y * 3);
    as it should be:
    int coord = 720 * x + 720 - (3*y+3);

    Also the BOTTOM_FRAME1 frame address is the same as BOTTOM_FRAME2 address.
    BOTTOM_FRAME2 should read:
    0x20249CF0
     
  10. tomiga

    tomiga GBAtemp Regular
    Member

    Joined:
    Dec 4, 2013
    Messages:
    125
    Country:
    United States
    Nice job nop90, works perfectly on my 3DS (after formatting it twice because the ROP loader is bugged...). Also shows some nice starting points for 3D rendering.
     
  11. aliak11

    OP aliak11 Pokemon Master
    Member

    Joined:
    Dec 5, 2010
    Messages:
    195
    Country:
    United States

    How are you finding the addresses?
     
  12. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:
    From other people smarter than me. :P

    I figured the BOTTOM_FRAME2 address by just adding (240*320*3 bytes)+16 to the previous framebuffer. Same pattern as the others. Then I test them to make sure no grey dots on the corners or wrong overall colors, both of which signify an incorrect framebuffer address.
     
    Cyberdrive likes this.
  13. nop90

    nop90 GBAtemp Advanced Maniac
    Member

    Joined:
    Jan 11, 2014
    Messages:
    1,556
    Country:
    Italy
    Some of the file on github wasn't updated. Sorry, I uploaded them at late night (in Italy) after a hard working day.

    Now they are ok (I compiled them and checked on the 3DS).

     
  14. T3GZdev

    T3GZdev head of T3GZdev
    Member

    Joined:
    Apr 21, 2010
    Messages:
    1,034
    Country:
    United States
    so which github has the best version for a standard one? or newest. i seen snailface, insancekane, nop90, aliak11 & i think a few others. currently using snailface's latest one.
     
  15. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:
    I think nop90's version is the best tbo -- its very extensive and even has controller support. You might want to take his source's and combine them with my latest build environment (haven't updated my github yet):
    http://gbatemp.net/threads/homebrew-development.360646/page-3#post-4889201
     
  16. T3GZdev

    T3GZdev head of T3GZdev
    Member

    Joined:
    Apr 21, 2010
    Messages:
    1,034
    Country:
    United States
    when i try to compile im getting word_write & multiple definitions of a few things
     
  17. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:
    I would completely erase all my source files before putting his in or there will certainly be redefinition errors. leave bootloader.s though.
     
  18. T3GZdev

    T3GZdev head of T3GZdev
    Member

    Joined:
    Apr 21, 2010
    Messages:
    1,034
    Country:
    United States
  19. Snailface

    Snailface My frothing demand for 3ds homebrew is increasing
    Member

    Joined:
    Sep 20, 2010
    Messages:
    4,324
    Country:

    Attached Files:

  20. nop90

    nop90 GBAtemp Advanced Maniac
    Member

    Joined:
    Jan 11, 2014
    Messages:
    1,556
    Country:
    Italy
    None is better or standard at the moment. I'm studing the GPU and as soon as I'll learn how to make GPU command calls, I'll change all the drawing functions.

    Not to say that I used other people code and made some change.Other people will do the same with mine. Slowly ther will be something like the libnds for writing standard code without thinking at the low level things.

    I like playing with low level programming, that's why I'm expering with 3ds and not coding on DS or Android.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Development, Homebrew,