Kodi Community Forum
Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112)
+--- Thread: Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] (/showthread.php?tid=194362)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - rukusx7 - 2014-06-21

In my standalone OpenELEC setup, I have had success with the following peripherals:
HP wired mouse
HP wired keyboard
USB wireless Tronsmart TSM-01 air mouse
Samsung TV wireless USB adapter
Transcend 760 16gb USB flash drive
Sandisk Cruzer mirco 8GB flash drive
Western Digital mybook 1150 2TB (which its worth to mention, does not (always) return from its own suspend state when the chromebox is woken from suspend.)
Samsung LED TV UN46d6300

Also want to mention that if you use visualization when playing music, I've noticed that FishBMC and GOOM result in high CPU usage. ProjectM (although looks more intensive) uses the least CPU and possibly makes more use of the GPU. I'm not sure.

If anyone know of a linux distro they can recommend that suits our chipset/device, please let me know. I'd like something where its not necessary for me to manually update the kernel to keep up with latest stable kernel. Linux mint lost points because of this.

This was posted within OpenELEC with chromium-browser.


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - hdmkv - 2014-06-21

I used Matt's tool and set-up standalone OpenELEC w/o ever using ChromeOS and setting the clock. Now XBMC shows the wrong time... anyone know how I can set the clock?


Re: RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-21

(2014-06-21, 17:42)hdmkv Wrote: I used Matt's tool and set-up standalone OpenELEC w/o ever using ChromeOS and setting the clock. Now XBMC shows the wrong time... anyone know how I can set the clock?

You need to set the country and timezone under Settings -> Appearance IIRC


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-21

(2014-06-21, 05:04)smitbret Wrote: Well, took Matt Devo's advice from the XBMC forum linked above. My TV wasn't synching up fast enough and when I hit CTRL-D from the moment I turned on the Chromebox, instead of waiting for the display, it got me into the OS far enough that I could CTRL-SHFT-F2. Anyway, followed his guide from there and got stuck again, even worse this time.

Anyway, after messing with 4 different flash drives, I finally stuck the bootable OpenELEC on a MicroSD card with adapter. I discovered that if I stuck that MicroSD card in along with the Chrome OS recovery image on Flash Drive and then booted with the paper clip in the reset hole then I had about 2 seconds to hit the ESC button and get the list of 3 bootable choices. I was able to then install from the SD card. This time it took.

for the original flash drive you tested, did you create the OpenELEC install media using the script, or did you run OE's USB creator tool? The latter, under Windows, doesn't re-partition the drive, which can create problems if there's a small hidden partition in front of the larger/bootable/FAT32 one.

To be clear, with the Coreboot firmware installed, the recovery button has absolutely no function (which is why you have to re-flash your original firmware before restoring ChromeOS). And if there is more than 1 bootable device connected (ie, any USB or SD devices), you will have 5 seconds to hit ESC before it automatically boots the internal HDD.

Quote:Boots right into XBMC from the HDD and is running really smooth. For some reason the box just wouldn't recognize any of the flash drives as bootable. I must have not set up the boot configuration very well. I don't know. I could have sworn that I checked and double checked along the way.

Anyway, pretty pleased so far. I have a FLIRC as the IR receiver paired with my Logitech Harmony and I still need to get the delay settings correct, there's some pretty bad lag, but I should be able to get ironed out.

Thanks for the help.

If you have USB flash drives which are not detected by the SeaBIOS boot menu (which is different than being detected, but not booting from it), then please PM me so I can walk you thru getting me the firmware boot log and I can see what's going on. And be sure to let me know the date stamp in the SeaBIOS version string on the boot menu.


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Igor2014 - 2014-06-21

(2014-06-21, 16:23)rukusx7 Wrote: In my standalone OpenELEC setup, I have had success with the following peripherals:
HP wired mouse
HP wired keyboard
USB wireless Tronsmart TSM-01 air mouse
Samsung TV wireless USB adapter
Transcend 760 16gb USB flash drive
Sandisk Cruzer mirco 8GB flash drive
Western Digital mybook 1150 2TB (which its worth to mention, does not (always) return from its own suspend state when the chromebox is woken from suspend.)
Samsung LED TV UN46d6300

