| Index: apps/installer-ipodnano2g/flashfiles |
| Property changes on: apps/installer-ipodnano2g/flashfiles |
| ___________________________________________________________________ |
| Modified: svn:ignore |
| ## -10,3 +10,6 ## |
| 1 | 1 | rockbox.png |
| 2 | 2 | ui.emcorelib |
| 3 | 3 | umsboot-ipodnano2g.ucl |
| | 4 | +rockbox.ipod.ucl |
| | 5 | +mkfat32.emcorelib |
| | 6 | +uninstaller-ipodnano2g.emcoreapp |
| Index: apps/installer-ipodnano2g/main.c |
| — | — | @@ -27,7 +27,8 @@ |
| 28 | 28 |
|
| 29 | 29 |
|
| 30 | 30 | #define STRINGIFY(x) #x
|
| 31 | | -#define BOOTNOTE_FILENAME "/Notes/" STRINGIFY(BASENAME) ".bootnote"
|
| | 31 | +#define STR(x) STRINGIFY(x)
|
| | 32 | +#define BOOTNOTE_FILENAME "/Notes/" STR(BASENAME) ".bootnote"
|
| 32 | 33 |
|
| 33 | 34 |
|
| 34 | 35 | void main();
|
| — | — | @@ -283,7 +284,7 @@ |
| 284 | 285 | ((uint16_t*)buf1)[0x18] = 1;
|
| 285 | 286 | ((uint8_t*)buf1)[0x40] = 0x80;
|
| 286 | 287 | ((uint8_t*)buf1)[0x42] = 0x29;
|
| 287 | | - if (!fat32_ok) memcpy(&((uint8_t*)buf1)[0x43], "\0\0\0\0iPod Nano ", 0xf);
|
| | 288 | + if (!fat32_ok) memcpy(&((uint8_t*)buf1)[0x43], "\0\0\0\0iPod Nano2G", 0xf);
|
| 288 | 289 | else memcpy(&((uint8_t*)buf1)[0x43], &((uint8_t*)buf2)[0x43], 0xf);
|
| 289 | 290 | memcpy(&((uint8_t*)buf1)[0x52], "FAT32 ", 8);
|
| 290 | 291 | ((uint16_t*)buf1)[0xff] = 0xaa55;
|
| — | — | @@ -391,7 +392,7 @@ |
| 392 | 393 | for (i = 0; i < fat32_secperclus; i++)
|
| 393 | 394 | {
|
| 394 | 395 | memset(buf1, 0, 0x800);
|
| 395 | | - if (!i) memcpy(buf1, "iPod Nano \x08", 12);
|
| | 396 | + if (!i) memcpy(buf1, "iPod Nano2G\x08", 12);
|
| 396 | 397 | if (storage_write_sectors_md(0, database + i, 1, buf1))
|
| 397 | 398 | {
|
| 398 | 399 | free(buf1);
|
| — | — | @@ -748,7 +749,8 @@ |
| 749 | 750 | sleep(500000);
|
| 750 | 751 | ui->blenda(160, 60, 255, framebuf, 0, 0, 160,
|
| 751 | 752 | darkened, 8, 27, 176, disclaimer, 0, 550, 160);
|
| 752 | | - displaylcd(8, 27, 160, 91, framebuf, 0, 0, 160);
|
| | 753 | + displaylcd(8, 27, 160, 60, framebuf, 0, 0, 160);
|
| | 754 | + displaylcd(8, 87, 160, 31, darkened, 8, 87, 176);
|
| 753 | 755 | button = 0;
|
| 754 | 756 | while (!button) wakeup_wait(&eventwakeup, TIMEOUT_BLOCK);
|
| 755 | 757 | memcpy((void*)0x2202bf00, "diskmodehotstuff\1\0\0", 20);
|
| — | — | @@ -765,7 +767,8 @@ |
| 766 | 768 | {
|
| 767 | 769 | ui->blenda(160, 80, 255, framebuf, 0, 0, 160,
|
| 768 | 770 | darkened, 8, 27, 176, disclaimer, 0, 470, 160);
|
| 769 | | - displaylcd(8, 27, 160, 91, framebuf, 0, 0, 160);
|
| | 771 | + displaylcd(8, 27, 160, 80, framebuf, 0, 0, 160);
|
| | 772 | + displaylcd(8, 107, 160, 11, darkened, 8, 107, 176);
|
| 770 | 773 |
|
| 771 | 774 | button = 0;
|
| 772 | 775 | struct button_hook_entry* hook = button_register_handler(handler, NULL);
|
| — | — | @@ -786,7 +789,8 @@ |
| 787 | 790 | sleep(500000);
|
| 788 | 791 | ui->blenda(160, 60, 255, framebuf, 0, 0, 160,
|
| 789 | 792 | darkened, 8, 27, 176, disclaimer, 0, 550, 160);
|
| 790 | | - displaylcd(8, 27, 160, 91, framebuf, 0, 0, 160);
|
| | 793 | + displaylcd(8, 27, 160, 60, framebuf, 0, 0, 160);
|
| | 794 | + displaylcd(8, 87, 160, 31, darkened, 8, 87, 176);
|
| 791 | 795 | button = 0;
|
| 792 | 796 | while (!button) wakeup_wait(&eventwakeup, TIMEOUT_BLOCK);
|
| 793 | 797 | memcpy((void*)0x2202bf00, "diskmodehotstuff\1\0\0", 20);
|
| — | — | @@ -800,9 +804,10 @@ |
| 801 | 805 | }
|
| 802 | 806 | else if (fat32_startsector)
|
| 803 | 807 | {
|
| 804 | | - ui->blenda(160, 70, 255, framebuf, 0, 0, 160,
|
| 805 | | - darkened, 8, 27, 176, disclaimer, 0, 400, 160);
|
| 806 | | - displaylcd(8, 27, 160, 91, framebuf, 0, 0, 160);
|
| | 808 | + ui->blenda(130, 70, 255, framebuf, 0, 0, 130,
|
| | 809 | + darkened, 23, 27, 176, disclaimer, 0, 400, 160);
|
| | 810 | + displaylcd(8, 27, 160, 91, darkened, 8, 27, 176);
|
| | 811 | + displaylcd(23, 27, 130, 70, framebuf, 0, 0, 130);
|
| 807 | 812 |
|
| 808 | 813 | button = 0;
|
| 809 | 814 | struct button_hook_entry* hook = button_register_handler(handler, NULL);
|
| Index: apps/installer-ipodnano2g/resources.S |
| — | — | @@ -115,6 +115,22 @@ |
| 116 | 116 | .byte 0
|
| 117 | 117 | .byte 0
|
| 118 | 118 | .byte 1
|
| | 119 | +.word f_mkfat32_emcorelib
|
| | 120 | +.word f_mkfat32_emcorelib_end - f_mkfat32_emcorelib
|
| | 121 | +.ascii "libmkf32"
|
| | 122 | +
|
| | 123 | +.byte 0
|
| | 124 | +.byte 0
|
| | 125 | +.byte 0
|
| | 126 | +.byte 1
|
| | 127 | +.word f_uninstaller_ipodnano2g_emcoreapp
|
| | 128 | +.word f_uninstaller_ipodnano2g_emcoreapp_end - f_uninstaller_ipodnano2g_emcoreapp
|
| | 129 | +.ascii "uninst "
|
| | 130 | +
|
| | 131 | +.byte 0
|
| | 132 | +.byte 0
|
| | 133 | +.byte 0
|
| | 134 | +.byte 1
|
| 119 | 135 | .word f_bootmenu_ipodnano2g_emcoreapp
|
| 120 | 136 | .word f_bootmenu_ipodnano2g_emcoreapp_end - f_bootmenu_ipodnano2g_emcoreapp
|
| 121 | 137 | .ascii "bootmenu"
|
| — | — | @@ -151,17 +167,23 @@ |
| 152 | 168 | .word f_crapple_png_end - f_crapple_png
|
| 153 | 169 | .ascii "crapple "
|
| 154 | 170 |
|
| | 171 | +.byte 0
|
| | 172 | +.byte 2
|
| | 173 | +.byte 0
|
| | 174 | +.byte 1
|
| | 175 | +.word f_rockbox_ipod_ucl
|
| | 176 | +.word f_rockbox_ipod_ucl_end - f_rockbox_ipod_ucl
|
| | 177 | +.ascii "rockbox "
|
| | 178 | +
|
| 155 | 179 | .word 0
|
| 156 | 180 |
|
| 157 | 181 |
|
| 158 | 182 | firstinstcost:
|
| | 183 | +.word 11
|
| | 184 | +commoncost:
|
| 159 | 185 | .word 0
|
| | 186 | +
|
| 160 | 187 | firstinstscript:
|
| 161 | | -.word 0
|
| 162 | | -
|
| 163 | | -commoncost:
|
| 164 | | -.word 11
|
| 165 | | -commonscript:
|
| 166 | 188 | .word 1
|
| 167 | 189 | .word boot_dirname
|
| 168 | 190 | .word 1
|
| — | — | @@ -170,6 +192,7 @@ |
| 171 | 193 | .word 0xffffffff
|
| 172 | 194 | .word 0
|
| 173 | 195 | .word 10
|
| | 196 | +commonscript:
|
| 174 | 197 | .word 0
|
| 175 | 198 |
|
| 176 | 199 |
|
| — | — | @@ -231,6 +254,16 @@ |
| 232 | 255 | f_ui_emcorelib_end:
|
| 233 | 256 |
|
| 234 | 257 | .align 4
|
| | 258 | +f_mkfat32_emcorelib:
|
| | 259 | +.incbin "flashfiles/mkfat32.emcorelib"
|
| | 260 | +f_mkfat32_emcorelib_end:
|
| | 261 | +
|
| | 262 | +.align 4
|
| | 263 | +f_uninstaller_ipodnano2g_emcoreapp:
|
| | 264 | +.incbin "flashfiles/uninstaller-ipodnano2g.emcoreapp"
|
| | 265 | +f_uninstaller_ipodnano2g_emcoreapp_end:
|
| | 266 | +
|
| | 267 | +.align 4
|
| 235 | 268 | f_bootmenu_ipodnano2g_emcoreapp:
|
| 236 | 269 | .incbin "flashfiles/bootmenu-ipodnano2g.emcoreapp"
|
| 237 | 270 | f_bootmenu_ipodnano2g_emcoreapp_end:
|
| — | — | @@ -241,6 +274,11 @@ |
| 242 | 275 | f_umsboot_ipodnano2g_ucl_end:
|
| 243 | 276 |
|
| 244 | 277 | .align 4
|
| | 278 | +f_rockbox_ipod_ucl:
|
| | 279 | +.incbin "flashfiles/rockbox.ipod.ucl"
|
| | 280 | +f_rockbox_ipod_ucl_end:
|
| | 281 | +
|
| | 282 | +.align 4
|
| 245 | 283 | f_emcore_ipodnano2g_ucl:
|
| 246 | 284 | .incbin "flashfiles/emcore-ipodnano2g.ucl"
|
| 247 | 285 | f_emcore_ipodnano2g_ucl_end:
|
| Index: apps/installer-ipodnano2g/Makefile |
| — | — | @@ -5,17 +5,20 @@ |
| 6 | 6 | FATNAME ?= INSTAL~1BOO
|
| 7 | 7 |
|
| 8 | 8 | EMCOREDIR ?= ../../emcore/trunk/
|
| | 9 | +UNINSTDIR ?= ../uninstaller-ipodnano2g/
|
| 9 | 10 | BOOTMENUDIR ?= ../bootmenu-ipodnano2g/
|
| 10 | 11 | LIBBOOTDIR ?= ../../libs/boot/
|
| 11 | 12 | LIBPNGDIR ?= ../../libs/png/
|
| 12 | 13 | LIBUIDIR ?= ../../libs/ui/
|
| | 14 | +LIBMKFAT32DIR ?= ../../libs/mkfat32/
|
| 13 | 15 | UMSBOOTDIR ?= ../../umsboot/
|
| 14 | 16 | NOTEBOOTDIR ?= ../../noteboot/
|
| 15 | 17 | TOOLSDIR ?= ../../tools/
|
| 16 | 18 |
|
| 17 | | -FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib flashfiles/crapple.png \
|
| 18 | | - flashfiles/bootmenu-ipodnano2g.emcoreapp flashfiles/background.png flashfiles/icons.png flashfiles/rockbox.png \
|
| 19 | | - flashfiles/emcoreldr-ipodnano2g.dfu flashfiles/emcore-ipodnano2g.ucl flashfiles/umsboot-ipodnano2g.ucl
|
| | 19 | +FLASHFILES = flashfiles/boot.emcorelib flashfiles/png.emcorelib flashfiles/ui.emcorelib flashfiles/mkfat32.emcorelib \
|
| | 20 | + flashfiles/crapple.png flashfiles/uninstaller-ipodnano2g.emcoreapp flashfiles/bootmenu-ipodnano2g.emcoreapp \
|
| | 21 | + flashfiles/background.png flashfiles/icons.png flashfiles/rockbox.png flashfiles/emcoreldr-ipodnano2g.dfu \
|
| | 22 | + flashfiles/emcore-ipodnano2g.ucl flashfiles/umsboot-ipodnano2g.ucl
|
| 20 | 23 |
|
| 21 | 24 | ifeq ($(shell uname),WindowsNT)
|
| 22 | 25 | CCACHE :=
|
| — | — | @@ -43,7 +46,7 @@ |
| 44 | 47 | LDFLAGS += "$(shell $(CC) -print-libgcc-file-name)" --emit-relocs --gc-sections
|
| 45 | 48 |
|
| 46 | 49 | preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#")
|
| 47 | | -preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:")
|
| | 50 | +preprocesspaths = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c $(1) | grep -v "^\#" | sed -e "s:^..*:$(dir $(1))&:" | sed -e "s:^\\./::")
|
| 48 | 51 |
|
| 49 | 52 | REVISION := $(shell svnversion .)
|
| 50 | 53 | REVISIONINT := $(shell echo $(REVISION) | sed -e "s/[^0-9].*$$//")
|
| — | — | @@ -191,6 +194,12 @@ |
| 192 | 195 | @echo [CP] $@
|
| 193 | 196 | @cp $< $@
|
| 194 | 197 |
|
| | 198 | +$(LIBMKFAT32DIR)/build/mkfat32.emcorelib: libmkfat32
|
| | 199 | +
|
| | 200 | +flashfiles/mkfat32.emcorelib: $(LIBMKFAT32DIR)/build/mkfat32.emcorelib libmkfat32
|
| | 201 | + @echo [CP] $@
|
| | 202 | + @cp $< $@
|
| | 203 | +
|
| 195 | 204 | $(UMSBOOTDIR)/build/ipodnano2g/umsboot-ipodnano2g.ucl: umsboot
|
| 196 | 205 |
|
| 197 | 206 | flashfiles/umsboot-ipodnano2g.ucl: $(UMSBOOTDIR)/build/ipodnano2g/umsboot-ipodnano2g.ucl umsboot
|
| — | — | @@ -197,6 +206,12 @@ |
| 198 | 207 | @echo [CP] $@
|
| 199 | 208 | @cp $< $@
|
| 200 | 209 |
|
| | 210 | +$(UNINSTDIR)/build/uninstaller-ipodnano2g.emcoreapp: uninstaller-ipodnano2g
|
| | 211 | +
|
| | 212 | +flashfiles/uninstaller-ipodnano2g.emcoreapp: $(UNINSTDIR)/build/uninstaller-ipodnano2g.emcoreapp uninstaller-ipodnano2g
|
| | 213 | + @echo [CP] $@
|
| | 214 | + @cp $< $@
|
| | 215 | +
|
| 201 | 216 | $(BOOTMENUDIR)/build/bootmenu-ipodnano2g.emcoreapp: bootmenu-ipodnano2g
|
| 202 | 217 |
|
| 203 | 218 | flashfiles/bootmenu-ipodnano2g.emcoreapp: $(BOOTMENUDIR)/build/bootmenu-ipodnano2g.emcoreapp bootmenu-ipodnano2g
|
| — | — | @@ -241,6 +256,9 @@ |
| 242 | 257 | emcoreldr-ipodnano2g:
|
| 243 | 258 | @make -C $(EMCOREDIR)/loader/ipodnano2g
|
| 244 | 259 |
|
| | 260 | +uninstaller-ipodnano2g:
|
| | 261 | + @make -C $(UNINSTDIR)
|
| | 262 | +
|
| 245 | 263 | bootmenu-ipodnano2g:
|
| 246 | 264 | @make -C $(BOOTMENUDIR)
|
| 247 | 265 |
|
| — | — | @@ -253,6 +271,9 @@ |
| 254 | 272 | libui:
|
| 255 | 273 | @make -C $(LIBUIDIR)
|
| 256 | 274 |
|
| | 275 | +libmkfat32:
|
| | 276 | + @make -C $(LIBMKFAT32DIR)
|
| | 277 | +
|
| 257 | 278 | umsboot:
|
| 258 | 279 | @make -C $(UMSBOOTDIR) ipodnano2g
|
| 259 | 280 |
|
| — | — | @@ -259,4 +280,4 @@ |
| 260 | 281 | clean:
|
| 261 | 282 | @rm -rf build
|
| 262 | 283 |
|
| 263 | | -.PHONY: all clean emcore emcoreldr-ipodnano2g bootmenu-ipodnano2g libboot libpng libui umsboot libucl flashfiles $(NAME)
|
| | 284 | +.PHONY: all clean emcore emcoreldr-ipodnano2g bootmenu-ipodnano2g uninstaller-ipodnano2g libboot libpng libui libmkfat32 umsboot libucl flashfiles $(NAME)
|