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
| | |-+  Compiling Rockbox for m200
« previous next »
  • Print
Pages: [1]

Author Topic: Compiling Rockbox for m200  (Read 2538 times)

Offline rickbronson

  • Member
  • *
  • Posts: 9
Compiling Rockbox for m200
« on: May 30, 2008, 11:37:05 AM »
Rockboxers,

  I can do a m200 bootloader compile and run but when I try to compile a rockbox "normal build" I get:

...
LD vorbis.elf
/usr/local/arm-elf/lib/gcc/arm-elf/4.0.3/../../../../arm-elf/bin/ld: region PLUGIN_RAM is full (/home/rick/in/rockbox/normalbuild/apps/codecs/vorbis.elf section .header)
/usr/local/arm-elf/lib/gcc/arm-elf/4.0.3/../../../../arm-elf/bin/ld: region PLUGIN_RAM is full (/home/rick/in/rockbox/normalbuild/apps/codecs/vorbis.elf section .text)
/usr/local/arm-elf/lib/gcc/arm-elf/4.0.3/../../../../arm-elf/bin/ld: error: no memory region specified for loadable section `.icode'
collect2: ld returned 1 exit status
make[2]: *** [/home/rick/in/rockbox/normalbuild/apps/codecs/vorbis.elf] Error 1
make[1]: *** [build-codecs] Error 2
make: *** [build] Error 2

  Any help greatly appreciated!

  Rick
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Compiling Rockbox for m200
« Reply #1 on: May 30, 2008, 11:50:21 AM »
I'm pretty sure the bootloader build includes all that's been done up to this point.
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Compiling Rockbox for m200
« Reply #2 on: May 30, 2008, 12:24:17 PM »
Instead of just typing "make", type "make bin" if you just want to work with a normal build.

Remember to have tcctool compiled and ready for afterwards, so you can upload the code to your m200.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Compiling Rockbox for m200
« Reply #3 on: May 30, 2008, 01:38:33 PM »
Pardon my ignorance on this, but in the early stages of a port, what exactly is the difference between the bootloader build and the regular build? 
« Last Edit: May 30, 2008, 01:41:02 PM by MarcGuay »
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Compiling Rockbox for m200
« Reply #4 on: May 30, 2008, 01:49:24 PM »
The bootloader build is what you see in the picture I posted in this message:

http://forums.rockbox.org/index.php?topic=7727.msg125580#msg125580

The normal build just displays "*PANIC*" and some garbage characters on the screen.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Compiling Rockbox for m200
« Reply #5 on: May 30, 2008, 01:54:39 PM »
I'm pretty sure the 'normal' builds for M200 / Logik DAX aren't much use at this stage (after all, how is the bootloader going to load it with no NAND driver ;)). But still, if the build is only failing with IRAM full errors at the linker stage, try adding the following to firmware/export/config-m200.h

Code: [Select]
/* Reduce Tremor's ICODE usage */
#define ICODE_ATTR_TREMOR_NOT_MDCT

Quote from: MarcGuay on May 30, 2008, 01:38:33 PM
Pardon my ignorance on this, but in the early stages of a port, what exactly is the difference between the bootloader build and the regular build? 

Quite simple: the bootloader is a tiny subset of the Rockbox codebase, which exists only to load the "normal" image. The reason for splitting it in this way is so that the small bootloader image can be easily patched into an original firmware image and flashed to the device, to allow dual-booting between the OF and Rockbox.
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Compiling Rockbox for m200
« Reply #6 on: May 30, 2008, 01:55:03 PM »
Quote
The normal build just displays "*PANIC*" and some garbage characters on the screen.

That's what I figured... So why would someone want to run that?  

(Answering my own question: I suppose if they were working on the code and wanted to see the results).
« Last Edit: May 30, 2008, 01:56:57 PM by MarcGuay »
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Compiling Rockbox for m200
« Reply #7 on: May 30, 2008, 01:59:21 PM »
@rickbronson,

That's perfectly normal - Rockbox is nowhere near finished on the m240.  The specific problem you're seeing is that the codecs don't compile.    The main Rockbox binary has already been compiled (you'll see a apps/rockbox.bin file in your build directory), and if you type "make bin", only this file will be compiled (meaning you won't see those errors, as the codecs are not compiled).

@MarcGuay,

A bootloader build consists of the code in firmware/, plus the code in bootloader/

The main Rockbox build consists of the code in firmware/, plus the code in apps/

In the early stages of a port (when not all the drivers are written and working), the bootloader is a nice way to test and develop drivers - it's easy to gradually add features to the bootloader as the relevant driver is implemented.  Once they're all working, work can start on the (relatively minor) parts  that are only used by the apps/ code - the sound driver normally being the main one.

The lack of a NAND driver makes attempting to run the main Rockbox binary at this stage pretty pointless.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling Rockbox for m200
 

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

Page created in 0.091 seconds with 15 queries.