android
  #1  
Old 05-17-2012, 04:29 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default Boot-Loader for YP-R0

Boot Loader for YP-R0

N.B: Sorry for my bad english. Read slowly, it can be full of mistakes!
N.B-2: The most sensitive part for a player like this is the firmware installation, that is the same for any other firmware for this player. I tested this mod on my player, and there aren't any problems, so it's very unlikely to brick your player. However i suggest to follow this tutorial.
N.B-3: Like any other firmware installation it can cause permanently data loss.


Some days ago i wrote a shell script for simulating a boot loader for this player.
The script allow you to choose which firmware boot at any startup, or (in case of problems) you can boot in SafeMode.

To install this "boot-loader" you need a modified version of the Modfirm (by Lorenzo92), that allow you to lauch the startup script from a writable partition (for future modifications). The startup script must be placed in "Neo-Ghost".
You also need the .rockbox folder on the root of your media0 partition on the player.
I created a 7zipped file where you can find everything i said (~50mb).
Link:
http://dl.dropbox.com/u/21543264/YP-...BBootLoader.7z

Instructions:
Download the 7z file.
Unzip it.
Connect the R0 to pc, copy inside the player the content of the folder "copy_in_r0".
Disconnect the player, Shut down it (completely) and reboot it.
Wait for the new firmware installation.
At the end power off the R0, connect it to pc pressing and holding "back" button (player will enter in Safe_Mode), now copy in Neo-Ghost the contents of "copy_in_neoghost".
Unmount all partition from pc and disconnect R0.
Reset the player.
Test my "boot loader".


Note: It's a shell script, so you can customize it for booting a firmware or another after a certain number of seconds.


