android
  #1  
Old 07-13-2011, 09:37 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,611
Default Hacked/Modded R0 Firmware (latest version 2.20)

EDIT: First modded firmware 2.00 released!! http://www.anythingbutipod.com/forum...1&postcount=33

EDIT2: 2nd modded firmware 2.10 released: http://www.anythingbutipod.com/forum...5&postcount=60

EDIT3: 3rd modded firmware 2.20 released: http://www.anythingbutipod.com/forum...&postcount=111

Hello guys,

Mgue and Slade are busy with school at the moment, that's why there has been a break in the Rockbox port for some weeks/months now but soon they will work again on the port, don't worry

Meanwhile, Lorenz092 and I started some basic hacking on the stock firmware.
And we are please to announce we successfully hacked it!

Indeed, we managed to improve the translation of the interface in French and Italian language as you can see on the pictures below.
Soon we will release the language files so that you can improve them and we can integrate them in a new ROM file.






Next step is changing graphics such as the default themes colors (tropical, monsoom, polaris), icons, boot picture etc etc
That will be awesome!



Stay tuned!
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*

Last edited by lebellium; 09-12-2011 at 01:32 PM. Reason: firmware 2.20
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 07-14-2011, 04:36 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

I managed to change graphics too!!!
So a complete restyling is possible; modding qmg files is possible too using Samsung Theme Studio and doing some tricks with the final package of the exported theme (for a cell phone haha)
Now I will try something deeper with the firmware
As always Stay Tuned!
Reply With Quote

  #3  
Old 07-14-2011, 05:54 AM
Djels's Avatar
Djels Djels is offline
Junior Member
 
Join Date: Mar 2009
Location: Moscow
Posts: 15
Default

Is it possible to improve the translation of the Russian?
Reply With Quote

  #4  
Old 07-14-2011, 06:04 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,611
Default

Quote:
Originally Posted by Djels View Post
Is it possible to improve the translation of the Russian?
Yes of course
As I said in the 1st post, we will release the language files soon
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #5  
Old 07-14-2011, 06:11 AM
nik1105's Avatar
nik1105 nik1105 is offline
Junior Member
 
Join Date: Apr 2010
Location: Russia, Novosibirsk
Posts: 68
Default

Yes, its possible to improve translation, as a localization is a big text file with a lot of lines in it, so there is no problem to edit it, except the text boundaries problem. To repack sysdata you' ve been using our repacker(me and Sekrasoft)? And finally, its really great to hear that you managed to deal with qmg files, good job! If you need smth count me in, as now its summer holidays there, a lot of free time .
__________________
http://nsoft.ucoz.ru Join the software revolution.
Reply With Quote

  #6  
Old 07-14-2011, 06:37 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by nik1105 View Post
Yes, its possible to improve translation, as a localization is a big text file with a lot of lines in it, so there is no problem to edit it, except the text boundaries problem. To repack sysdata you' ve been using our repacker(me and Sekrasoft)? And finally, its really great to hear that you managed to deal with qmg files, good job! If you need smth count me in, as now its summer holidays there, a lot of free time .
Of course
I used the program I compilated for linux (now I'm running Kubuntu 11.04)
I used no graphical interface...only the terminal one! But it works flawlessy
For the text "except the text boundaries" you can write how much you want...of course if you write too much, you'll have cutted text on screen hehe (but there's no char limit)
QMG files cannot be viewed but you can create them...Moreover a lot of icons are still bmp files (transparency is given by the color #0e0b00)
I was trying to understand qmg format but it's a waste of time I think.

So great team job

I will do an automatic script that builds sysdata, default.aui (I have to test again my packer written in python) and finally the rom file. I'm managing to edit cramfs too to try simlinking sysdata to nand or sd (sd is a lot better hehe) to install mods easier...

So I'm not working on Rockbox but that's better than nothing

My ideas are to write some script to:
-symlink startup/shutdown sounds to nand or sd (so more customization or turning them off )
- try reading battery capacity, amperage etc.. (/dev/r0batt)
- radio? (/dev/six74...or similar)
- etc...

EDIT:

another goal is to clean up the garbage contained in sysdata...there is a lot of sh*t

Last edited by Lorenz092; 07-14-2011 at 06:43 AM.
Reply With Quote

  #7  
Old 07-14-2011, 08:40 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,611
Default





__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #8  
Old 07-14-2011, 09:30 AM
nik1105's Avatar
nik1105 nik1105 is offline
Junior Member
 
Join Date: Apr 2010
Location: Russia, Novosibirsk
Posts: 68
Default

Quote:
For the text "except the text boundaries" you can write how much you want...of course if you write too much, you'll have cutted text on screen hehe (but there's no char limit)
Thats exactly what i meant, but anyway there is some string length limit

Another question is what can you get by using acces to some devices in dev/folder? as i understand that you can only dump information to text files, and its impossible to show something on screen, as it's taken by r0 main app.

