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: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - rustyfrog666 - 2020-11-18

(2020-04-01, 02:59)Matt Devo Wrote:
(2020-03-29, 10:53)rustyfrog666 Wrote: I have an old Chromebox with OpenELEC v5.0.8 and Kodi 14.2.

I want to use SABNZBD daemon on it but don't think I can do that with OpenELEC (let me know if that's not the case).  So instead I want to install Lubuntu. 

Can I just follow the steps as though it was a new installation?

For a standalone setup, you will need to perform the following steps:
  • Open the ChromeBox and remove the write-protect screw
  • Put the ChromeBox in developer mode
  • Download/run the Kodi E-Z Setup Script
  • Select the Standalone / coreboot Install option, which will backup your stock firmware/BIOS and flash a custom one
  • Create install media for desired OS. Script includes option to create install media for LibreELEC
  • Power off ChromeBox
  • Connect/plug-in USB install media (if not using LibreELEC media you just created)
  • Power on ChromeBox, Press [ESC] from boot menu, select USB device (no longer needed with UEFI firmware; USB devices will boot automatically)
  • Install LibreELEC, GalliumOS, or your OS of choice

regardless of whether or not you can run Sabnzbd under OpenELEC, you'd be smart to start fresh given the age of your install:

* boot a Ubuntu USB
* update to latest UEFI Firmware
* reboot and boot/install OS

