ODROID GameStation Turbo with Kodi for XU3/XU4

Very powerful gaming console solution based on Debian
crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Sun Nov 11, 2018 5:47 am

so more symptoms, but only happen sometimes.
my initial thought was hdd problems, but maybe not now that it seems random.

SSH hangs after password entry, yet ssh @ 192.168.1.128 goes quickly. its just after password hang.
+ studdering audio
+ sometimes fails to enter desktop
+ cant access media attached to the odroid, can view the files but clicking them doesnt work all the time. (series of resets fixes)

a series of resets fixes the issue, but its just a matter of time before things become problematic again.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Sun Nov 11, 2018 5:59 am

have you checked the S.M.A.R.T. values of the harddrive?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Sun Nov 11, 2018 6:06 am

will do next, just having troubles getting in with ssh.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Sun Nov 11, 2018 6:09 am

should be fine via SSH, as it does not use a gui...
smartctl -a -d sat /dev/sda
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Sun Nov 11, 2018 6:18 am

pastebin, sees errors but who knows.
https://pastebin.com/WGZdDyzq


also i added <memorysize> with the same value, under <cachemembuffersize>. Should i remove the cachemembuffersize now or?

its still studdering the audio. so maybe this isnt the issue. or i should remove the cachemem value if using memorysize.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Sun Nov 11, 2018 7:07 am

Code: Select all

197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       152
152 pending sectors, that's bad

It also recorded 81 errors but I'm not sure, as the timestamp says they happened at 12000 hrs uptime, while you currently have 16000 hrs so this may not be the root cause.

I suggest replacing the HDD, try to save as much data as possible.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Sun Nov 11, 2018 9:33 am

right on, thank you for the help.

ssd time

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Thu Nov 15, 2018 4:04 am

given that scenario, i have found a nice 240gb ssd to use.

I currently boot from the SD card, then it runs off the HDD.

Do i really need to do anything here? would simply swapping in the formatted SSD work?
given that the image is all setup on the sd card...

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Thu Nov 15, 2018 4:07 am

I don't know how you mount your SSD, if you just mount /dev/sda1 as a folder somewhere it probably should work just by switching the drives.
If you do something else and use UUIDs then it won't work.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Thu Nov 15, 2018 4:15 am

right, but given that the image is loading on the SD card...

even if i jhave to figure out the uuid's.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Thu Nov 15, 2018 4:21 am

you can always just give it a try.. if it doesn't work, just plug the HDD back as it was and look closer :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Thu Nov 15, 2018 4:58 am

you still need the SD for booting these days?
i dont mind doing a fresh image right on the ssd if it is possible.
thank you sir

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Thu Nov 15, 2018 5:10 am

crooked wrote:you still need the SD for booting these days?
yep no change here.. maybe for the newer boards but the XU3/XU4 will always need it.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Fri Nov 16, 2018 12:06 pm

swapped out the HDD with a fresh new SSD.

it boots really quick, and is generally snappier.

However like before, some boots are extremely slow to load the desktop and also audio drop outs in kodi video (stream and local files)

Any suggestions? or should i fresh image this?
ive put so much time in to the setup lol.

have tried the usual upgrade/update/distro that is mentioned frequently here.

i would have chalked it up to a bloated kodi or something, but Debian desktop not loading consistently and ssh connection hanging on password (randomly)
says the image was prob bunked by the bad hdd sectors and when i copied the files over, prob some of the corrupted data came with?

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Fri Nov 16, 2018 6:25 pm

You said, the OS is still running from SD card, and only some folders run from SSD?
Maybe it's the SD card that is also having issues?
I've had a couple of SD cards that were really worn out, loading was still fine, but writing on them was so slow, that you could consider them as "broken".
And since caches and logs might be written on the SD card, this could also be an issue.

You can also try and see if fstrim helps a little, although I think I activated fstrim by default:

Code: Select all

sudo fstrim -v /
To test if the files themselves are damaged, you can probably directly connect the SSD to your TV again, as you said you did before and saw issues there as well.
If they still happen even if you use the SSD now, then yes, the files itself might be damaged.

I also suggest checking on the logs /var/log/syslog to see if there are some hints of problems, liked dropped USB connection or something like that.
Are you using a different CPU governor? "On-Demand" or something like that?
Are you connected via LAN or WLAN? Maybe the connection drops every now and then?
crooked wrote:or should i fresh image this?
How about you try it on a different SD, keep the one you have and make a new one with a fresh install and compare.. That way you can keep your already configured OS for now, but still know if something is wrong with the settings/SD card by testing another one :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Fri Nov 16, 2018 9:14 pm

that is a great idea, simply test a fresh image. never thought of that.

as far as i know the sd only loads the basics, then hands the rest off to the hdd/sdd.

once its past some of the boot code, it switches over. Standard boot.ini/uuid change.

thank you

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Fri Nov 16, 2018 9:48 pm

crooked wrote:that is a great idea, simply test a fresh image. never thought of that.

as far as i know the sd only loads the basics, then hands the rest off to the hdd/sdd.

once its past some of the boot code, it switches over. Standard boot.ini/uuid change.

thank you
Ah I see, so the full OS is on the SSD, hmm then normally that shouldn't be an issue (buffering and such).
That makes the issue rather strange as it should work fine from an SSD.
So either it's a configuration issue, or I'm not sure what could be the issue.
Starting with a clean image as comparison is probably the best thing to try right now.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Sat Nov 17, 2018 2:50 am

will do sir, thank you

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 4:28 am

so, it turns out i did infact have 2 not so happy SD cards.

The 3rd booted perfectly and allowed me to config and setup accordingly.

However 1 snag...I used the GamestationTurbo Setup script to setup the boot from SSD.
I usually use rsync + boot.ini uuid change.

THis is the message I receive
https://imgur.com/a/X0ZJ9Sp

any thoughts?

I created a 30gb EXT4 partition for the gamestationTurbo to use.
Pointed to that with the setup script, everything went without a hitch in there.
then first boot that imgur/screen happened.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Mon Nov 19, 2018 6:57 am

did you update the system first before you used the script for the SSD/HDD?
The script was changed over the time.
You can always put back the UUID from the SD card and boot that way to check on the system, but I think the latest version of that script doesn't use UUID anymore for harddrives but uses /dev/mapper/hdd-root instead.
That's why I asked if you updated the system first.

Do you have a Linux PC to check on the content of the harddrive to verify the data is actually on it?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 7:02 am

i did the full update and a few other basic settings from the Setup script before the transfer.

I can confirm the files are all there.
the boot.ini uses the dev/mapper. i am unfamilliar with how to change that back to sd card.

what do i change the dev/mapper to for the Sd card?

thank you

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Mon Nov 19, 2018 7:05 am

crooked wrote: what do i change the dev/mapper to for the Sd card?

Code: Select all

root=UUID=e139ce78-9841-40fe-8823-96a304a09859
you might have to change /etc/fstab as well to use this UUID, not sure though.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 7:27 am

giving it another go.

i noticed the "logical volume" created by your script, does not mount on the desktop. whether that is normal or not.
in gparded it is "deactivated"

maybe best i wipe this partition and use the rsync on an ext4.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 7:36 am

strangely enough it worked this time.

one more issue, preventing kodi from auto starting is this pop up
https://imgur.com/a/095AxIk

also, how would one confirm the ssd is being used now?

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Mon Nov 19, 2018 7:47 am

about the error... can you try the following:

Code: Select all

su -
dpkg-reconfigure vhba-dkms
This should rebuild the dkms module and I think this should fix this issue.

about confirming if ssd is used.

Check the output of df -h or mount df -h is probably the easier one.. you should see what the root partition "/" is mounted at.
If you see something like

Code: Select all

/dev/dm-0                    246G    230G  5,9G   98% /
that means the HDD is loaded, if it shows something like mmcblk0p2 then SD is loaded.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 8:09 am

Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 399M 7.9M 392M 2% /run
/dev/mmcblk1p2 29G 4.7G 25G 17% /
tmpfs 998M 1.6M 996M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 998M 0 998M 0% /sys/fs/cgroup
/dev/mmcblk1p1 71M 29M 43M 41% /boot
tmpfs 200M 16K 200M 1% /run/user/1000
/dev/sda2 177G 85G 83G 51% /media/odroid/fef65275-7a7c-d401-e076-52757a7cd401

that is df -h. not sure which pertains to the boot.

the error is gone now as well.

all of this because of sluggish OS and audio drop outs.
all fixed now. testing local and streaming vids now.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Mon Nov 19, 2018 8:34 am

This means it booted from SD card
crooked wrote:/dev/mmcblk1p2 29G 4.7G 25G 17% /
This is where your harddrive it's currently mounted... its not used as the rootfs.
crooked wrote:/dev/sda2 177G 85G 83G 51% /media/odroid/fef65275-7a7c-d401-e076-52757a7cd401
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Mon Nov 19, 2018 11:09 am

so even the rsync method didnt work. as you stated above.

simply adding the uuid did nothing and gave that error
https://imgur.com/a/X0ZJ9Sp

how does one know the uuid points to the correct folder in /dev/sda1?

ie /media/odroid/osssd
is where this partition is filesystem is on the ssd. maybe not mounting correctly to the uuid?

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Tue Nov 20, 2018 4:31 pm

crooked wrote:how does one know the uuid points to the correct folder in /dev/sda1?
The UUID is for the entire device NOT for a folder.
So /dev/sda1 has a UUID, but a folder ON sda1 does not have an UUID (just to clear some terminology)
You can check the UUIDs for each harddrive via:

Code: Select all