And finally if you will be able to write script in python it will give ability to manipulate with firmware on all platforms, more platforms-more modders- more nice mods.

Good luck. Hope everything will go smooth.

P.S Apocalyptica- rocks
__________________
http://nsoft.ucoz.ru Join the software revolution.
Reply With Quote

  #9  
Old 07-14-2011, 03:06 PM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by nik1105 View Post
Another question is what can you get by using acces to some devices in dev/folder? as i understand that you can only dump information to text files, and its impossible to show something on screen, as it's taken by r0 main app.

And finally if you will be able to write script in python it will give ability to manipulate with firmware on all platforms, more platforms-more modders- more nice mods.

Good luck. Hope everything will go smooth.

P.S Apocalyptica- rocks
It's for that reason I'll try to symlink sysdata folder on nand/sd: easy modding for everyone hehe
Accessing to /dev should be read-write. I know for example that the radio chip works using registers: some of them are read only but others are writable at certain adresses (you can find them in the datasheet)
The display is usable but you have to kill R0 or access it directly as far I know.
For example the initial logo is displayed in this way:

echo 0 > /sys/class/graphics/fb0/blank
echo 1 > /sys/class/graphics/fb2/blank

if [ -e $IMAGE_FILE ]
then
cat $IMAGE_FILE > /dev/fb0
fi

as you can see, the image is a raw file (that I successfully read by irfanview with some settings I don't remeber) that's passed to the display!

But but slade spoke about the libipu: IPU is a freescale graphics processing unit: it can be controlled but it's a bit difficult as far I know...
Reply With Quote

  #10  
Old 07-16-2011, 05:58 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Nice news...

I managed to take out Sysdata from rom to user NAND (16 gb I mean)
So with the modded firmware inside, using the default content of sysdata on the nand, the firmware has boot up with the original resources!!!

This means: faster, easier and safer mod!!
Well for the safety I have to see because I guess if you delete the wrong file the R0 won't start...

EDIT: of course I've not thought about the usb script...It is for him impossible to unmount/mount nand because for Sysdata symbolic link. I don't know now if it is better to use a microsd or trying to modify the usb script to unload customized sysdata before unmounting nand...

But I'm really happy hehe

EDIT: I really don't know even if the usb script is use; i guess the mount unmount for the usb management is done in the R0 app, no chance!
So the microsd, if mounted as media0 at the bootup, should not be a problem (but it is mounted with usb too )
For now my solution is:
- enabling sysdata switch script on nand (removing .old extension)
- watching your mods ; the script is renamed to .old (mgue and slade did this powerful script )
- resetting player -> original sysdata is "restored" (symlink removed)
- usb available again to test other sysdata mods

this shold protect against bad sysdata too -> player not booting -> reset it -> original sysdata loaded



EDIT2:

what happened so far:

- QMG editing is possible -> using Samsung Theme Studio, exporting a theme and unpacking it (it is a zip file). Pick the qmg you made and rename it!
- Sysdata symlinked to 16 gb mass storage -> not a permanent mod, to be tested and to see if microsd is better for the job
- Languages can be edited
- Graphics can be edited
- Sysdata could be cleaned up (lots of garbage)
- r0Btn (keyboard device) is readable but i don't know how to compile .c or .cc files for arm (I tried with code blocks but I don't know...)
My idea is to implement a key check: if the user presses a defined key sequence, the player formats the internal storage to restore settings and database. If this will not help, another sequence could format the entire 16 gb memory. Let's say f**k to samsung repair centers

Last edited by Lorenz092; 07-16-2011 at 08:37 AM.
Reply With Quote

  #11  
Old 07-17-2011, 04:57 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Font changing is possible too....
Note: as you can see, all the graphics is the original one because in the 16gb memory I put the original sysdata files except the fonts

By lorenzo_r0 at 2011-07-17

Now I will investigate about keyboard device (r0Btn) that looks promising for my idea
Reply With Quote

  #12  
Old 07-17-2011, 07:49 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,611
Default

Great!
If only we could add the fonts for other languages...
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #13  
Old 07-17-2011, 01:57 PM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by lebellium View Post
Great!
If only we could add the fonts for other languages...
I want to find using IDA where in the R0 app there is that shitty condition...
Now we can change them, but......................

The main problem affecting the sysdata "port" to nand, is that symlinking its path makes for the usb controller impossible to mount/unmount "/mnt/media0" (mass storage or as I call it nand). This means no usb again -> a sort of device brick
For now the nand sysdata is "mounted" only once: next time you reboot usb is available again, to be able to restore the renamed script and do this trick again.
I noticed that the usb script contained in rom isn't used so no easy chance to manage that: a possibility could be a file created in nand.
For example: if "sd_mod.txt" is present in the root of the user memory, the modded sysdata is used and no usb is available. It serves for as a log file too.
If deleted by user using the builtin file manager of the R0, everything is restored to defaults. But there could be the brick, when the file is accidentally read only or whatever.
Another idea I had, is to count the boot times: when the counter reaches some number (ie 10) the original situation is restored and a file is created in nand: deleting it, the nand sysdata is used.
Reply With Quote

  #14  