There are certainly ways to install Sabnzbd under LibreELEC (what I'd recommend) and if you're using the device for Kodi then that's what I'd recommend. Using Ubuntu + Kodi is always going to be slightly less optimal as a Kodi playback device
Hi, I have an old Chromebox with OpenELEC v5.0.8 and Kodi 14.2. You suggested I just need to:
 
* boot a Ubuntu USB
* update to latest UEFI Firmware
* reboot and boot/install OS (I’m going with LibreELEC as you suggested)

 
I successfully booted Ubuntu 20.4 from a USB.  However when I tried to update to the latest UEFI Firmware, the report said there was nothing to update (surprising given how old it is).  So can I ignore the UEFI update?
 
Also should I be installing the Linux 32-bit version of LibreElec?
 
Many thanks


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-11-18

(2020-11-18, 10:54)rustyfrog666 Wrote: Hi, I have an old Chromebox with OpenELEC v5.0.8 and Kodi 14.2. You suggested I just need to:
 
* boot a Ubuntu USB
* update to latest UEFI Firmware
* reboot and boot/install OS (I’m going with LibreELEC as you suggested)
 
I successfully booted Ubuntu 20.4 from a USB.  However when I tried to update to the latest UEFI Firmware, the report said there was nothing to update (surprising given how old it is).  So can I ignore the UEFI update?
 
Also should I be installing the Linux 32-bit version of LibreElec?
 
Many thanks

what "report" are you referring to? you should be running my firmware utility script from https://mrchromebox.tech/#fwscript and selecting the option to install/update the UEFI Full ROM firmware.

the UEFI firmware is 64-bit only; you want the 64-bit version of LE.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - rustyfrog666 - 2020-11-19

(2020-11-18, 20:08)Matt Devo Wrote:
(2020-11-18, 10:54)rustyfrog666 Wrote: Hi, I have an old Chromebox with OpenELEC v5.0.8 and Kodi 14.2. You suggested I just need to:
 
* boot a Ubuntu USB
* update to latest UEFI Firmware
* reboot and boot/install OS (I’m going with LibreELEC as you suggested)
 
I successfully booted Ubuntu 20.4 from a USB.  However when I tried to update to the latest UEFI Firmware, the report said there was nothing to update (surprising given how old it is).  So can I ignore the UEFI update?
 
Also should I be installing the Linux 32-bit version of LibreElec?
 
Many thanks

what "report" are you referring to? you should be running my firmware utility script from https://mrchromebox.tech/#fwscript and selecting the option to install/update the UEFI Full ROM firmware.

the UEFI firmware is 64-bit only; you want the 64-bit version of LE.

We are up and running!  Many thanks for your help.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - sow07 - 2020-11-27

Hi there, long time user of the E-Z setup script here.  I recently went to run this on a newly acquired Asus Chromebox CN60 and hit a roadblock.  Further investigation points to a couple flashrom dependencies in https://www.mrchromebox.tech/files/util/flashrom.tar.gz

I am able to execute the built-in flashrom, but the downloaded one (with logging capability) errors our immediately.  The two dependencies are:

LIB_PCI_3.5 (and 3.3)
GLIBC_2.27

It's looking for these in /usr/lib64/libpci.so.3 and /lib64/libc.so.6.  I have versions libpci.so.3.1.10 and libc-2.19.so mapped to these libraries so it makes sense the script failed.

I was under the impression the downloaded flashrom would not have any external dependencies, but maybe something changed? 

I checked into downloading updates to these packages but the basic chromebox linux doesn't have a package manager so I'm not sure how to solve that.

I did reset the chromebox by going in and out of developer mode and no changes.  It's a fresh box as far as I can tell.

Screen picture of actual error:

Image

Would it be possible to get a version of flashrom without dependencies?  I modified the script to just use the internal flashrom which allowed me to get to the main menu, but failed later when trying to setup the standalone bios (traced to a spot where it attempted to check logs which we know aren't there).  I was tempted to have it skip checking any logs which I assume would work but lose protections against any encountered errors.  I didn't want to take that chance yet though.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-11-27

(2020-11-27, 19:22)sow07 Wrote: Hi there, long time user of the E-Z setup script here.  I recently went to run this on a newly acquired Asus Chromebox CN60 and hit a roadblock.  Further investigation points to a couple flashrom dependencies in https://www.mrchromebox.tech/files/util/flashrom.tar.gz

I am able to execute the built-in flashrom, but the downloaded one (with logging capability) errors our immediately.  The two dependencies are:

LIB_PCI_3.5 (and 3.3)
GLIBC_2.27

It's looking for these in /usr/lib64/libpci.so.3 and /lib64/libc.so.6.  I have versions libpci.so.3.1.10 and libc-2.19.so mapped to these libraries so it makes sense the script failed.

I was under the impression the downloaded flashrom would not have any external dependencies, but maybe something changed? 

I checked into downloading updates to these packages but the basic chromebox linux doesn't have a package manager so I'm not sure how to solve that.

I did reset the chromebox by going in and out of developer mode and no changes.  It's a fresh box as far as I can tell.

Screen picture of actual error:

Image

Would it be possible to get a version of flashrom without dependencies?  I modified the script to just use the internal flashrom which allowed me to get to the main menu, but failed later when trying to setup the standalone bios (traced to a spot where it attempted to check logs which we know aren't there).  I was tempted to have it skip checking any logs which I assume would work but lose protections against any encountered errors.  I didn't want to take that chance yet though.

ok, I just pushed a change to try and work around that.  try clearing /tmp/boot/util and re-running the script


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - sow07 - 2020-11-28

(2020-11-27, 23:28)Matt Devo Wrote:
(2020-11-27, 19:22)sow07 Wrote: Hi there, long time user of the E-Z setup script here.  I recently went to run this on a newly acquired Asus Chromebox CN60 and hit a roadblock.  Further investigation points to a couple flashrom dependencies in https://www.mrchromebox.tech/files/util/flashrom.tar.gz

I am able to execute the built-in flashrom, but the downloaded one (with logging capability) errors our immediately.  The two dependencies are:

LIB_PCI_3.5 (and 3.3)
GLIBC_2.27

It's looking for these in /usr/lib64/libpci.so.3 and /lib64/libc.so.6.  I have versions libpci.so.3.1.10 and libc-2.19.so mapped to these libraries so it makes sense the script failed.

I was under the impression the downloaded flashrom would not have any external dependencies, but maybe something changed? 

I checked into downloading updates to these packages but the basic chromebox linux doesn't have a package manager so I'm not sure how to solve that.

I did reset the chromebox by going in and out of developer mode and no changes.  It's a fresh box as far as I can tell.

Screen picture of actual error:

Image

Would it be possible to get a version of flashrom without dependencies?  I modified the script to just use the internal flashrom which allowed me to get to the main menu, but failed later when trying to setup the standalone bios (traced to a spot where it attempted to check logs which we know aren't there).  I was tempted to have it skip checking any logs which I assume would work but lose protections against any encountered errors.  I didn't want to take that chance yet though.

ok, I just pushed a change to try and work around that.  try clearing /tmp/boot/util and re-running the script
Wonderful, I tried it out and (after a few minor corrections) it worked like a charm!

Needed these edits:

function.sh line 261 "if if" changed to "if"
function.sh line 263 add line "mv flashrom_old.tar.gz flashrom.tar.gz"

CN60 users are back in business.  Thanks so much for the quick reply and fix!


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-11-28

(2020-11-28, 02:10)sow07 Wrote: Wonderful, I tried it out and (after a few minor corrections) it worked like a charm!

Needed these edits:

function.sh line 261 "if if" changed to "if"
function.sh line 263 add line "mv flashrom_old.tar.gz flashrom.tar.gz"

CN60 users are back in business.  Thanks so much for the quick reply and fix!

 should be fixed now, sorry about that


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - nelmanp - 2020-12-09

Hi  all

been using kodi and chromebox for years now with the ezscript with no problems .went to reinstall kodi a few days ago now and went into the shell downloaded the ezscript it reports downloading libreelec but then I get the following errors:

This does not look like a tar archive
Exiting with failure due to previous errors
Failed to extract LibreElec download check your internet connection and try again

I am using an Asus Chromebox CN60
Intel Haswell
stock ChromeOS w/RW_LEGACY

Have also done a full recovery with the chrome recovery utility but still have the same errors

Any help would be greatly appreciated u/MrChromebox


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-12-10

(2020-12-09, 20:22)nelmanp Wrote: Hi  all

been using kodi and chromebox for years now with the ezscript with no problems .went to reinstall kodi a few days ago now and went into the shell downloaded the ezscript it reports downloading libreelec but then I get the following errors:

This does not look like a tar archive
Exiting with failure due to previous errors
Failed to extract LibreElec download check your internet connection and try again

I am using an Asus Chromebox CN60
Intel Haswell
stock ChromeOS w/RW_LEGACY

Have also done a full recovery with the chrome recovery utility but still have the same errors

Any help would be greatly appreciated u/MrChromebox

there's a few reasons for the download to fail - could be a bad connection, server hiccup, or lack of space on your device. Hard to tell from the info provided.

that said, I'm confused as to what you're trying to do exactly. If you have an existing LE install and want to upgrade, there's no need to do anything from ChromeOS or my script -- you just use LE's built-in update mechanism (unless there are issues with partition sizing).

Also, it's 2020, and the 2014 model CN60 no longer gets ChromeOS updates. I'd recommend switching to my UEFI firmware and either doing a fresh dedicated LE install, or running Linux + Kodi. Dual booting at this point is likely not your best option


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - nonfac - 2020-12-22

Hi.  Let me start by saying a BIG 'Thank You' to Mr Chromebox for not only making the script, but taking the time to maintain it and answer posts.  You're a good guy, seriously.  
I hate having to join the form just to make posts like this, as I don't want to be complainer.  Unfortunately, I'm having the same issue as @nelmanp

However, I'm using a Celeron Asus Chormebox 3.  FWIW, I had a CN60 myself, and sometime around May or June the install on USB stopped working for me as well (different error, however), so I upgraded to the "3".  But no joy.  

I am attempting to install on a USB stick.  I've tried at least 2 USB sticks over the course of 3 or 4 months, but the error (not look like a valid tar archive) persists each time.  
I assume we're not the only 2 getting this error.  
Has anyone found a workaround?


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-12-22

(2020-12-22, 05:40)nonfac Wrote: Hi.  Let me start by saying a BIG 'Thank You' to Mr Chromebox for not only making the script, but taking the time to maintain it and answer posts.  You're a good guy, seriously.  
I hate having to join the form just to make posts like this, as I don't want to be complainer.  Unfortunately, I'm having the same issue as @nelmanp

However, I'm using a Celeron Asus Chormebox 3.  FWIW, I had a CN60 myself, and sometime around May or June the install on USB stopped working for me as well (different error, however), so I upgraded to the "3".  But no joy.  

I am attempting to install on a USB stick.  I've tried at least 2 USB sticks over the course of 3 or 4 months, but the error (not look like a valid tar archive) persists each time.  
I assume we're not the only 2 getting this error.  
Has anyone found a workaround?
I'm not quite clear exactly what the issue / error is. Which script option are you using?


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - nonfac - 2020-12-22

(2020-12-22, 06:07)Matt Devo Wrote:
(2020-12-22, 05:40)nonfac Wrote: Hi.  Let me start by saying a BIG 'Thank You' to Mr Chromebox for not only making the script, but taking the time to maintain it and answer posts.  You're a good guy, seriously.  
I hate having to join the form just to make posts like this, as I don't want to be complainer.  Unfortunately, I'm having the same issue as @nelmanp
...
Has anyone found a workaround?
I'm not quite clear exactly what the issue / error is. Which script option are you using?
The issue/error is, that when I select script option number 3 (install LibreELEC on USB), the download completes, but during install, the error:
"Failed to extract LibreELEC download..."

Image


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Matt Devo - 2020-12-22

(2020-12-22, 07:47)nonfac Wrote: The issue/error is, that when I select script option number 3 (install LibreELEC on USB), the download completes, but during install, the error:
"Failed to extract LibreELEC download..."

 ok, I've bumped the LE version it downloads, hopefully that fixes the issue


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - nonfac - 2020-12-22

(2020-12-22, 15:53)Matt Devo Wrote:
(2020-12-22, 07:47)nonfac Wrote: The issue/error is, that when I select script option number 3 (install LibreELEC on USB), the download completes, but during install, the error:
"Failed to extract LibreELEC download..."

 ok, I've bumped the LE version it downloads, hopefully that fixes the issue
Many thanks Matt, that fixed it!


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - meganoob - 2020-12-27

Hi, I mostly don't know what I'm doing.  I have an old Asus Chromebox CN60.  Everything was cool except recently I was no longer able to launch the plex player from chrome so I've started to look for alternatives.

I'm attempting to use the E-Z setup script and everything is mostly going okay until a point.

I first put the system into dev mode.  From here I was seeing if I could boot from a USB thumb drive to Ubuntu just to see if I could stream over plex that way.  As I'm sure many here are aware the Chromebox won't let me boot from USB.  Then I discovered MrChromebox.tech.  Great!

I updated the BIOS to the MRChromebox BIOS (RW_LEGACY).  I tried Ubuntu but it was pretty slow and buggy so I started looking for alternatives.

Then I noticed the Kodi E-Z setup script and I thought this sounded like just the ticket for a guy like me Smile

So I ran script from the command line.  I created a 4GB partition, let the repair happen and then installed LibreELEC alongside my Chrome OS.  So far everything was going fine.  But now when I boot the system and press CTRL-L I hang at boot.  The screen just shows "booting from hard disk..."  and it hangs there forever.  Chrome still boots up fine and I can see that I'm short 4 GB of storage when I check from Chrome OS.

After this I tried to install GalliumsOS/Ubuntu using the E-Z script but there is an error/warning about needing to use something else so it never installed.

At this point I did a powerwash and tried installing LibreELEC again.  I didn't expect this to matter but I figured I'd try.  Still the same thing where I press CTRL-L at boot and it hangs.

What do I need to do here?  Hopefully I've provided enough information.  I'm sure somewhere in the 100s of pages of this thread the answer is there but I haven't found it yet!  Thanks for all the hard work that some folks out there have already done just to get me to this point.