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
translations translations
Search



Donate

Rockbox Technical Forums


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

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  How to modify rockbox version displayed during boot / in menu?
« previous next »
  • Print
Pages: [1]

Author Topic: How to modify rockbox version displayed during boot / in menu?  (Read 252 times)

Offline DTSyX

  • Member
  • *
  • Posts: 49
How to modify rockbox version displayed during boot / in menu?
« on: June 24, 2025, 03:05:24 PM »
I compiled rockbox (for H140) at the height of commit 0b214badc88966ea03fcec3952809a3a1ca7a6b4 - "builds: 4.0 is out, make it official", with two commits reverted and a later one added.
Not sure if that is the reason why the rockbox version displayed during boot and in the menu is some svn number (?) instead of "4.0".

Either way, I'd like to have the rockbox version displayed be "4.0" (ideally with some info added by me). How would I do that?

I tried already editing the rockbox-info.txt file, but apparently that does not work...
« Last Edit: June 25, 2025, 03:09:42 AM by DTSyX »
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 673
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #1 on: June 24, 2025, 05:04:53 PM »
Quote from: DTSyX on June 24, 2025, 03:05:24 PM
I compiled rockbox (for H140) at the height of commit 0b214badc88966ea03fcec3952809a3a1ca7a6b4 - "builds: 4.0 is out, make it official", with one commit reverted and a later one added.
Not sure if that is the reason why the rockbox version displayed during boot and in the menu is some svn number (?) instead of "4.0".
Either way, I'd like to have the rockbox version displayed be "4.0" (ideally with some info added by me). How would I do that?

The reason for displaying the commit id is that it uniquely identifies the build.   This ensures we are always able to trace a given build back to the source code used to compile it.   When we generate builds for a release, we override that commit ID with a more human readable (but still globally unique) string (ie "4.0"):

Code: [Select]
make zip VERSION=whatever
As you are modifying the build from rockbox.org considers "4.0", I strongly caution against calling your custom builds "4.0" -- especially if these builds are not for your private use. 
Logged

Offline DTSyX

  • Member
  • *
  • Posts: 49
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #2 on: June 25, 2025, 03:05:23 AM »
Thank you very much! Works like a charm.

I'm using Rockbox only for myself, and thus my builds are only for myself as well.

I'd rather have a Version "name" that makes sense and tells me what it is / contains than some random number that I will never remember what it means.
Logged

Offline gevaerts

  • Developer
  • Member
  • *
  • Posts: 1077
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #3 on: June 25, 2025, 06:02:18 AM »
Having a name is not a bad idea, but I would definitely recommend making it unique, something like "4.0-DTSyX" or whatever you like. You want to be able to look at it and know what it is.
Logged

Offline DTSyX

  • Member
  • *
  • Posts: 49
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #4 on: June 25, 2025, 03:58:52 PM »
It has a short description in how it differs from the official release after the version number, so that I know what it is and I can tell it apart from other builds I might do in the future.
Logged

Offline Datman

  • Member
  • *
  • Posts: 111
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #5 on: June 27, 2025, 06:42:13 AM »
Hi, DTSyX

Can you help me in compiling RockBox 4.0 for my H120 with SD card and DS3231 RTC? As I wrote in my post, I haven't done it before and there are some issues I'm not able to solve...
Previous RockBox worked very well on HDD, but upgrading it to standard v4.0 before installing the SD card (it is needed) I lost RTC option!

Thanks
Gianluca
Logged

Offline DTSyX

  • Member
  • *
  • Posts: 49
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #6 on: June 28, 2025, 01:28:59 PM »
Not sure if I'm the one that can help you. I'm doing the trial and error approach mostly myself.
But it's of grat help to have experience in linux in general.

But, also, just compiling yourself won't change the outcome unless you change the code you put in. You would need to know the commit(s) that is / are responsible for the issue of your device to either fix the code or revert the commit(s). If you don't know that commit you would have to do a bisect to find the commit that made rtc not work anymore on your device. That's a rather tall order for a novice to the whole git / compiling game - though not impossible at all, either.

Have you made a bug report for that issue? That's where I would start.
« Last Edit: June 29, 2025, 04:08:30 AM by DTSyX »
Logged

Offline Datman

  • Member
  • *
  • Posts: 111
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #7 on: June 29, 2025, 01:39:53 PM »
I tried with a step by step help by chatGPT. There is only to enable the RTC option. Nothing has to be added.
In 30 years I have used DOS and all Windows versions, but never Linux. Problems are mostly simply file management: a file not found; the file has been written? Where?...
I installed Linux on Windows 10.
« Last Edit: June 29, 2025, 01:42:21 PM by Datman »
Logged

Offline DTSyX

  • Member
  • *
  • Posts: 49
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #8 on: June 29, 2025, 03:51:04 PM »
Ok, I see what you mean. Enabling that code alters the code to be compiled and gives you a different output file.

But I don't know what to tell you about how to compile (successfully). I just read the instructions in the respective section in the dev guide and after some trying I succeeded. Once the cross compiler was build everything else was a piece of cake. I'm not using Ubuntu, so I have no experience with this distro regarding compiling rockbox, but considering that the instructions are tailored to Ubuntu, they should work, I guess.

Rockbox seems like a good and fun goal to learn some linux and compiling.

Good luck!
Logged

Offline speachy

  • Administrator
  • Member
  • *
  • Posts: 673
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #9 on: June 29, 2025, 10:05:55 PM »
Quote from: Datman on June 29, 2025, 01:39:53 PM
I tried with a step by step help by chatGPT.

Don't.  Just... don't.
Logged

Offline Datman

  • Member
  • *
  • Posts: 111
Re: How to modify rockbox version displayed during boot / in menu?
« Reply #10 on: July 03, 2025, 10:27:43 AM »
Bahus solved my problem in https://forums.rockbox.org/index.php/topic,55377.0.html
Thank you, bahus! :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  How to modify rockbox version displayed during boot / in menu?
 

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

Page created in 0.068 seconds with 17 queries.