Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling a bootloader for a Gigabeat F40?
« previous next »
  • Print
Pages: [1]

Author Topic: Compiling a bootloader for a Gigabeat F40?  (Read 2384 times)

Offline theglades00

  • Member
  • *
  • Posts: 5
Compiling a bootloader for a Gigabeat F40?
« on: May 26, 2008, 01:22:08 PM »
I'd like to compile a bootloader for an f40 but Cygwin returns errors. Are there instructions for compiling a bootloader somewhere on the site (I couldn't find any)?
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #1 on: May 26, 2008, 01:26:19 PM »
Compiling a bootloader should be just like compiling a regular build but selecting bootloader in configure. If you are using svn make sure you have checked out the bootloader dir of the source tree. If that doesn't help, please post detailed error messages as it is quite difficult to know what problem you have otherwise.
Logged

Offline theglades00

  • Member
  • *
  • Posts: 5
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #2 on: May 26, 2008, 02:37:03 PM »
When I create a makefile it outputs:
../tools/configure: line 1868: arm-elf-gcc: command not found
../tools/configure: line 1872: arm-elf-ld: command not found
WARNING: The compiler you must use <arm-elf-gcc> is not in your path!
WARNING: this may cause your build to fail since we cannot do the checks WARNING: we want now.
Using arm-elf-ld
Created Makefile

It does create a makefile but when I try to make, the output is:
gcc -O -g -W -Wall -Wshadow -pedantic rdf2binary.c -o rdf2binary
/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
make[1]: *** [rdf2binary] Error 1
make: *** [tools] Error 2
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #3 on: May 26, 2008, 02:41:51 PM »
Did you follow the guide in the wiki? and did you complete _all_the steps and install _all_ the packages that it says you need?
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #4 on: May 26, 2008, 05:01:52 PM »
and assuming you ran rockboxdev.sh to build the crss compilers as the instructions say, did you add the necessary items to your path as instructed at the end?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline theglades00

  • Member
  • *
  • Posts: 5
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #5 on: May 26, 2008, 07:32:01 PM »
I checked the rockbox components of cygwin and they hadn't installed. Everything's working fine now. Thanks for the direction.

Now I can build but the bootloader doesn't work.   :(
When I boot the gigabeat logo shows and the progress bar gets about halfway across the screen.  The progress bar stalls and static begins to appear which then fades to white.  I'm using the source code from the daily builds page.
Any ideas as to why the bootloader doesn't build correctly or where there are files that build correctly?
« Last Edit: May 26, 2008, 08:38:23 PM by theglades00 »
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #6 on: May 27, 2008, 12:25:39 PM »
The bootloaders are only tested when one is about to be released so it is very possible the bootloader source in svn si broken for gigabeat F.
If you really want to figure it out, try building the same source revision as the released bootloader was built from and make a binary search forward to find out where it broke.
Logged

Offline theglades00

  • Member
  • *
  • Posts: 5
Re: Compiling a bootloader for a Gigabeat F40?
« Reply #7 on: May 27, 2008, 11:02:28 PM »
I downloaded the source from April 2007 and it boots. I modified the bootloader code (removed "bootloader usb mode" section) and now I have a working Gigabeat!!  ;D Thanks for all the help
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling a bootloader for a Gigabeat F40?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 1.342 seconds with 15 queries.