R4i Christmas hbmenu bootstub v1.0
==================================

This hack is copyleft (>) 2010 fincs.
Original work extended by Trini.

This hack contains the hbmenu bootloader which is under
 the GPLv2 (see source/bootloader/COPYING for information).

1. Contents of the package
--------------------------

R4.dat       - Main hbmenu loader payload
_DS_MENU.DAT - Stripped down mystery file (it previously contained
               code ripped off commercial ROMs that wasn't even read)
_BOOT_DS.NDS - HomebrewMenu (from devkitPro.org)
ttio.dldi    - TTDSi DLDI driver (this card is based on it)

Source structure:
source/payload      - bootloader (see top for copyright)
source/arm7         - ARM7 payload source code
source/arm9         - ARM9 payload source code
source/strap        - Clean ROM creator course code
bin		    - precompiled creator, loaders and payload
R4_dirty            - original R4i menu files (few versions tested)
R4_clean            - precompiled replacedment bootstrap binary

2. How to use
-------------

- Format the SD card.
- Copy the R4_clean/R4.dat file to the SD card.
- Rename the NDS ROM you want to boot to _BOOT_DS.NDS and copy to root of SD card.
- Enjoy your piracy-free R4i knockoff!

3. DLDI
-------
This has been tested on the following cards:
R4I-SDHC - www.r4i-sdhc.com
R4I-SDHC - www.r4isdhc.com

This card is based on the TTDSi hardware.
If you ever need a DLDI driver for this card you can use
the standard TTDS DLDI driver (provided in this package).

4. How to build from source
---------------------------

- Build source/arm9, source/arm7 and source/payload.
- Run r4istrap.exe
- That's it.

4.1 Bootloader
--------------

If you ever need to edit the bootloader you also have
to perform the following additional steps:

- DLDI patch the bootloader using ttio.dldi.
- Edit arm9.s line 11 and rebuild:
  num_sect: .word PLACENUMBERHERE

5.0 Todo list
-------------
- Figure out the magic bytes to get rid of them (another watermark?)
- Possible that the sector mangling is algorithmic...decryptor/ encryptor?
