SNES Classic mod, adding SD/MMC Help needed

Discussion in 'Modding and Hacking - Consoles and Electronics' started by FrenchyToasty, Oct 9, 2017.

  1. FrenchyToasty

    FrenchyToasty Rising Member

    Joined:
    Dec 5, 2014
    Messages:
    50
    Likes Received:
    6
    So this Guy on twitter posted the wollowing
    https://twitter.com/nvsofts/status/917278643763556352

    his post basically says, for people who want to ad SD/MMC to their SNES mini.

    he marked the solder points
    PB1
    PB2
    PF0
    PF1
    PF2
    PF3
    PF4
    PF5

    I'd like some pointers on to what these should be soldered? directly to the SD card? no schematic of SD card label pins like this.

    Thanks in advance!
     
  2. networkingyuppy

    networkingyuppy Newly Registered

    Joined:
    Jul 9, 2017
    Messages:
    1
    Likes Received:
    0
  3. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    1,777
    Likes Received:
    363
    They are the signal names used on the Allwinner R16.

    Looks like PF0-PF5 are the ones used for the SD controller

    PF0 - SDC0-D1
    PF1 - SDC0-D0
    PF2 - SDC0-CLK
    PF3 - SDC0-CMD
    PF4 - SDC0-D3
    PF5 - SDC0-D2

    The table is on page 19 of the V1.4 R16 datasheet

    It also looks like they need to be enabled in software, since they default to JTAG on power up.

    PB1 and PB2 are UART signals, but also disabled on power up.
     
  4. djelaba

    djelaba Benzin !, Site Supporter 2013

    Joined:
    May 12, 2005
    Messages:
    251
    Likes Received:
    12
    You have to change the FEX file to enable SD mode.
     
  5. GoodTofuFriday

    GoodTofuFriday Site Supporter 2015,2016,2017

    Joined:
    Sep 2, 2013
    Messages:
    461
    Likes Received:
    128
    What if i dunped the nand, and wrote its contents to a larger one. Do you know if the system would auto detect the additional space?
     
  6. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    1,777
    Likes Received:
    363
    Hard to say without knowing the details of the system, but based on general embedded systems practice I would think not - normally stuff like flash and RAM sizes is set in one of the bootloaders.
     
  7. djelaba

    djelaba Benzin !, Site Supporter 2013

    Joined:
    May 12, 2005
    Messages:
    251
    Likes Received:
    12
    On Allwinner devices, the NAND is partitioned during the flash. The partition layout is defined in other fex files, like this one.
    The best thing to do is to rebuild the entire filesystem yourself, using sd boot card.
     
  8. GoodTofuFriday

    GoodTofuFriday Site Supporter 2015,2016,2017

    Joined:
    Sep 2, 2013
    Messages:
    461
    Likes Received:
    128
    That would unfortunately be outside of my ability.
    If its partitioned during flash, would simply reflashing the kernal be enough?

    If not I'll need to look for help
     
  9. rso

    rso Not a member. You're imagining things.

    Joined:
    Mar 26, 2010
    Messages:
    2,094
    Likes Received:
    382
    "kernal"? This ain't no C64. It's called a "kernel" everywhere else.

    And no, the partition info is not inside the kernel, but in another file - namely script.bin, which was created from a fex file. You want to grab the sunxi-tools, convert script.bin back to fex, update the partition info, make a new script.bin, then use that.
     
    GoodTofuFriday likes this.
  10. djelaba

    djelaba Benzin !, Site Supporter 2013

    Joined:
    May 12, 2005
    Messages:
    251
    Likes Received:
    12
    The partition info is not on the same fex file you are talking about. Script.bin is a pseudo device tree for Allwinner devices.
    Updating the partition info has to be done through reflashing. Livesuit/Phoenixsuit is the tool which does that.
     
  11. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,531
    Likes Received:
    255
    be old school, stack the tsop chips!!
    lol probably a messy solution
     
  12. FrenchyToasty

    FrenchyToasty Rising Member

    Joined:
    Dec 5, 2014
    Messages:
    50
    Likes Received:
    6
    hopefully more people will need this and we get implementation into hakchi2 and then we can solder our memory add-on insinde of it.
     
    awesomeNES likes this.

Share This Page