Sunteți pe pagina 1din 7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

Togglenavigation

About
Devices
Docs
Forum
Download
Register|
LoginLogin
Login
Username:
Password:
Login

Logmeonautomaticallyeachvisit

Register
Search
Advancedsearch
Search

Forum
FAQ
Viewunansweredposts
Viewactivetopics
Boardindex DevelopmentandSupport RaspberryPi
Printview

RuneAudioandOpenElecononeSDcard
Postareply
Search

Searchthistopic

1postPage1of1

RuneAudioandOpenElecononeSDcard
http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

1/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

byhansh64Today,13:34
Hiall,
IgotabittiredofconstantlyswappingSDcardsinordertoruneitherRuneAudioandOpenElec.
GooglingaroundIonlycameacrosssolutionslikeBerrybootandsimilarwhichsupportOpenElecbut
failtosupportRuneAudio.HoweverthesolutionissimplerthanIhaveeverthought!
IhavebeenabletocreateasingleSDcardcontainingbothRuneAudioandOpenElecusingRPi2based
onexistinginstallationsofbothsystems.TodothisIuseoneSDcard(8GBminimum)andcreatethree
partitionsusinggparted:
part1:256MBFAT16(flags:boot,lba)
part2:appr.3.5GBext4
part3:appr.3.5GBext4
InthisexampleIwillbeusinganUSBSDcardreaderwhichpropagatesitselfas/dev/sdbonmysystem
whenconnected(Note:couldbe/dev/sdcor/dev/sddifyouhavemorethanonephysicaldiskinyour
system!Usesudofdiskltocheck).Ialsoassumeyoustartedtheterminalloggedinintoyourownhome
directory.Donotchange(cd)directorieswhileintheprocessbelow.Alsodonottypeinthe"$"and"#"
inthecommandlines.
1.Loginasroot
Code:Selectall
$sudosu

2.Create4directoriesformountingtheSDcardpartitionsand4directoriestoretainthecopiedcontents
ofthesepartitions
Code:Selectall
#mkdiroebootrunebootoerootruneroot
#mkdiroebootnewrunebootnewoerootnewrunerootnew

3.InserttheOpenElecSDcardintheUSBSDcardreaderandplaceitinoneofyourUSBports
4.Mountbothpartitions
Code:Selectall
#mount/dev/sdb1oeboot
#mount/dev/sdb2oeroot

5.CopythecontentsoftheOpenElecSDcardpartitionstoyourcomputer(dontforgetthe"."afterthe
"/"!)
Code:Selectall
#cpaoeboot/.oebootnew/
#cpaoeroot/.oerootnew/

http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

2/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

6.UnmounttheOpenElecSDcard
Code:Selectall
#umountoerootoeboot

7.RemovetheUSBSDcardreader,replacetheOpenElecSDcardwiththeRuneAudioSDcardandput
itbackintheUSBportofyourcomputer
8.Mountbothpartitions
Code:Selectall
#mount/dev/sdb1runeboot
#mount/dev/sdb2runeroot

9.CopythecontentsoftheRuneAudioSDcardpartitionstoyourcomputer
Code:Selectall
#cparuneboot/.runebootnew/
#cparuneroot/.runerootnew/

10.UnmounttheRuneAudioSDcard
Code:Selectall
#umountrunebootruneroot

11.RemovetheUSBSDcardreader,replacetheRuneAudioSDcardwiththenewlypartitionedempty
SDcardandputitbackintheUSBportofyourcomputer
12.Create2directoriesintheoebootdirectory
Code:Selectall
#mkdiroebootnew/openelecoebootnew/runeaudio

13.Copythecontentsoftherunebootnewdirectorytothenewlycreatedruneaudiodirectory
Code:Selectall
#cparunebootnew/.oebootnew/runeaudio/

14.EditthecontentsoftheRuneAudiocmdline.txtfilewiththeeditorofyourchoice(nanoorgedit)
Code:Selectall
#nanooebootnew/runeaudio/cmdline.txt

andreplaceroot=/dev/mmcblk0p2withroot=/dev/mmcblk0p3andleavetherestofthefileasitis
15.Savethefile
16.MountthenewSDcard
http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

3/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

Code:Selectall
#mount/dev/sdb1oeboot
#mount/dev/sdb2oeroot
#mount/dev/sdb3runeroot

17.CopythecontentsofthreedirectoriesbacktotheSDcard
Code:Selectall
#cpaoebootnew/.oeboot/
#cpaoerootnew/.oeroot/
#cparunerootnew/.runeroot/

