From c5d7cd5f9f4712150957143efc7cf797495c081d Mon Sep 17 00:00:00 2001 From: James Buren Date: Mon, 26 Oct 2020 01:37:14 +0000 Subject: h300: add support for ROM image generation Change-Id: I6e0985de370609bae98ba6eab487bf43eb4191b6 --- firmware/export/config/iriverh300.h | 2 +- firmware/rom.lds | 7 +++++++ tools/configure | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h index ca0df7217e..f901f160c6 100644 --- a/firmware/export/config/iriverh300.h +++ b/firmware/export/config/iriverh300.h @@ -189,7 +189,7 @@ #define BOOTLOADER_ENTRYPOINT 0x003F0000 #define FLASH_RAMIMAGE_ENTRY 0x00001000 -#define FLASH_ROMIMAGE_ENTRY 0x00100000 +#define FLASH_ROMIMAGE_ENTRY 0x00200000 #define FLASH_MAGIC 0xfbfbfbf1 /* Define this if there is an EEPROM chip */ diff --git a/firmware/rom.lds b/firmware/rom.lds index c75a9c409b..48dc30f857 100644 --- a/firmware/rom.lds +++ b/firmware/rom.lds @@ -29,6 +29,13 @@ STARTUP(target/arm/crt0.o) #define IRAMSIZE 0xc000 #define FLASHORIG 0x00100028 #define FLASHSIZE 0x000eff80 +#elif defined(IRIVER_H300_SERIES) +#define CODECSIZE CODEC_SIZE +#define DRAMORIG 0x31000000 +#define IRAMORIG 0x10000000 +#define IRAMSIZE 0xc000 +#define FLASHORIG 0x00200028 +#define FLASHSIZE 0x001eff80 #else #define DRAMORIG 0x09000000 #define IRAMORIG 0x0f000000 diff --git a/tools/configure b/tools/configure index aef02b2b75..33e323bc7e 100755 --- a/tools/configure +++ b/tools/configure @@ -1684,7 +1684,9 @@ fi bmp2rb_remotemono="$rootdir/tools/bmp2rb -f 0" bmp2rb_remotenative="$rootdir/tools/bmp2rb -f 0" output="rockbox.iriver" + bootoutput="bootloader.iriver" appextra="recorder:gui:radio" + flash="$pwd/rombox.iriver" plugins="yes" # toolset is the tools within the tools directory that we build for # this particular target. -- cgit