DietPi for Odroid C2

User avatar
meveric
Posts: 9612
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
Contact:

Re: DietPi for Odroid C2

Unread post by meveric » Sat Mar 04, 2017 8:56 am

If you check forums, you'll see a lot of people have issues with Kodi 17.
It's not always the best idea to use the latest version of a software, especially if it's that unstable.
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.

hami
Posts: 20
Joined: Sat Mar 19, 2016 5:31 am
languages_spoken: english, czech
ODROIDs: C1+, C2
Contact:

Re: DietPi for Odroid C2

Unread post by hami » Thu Mar 16, 2017 5:02 pm

Dear all,
I have installed dietpi on Odroid C2 for Kodi and a simple file server. Kodi is set up to start automatically but someone would end Kodi. Then the dietpi will go back on console.
I would like to you the remote controller to start the Kodi from the console. How to set-up this? I have HK remote control which works fine in Kodi. But I do not know how to set-up the controller (by pressing i.e. KEY_POWER) to start Kodi (or any command/program) directly from console. Would you help me, please? Thank you.

Petr

dressen
Posts: 5
Joined: Mon Jun 20, 2016 9:39 am
languages_spoken: english
ODROIDs: ODROID-U2/ODROID-C2
Contact:

Re: DietPi for Odroid C2

Unread post by dressen » Mon Apr 03, 2017 12:53 pm

Hi Petr,

