From 2a77d3a35e002f157f573dbba64c7d57f4af3e2c Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 28 Jan 2005 13:27:58 +0000 Subject: [PATCH] Cleaning up git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5697 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bootloader/main.c b/bootloader/main.c index 5cc2edad2e..0a18bed9ec 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -63,7 +63,7 @@ int load_firmware(void) unsigned char *buf = (unsigned char *)0x30000000; char str[80]; - fd = open("/rockbox.bin", O_RDONLY); + fd = open("/rockbox.iriver", O_RDONLY); if(fd < 0) return -1; @@ -73,7 +73,7 @@ int load_firmware(void) lcd_puts(0, line++, str); lcd_update(); - lseek(fd, 0, SEEK_SET); + lseek(fd, FIRMWARE_OFFSET_FILE_CRC, SEEK_SET); rc = read(fd, &chksum, 4); if(rc < 4) @@ -83,7 +83,7 @@ int load_firmware(void) lcd_puts(0, line++, str); lcd_update(); - lseek(fd, 4, SEEK_CUR); + lseek(fd, FIRMWARE_OFFSET_FILE_DATA, SEEK_SET); rc = read(fd, buf, len); if(rc < len) @@ -139,7 +139,7 @@ int main(void) sleep(HZ/10); /* Allow the button driver to check the buttons */ if(button_status() & BUTTON_REC) { - lcd_puts(0, 8, "Ninjax"); + lcd_puts(0, 8, "Starting original firmware..."); lcd_update(); sleep(HZ); start_iriver_fw(); @@ -148,8 +148,6 @@ int main(void) GPIO_FUNCTION |= 0x40000040; GPIO1_FUNCTION |= 0x00000062; - GPIO1_ENABLE |= 0x00000000; - IDECONFIG1 = 0x00107000; IDECONFIG2 = 0x00040000;