Page 2 of 2

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 3:34 am
by mad_ady
Maybe because I speciffically asked for X (while your build doesn't)? -DENABLE_X=ON
I was confused - if I use gbm, will kodi work from within X11?

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 6:08 am
by meveric
some of the patches makes it work.. don't ask how.. don't understand it... it's running on gbm which is only running outside of X11, but it kinda switches to a layer that is gbm from within X11 so it "seems" as if it's working under X.

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 2:02 pm
by mad_ady
Got it. Black magic and unicorn dust for the win! :)

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 2:08 pm
by rooted
mad_ady wrote:Got it. Black magic and unicorn dust for the win! :)
-DENABLE_X=OFF ?

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 2:13 pm
by mad_ady
Yup. Will try that when I get to work.

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 6:07 pm
by mad_ady
Ok, now kodi compiled and plays back fine, with hardware decoding.
Now I need to clean things up (my current image with all sorts of development packages takes up ~28G - yikes!).
@meveric - do you have a checklist/scripts that clean up your images before you publish them?
I was thinking of:
* uninstall some development packages (based on apt history)
* clear apt cache
* create odroid user with an empty skeleton
* delete ssh keys, root history, root files
* add partition resize script
* resize partition + xz + ship for testing

Am I missing out something?

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 7:18 pm
by meveric
mad_ady wrote:
Thu Dec 20, 2018 6:07 pm
@meveric - do you have a checklist/scripts that clean up your images before you publish them?
Simple, don't sh*t where you eat :P
Means I don't develop on the same system where I deploy software, else you never know if you have dependencies correct.
In the past I've build all my software for the N1 on the C2, and then tested it on a clean N1 system if everything works correctly.
I build debootstrap images for my Debian System, and only install packages that I deem necessary.
The rest is in my repository and only being installed when required.
mad_ady wrote:
Thu Dec 20, 2018 6:07 pm
I was thinking of:
* uninstall some development packages (based on apt history)
* clear apt cache
* create odroid user with an empty skeleton
* delete ssh keys, root history, root files
* add partition resize script
* resize partition + xz + ship for testing

Am I missing out something?
I would start with a empty image and then just try to deploy the software that you build.. Like put your software that you build on an external disk, then start with an fresh image, and try to deploy the software you build.
Or do it the proper way and build .deb packages :P

Re: Ubuntu 18.04 RK image

Posted: Thu Dec 20, 2018 9:32 pm
by mad_ady
Doing it properly takes more time than I have. And considering the n1 was given to developers/tinkerers, this will be a ubuntu 'development-ready' release :D (bloatware edition).

If I magically get time (e.g. I get fired), I might do it properly next time.
Thanks for all the advice and help!

Re: Ubuntu 18.04 RK image

Posted: Sun Jan 06, 2019 5:38 pm
by rooted
mad_ady wrote:Doing it properly takes more time than I have. And considering the n1 was given to developers/tinkerers, this will be a ubuntu 'development-ready' release :D (bloatware edition).

If I magically get time (e.g. I get fired), I might do it properly next time.
Thanks for all the advice and help!
Here is something for you to tinker with

https://www.phoronix.com/scan.php?page= ... ntal-Video