To get kodi to launch via the remote, you can use the LIRC toolkit (http://www.lirc.org/html/configure.html).

First, create a LIRC configuration for your kodi user in its home directory, e.g. ~kodi/.lircrc. I run kodi as the user kodi. I believe it's configured to run as root out of the box with DietPi.

Code: Select all

begin
prog = irexec
remote = lircd.conf
button = KEY_POWER
config = pgrep kodi-standalone || /usr/bin/xinit /usr/local/bin/kodi-standalone 
repeat = 0
end

Next, create a new systemd service which launches irexec for the user you run kodi as. Create the file /etc/systemd/system/kodi-remote.service and change the User/Group lines to correspond to your kodi user:

Code: Select all

[Unit]
Description = Starts instance of irexec
After = systemd-user-sessions.service network.target sound.target odroid-remote.service
Conflicts=getty@tty7.service

[Service]
User = kodi
Group = kodi
PAMName=login
Type = simple
TTYPath=/dev/tty7
ExecStart = /usr/bin/irexec
Restart = on-abort
StandardInput = tty

[Install]
WantedBy = multi-user.target

After creating this file, run systemctl enable kodi-remote.service to start this service on reboot. Then run systemctl start kodi-remote to start the service.

If everything is working correctly, you should be able to hit the Power button on your odroid remote and get kodi to run!

Dear all,
I have installed dietpi on Odroid C2 for Kodi and a simple file server. Kodi is set up to start automatically but someone would end Kodi. Then the dietpi will go back on console.
I would like to you the remote controller to start the Kodi from the console. How to set-up this? I have HK remote control which works fine in Kodi. But I do not know how to set-up the controller (by pressing i.e. KEY_POWER) to start Kodi (or any command/program) directly from console. Would you help me, please? Thank you.

hami
Posts: 20
Joined: Sat Mar 19, 2016 5:31 am
languages_spoken: english, czech
ODROIDs: C1+, C2
Contact:

Re: DietPi for Odroid C2

Unread post by hami » Tue Apr 04, 2017 3:18 pm

Hi Dressen,

thank you for a nice example. It works for me.

Perhaps you have some experiences with remote control on Odroid C2, so I would like to ask you if you have has any performance issues with remote control, like the remote control does not do anything when a button is pushed. When any video is played the situation is worse than the video if off. I have tried also "irw" from console to see the remote control in action, and also here I can confirm that some button pushes are not detected. But the worst behaviour I see during the video playback. The Hardkernel remote control as well as some other were checked with the same behaviour. The same test I have done on Odroid C1+ with dietpi+kodi. The remote control result was much more acceptable - and almost without big problems. Is here something what I could try to improve remote control performance? Thank you.

dressen
Posts: 5
Joined: Mon Jun 20, 2016 9:39 am
languages_spoken: english
ODROIDs: ODROID-U2/ODROID-C2
Contact:

Re: DietPi for Odroid C2

Unread post by dressen » Wed Apr 05, 2017 11:52 am

Petr,

I've had a similar experience and found that the Hardkernel remote doesn't always respond and you have to hit a button a few times. It was the same with Kodi running on LibreElec. Not sure if it's the IR receiver, placement or what. I solved the problem by buying a small remote keyboard. It's nice to be able type in Kodi.

hami
Posts: 20
Joined: Sat Mar 19, 2016 5:31 am
languages_spoken: english, czech
ODROIDs: C1+, C2
Contact:

Re: DietPi for Odroid C2

Unread post by hami » Wed Apr 05, 2017 6:43 pm

Hi Dressen,

ok, thanks for a confirmation that a worse remote control response is not a problem for my Odroid C2.

Thekillercarrot
Posts: 5
Joined: Thu Nov 17, 2016 12:35 pm
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by Thekillercarrot » Sun Apr 16, 2017 8:57 pm

Hello!
Does anyone know if it's possible to install f.lux or redshift on dietpi so that when I'm using Kodi at night the blue color gets warmer?

Thanks in advance!!

Marcin
Posts: 43
Joined: Mon Nov 14, 2016 3:33 pm
languages_spoken: english
ODROIDs: Odroid C2
Contact:

Re: DietPi for Odroid C2

Unread post by Marcin » Thu Apr 20, 2017 8:19 pm

Good day everyone.

I have another problem. Double Commander just won't start after installation. Can anyone check and advise please?

Regards
Marcin

polo
Posts: 11
Joined: Thu May 04, 2017 4:19 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by polo » Sun May 07, 2017 11:17 pm

I have a Problem after first setup of Diepi on my C2.

At the first start after flashing, i get an IP Adress and i can log in with root and pw to the first setup menu via SSH.

After first setup, the C2 reboots, but i get no ip from DHCP.

So i can't log in anymore... What should i do?

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Contact:

Re: DietPi for Odroid C2

Unread post by Fourdee » Sun May 07, 2017 11:23 pm

polo wrote:I have a Problem after first setup of Diepi on my C2.

At the first start after flashing, i get an IP Adress and i can log in with root and pw to the first setup menu via SSH.

After first setup, the C2 reboots, but i get no ip from DHCP.

So i can't log in anymore... What should i do?
Hi,

If you didn't change any network settings, during first run setup, it may be an issue with your DHCP server/router failing to provide a lease.

Options:
- Automated install to setup static IP during 1st run (/boot/dietpi.txt after writing image): https://github.com/Fourdee/DietPi/blob/ ... txt#L4-L24
- Plug in HDMI monitor/keyboard and see if there are any issues/errors reported on screen.

polo
Posts: 11
Joined: Thu May 04, 2017 4:19 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by polo » Sun May 14, 2017 8:32 pm

Fourdee wrote:
polo wrote:I have a Problem after first setup of Diepi on my C2.

At the first start after flashing, i get an IP Adress and i can log in with root and pw to the first setup menu via SSH.

After first setup, the C2 reboots, but i get no ip from DHCP.

So i can't log in anymore... What should i do?
Hi,

If you didn't change any network settings, during first run setup, it may be an issue with your DHCP server/router failing to provide a lease.

Options:
- Automated install to setup static IP during 1st run (/boot/dietpi.txt after writing image): https://github.com/Fourdee/DietPi/blob/ ... txt#L4-L24
- Plug in HDMI monitor/keyboard and see if there are any issues/errors reported on screen.
Thank you very much. WIth static IP over /boot/dietpi.txt everything is OK.


Now i have another Problem. Passthrough with Kodi has audio droppings.

At first the audio is good for 2 or 3 minutes. But then it starts to drop every 2 or 3 seconds... Is there any solution for this ?

With Libreelec, everything is fine.

deeproot
Posts: 8
Joined: Fri Feb 13, 2015 1:47 pm
languages_spoken: english
ODROIDs: c1 c2
Contact:

Re: DietPi for Odroid C2

Unread post by deeproot » Thu Jun 01, 2017 3:08 am

I installed DietPi and upgraded it to stretch. I have zoneminder 1.30.4 installed and running. This is a very light and polished distro.

Thanks

Auzern
Posts: 2
Joined: Mon Jun 19, 2017 12:03 pm
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by Auzern » Mon Jun 19, 2017 12:20 pm

I have a lot trouble using DietPi on Odroid-C2 in portrait mode (counter-clockwise).
Also I added the following to /DietPi/config.txt

Code: Select all

display_rotate=3
This doesn't seem to work. It still boots in Landscape mode.

Is there anyway to boot DietPi in Portrait mode?

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Contact:

Re: DietPi for Odroid C2

Unread post by Fourdee » Sun Jun 25, 2017 8:08 pm

Auzern wrote:I have a lot trouble using DietPi on Odroid-C2 in portrait mode (counter-clockwise).
Also I added the following to /DietPi/config.txt

Code: Select all

display_rotate=3
This doesn't seem to work. It still boots in Landscape mode.

Is there anyway to boot DietPi in Portrait mode?
Hi,

/DietPi/config.txt will only effect RPi devices. For the Odroid C2 please see the following post:
viewtopic.php?f=136&t=21786#p145793
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

micro77
Posts: 6
Joined: Fri Jul 21, 2017 2:04 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by micro77 » Fri Jul 21, 2017 2:07 am

How can we fix it that problem ?

I cant install kodi , transmission...

I tried 4-5 times via ssh or keyboard on c2 , but same results...

https://www.youtube.com/watch?v=A8zfYT-jF3M

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Contact:

Re: DietPi for Odroid C2

Unread post by Fourdee » Fri Jul 21, 2017 2:29 am

micro77 wrote:How can we fix it that problem ?

I cant install kodi , transmission...

I tried 4-5 times via ssh or keyboard on c2 , but same results...

https://www.youtube.com/watch?v=A8zfYT-jF3M
Hi,

Input/Output error indicates a basic issue with the filesystem. This often occurs due to insufficient PSU/SD card, causing unstable system.

Please verify you are using at least a 5V/2A Odroid or RPi PSU, and a stable SD card (eg: sandisk).

I would recommend attempting a fresh image write of DietPi, after verifying the above.
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

micro77
Posts: 6
Joined: Fri Jul 21, 2017 2:04 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by micro77 » Fri Jul 21, 2017 4:57 am

thank you i'll try this ...

with same psu and sd card odroid android working by the way...

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Contact:

Re: DietPi for Odroid C2

Unread post by Fourdee » Sat Jul 22, 2017 12:05 am

micro77 wrote:thank you i'll try this ...

with same psu and sd card odroid android working by the way...
With the official Odroid C2 PSU + Sandisk/official EMMC, its working fine here. Unable to replicate. No other reports of similar issues from our userbase.
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

micro77
Posts: 6
Joined: Fri Jul 21, 2017 2:04 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by micro77 » Sat Jul 22, 2017 1:21 am

tried a new sandisk sd card now working dietpi :D

thank you @Fourdee for helping .

mvrk
Posts: 20
Joined: Mon Apr 06, 2015 3:32 am
languages_spoken: english, portuguese
ODROIDs: ODROID-C2
Contact:

Re: DietPi for Odroid C2

Unread post by mvrk » Fri Sep 01, 2017 10:30 pm

Hi,

2 Questions:

Is it possible to run kodi-standalone with frame buffer driver, skipping completely X11?

Is it possible to install/run retroarch and emulationstation also using frame buffer instead of X11?

mvrk
Posts: 20
Joined: Mon Apr 06, 2015 3:32 am
languages_spoken: english, portuguese
ODROIDs: ODROID-C2
Contact:

Re: DietPi for Odroid C2

Unread post by mvrk » Sat Sep 02, 2017 12:04 am

HI,

was trying kodi, video seems ok but sound has glitches, it stops for a something like a second then continues, and does this continually.

I tried Ubuntu/Debian Jessie/DietPi all have sound issues.

Anyone knows what may be the problem?
Last edited by mvrk on Tue Sep 05, 2017 1:58 am, edited 2 times in total.

User avatar
meveric
Posts: 9612
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
Contact:

Re: DietPi for Odroid C2

Unread post by meveric » Sat Sep 02, 2017 12:12 am

mvrk wrote:Hi,

2 Questions:

Is it possible to run kodi-standalone with frame buffer driver, skipping completely X11?
Possible yes, but not available on this image.
mvrk wrote:Is it possible to install/run retroarch and emulationstation also using frame buffer instead of X11?
possible as well, but only if you build it yourself. This image is configured mostly for X11, so you probably have to do everything yourself, including installation and setting up GPU drivers, etc.
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.

satoshi
Posts: 27
Joined: Mon May 12, 2014 2:00 pm
languages_spoken: english
ODROIDs: U3
Contact:

Re: DietPi for Odroid C2

Unread post by satoshi » Wed Oct 25, 2017 3:09 pm

Hi, Fourdee

I am intersted in Master Quality Authenticated(MQA).
I found that PCM5102 can play MQA with Windows and MERIDIAN AUDIO EXPLORER2(PCM5102 USB DAC).

I use C2, HiFi Shield Plus(PCM5102),DietPi and DietPi HiFi.

I downloaded free MQA file from http://www.2l.no/hires/index.html.
MQA file name is a XXXXXX.mqa.flac
I tried to play that MQA file.
But I do not know, which way MQA or FLAC is being played.
Can I play only MQA way?

Regards,

User avatar
meveric
Posts: 9612
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
Contact:

Re: DietPi for Odroid C2

Unread post by meveric » Wed Oct 25, 2017 3:55 pm

try ffplay XXXXXX.mqa.flac if you don't have ffplay (command not found) install ffmpeg apt-get install ffmpeg
ffplay can play flac without issues but I read it won't be able to tab into the MQA of the file.
Apparently MQA is closed source and only a hand full player can deal with 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.

satoshi
Posts: 27
Joined: Mon May 12, 2014 2:00 pm
languages_spoken: english
ODROIDs: U3
Contact:

Re: DietPi for Odroid C2

Unread post by satoshi » Sat Oct 28, 2017 2:08 pm

Thanks, Meveric-san.

I disappoint that MQA is closed source.
ffplay was already installed, and I upgraded it.
ffplay is simple single line music player.

Regards,

thatchunkylad1989
Posts: 212
Joined: Sun Dec 24, 2017 12:29 am
languages_spoken: english
ODROIDs: C2, XU4
Contact:

Re: DietPi for Odroid C2

Unread post by thatchunkylad1989 » Mon Dec 25, 2017 9:03 pm

Is kodi working on the C2 with dietpi stretch?

tung256
Posts: 31
Joined: Thu Mar 01, 2018 10:45 pm
languages_spoken: english
ODROIDs: c2
Contact:

Re: DietPi for Odroid C2

Unread post by tung256 » Thu Apr 26, 2018 11:52 pm

i installed DietPi and everything was a breeze to set up thanks to the menu in dietpi-config.
i got Mate desktop and HomeAssistant installed n working fine.

now, i have no idea how to get HDMI CEC working.
i use this command to install

Code: Select all

apt-get install cec-utils
but then

Code: Select all

echo scan | cec-client -s -d 1
gives error:
autodetect FAILED

any idea?
please help.

ideally i would like to use CEC to know when the TV is turned on. if TV on, run a script. if TV off, run another script.

badurq_
Posts: 2
Joined: Wed Jun 27, 2018 6:22 pm
languages_spoken: english
ODROIDs: c2, hc1
Contact:

Re: DietPi for Odroid C2

Unread post by badurq_ » Wed Jun 27, 2018 6:38 pm

Hello all,

I received my c2 and installed dietpi as usual.
I successfully transfered the fsroot to a usb flash drive.

But there is a little problem. When I reboot the device, the odroid c2 is turned off.

Any idea what could be the problem ?
I tried different power supplies and usb flash drives. If I let the fsroot to the flash card, I have no problem when I reboot.

Any help would be very appreciate.

badurq_
Posts: 2
Joined: Wed Jun 27, 2018 6:22 pm
languages_spoken: english
ODROIDs: c2, hc1
Contact:

Re: DietPi for Odroid C2

Unread post by badurq_ » Fri Jun 29, 2018 12:06 am

reboot -f fixed the problem.

wotan2525
Posts: 13
Joined: Sat May 12, 2018 12:55 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by wotan2525 » Thu Aug 09, 2018 6:04 am

I have a different reboot problem -- I type "sudo reboot" and it appears to start the reboot process but never comes back up. It kills my ssh session and stops responding.

I tried reboot -f and this happened:

dietpi@DietPi:~$ sudo reboot -f
Failed to read reboot parameter file: No such file or directory
Rebooting

And then same thing happens. No restart.

User avatar
odroid
Site Admin
Posts: 29408
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: DietPi for Odroid C2

Unread post by odroid » Thu Aug 09, 2018 8:39 am

@wotan2525,
Do you use an eMMC? or SD card?

wotan2525
Posts: 13
Joined: Sat May 12, 2018 12:55 am
languages_spoken: english
ODROIDs: C2
Contact:

Re: DietPi for Odroid C2

Unread post by wotan2525 » Thu Aug 09, 2018 11:39 pm

odroid wrote:@wotan2525,
Do you use an eMMC? or SD card?
SD card.

thatchunkylad1989
Posts: 212
Joined: Sun Dec 24, 2017 12:29 am
languages_spoken: english
ODROIDs: C2, XU4
Contact:

Re: DietPi for Odroid C2

Unread post by thatchunkylad1989 » Fri Aug 31, 2018 4:52 am

Hi.

I tried your Debian Stretch and couldn't get more or less anything working, I installed LXDE and tried to run Chromium and got kicked to the terminal/logged me out.

Just thought I'd let y'know, everything was fully updated.

Eskimos2000
Posts: 1
Joined: Sun Sep 16, 2018 1:28 pm
languages_spoken: english
ODROIDs: Odroid C2
Contact:

Re: DietPi for Odroid C2

Unread post by Eskimos2000 » Sun Sep 16, 2018 1:35 pm

What is proper temperature as I reckon my C2 is running a bit warm? I have installed plex (but no transcoding as I direct play), pihole, docker and home assistant. I have ondemand profile and reduced max speed to 1298. The lowest temp I noticed was 53C but mainly it is 58C and when a bit of more load form those programs, I am getting 64 -67C. I am a bit worry that it is too high. What do you think people?


Cheers

User avatar
rooted
Posts: 6106
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: DietPi for Odroid C2

Unread post by rooted » Sun Sep 16, 2018 2:20 pm

There is no proper temperature, it varies based on load and ambient temperatures.

If you are powering by barrel jack then make sure the J1 jumper is removed, this will lower the temperatures quite a bit.

See wiki:

https://wiki.odroid.com/odroid-c2/getti ... tg_booting

Your temperatures are fine.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests