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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Another Fuze question (gcc version)
« previous next »
  • Print
Pages: [1]

Author Topic: Another Fuze question (gcc version)  (Read 2237 times)

Offline UnFleshed One

  • Member
  • *
  • Posts: 3
Another Fuze question (gcc version)
« on: June 19, 2009, 02:15:25 AM »
Does gcc version matter?

I compiled arm-elf-gcc 4.1.1 (lowest version available on gnuarm.org) from source and then used that to compile bootloader, created dual boot using mkamsboot and put that on my 4Gb Fuze v1 and caused firmware upgrade.

At least part of the process went right, because I can boot into OF by holding left. Connecting USB uses OF as normal.

So I built rockbox (selected (N)ormal on configure, then make and make zip), got 2.7 Mb archive and extracted .rockbox on the root of my player.

But I can't boot into rockbox at all. Fuze won't turn on at all (no screen/led activity) unless I hold left button to boot into OF.

I tried few things: formatting internal disk on windows, placing .rockbox on SD card (4Gb micro SD HC), rebuilding and reflashing bootloader and rockbox, etc.

My working copy is straight checkout on revision 21314, no patches applied.
Host OS is FC6, host compiler is gcc 4.1.2, arm-elf-gcc is 4.1.1. Both bootloader and rockbox compiled without any problems (just have to make clean after bootloader). mkamsboot was compiled from its own makefile.

I feel like I'm either missing some obvious step, or I am lucky the thing isn't bricked yet :).

So should I heed config's warning and find arm gcc 4.0.3 and rebuild everything, or should I look in another direction?

Thanks.

Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Another Fuze question (gcc version)
« Reply #1 on: June 19, 2009, 02:19:03 AM »
You're supposed to use the versions recommended on our wiki pages (or better yet, use our script to set up the right GCC and binutils version for you) just like for any other Rockbox target.

Seriously, "should I heed config's warning?" You didn't think it was just put there for fun, did you? Different GCC versions can have startlingly varying results, and the people developing the software are using the specific version of GCC we mention in the wiki.

Why didn't you start with the version you're supposed to be using?
Logged

Offline UnFleshed One

  • Member
  • *
  • Posts: 3
Re: Another Fuze question (gcc version)
« Reply #2 on: June 19, 2009, 02:26:51 AM »
Well, it warned about build problems of which I had none. I guess I'm too used to C++ where it is rare to have subtle but breaking differences that will actually compile and link, so I used first arm gcc version I found. (I see how it can be very different for low level C code).

I'll try proper way tomorrow, thanks.
Logged

Offline Yes

  • Member
  • *
  • Posts: 3
Re: Another Fuze question (gcc version)
« Reply #3 on: June 19, 2009, 03:54:16 PM »
Did you follow the Linux compiling guide?  If you run tools/rockboxdev.sh it'll compile the correct versions of the necessary programs, then run export PATH="usr/local/arm-elf/bin:$PATH".  That'll tell bash to use the versions of the gcc that rockboxdev.sh just compiled instead of whatever you've already got installed, and then you can compile Rockbox using all the recommended programs and versions.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9137
Re: Another Fuze question (gcc version)
« Reply #4 on: June 19, 2009, 04:28:31 PM »
Rockbox is somewhat different because it interacts directly with hardware, rather then just running on a software platform provided by an OS.  Small changes in compiler behavior can have very negative effects on rockbox.
Logged

Offline UnFleshed One

  • Member
  • *
  • Posts: 3
Re: Another Fuze question (gcc version)
« Reply #5 on: June 20, 2009, 09:44:50 PM »
Yep, using rockboxdev.sh everything built and booted perfectly and I saw rockbox for the first time. Very neat.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Another Fuze question (gcc version)
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.045 seconds with 16 queries.