Rockbox Development > Starting Development and Compiling

problem compiling bootloader for H340 on linux, SYSFONT_WIDTH undeclared

(1/2) > >>

luissifer:
Hi there,

I'm trying to compile the bootloader for a iriver H340.
Everything seems fine until I try to "make", then I get this error:

CC firmware/panic.c
/home/louis/rockbox/firmware/panic.c: In function `panicf':
/home/louis/rockbox/firmware/panic.c:68: error: `SYSFONT_WIDTH' undeclared (first use in this function)
/home/louis/rockbox/firmware/panic.c:68: error: (Each undeclared identifier is reported only once
/home/louis/rockbox/firmware/panic.c:68: error: for each function it appears in.)
make: *** [/home/louis/rockbox/build/firmware/panic.o] Error 1

It looks like SYSFONT_WIDTH is defined in convbdf.c which is not included at this point of the compiling. Is it normal??
Any ideas??

Thanks!

Llorean:
It's really not a good idea to compile your own bootloader for that player. Why are you attempting it?

nls:
SYSFONT_WIDTH is defined in sysfont.h which is generated while building. I tried compiling a h300 bootloader with a clean chaeckout here and it works fine so there is likely something wrong with either your build environment or your source checkout.

BUT as llorean said it is generally a bad idea to build this bootloader yourself as there's a significant risk of bricking your player if you install it

luissifer:
Thanks for your replies,
I am trying to compile a boot loader so that I can try to apply this patch
 FS#9202 - iriver H300 bootloader power/usb fixes
http://forums.rockbox.org/index.php?topic=17202.0

Hopefully I'll be able to play songs while the player is charging ion the USB port. I use it in my car quite a lot and it is a bit annoying to not be able to play music when the battery is flat and it is charging...

lwizard:
I also need that patch (bootloader_v2).
For USB charching you can hold a-b while plugging, or simply patching rockbox software with another patch for USB charging by default (I have done it).

But I need rockbox to start when the player is off and my car turn on and power it and not going in charging mode.

Please can you compile it for us with that patch or explain us how to do that, point by point?

Thanks a lot!

Navigation

[0] Message Index

[#] Next page

Go to full version