UPDATE For RB build with FM Radio:
You can follow this tutorial without install Modfirm 2.30 and copying rockbox_loader.sh in media1 (NEO-GHOST) instead of media0 (player's root).


UPDATE 20120716: Released V2_20120716_graphical_DualBoot_100%_RB_support

Info:
Code:
Version : Modfirm V2.50 RB Support Dual Boot
Target : EU
User : root
Dir : /home/pietro/Dev/R0/bootloader_v2/rom
BuildTime : 12/07/16 23:00:51
Changelog:
Code:
Included radio module
Included ext2 module
Optimized busybox cfg
Dual boot user friendly - 100% customizable
External app-loader for 100% customizing
External cfg for boot loader
BootLoader auto-boot time customizable (see bootl.cfg)
Removed some useless things (such as old libs, cfg and the DRK)
Modded rb_loader (WARNING! Do not overwrite this loader with another, you'll loss radio support!)
TODO:
Code:
Add entire busybox executables and links for getting a standard console
Add modules needed for USB Host mode
Link V2:
http://dl.dropbox.com/u/21543264/YP-...5RB_support.7z
DEPRECATED - See Official Modfirm 2.51
Screenshot:




Thanks to Lorenzo92, Lebellium (and all other developers working on YP-R0) for the modfirm and the rockbox port.

Last edited by VanniX; 10-11-2012 at 03:08 PM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 05-20-2012, 04:30 PM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,599
Default

Hum I just tried it and I don't get it working, although all the files are where they should be according to your tutorial.

When I power it on (from fully off state), it just loads the Samsung app, no bootscreen

PS: you should rather use the ZIP format which is more universal than 7z.
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #3  
Old 05-21-2012, 12:46 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Very strange, make sure you havent's some scripts in your scripts directory (player and sd).
It should work, code is correct, check yourself, these are the links to the 2 scripts:
http://dl.dropbox.com/u/21543264/YP-R0/startscr
http://dl.dropbox.com/u/21543264/YP-R0/bootl
Some comments (# . . . . ) are incorrect, because some lines are "copy-pasted".

I'm sorry, but i can't zip files, this because ubuntu+zip+upload on dropbox often cause a CRC error in archive :-(
Work well only with 7z or tgz archive :-(
Reply With Quote

  #4  
Old 05-21-2012, 02:00 PM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,599
Default

Hum I don't know, that doesn't work.

I have no former script on the player and I don't have any microSD inserted.

I installed your firmware (I tried both normal installation procedure and the flashing tool)
On the R0 I put: /.rockbox
On Neo-Ghost I have:
/bootl/blmode.raw
/bootl/bootl.sh
/bootl/sm.sh
/rockbox_loader.sh
/startscr

Did you really try the files from this archive? Maybe you put a wrong file in the archive?
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #5  
Old 05-21-2012, 02:32 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Probably i found the issue, i think i uploaded a wrong firmware.
I'll try to extract cramfs to verify the firmware. Wait... :P

EDIT:
Ok, i messed up 7zipping the R0.ROM, i'm uploading the right version.. It'll be available in some minutes at the same link.

Last edited by VanniX; 05-21-2012 at 02:56 PM.
Reply With Quote

  #6  
Old 05-21-2012, 04:34 PM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,599
Default

Okay with the right ROM file it works now

Good job

Just a pity there is this f***ing Samsung sleep mode. If you boot the Samsung app and then just power it off normally, your bootscreen won't show up at next startup of course...
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

  #7  
Old 05-21-2012, 04:36 PM
Lorenz092 Lorenz092 is offline
Member
 
Join Date: Jan 2011
Location: Italy
Posts: 449
Default

Quote:
Originally Posted by lebellium View Post
Okay with the right ROM file it works now

Good job

Just a pity there is this f***ing Samsung sleep mode. If you boot the Samsung app and then just power it off normally, your bootscreen won't show up at next startup of course...
I could hack this. Recompiling the ** module (don't remember which atm) I could make the device turn off instead, at least I guess so!
__________________
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

  #8  
Old 05-22-2012, 01:13 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

It would be a good thing, especially in terms of battery.. As soon as I'll have some free time I'll do some tests ;-)
(Now i'll be busy for school for some time)
Reply With Quote

  #9  
Old 05-31-2012, 04:58 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Updated tutorial for RB build with FM Radio support.
Reply With Quote

  #10  
Old 06-10-2012, 01:56 PM
Appick's Avatar
Appick Appick is offline
Junior Member
 
Join Date: Mar 2011
Location: France
Posts: 83
Default

Thanks for this. How do you customize it for booting a firmware or another after a certain number of seconds?
__________________
Appick
Reply With Quote

  #11  
Old 06-30-2012, 04:13 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

There is a while statement, you can simply count the number od cycles, and add a test (if count > of XX exit from while and boot YY) and if you' don't choose another firmware it can boot the firmware you want.
Tell me if you want the code example/modification, i can do it for you in free-time
Reply With Quote

  #12  
Old 07-16-2012, 04:56 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Updated 1st post.
Reply With Quote

  #13  
Old 07-22-2012, 10:27 AM
lebellium's Avatar
lebellium lebellium is offline
Samsung Moderator
 
Join Date: Sep 2007
Location: Paris
Posts: 3,599
Default

Ok I finally tested it.

bootl.cfg modification works fine, nice idea

-Please replace MOD 2.20 by MOD 2.50 in the OF (settings>system>about)
-I have to update the Safe Mode screen (write 2.50 instead of 2.20).
Lorenzo can help you to implement these 2 things if needed
-The bootscreen's text has to be updated too (some linguistic mistakes and bootl.cfg in media0 instead of bootl.sh in media1)

Once that's done, we can maybe "officially" release fw 2.50

I also noticed boot time is much faster than with fw 2.30 (bootl.cfg settings: 10, RB, N).

And strangly there is no sound glitch/noise when selecting a music from the RB database. You did not remove RFS in that version, do you??

Finally I noticed a huge display brightness difference in RB between my 2 R0 (using same brightness settings of course). My R0 with fw 2.30 and RB build ba8e436-120530 has a much brighter display than my other R0 in fw 2.50 and RB build 0823817-120719. No brightness difference in OF.
So there is an issue either with the fw 2.50 or with the latest RB builds....
__________________
I'm French^^ *GenerationMP3 Samsung Moderator*
Reply With Quote

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

Quote:
Originally Posted by lebellium View Post
Finally I noticed a huge display brightness difference in RB between my 2 R0 (using same brightness settings of course). My R0 with fw 2.30 and RB build ba8e436-120530 has a much brighter display than my other R0 in fw 2.50 and RB build 0823817-120719. No brightness difference in OF.
So there is an issue either with the fw 2.50 or with the latest RB builds....
Before going away...@vannix this brightness problem is caused because you did screen blank and unblank uncorrectly. Please see how's done in official rockbox script or my other modded firmwares
Otherwise it's like having a "shadow" on the screen (10-20% alpha channel xD)
See you all!!
__________________
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

  #15  
Old 07-23-2012, 03:02 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

In these 2 weeks i fix those problems, now i'm in my grand-parent's house, and i'm having some problems with pc.
stay tuned
Reply With Quote

  #16  
Old 09-07-2012, 05:27 PM
Clem29 Clem29 is offline
Junior Member
 
Join Date: May 2011
Location: Italy
Posts: 10
Default

I soft-bricked my R0.
I accidentaly deleted the "bootl" folder in NEO-GHOST.
Now When i power on the R0 I see the "system checking" message and after I see the samsung logo.
The player doesn' t start the SA/RB or the Safe Mode. (I think because in the "bootl" folder were the start script).
Can anyone Help me? (I'm italian and I have some difficulties in english).

P.s If possible i prefer I don' t use the Recovery tool.
Reply With Quote

  #17  
Old 09-07-2012, 05:50 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

I'm out for work now, i come back home on monday.
I'll help you, but you need to wait 2 days, sorry
Reply With Quote

  #18  
Old 09-07-2012, 05:55 PM
Clem29 Clem29 is offline
Junior Member
 
Join Date: May 2011
Location: Italy
Posts: 10
Default

I 'll wait you.
The work that you made is fantastic guys
Reply With Quote

  #19  
Old 09-07-2012, 06:09 PM
VanniX VanniX is offline
Member
 
Join Date: Nov 2011
Location: Italy - Clowns country
Posts: 120
Default

Ok, wait.. i'm thinking..
You should try to enter in safe mode by pressing and holding the "back" key. Also if you deleted the bootl.cfg.

However, if you can enter in safe mode, I suggest you to install my new ROM, the modfirm 2.50, made in collaborations with Lorenzo and lebellium.
You can find the tutorial in "rockbox port" post, on this section.
2.50 is the best ROM at the moment, and it's also totally unbrickable.
Reply With Quote

Reply

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 10:28 AM.