ls -l /dev/disk/by-uuid/
crooked wrote: ie /media/odroid/osssd
is where this partition is filesystem is on the ssd. maybe not mounting correctly to the uuid?
Everything mounted under /media/odroid is "auto-mounted" means you have not defined where it should be mounted, and is therefore not used for anything.
It's like when you plug-in a USB thumbdrive or external USB HDD then it gets mounted to /media/odroid but that has nothing to do with where the rootfs is mounted, if the system should use the HDD/SDD as rootfs it needs to be mounted as "/" and not somewhere random.

The output on your last post showed that only /dev/sda2 -- TWO not ONE was mounted to /media/odroid, and you said something about you put the OS on /dev/sda1, so my guess /dev/sda1 is not correctly formatted and used yet.

Can you check the content of /mnt ? if you see tons of folders that means it copied the rootfs to /mnt but the HDD/SSD was not mounted correctly first.
In that case you can also delete all files and folder under /mnt

Code: Select all

rm -rf /mnt/*
make sure you put the * at the end as you do not want to delete /mnt itself.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Wed Nov 21, 2018 7:11 am

nothing happens with that rm -rf /mnt/* command

i will sort out the mount proper of said partition, ensuring it is not "auto mounted" in the /media folder.

EXT4 partition is what I used, is that correct?

does fstab sound like the correct approach to mount this ?


/dev/sda1 35G 5.2G 29G 16% /media/odroid/osssd
BLKID
/dev/sda1: LABEL="osssd" UUID="cf4d1d2b-fdc8-4ea2-b1ab-88dde299fed1" TYPE="ext4" PARTUUID="971e4111-01"


the above is the drive partition we need the root to boot from.
I assume changing the mount point of that sda1 should do the trick?
then the uuid method should work, as it points to the ssd partitions root

that being said, fstab is scary to me.

UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime,discard$
UUID=96C3-9298 /boot vfat noatime,discard $

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Wed Nov 21, 2018 7:35 am

crooked wrote:nothing happens with that rm -rf /mnt/* command
Nothing happens means the command ran "ok".
No error = good under Linux.. many commands only output if they have an error to report.
crooked wrote:EXT4 partition is what I used, is that correct?
If you use my script to deploy rootfs to HDD/SSD, then it's using LVM on which an ext4 partition is written.
crooked wrote:does fstab sound like the correct approach to mount this ?
Generally yes but if the entire rootfs is on the HDD/SSD it also needs to be put in the boot.ini for it to work correctly.
crooked wrote: /dev/sda1 35G 5.2G 29G 16% /media/odroid/osssd
BLKID
/dev/sda1: LABEL="osssd" UUID="cf4d1d2b-fdc8-4ea2-b1ab-88dde299fed1" TYPE="ext4" PARTUUID="971e4111-01"
What's the content of /dev/sda1?
Or what's the output of:

Code: Select all

ls -l /media/odroid/osssd
crooked wrote: UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime,discard$
UUID=96C3-9298 /boot vfat noatime,discard $
That is the original value for loading from SD/eMMC You would have to change the UUID in the first line for it to use the HDD, but as I said, please show me the content of /media/odroid/osssd first.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Wed Nov 21, 2018 8:12 am

please see below;

Code: Select all

odroid@gamestation-turbo:/media/odroid/osssd$ ls
bin   dev  home  lost+found  mnt  proc  run   srv  tmp  var
boot  etc  lib   media       opt  root  sbin  sys  usr
odroid@gamestation-turbo:/media/odroid/osssd$ ls -l /media/odroid/osssd
total 96
drwxr-xr-x   2 root root  4096 Nov 18 16:47 bin
drwxr-xr-x   3 root root  4096 Jan  1  1970 boot
drwxr-xr-x   2 root root  4096 Nov 19 01:54 dev
drwxr-xr-x 141 root root 12288 Nov 19 01:53 etc
drwxr-xr-x   3 root root  4096 Jun 22  2013 home
drwxr-xr-x  19 root root  4096 Nov 18 17:08 lib
drwx------   2 root root 16384 Nov 19 01:52 lost+found
drwxr-xr-x   2 root root  4096 Jan  1  2013 media
drwxr-xr-x   2 root root  4096 May 10  2015 mnt
drwxr-xr-x   2 root root  4096 Mar 13  2013 opt
dr-xr-xr-x   2 root root  4096 Jan  1  1970 proc
drwx------  15 root root  4096 Nov 18 18:41 root
drwxr-xr-x   2 root root  4096 Nov 19 01:57 run
drwxr-xr-x   2 root root  4096 Nov 18 19:28 sbin
drwxr-xr-x   2 root root  4096 Mar 13  2013 srv
dr-xr-xr-x   2 root root  4096 Nov 19 01:58 sys
drwxrwxrwt   2 root root  4096 Nov 19 01:54 tmp
drwxr-xr-x  11 root root  4096 Mar 13  2017 usr
drwxr-xr-x  11 root root  4096 Mar 13  2013 var
odroid@gamestation-turbo:/media/odroid/osssd$

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Wed Nov 21, 2018 9:07 am

seems to be ok, so yes you can change UUIDs on fstab and boot.ini and it should work with sda1 as rootfs
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

crooked
Posts: 125
Joined: Sun Sep 28, 2014 3:55 am
languages_spoken: english
ODROIDs: u3
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by crooked » Wed Nov 21, 2018 10:22 am

thank you sir

is it still bad to have the ssd mounted to /media/odroid/osssd?

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Wed Nov 21, 2018 12:44 pm

crooked wrote:thank you sir

is it still bad to have the ssd mounted to /media/odroid/osssd?
once you change the entry in fstab it will no longer be mounted under /media/odroid
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Mon Nov 26, 2018 12:08 am

crooked wrote:Anyone get anywhere with CEC?
Just uploaded new version of libcec4 with that CEC should finally work.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Tue Nov 27, 2018 2:19 am

meveric wrote:There are three options to do so easily:
Symlink to a connected HDD
Copy over the folder /home/odroid/ROMS to a connected harddrive
Code: Select all
cp -av /home/odroid/ROMS /media/odroid/MyHDD/
delete or rename the folder on your SD/eMMC card
Code: Select all
mv /home/odroid/ROMS{,.bak}
create a symlink from your HDD to where the original folder was located.
Code: Select all
ln -sf /media/odroid/MyHDD/ROMS /home/odroid/ROMS
Make sure the user odroid has full write privileges for the folder! (this depends on the filesystem of your HDD, for example ext4, NTFS, Fat32, etc.)

I want to add a HDD to the Gaming Console Case. I want to have it in a Windows FileSystem like FAT32 or NTFS to easily connect it to my PC and put more Roms when I want.

Since you say that some filesystems have more privileges than others.... In which format do I have to have the HDD??


Also, the system boots by default to Kodi (which I think it's the default behaviour of your image) and sometimes when I click on the Exit Menu and then on Exit, it freezes. Is that normal? Only way to exit is by using the Ctrl+Alt+K combination.

Thanks!!
Last edited by emulajavi on Tue Nov 27, 2018 4:04 am, edited 1 time in total.

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Tue Nov 27, 2018 3:17 am

emulajavi wrote:I want to add a HDD to the Gaming Console Case. I want to have it in a Windows FileSystem like FAT32 or NTFS to easily connect it to my PC and put more Roms when I want.

Since you say that some filesystems have more privileges than others.... In which format do I have to have the HDD??
For the console kit, I use "symlinks" to the videos displayed on the LCD screen, symlinks do not work on FAT32 or NTFS, and Linux filesystems that support these do not work under Windows.
Both NTFS and FAT32 will work for putting ROMs on them, but they will not work with the links that I create. You could copy the videos instead of using the symlinks that are normally used.
But for full support only a Linux filesystem will work.
emulajavi wrote:Also, the system boots by default to Kodi (which I think its de default behaviour of your image) and sometimes when I click on the Exit Menu and then on Exit, it freezes. Is that normal? Only way to exit is by using the Ctrl+Alt+K combination.

Thanks!!
Booting into Kodi is the default, yes, but that can be changed by using the Setup ODROID GameStation Turbo tool on the Desktop, that Kodi sometimes hangs is a problem with Kodi, and sadly there is no workaround for it, that's why I added the CTRL + ALT + K combination.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Tue Nov 27, 2018 4:25 am

meveric wrote:
emulajavi wrote:I want to add a HDD to the Gaming Console Case. I want to have it in a Windows FileSystem like FAT32 or NTFS to easily connect it to my PC and put more Roms when I want.

Since you say that some filesystems have more privileges than others.... In which format do I have to have the HDD??
For the console kit, I use "symlinks" to the videos displayed on the LCD screen, symlinks do not work on FAT32 or NTFS, and Linux filesystems that support these do not work under Windows.
Both NTFS and FAT32 will work for putting ROMs on them, but they will not work with the links that I create. You could copy the videos instead of using the symlinks that are normally used.
But for full support only a Linux filesystem will work.
I have a 16GB SD Card and I want to connect a 2TB drive to put the ROMS there instead that placing them on the SD card, so the OS would be on the SD and the ROMS, Artwork, etc on the HDD.

So you recommend me that I connect the HDD and format it (to a Linux Filesystem), and then use the commands you've put in the first post to copy the ROMS folder from the SD to the HDD, create the 'symlink', etc to have full support'?

And for loading roms, to do it via SFTP or by pluging a USB thumbdrive and copying the roms from there to the "internal" HDD. Correct?

What do you mean when talking about that you 'use "symlinks" to the videos displayed on the LCD screen'? That the videos with the Logos of the N64, NES, etc are also stored in the /home/odroid/ROMS folder and that if Fat32 or NTFS were used, due to them not supporting 'symlinks', the videos with the logo wouldn't be displayed on the LCD? Or something else?

Also, what does the option "10. Move rootfs to HDD" from the GameStation Turbo Setup do?


Thank you!

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Tue Nov 27, 2018 4:48 am

emulajavi wrote:So you recommend me that I connect the HDD and format it (to a Linux Filesystem), and then use the commands you've put in the first post to copy the ROMS folder from the SD to the HDD, create the 'symlink', etc to have full support'?
There are several different ways to do it:
1. you can copy the entire content of the SD card to the external HDD (rootfs - root file system) and only use the SD card for booting.
That way the OS and ROMS would still be together but all on the HDD, that's easier to maintain the entire system as a whole if you want to make a backup for example.
It's the most integrated solution, as you only need to take care of the HDD and have everything to boot your ODROID and place ROMS there, the symlinks will work you could even expand your collection very easy, even by adding additional Harddrives, as it's managed via LVM (this requires some Linux knowledge, but doubt you gonna need that anytime soon, but it's an OPTION you have with that approach).
There is also a script that can handle this approach for you automatically.
2. copy/move the ROMS folder on the HDD, and create a symlink for /home/odroid/ROMS
This works for any file system (NTFS, FAT32, or linux filesystems such as ext4)
benefit: it's rather easy and quick to do and works with any filesystem
disadvantage: if you use something like NTFS or FAT32, you can not use symlinks and updates of the OS might not always work correctly as some commands may not work on NTFS or FAT32
There are commandos that I use for example to change the OWNER of folder and files, to make sure retroarch has access to it, for example so the game can store save files.
These commands may not work correctly on NTFS and FAT32 systems.
Also if you remove the harddrive, the image will still boot, but the image will not work correctly as the ROMS folder will be missing, and an update may cause unexpected behavior.
I have very little experience with this, so I can't say IF or IF NOT there will be issues, I say there may be.
3. copy the CONTENT of the ROMS folder on a HDD/Partition and MOUNT the folder into the existing /home/odroid/ROMS folder.
This is similar to the 2nd solution, but with the benefit, of that when you remove the harddrive, you still have a ROMS folder (the original one from the SD card) and updates should run normally in case a HDD is not connected.
Aside from that it has the same benefits and disadvantages of solution 2.
emulajavi wrote:And for loading roms, to do it via SFTP or by pluging a USB thumbdrive and copying the roms from there to the "internal" HDD. Correct?
both should work fine, you can either send the files via network or via attached USB drive directly to the ODROID and the ROMs folder or if you choose to use solution 2. or 3. you can copy the games on the HDD when you plug it into your PC directly.
emulajavi wrote:What do you mean when talking about that you 'use "symlinks" to the videos displayed on the LCD screen'? That the videos with the Logos of the N64, NES, etc are also stored in the /home/odroid/ROMS folder and that if Fat32 or NTFS were used, due to them not supporting 'symlinks', the videos with the logo wouldn't be displayed on the LCD? Or something else?
The videos are NOT stored in /home/odroid/ROMS, and that's the problem, they are somewhere else, and rather than copying these videos from the other location to /home/odroid/ROMS, I use symlinks (like .lnk files under Windows) to just tell the system where to find these files.
These symlinks are linux typical and don't work on filesystems like FAT32 or NTFS, therefore you would have to COPY the videos directly to /home/odroid/ROMS to make them work, or else the files would not be found (as there are no symlinks pointing to the files).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Thu Nov 29, 2018 1:47 am

meveric wrote:
emulajavi wrote:So you recommend me that I connect the HDD and format it (to a Linux Filesystem), and then use the commands you've put in the first post to copy the ROMS folder from the SD to the HDD, create the 'symlink', etc to have full support'?
There are several different ways to do it:
1. you can copy the entire content of the SD card to the external HDD (rootfs - root file system) and only use the SD card for booting.
That way the OS and ROMS would still be together but all on the HDD, that's easier to maintain the entire system as a whole if you want to make a backup for example.
It's the most integrated solution, as you only need to take care of the HDD and have everything to boot your ODROID and place ROMS there, the symlinks will work you could even expand your collection very easy, even by adding additional Harddrives, as it's managed via LVM (this requires some Linux knowledge, but doubt you gonna need that anytime soon, but it's an OPTION you have with that approach).
There is also a script that can handle this approach for you automatically.
2. copy/move the ROMS folder on the HDD, and create a symlink for /home/odroid/ROMS
This works for any file system (NTFS, FAT32, or linux filesystems such as ext4)
benefit: it's rather easy and quick to do and works with any filesystem
disadvantage: if you use something like NTFS or FAT32, you can not use symlinks and updates of the OS might not always work correctly as some commands may not work on NTFS or FAT32
There are commandos that I use for example to change the OWNER of folder and files, to make sure retroarch has access to it, for example so the game can store save files.
These commands may not work correctly on NTFS and FAT32 systems.
Also if you remove the harddrive, the image will still boot, but the image will not work correctly as the ROMS folder will be missing, and an update may cause unexpected behavior.
I have very little experience with this, so I can't say IF or IF NOT there will be issues, I say there may be.
3. copy the CONTENT of the ROMS folder on a HDD/Partition and MOUNT the folder into the existing /home/odroid/ROMS folder.
This is similar to the 2nd solution, but with the benefit, of that when you remove the harddrive, you still have a ROMS folder (the original one from the SD card) and updates should run normally in case a HDD is not connected.
Aside from that it has the same benefits and disadvantages of solution 2.
emulajavi wrote:And for loading roms, to do it via SFTP or by pluging a USB thumbdrive and copying the roms from there to the "internal" HDD. Correct?
both should work fine, you can either send the files via network or via attached USB drive directly to the ODROID and the ROMs folder or if you choose to use solution 2. or 3. you can copy the games on the HDD when you plug it into your PC directly.
emulajavi wrote:What do you mean when talking about that you 'use "symlinks" to the videos displayed on the LCD screen'? That the videos with the Logos of the N64, NES, etc are also stored in the /home/odroid/ROMS folder and that if Fat32 or NTFS were used, due to them not supporting 'symlinks', the videos with the logo wouldn't be displayed on the LCD? Or something else?
The videos are NOT stored in /home/odroid/ROMS, and that's the problem, they are somewhere else, and rather than copying these videos from the other location to /home/odroid/ROMS, I use symlinks (like .lnk files under Windows) to just tell the system where to find these files.
These symlinks are linux typical and don't work on filesystems like FAT32 or NTFS, therefore you would have to COPY the videos directly to /home/odroid/ROMS to make them work, or else the files would not be found (as there are no symlinks pointing to the files).

Thank you very much for all your explanations!
1. you can copy the entire content of the SD card to the external HDD (rootfs - root file system) and only use the SD card for booting.
That way the OS and ROMS would still be together but all on the HDD, that's easier to maintain the entire system as a whole if you want to make a backup for example.
It's the most integrated solution, as you only need to take care of the HDD and have everything to boot your ODROID and place ROMS there, the symlinks will work you could even expand your collection very easy, even by adding additional Harddrives, as it's managed via LVM (this requires some Linux knowledge, but doubt you gonna need that anytime soon, but it's an OPTION you have with that approach).
There is also a script that can handle this approach for you automatically.
Since the HDD will mainly stay inside the console kit, I think I will take this approach. To do this.... all I have to do is connect the HDD, format it, open the 'Setup GameStation Turbo' that it is on the Desktop, and the select the (i think it's called option 10 'Move rootfs to HDD' ) line ?? That way all the symlinks would be automatically created, folders moved, etc?

After doing this....let's say you release a new image (.img) or I 'break something' and I need to download your latest .img and flash it to a SD card with Etcher to setup again my system. How will I keep the roms? Let's say something in my system gets 'corrupted'. If I use Etcher to flash a new SD card with your latest .img using my Windows PC, then I extract the SD that is in ODROID and leave the HDD connected, insert the new one, and boot.... all I have to do is to go into the 'Setup GameStation Turbo' and run the 'move rootfs to HDD' and all will be ok again, roms, kept, etc? Or do I have to backup first the content of the ROMS folder of the HDD, format it, run the 'move rootfs to the HDD' thing, and them copy back into the HDD the ROMS folder I had previously backup??


Thanks!

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Thu Nov 29, 2018 3:06 am

emulajavi wrote:Since the HDD will mainly stay inside the console kit, I think I will take this approach. To do this.... all I have to do is connect the HDD, format it, open the 'Setup GameStation Turbo' that it is on the Desktop, and the select the (i think it's called option 10 'Move rootfs to HDD' ) line ?? That way all the symlinks would be automatically created, folders moved, etc?
Yes, it basically copies the entire SD card to the HDD, and from then on just uses the HDD as if it was the SD card :)
emulajavi wrote:After doing this....let's say you release a new image (.img) or I 'break something' and I need to download your latest .img and flash it to a SD card with Etcher to setup again my system. How will I keep the roms? Let's say something in my system gets 'corrupted'. If I use Etcher to flash a new SD card with your latest .img using my Windows PC, then I extract the SD that is in ODROID and leave the HDD connected, insert the new one, and boot.... all I have to do is to go into the 'Setup GameStation Turbo' and run the 'move rootfs to HDD' and all will be ok again, roms, kept, etc? Or do I have to backup first the content of the ROMS folder of the HDD, format it, run the 'move rootfs to the HDD' thing, and them copy back into the HDD the ROMS folder I had previously backup??
Thanks!
WAAAH To much intertwined questions to pull them all apart :D
So let me just describe what would happen.
It's not as easy as doing the same step again and everything is back as it was (ROMS included), sadly the system will basically "format" the HDD "IF" you use the same step again and you would start off with an empty HDD instead.
BUT, that only means that is not "how" you do it.

When you flash a new SD card and boot from that, you can connect the HDD again and you'll have access to all files that are on the HDD, you'll see the ROMS folder and everything else that is on the HDD and can copy them to another HDD for example as a backup.
Then you can do the process with the moving the OS to HDD again, and copy your ROMS back over and the system should be as it was before.

A new .img is something that happens "rarely", as I normally do updates instead of publishing a new image each time I bring out something new.
BUT currently the system is using Debian Jessie (Debian 8) and Debian Stretch (Debian 9) is already released and sooner or later I will update the main image to Debian Stretch.
I'm not sure if there will be an update path from Jessie to Stretch, but that might be a rare case where you might need a new image.
Please Note: A new OS image does not mean the old one stops working, in fact you can probably use the image the next 10 years without ever touching it again, if you found a configuration that you're happy with.
But for latest Software and updates, at some point you might need to switch to the newer OS.

I can guide you to different processes when it comes to that.
Also I can show you how to work with the rootfs to HDD option, as there will be some manual steps you need to know to control your image (increasing disk space and such).
But it's not hard and you learn a few new things about Linux :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Thu Nov 29, 2018 4:48 am

meveric wrote: WAAAH To much intertwined questions to pull them all apart :D
Thank you very much. :D

I’m waiting for a 2TB HDD to arrive from Amazon. When it arrives, this is what I’ll do:
1. Connect the HDD
2. Move the OS to the HDD with the ‘move rootfs to HDD’ option of the Setup GameStation Turbo
3. Add new roms by copying them via SFTP or USB thumbdrive.
That way I’ll have it all correctly setup and I will get the updates using Terminal.


If you release a newer OS (or if I break something) this is what I’ll do:
1. Backup the content of /ROMS from the HDD.
2. Flash a SD with the .img containing the new OS
3. Move the OS to the HDD with the ‘move rootfs to HDD’ option of the Setup GameStation Turbo
4. Copy the /ROMS back over to the HDD.
I think that the roms would have to be ‘scanned’ again and all the videos, pics, etc downloaded again.


Are both correct?


Thinking about ‘being prepared’ to a newer OS release wouldn’t be better to only ‘copy/move the ROMS folder on the HDD, and create a symlink for /home/odroid/ROMS’ instead of moving all of the OS to the to the HDD?

That way if I booted another OS version using a different SD card....all I would need is to create the symlink for /home/odroid/ROMS and all will work, although pics and videos would have to be downloaded again. So maybe there’s no too much difference between doing it one way (moving rootfs to the HDD) or the other (only creating a symlink for /home/odroid/ROMS). :? :?

Thank you!

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Thu Nov 29, 2018 4:55 am

emulajavi wrote:Are both correct?
yep seems fine :)

emulajavi wrote:Thinking about ‘being prepared’ to a newer OS release wouldn’t be better to only ‘copy/move the ROMS folder on the HDD, and create a symlink for /home/odroid/ROMS’ instead of moving all of the OS to the to the HDD?
In that case only having the ROMS folder on an external device would be better. The ROMS folder and structure won't change, even if the OS does. That way it should work on the newer OS version as well.
emulajavi wrote:That way if I booted another OS version using a different SD card....all I would need is to create the symlink for /home/odroid/ROMS and all will work, although pics and videos would have to be downloaded again.
That is correct :)



I personally use the "mount" approach, but not only use an external HDD, but in fact I mount the system via network from my "NAS" (another ODROID that houses all ROMS and other files).
That way I can mount the same ROMS folder on different images simultaneously ;)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
rooted
Posts: 6509
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 34 times
Been thanked: 13 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by rooted » Thu Nov 29, 2018 9:41 am

meveric wrote: Please Note: A new OS image does not mean the old one stops working, in fact you can probably use the image the next 10 years without ever touching it again, if you found a configuration that you're happy with.
But for latest Software and updates, at some point you might need to switch to the newer OS.
This. So many times I have said I wish I would have left well enough alone.

User avatar
mad_ady
Posts: 5989
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 102 times
Been thanked: 59 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by mad_ady » Thu Nov 29, 2018 2:44 pm

The power of hindsight. :)
But how else are you going to learn anything?

User avatar
rooted
Posts: 6509
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 34 times
Been thanked: 13 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by rooted » Thu Nov 29, 2018 2:46 pm

I like to turn mishaps into a learning experience, but when you have lots of mishaps it becomes harder to do :)

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Sat Dec 01, 2018 11:09 am

meveric wrote: That is correct :)
Hi, received the 2TB HDD and this is what I did:

1. Format it as ext4

2. Did this:
Symlink to a connected HDD
Copy over the folder /home/odroid/ROMS to a connected harddrive

Code: Select all

cp -av /home/odroid/ROMS /media/odroid/GamesHDD/
delete or rename the folder on your SD/eMMC card

Code: Select all

mv /home/odroid/ROMS{,.bak}
create a symlink from your HDD to where the original folder was located.

Code: Select all

ln -sf /media/odroid/GamesHDD/ROMS /home/odroid/ROMS
3- Placed some Genesis and Game Gear Roms in their folders.


I have two issues:

1.- GameSir gamepad doesn’t work inside Kodi or inside the Rom Collection browser. The controller is lighten up. If I launch a game using the keyboard, Retroach starts and he gamepad works correctly. I tried some games and in all the gamepad works. Also, I’ve set up the controller with the Gamestation Turbo Scrip from the Desktop, and all buttons are correctly recognized. It just only works inside retro arch. I can’t move on Kodi or the Roms Browser.


2.- I imported the games pressing C on the keyboard and sellecting Accurate, Guess and the other setting, but seems it recognizes/downloads nothing, because nothing is displayed on the menu. All the genre, year, pics, etc remain empty. I’ve even tried to ‘rescrap’ an individual game like Sonic and selectin the interactive option (so to be able to manually say what game it is) but nothing happens. A blue bar appears on the screen and says it’s looking on some websites, but nothing happens.


Thanks!

User avatar
meveric
Posts: 10179
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
Has thanked: 10 times
Been thanked: 81 times
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by meveric » Sun Dec 02, 2018 1:46 am

emulajavi wrote:I have two issues:

1.- GameSir gamepad doesn’t work inside Kodi or inside the Rom Collection browser. The controller is lighten up. If I launch a game using the keyboard, Retroach starts and he gamepad works correctly. I tried some games and in all the gamepad works. Also, I’ve set up the controller with the Gamestation Turbo Scrip from the Desktop, and all buttons are correctly recognized. It just only works inside retro arch. I can’t move on Kodi or the Roms Browser.
Yes, there are only a few controllers that work out of the box with Kodi. XBox 360 controller for example do work perfectly fine.
But for GameSir you probably have to create your own mapping file for it to work, although I'm not sure this is working at all anymore.
It was working on Kodi 16 that's what I know but Kodi 17 this might no longer be the case.
emulajavi wrote: 2.- I imported the games pressing C on the keyboard and sellecting Accurate, Guess and the other setting, but seems it recognizes/downloads nothing, because nothing is displayed on the menu. All the genre, year, pics, etc remain empty. I’ve even tried to ‘rescrap’ an individual game like Sonic and selectin the interactive option (so to be able to manually say what game it is) but nothing happens. A blue bar appears on the screen and says it’s looking on some websites, but nothing happens.
The Rom Collection Browser Plugin for Kodi is rather old, in fact it was discontinued for quite some time and just recently got updated again.
The old version should still work, but might have some issues, and not all provider may work all the time, especially thegamedb is quite often not working correctly.
There is a newer version available for Kodi 17 and higher, but it's not very stable yet, but scrapping does work with that (https://github.com/maloep/romcollectionbrowser/releases)

I think the Kodi situation is currently a mess and you're better off using EmulationStation as a frontend.
I'll see if I can fix Kodi and RCB integration but that will probably take quite a while.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

emulajavi
Posts: 6
Joined: Tue Nov 27, 2018 2:14 am
languages_spoken: english
ODROIDs: XU4Q on OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: ODROID GameStation Turbo with Kodi for XU3/XU4

Unread post by emulajavi » Sun Dec 02, 2018 3:49 am

meveric wrote: Yes, there are only a few controllers that work out of the box with Kodi. XBox 360 controller for example do work perfectly fine.
But for GameSir you probably have to create your own mapping file for it to work, although I'm not sure this is working at all anymore.
It was working on Kodi 16 that's what I know but Kodi 17 this might no longer be the case.
I think that with the .img that came with the odroid (bought on ameridroid), the controller worked correctly on Kodi…. and with the .img from the first post it doesn't work….

I'll give it a try also with a Xbox 360 controller.

meveric wrote: The Rom Collection Browser Plugin for Kodi is rather old, in fact it was discontinued for quite some time and just recently got updated again.
The old version should still work, but might have some issues, and not all provider may work all the time, especially thegamedb is quite often not working correctly.
There is a newer version available for Kodi 17 and higher, but it's not very stable yet, but scrapping does work with that (https://github.com/maloep/romcollectionbrowser/releases)

I think the Kodi situation is currently a mess and you're better off using EmulationStation as a frontend.
I'll see if I can fix Kodi and RCB integration but that will probably take quite a while.
Since Kodi launches by default, and I remember you saying on some posts that you preferred using Rom Collection Browser to EmulationStation,..... I though it'd better to use it. But maybe those were old posts.

So it is expected behaviour that the Rom Collection Browser included with your image doesn't find anything when 'scratching', correct?

Currently I have put some ROMS inside the Atari 2600, Genesis and GameGear folders (and Rom Collection Browser found them all) but EmulationStation only shows two systems: Atari2600 and Genesis. I've been able to scratch this two systems with EmulationStation and it gets the metadata, pics, etc...


Thanks!!

Post Reply

Return to “OGST-XU4”

Who is online

Users browsing this forum: No registered users and 1 guest