Also want to mention that if you use visualization when playing music, I've noticed that FishBMC and GOOM result in high CPU usage. ProjectM (although looks more intensive) uses the least CPU and possibly makes more use of the GPU. I'm not sure.

If anyone know of a linux distro they can recommend that suits our chipset/device, please let me know. I'd like something where its not necessary for me to manually update the kernel to keep up with latest stable kernel. Linux mint lost points because of this.

This was posted within OpenELEC with chromium-browser.

I would suggest Fedora 20 (I'm using KDE Spin + Openbox/XBMC). I tested various linux distros and Fedora was the most stable for me. Also it boots faster than any other distro (including OpenELEC). I'm running XBMC in Openbox (using autostart on boot) and while it uses a little more memory (11% vs 5% for OpenELEC) it allows me to run Steam & Chromium from inside XBMC without headaches. Also many Steam games run quite well on celeron. Tested with DOTA2, HL2:EP2, DofD & TF2.


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-21

(2014-06-21, 16:23)rukusx7 Wrote: If anyone know of a linux distro they can recommend that suits our chipset/device, please let me know. I'd like something where its not necessary for me to manually update the kernel to keep up with latest stable kernel. Linux mint lost points because of this.

what are you trying to do that OpenELEC isn't sufficient?

(2014-06-21, 21:04)Igor2014 Wrote: I would suggest Fedora 20 (I'm using KDE Spin + Openbox/XBMC). I tested various linux distros and Fedora was the most stable for me. Also it boots faster than any other distro (including OpenELEC). I'm running XBMC in Openbox (using autostart on boot) and while it uses a little more memory (11% vs 5% for OpenELEC) it allows me to run Steam & Chromium from inside XBMC without headaches. Also many Steam games run quite well on celeron. Tested with DOTA2, HL2:EP2, DofD & TF2.

Fedora + OpenBox + XBMC boots in <5 seconds? b/c that's what OpenELEC is at. Smile

I think OE is ideal for people who want a dedicated XBMC appliance with little more. Anything else (eg, Steam) is going to require a more full fledged distro, and I think right now Fedora is the best for the Haswell platform. Not sure it meets rukusx7's requirement for automatic? kernel updates though


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - hdmkv - 2014-06-21

Matt, if I want to update to v2.11 of your tool from having used v2.10 and installed OpenELEC standalone, how would I go about this?


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-21

(2014-06-21, 23:13)hdmkv Wrote: Matt, if I want to update to v2.11 of your tool from having used v2.10 and installed OpenELEC standalone, how would I go about this?

what exactly do you want to update? OE updates are handled by OE, just turn on the auto updates in OE general settings.

If you're looking to update the Coreboot firmware, then simply boot a ChromiumOS USB stick and re-download/re-run the script from there. Though the only change from the 20140613 firmware to 20140620 is the disabling of the TPM module, which doesn't affect OE (unlike other Linux distros)


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Igor2014 - 2014-06-22

(2014-06-21, 22:55)Matt Devo Wrote:
(2014-06-21, 21:04)Igor2014 Wrote: I would suggest Fedora 20 (I'm using KDE Spin + Openbox/XBMC). I tested various linux distros and Fedora was the most stable for me. Also it boots faster than any other distro (including OpenELEC). I'm running XBMC in Openbox (using autostart on boot) and while it uses a little more memory (11% vs 5% for OpenELEC) it allows me to run Steam & Chromium from inside XBMC without headaches. Also many Steam games run quite well on celeron. Tested with DOTA2, HL2:EP2, DofD & TF2.

Fedora + OpenBox + XBMC boots in <5 seconds? b/c that's what OpenELEC is at. Smile

I think OE is ideal for people who want a dedicated XBMC appliance with little more. Anything else (eg, Steam) is going to require a more full fledged distro, and I think right now Fedora is the best for the Haswell platform. Not sure it meets rukusx7's requirement for automatic? kernel updates though

It boots into openbox + XBMC in around 8-10 seconds. Strangely, for OpenELEC it took longer to boot, around 20-30 seconds (maybe because of tpm issue). Anyway the first thing I tried once I rooted chromebox was OpenELEC. I was expecting trouble-free experience but unfortunately it was not the case. The most notable issue was that it refused to download video-addons (while other addons it downloaded successfully). I was searching over internet for possible solution, but then gave up and decided to try other distros. Ubuntu + XBMC didn't work for me because of a lot of hangs and freezes during playback and menu navigation. Mint has a problem with mounting my external NTFS formated drives + many other issues. As for now Fedora is the most trouble-free distro for me. Not to mention that Ubuntu and Fedora are the only distros officialy supported by Intel Linux Drivers Team. And it seems they are going to drop Ubuntu soon as they stated they are not going to support Mir and will stay committed to Wayland only.


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-22

(2014-06-22, 02:01)Igor2014 Wrote: It boots into openbox + XBMC in around 8-10 seconds. Strangely, for OpenELEC it took longer to boot, around 20-30 seconds (maybe because of tpm issue). Anyway the first thing I tried once I rooted chromebox was OpenELEC. I was expecting trouble-free experience but unfortunately it was not the case. The most notable issue was that it refused to download video-addons (while other addons it downloaded successfully). I was searching over internet for possible solution, but then gave up and decided to try other distros. Ubuntu + XBMC didn't work for me because of a lot of hangs and freezes during playback and menu navigation. Mint has a problem with mounting my external NTFS formated drives + many other issues. As for now Fedora is the most trouble-free distro for me. Not to mention that Ubuntu and Fedora are the only distros officialy supported by Intel Linux Drivers Team. And it seems they are going to drop Ubuntu soon as they stated they are not going to support Mir and will stay committed to Wayland only.

sounds like something was awry with your OE install, I've had no issues with video add-ons, and it's booted in ~5s since the first Coreboot firmware I released (2014-05-18).

I may give your setup a whirl though, as I like the idea of having Steam and Chromium integrated as well. How do you have it set up to switch between XBMC, Steam, and Chromium?


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Igor2014 - 2014-06-22

(2014-06-22, 02:06)Matt Devo Wrote: sounds like something was awry with your OE install, I've had no issues with video add-ons, and it's booted in ~5s since the first Coreboot firmware I released (2014-05-18).

I may give your setup a whirl though, as I like the idea of having Steam and Chromium integrated as well. How do you have it set up to switch between XBMC, Steam, and Chromium?

I'm using Advanced Launcher for XBMC to start Steam and Chromium.
(--kiosk option to start Chromium in full screen mode, Alt+F4 to close it and get back to XBMC)
(-bigpicture option to start Steam in full screen mode.)


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Matt Devo - 2014-06-22

(2014-06-22, 02:16)Igor2014 Wrote: I'm using Advanced Launcher for XBMC to start Steam and Chromium.
(--kiosk option to start Chromium in full screen mode, Alt+F4 to close it and get back to XBMC)
(-bigpicture option to start Steam in full screen mode.)

cool, thx. Any reason to use the KDE Fedora spin vs something more lightweight, like xfce or lxde?


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - Igor2014 - 2014-06-22

(2014-06-22, 02:18)Matt Devo Wrote:
(2014-06-22, 02:16)Igor2014 Wrote: I'm using Advanced Launcher for XBMC to start Steam and Chromium.
(--kiosk option to start Chromium in full screen mode, Alt+F4 to close it and get back to XBMC)
(-bigpicture option to start Steam in full screen mode.)

cool, thx. Any reason to use the KDE Fedora spin vs something more lightweight, like xfce or lxde?

I installed KDE, than installed openbox (very light weight windows manager), created xbmc user and configured autologin of this user into openbox with autostart of xbmc.


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - furii - 2014-06-22

@ igor2014 & matt

re: installing video addons, i too have encountered this problem on a fresh 4.0.5 OE install. i had assumed it was an OE issue that would be fixed in the next release but maybe not. from my log:
Code:
21:03:10 T:139893659109184   DEBUG: ------ Window Deinit () ------
21:03:13 T:139893659109184   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
21:03:13 T:139893659109184   DEBUG: OnKey: return (0xf00d) pressed, action is Select
21:03:13 T:139893659109184   DEBUG: CFileCache::Open - opening <addons/frodo/plugin.video.youtube/plugin.video.youtube-4.4.8.zip.md5> using cache
21:03:13 T:139893659109184   DEBUG: CurlFile::Open(0x758e530) http://mirrors.xbmc.org/addons/frodo/plugin.video.youtube/plugin.video.youtube-4.4.8.zip.md5
21:03:13 T:139892323550976  NOTICE: Thread FileCache start, auto delete: false
21:03:13 T:139892323550976    INFO: CFileCache::Process - Hit eof.
21:03:13 T:139892323550976   DEBUG: Thread FileCache 139892323550976 terminating
21:03:13 T:139893659109184   DEBUG: ------ Window Deinit (DialogAddonInfo.xml) ------
21:03:13 T:139892262188800   DEBUG: FileManager: copy http://mirrors.xbmc.org/addons/frodo/plugin.video.youtube/plugin.video.youtube-4.4.8.zip -> special://home/addons/packages/plugin.video.youtube-4.4.8.zip
21:03:13 T:139892262188800   DEBUG: CurlFile::Open(0x7f3b5a3e8be0) http://mirrors.xbmc.org/addons/frodo/plugin.video.youtube/plugin.video.youtube-4.4.8.zip
21:03:14 T:139892262188800   ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
21:03:14 T:139892262188800  NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1
21:03:14 T:139892262188800   ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
21:03:14 T:139892262188800   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
21:03:14 T:139892262188800   ERROR: DeleteFile - cant delete file </storage/.xbmc/addons/packages/plugin.video.youtube-4.4.8.zip>. trying lower case </storage/.xbmc/addons/packages/plugin.video.youtube-4.4.8.zip>
21:03:14 T:139893659109184   DEBUG: CGUIMediaWindow::GetDirectory (addons://all/xbmc.addon.video)
21:03:14 T:139893659109184   DEBUG:   ParentPath = [addons://all/xbmc.addon.video]
21:03:14 T:139892323550976  NOTICE: Thread BackgroundLoader start, auto delete: false
21:03:14 T:139893045454592    INFO: easy_aquire - Created session to http://mirrors.xbmc.org
21:03:14 T:139892323550976    INFO: Previous line repeats 2 times.
21:03:14 T:139892323550976   DEBUG: Thread BackgroundLoader 139892323550976 terminating
so it looks like it might be an issue with xbmc or their mirrors. not sure why it's looking for an frodo addon rather than gotham but maybe they all serve from the same location.

edit: after a little more digging i'm not seeing the youtube plugin on any of the xbmc mirrors listed for the US so it's definitely not an OE issue.

double edit: http://forum.xbmc.org/showthread.php?tid=198324


RE: Asus ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.11 - 2014/06/20] - smitbret - 2014-06-22

(2014-06-21, 19:14)Matt Devo Wrote:
(2014-06-21, 05:04)smitbret Wrote: Well, took Matt Devo's advice from the XBMC forum linked above. My TV wasn't synching up fast enough and when I hit CTRL-D from the moment I turned on the Chromebox, instead of waiting for the display, it got me into the OS far enough that I could CTRL-SHFT-F2. Anyway, followed his guide from there and got stuck again, even worse this time.

Anyway, after messing with 4 different flash drives, I finally stuck the bootable OpenELEC on a MicroSD card with adapter. I discovered that if I stuck that MicroSD card in along with the Chrome OS recovery image on Flash Drive and then booted with the paper clip in the reset hole then I had about 2 seconds to hit the ESC button and get the list of 3 bootable choices. I was able to then install from the SD card. This time it took.

for the original flash drive you tested, did you create the OpenELEC install media using the script, or did you run OE's USB creator tool? The latter, under Windows, doesn't re-partition the drive, which can create problems if there's a small hidden partition in front of the larger/bootable/FAT32 one.

To be clear, with the Coreboot firmware installed, the recovery button has absolutely no function (which is why you have to re-flash your original firmware before restoring ChromeOS). And if there is more than 1 bootable device connected (ie, any USB or SD devices), you will have 5 seconds to hit ESC before it automatically boots the internal HDD.

Quote:Boots right into XBMC from the HDD and is running really smooth. For some reason the box just wouldn't recognize any of the flash drives as bootable. I must have not set up the boot configuration very well. I don't know. I could have sworn that I checked and double checked along the way.

Anyway, pretty pleased so far. I have a FLIRC as the IR receiver paired with my Logitech Harmony and I still need to get the delay settings correct, there's some pretty bad lag, but I should be able to get ironed out.

Thanks for the help.

If you have USB flash drives which are not detected by the SeaBIOS boot menu (which is different than being detected, but not booting from it), then please PM me so I can walk you thru getting me the firmware boot log and I can see what's going on. And be sure to let me know the date stamp in the SeaBIOS version string on the boot menu.

I hope I can answer everything the way you'd find useful.

I originally tried to install OpenELEC, following this guide: http://geekfreely.blogspot.com/2014/...chromebox.html

Per those instructions, you do some CMD Line changes to boot from USB & Legacy. That went fine and I went through and installed the OpenELEC image from USB but it didn't "take". I had installed the image according to directions from that site, using Win32 Disk imager. At that point, the Chromebox would only let me get into the ChromeOS Recovery Screen by sticking the Paper Clip in the reset button while turning the Chromebox on. I could still perform a Chrome OS recovery at this point but it would never actually repair anything and upon reboot I would be in the exact same situation. I would end up on a screen that said:

Booting from Hard Disk
Early console in decompress_kernel
KASLR using RDRAND

Decompressing Linux....Parsing ELF...Performing Relocations..done
Booting the kernel

Any method of rebooting the box (except Paper Clip in the reset button) would just get me to that BIOS screen that ignored keyboard commands like ESC or CTRL-<whatever> and just stalled out at <Booting the kernel> with no option to change the boot device and would not respond to any keyboard commands.

That's how I ended up not able to get past anything until you recommended hitting CTRL-D as soon as things started up. That got me back into the Chrome Screen where I could hit CTRL-SHFT-F2 and follow your process for installing OpenELEC. However, I shortcutted by using my existing USB image of OpenELEC that I had created from the previous guide instead of following your shortcut on screen. Once again, it appeared to install, but upon reboot, it was back to the same BIOS screens that just stalled out at Booting Kernel. That really locked me up to where I couldn't even get to the ChromeOS Recovery screen at all. There were a couple of occasions where I managed to get the menu to choose my bootable source, but any drive I chose would just say it was an unbootable source. Those opportunities were few and far between (every 10 tries or so) and I couldn't tell you what combination of activities and key presses got me to that point.

Finally, I installed a bootable image to a MicroSD card in an SD adapter (Using Win32 Disk Imager) using the original OpenELEC image. By itself, it did nothing. But then I stuck the ChromeOS recovery flash drive AND the OpenELEC flash drive AND the OpenELEC image on SD into the Chromebox. That got me the 3-5 seconds to hit ESC and got me into the menu to choose my Boot Choice. I was able to install OpenELEC from the SD card at that point and everything has been working great since. Boots up great from the SSD and things have been smooth sailing since I got my Harmony Remote + FLIRC combo working with XBMC.

If there's some add'l info I can provide, I'd be happy to try to get it, but keep in mind I do not have any measurable experience with computers outside of Windows and basic Home Networking.

****Oops, just noticed you asked for a PM. I'll send this same info, there.*****