18.UmountthenewSDcard
Code:Selectall
#umountoebootoerootruneroot

NowthenewSDcardisreadytobeplacedintheRaspberryPi'sSDslot.Putitthereandreconnect
power.IfalliswelltheRPishouldstartinOpenElec'skodi.Pleasecheckifkodiworksasitshould.
NowwehavetocreatetwoscriptstobeabletoswitchbetweenOpenElecandRuneAudio.Inorderto
switchyoushoulduseSSHtologinintoeithersystem.
19.LogintoOpenElecusingSSH(e.g.sshroot@openelec.localorsshroot@<ipaddressofOpenElec
system>)
20.Yourcurrentdirectoryshouldbe.storageasseenintheprompt
21.Createascriptcalled"rune"usingnano
Code:Selectall
#nanorune

22.Insertthefollowingcode(makesuretoscrolldowncompletelyasthecodewindowmightnotshow
all)
Code:Selectall
#!/bin/sh
mountoremount,rw/flash#OpenElecmountitsbootpartitionreadonlyso
needstoberemounted
cd/flash
find.path'./*'prunetypefexecmvf{}openelec\;
mvoverlaysopenelec/
sync
http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

4/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

mvruneaudio/*/flash/
sync
reboot

23.SavethescriptwithCtrlXandmakeitexecutable
Code:Selectall
#chmod+xrune

Someexplanation:the"find..."commandmovesallfilesexceptdirectories(topreventtheruneaudio
directorytobemovedaswell),justincaseImoveoverlaysalsoastheremightbedifferentoverlay
versions...?.Ialsouse"sync"alottopreventfilecorruption(maybeIcouldskipthefirstsync,
paranoia?).IusemoveinsteadofcopytopreventSDcardwearout
24.Runthe"rune"script
Code:Selectall
#./rune

TheRPishouldbootupwithRuneAudiothistime.Pleasecheckifeverythingworksasitshould.
NowweneedtocreatethescripttobeabletoswitchbacktoOpenElec.
25.LogintoRuneAudiousingSSH(e.g.sshroot@runeaudio.localorsshroot@<ipaddressof
RuneAudiosystem>)
26.Yourcurrentdirectoryshouldberootasseenintheprompt
27.Createascriptcalled"openelec"usingnano.Insertthefollowingcode(makesuretoscrolldown
completelyasthecodewindowmightnotshowall)
Code:Selectall
#!/bin/sh
cd/boot
find.path'./*'prunetypefexecmvf{}runeaudio\;
mvoverlaysruneaudio/
sync
mvopenelec/*/boot/
sync
mpcstop
http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

5/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

umountf/mnt/MPD/NAS/Music#thisisjustanexample,seebelow
reboot

28.SavethescriptwithCtrlXandmakeitexecutable
Code:Selectall
#chmod+xopenelec

Toprevent"stopjobs"duringrebootwhichtakeappr.1minuteand30secondsIusedthe"umount"
commandinthisscript.Thiscommandmaybeomittedorchangedtounmountanymusicdirectory
configuredintheSourcespageoftheRuneAudiowebinterface
29.Testthescriptbyrunningit
Code:Selectall
#./openelec

TheRaspberryPishouldnowrebootintoOpenElecagain.
Run./runetogobacktoRuneAudioetc.etc.etc.
IamnotanoobregardingLinuxbutIamnotanabsoluteexpertaswell.IfthereareanyLinuxexperts
amongyoupleasefeelfreetocommentandmakesuggestions,additionsoranyotherimprovements.
Happyswitching!
Greetz,
Hans.
hansh64

Posts:14
Joined:03Jun2015,15:48
Top

supportRuneAudio
Postareply
1postPage1of1
ReturntoRaspberryPi
Jumpto:

RaspberryPi

Go

http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

6/7

2/9/2016

RuneAudioandOpenElecononeSDcard:RaspberryPiRuneAudioForum

Whoisonline
Usersbrowsingthisforum:Noregisteredusersand2guests
TheteamDeleteallboardcookiesAlltimesareUTC+1hour
PoweredbyphpBBForumSoftwarephpBBGroup

Overview
Features
Clients
Documentation
Changelog
News
Theproject
Team
Supportus
License&Copyright
Credits
Blog
20132014RuneAudioAllrightsreserved.
ContactusPrivacyPolicy

http://www.runeaudio.com/forum/runeaudioandopenelecononesdcardt3191.html

7/7

S-ar putea să vă placă și