Old 07-18-2011, 04:21 PM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,611
Default

So as promised, here are all language files for R0.

If you want to improve the translation of the interface in your language (except French or Italian that are already made), feel free to edit the right .txt file and to send it to me or to Lorenz092. Then we will release a new ROM file based on firmware 1.25 with the translation improved in several languages.

Some "rules":
-Don't change the encoding format. Please let the default UNICODE (utf-16, LE (little endian) otherwise the language file will make the R0 crash.
-You'll see many useless strings that have nothing to do with the R0. Actually the language file is common to several Samsung DAPs including R1, M1 etc... Don't delete these strings, let them in peace. To know what strings deal with the R0 and that you can change, check the translation on the R0 and then search the string in the txt file (ctrl + F in Windows notepad)
-It seems there is no character limitation but bear in mind the R0 can only display a certain number of characters on the display without horizontal scrolling. Scrolling is not very practical so please avoid too long translations
-Only send back the edited file in your language (not the whole pack with all languages) in a Zip or Rar archive (we noticed some FTP change the encoding format of txt files....)
-Please tell us here what is the language you are working on so that not several people work on the same language file separately

Thank you
Attached Files
File Type: zip R0_languages.zip (355.4 KB, 14 views)
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*

Last edited by lebellium; 07-18-2011 at 06:21 PM.
Reply With Quote

  #15  
Old 07-20-2011, 09:00 AM
5TORM's Avatar
5TORM 5TORM is offline
Junior Member
 
Join Date: Jul 2011
Location: RUSSIA
Posts: 22
Default

Can you hack the UCI file to be able to create skins better than now?
Reply With Quote

  #16  
Old 07-20-2011, 09:16 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by 5TORM View Post
Can you hack the UCI file to be able to create skins better than now?
No...It is a R0 application feature! And there will be no utility when we will run Rockbox hehe
UCI "reader" is integrated in a library...I don't remember which yet!

EDIT: lebellium said me you wanted to put your uci in the firmware. This is not possible, or at least not easy. Symlinking the nand path could be a solution but unstable (can brick usb access) and of course is better for a user to install what he wants.
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!

Last edited by Lorenz092; 07-20-2011 at 09:51 AM.
Reply With Quote

  #17  
Old 07-20-2011, 01:50 PM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Finally my downclocked (200 mHz instead of 532) R0 came to an end!
Well I must be very happy. With the original clock speed it lasted about 12 hours.
With the cpu mod more than 20 hrs!
I remember that DnSe was enabled to shorten benchmark times hehe, otherwise I expect a duration of at least 40 hours!

There is still the sleep mode issue (when you turn off the player, it stays for hours in a sleep mode, to turn it on again faster)...So you won't get 20 or 40 hours play if you use it keeping it off for hours.

But that's just a start

ps: every mod before the release, should be carefully tested to avoid bricked devices!
So as usually stay tuned for news and wait for a firmware
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

  #18  
Old 07-21-2011, 03:50 AM
5TORM's Avatar
5TORM 5TORM is offline
Junior Member
 
Join Date: Jul 2011
Location: RUSSIA
Posts: 22
Default

Russian R0 language
Attached Files
File Type: rar [09]Russian.rar (9.0 KB, 4 views)

Last edited by 5TORM; 07-24-2011 at 03:55 AM.
Reply With Quote

  #19  
Old 07-23-2011, 06:25 AM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by 5TORM View Post
Russian R0 language


In the meanwhile I managed to do another nice mod: the player could be resetted by holding power key. By default this time is 10 secs...I lowered this time to 5 sec so to shut down the player completely is safer (no need to boot again) and faster.
This is a completely safe mod: it could be right now inserted into the firmware!
__________________
Check out my modded firmware both for YP-R0 and YP-R1!!!
** DONATE ** -> https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K658CHJKX2X8C
NOTE: if you want to donate for Rockbox itself and not my work, go to their website!!
Reply With Quote

  #20  
Old 07-23-2011, 05:20 PM
Appick's Avatar
Appick Appick is offline
Junior Member
 
Join Date: Mar 2011
Location: France
Posts: 83
Default

Thanks for what you're doing. From what I've read it sounds really awesome and I can't wait for another firmware update.

How different is this to rockboxing (does that exist)?
Will you be able to integrate the sd card into the main library (or will/can that be a rockbox feature). I find it really annoying when I'm listening to music on the sd card that it doesn't remember the last place I was before turning off.This is not the case with the main library. I think it's my biggest gripe (followed by gapeless - I listen to alot of concerts and alot of albums where there are segues in between tracks).
__________________
Appick
Reply With Quote

Reply

Tags
hack, hacking, mod, r0, samsung, yp-r0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 08:52 PM.