android
Prev Previous Post   Next Post Next
  #11  
Old 11-03-2010, 01:07 PM
slade slade is offline
Member
 
Join Date: Oct 2010
Posts: 118
Default

You can download the modified firmware which is able to run script here:
http://mib07.kilu.de/R0_v122ModifiedFirmware.zip

SCRIPTING IS VERY POWERFUL BE VERY CAREFUL WHAT YOU DO

Here are the steps to make it work and some Instructions:
  • Place R0.ROM on root of player like any other firmware upgrade
  • before you disconnect create a file called "customscript.sh" on root of player
  • I adivse using Linux to create and edit shell scripts I think Windows will work too but I didnt test it.
  • reboot player wait for firmware upgrade to finish
  • as in orginal firmware make sure to switch back to MSC before plugging to the PC to avoid any other problems
  • edit your customscript.sh as you want to. On the bottom of this post is a script you could use to check if everything was successful
  • BY ANY MEANS DO NOT RUN SCRIPTS WHICH CHANGE INTERNAL DATA. PLEASE FOLLOW THIS ADVISE FOR NOW. IF YOU KNOW WHAT YOU ARE DOING FEEL FREE TO DO SO.

Here is the first script you could run if you want to test it:
Code:
#!/bin/sh
cat /proc/cpuinfo > /mnt/media0/cpu.txt
to tell you the structure :
/mnt/media0 <-- your 8GB or 16GB Flash with all your files
/mnt/media1 <-- is internal Data with Samsung Application you see when the player is running

/ <-- root filesystem everybody who ever used Linux will understand

AGAIN PLEASE BE VERY CAREFUL WHAT YOU DO!!!

There is a safety feature which will protect you when you run a bogus script and the player is not responding -> wait for at least 2 minutes. push reset button -> every script you run will be deleted and replaced with a dummy script so if you will have to write the script again if you want to use it again after every reboot of the player.
I will release another firmware without this security feature in a few but I advise everybody to test scripts with this firmware and if you want a permanent change upgrade to the other firmware. There is also the possibilty to update the /etc/rc.start script. But this is for proffesional users only.

Scripting on the player means a powerful way to change the linux running on the player and to be able to customize it any way you want.

Update Process List
Code:
  PID  Uid        VSZ Stat Command
    1 root       2076 SW  init                
    2 root            SW< [kthreadd]
    3 root            SW< [ksoftirqd/0]
    4 root            SW< [watchdog/0]
    5 root            SW< [events/0]
    6 root            SW< [khelper]
   53 root            SW< [kblockd/0]
   56 root            SW< [cqueue/0]
   60 root            SW< [mxc_spi.2]
   64 root            SW< [kseriod]
   77 root            SW< [kmmcd]
  107 root            SW  [pdflush]
  108 root            SW  [pdflush]
  109 root            SW< [kswapd0]
  147 root            SW< [aio/0]
  231 root            SW< [kondemand/0]
  299 root       2076 RW  sh /mnt/media0/script.sh 
  302 root       2080 SW  -sh 
  306 root      59992 SW  /usr/local/bin/r0 Application AppMain 
  309 root       1336 SW  /usr/local/bin/USBSrv 
  320 root       2252 RW  ps aux
Looks like r0 is the main application running the entire application you see. I'll take a look at it!

Last edited by slade; 11-04-2010 at 07:54 AM.
Reply With Quote

 

Tags
r0, rockbox, 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 07:27 AM.