1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 by Greg White
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
35 #include "backlight.h"
36 #include "backlight-target.h"
42 #include "rbunicode.h"
44 #include "mmu-imx31.h"
45 #include "lcd-target.h"
46 #include "avic-imx31.h"
49 char version
[] = APPSVERSION
;
54 printf("Hello world!");
55 printf("Gigabeat S Rockbox Bootloader v.00000001");
68 rc
= disk_mount_all();
74 printf("Congratulations!");
78 printf("Loading firmware");
80 loadbuffer
= (unsigned char*) 0x100;
81 buffer_size
= (unsigned char*)0x400000 - loadbuffer
;
83 rc
= load_firmware(loadbuffer
, BOOTFILE
, buffer_size
);
89 kernel_entry
= (void*) loadbuffer
;