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/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-16

(2014-10-16, 19:51)mcord Wrote: So there was an issue or likely me not entering things correctly?

I didn't change anything, just verified it. Be sure to use a capital 'o' in the curl command

Image


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - jjslegacy - 2014-10-16

worked fine here on my openelec standalone setup - asus chromebox

thanks Matt - now I don't have to pull the machine out of the equipment room to update it Smile


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-16

in theory the firmware updates should be few and far between at this point, but the capability is nice to have Smile


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8)[v3.0-2014/10/16] - thePCisDead - 2014-10-17

(2014-10-16, 09:06)Matt Devo Wrote: major script update:

- updated to support running under any Linux OS
- added separate firmware update script for bash-less OS, eg OpenELEC
- switched to using OpenELEC disc image for standalone media creation
- reduced unnecessary script verbosity
- updated coreboot firmware to upstream/master HEAD; includes numerous ACPI fixes
- updated SeaBIOS payload to upstream/master HEAD
- updated to support new Acer/Dell Haswell-based ChromeBox models

eventually the separate firmware update script will become a fully-automated XBMC add-on, if I ever get the time Smile

Matt, thanks to you (and countless others who've worked on OpenELEC and XBMC) this device is the best streaming and media playback device I have ever owned by a long shot. ChromeOS is icing on the cake.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Sunflux - 2014-10-17

(2014-10-16, 16:48)Matt Devo Wrote:
(2014-10-16, 09:46)Sunflux Wrote: Hmm, can't do a standalone BIOS update:

looks like it didn't correctly download the 'latest version' file from dropbox, I've thrown a check in for that. Try again?

Worked this time! (And I did try re-downloading the script several times earlier...)


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Sunflux - 2014-10-17

Hmm. Not so sure I'm liking this new firmware. Left the system off for a few hours, and when I came back, for the first time *ever* it wouldn't wake up by remote. And then when I forced it on with the power button, the USB audio stick was non-functional as well (also the first time ever) until after a reboot.

Is there any way to downgrade to your previous release? I'm not looking to do that at this instant, but if this issue happens again it might be wise...


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-17

I'll see if I can reproduce that here, but it didn't show up when I tested before posting. In any case, I do keep an archive of all of my previous posted firmware versions, so rolling back would not be a problem, if it does in fact end up being a firmware issue.

As of right now, I'm able to suspend/resume with a MCE IR remote, a PS3 BT remote, and via WOL using the YATSE Android app, repeatedly and reliably. No audio issues after resuming, on either of my ChromeBoxes - one using HDMI audio, one using USB/SPDIF


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Sunflux - 2014-10-17

It works fine now if I do it quickly on and off, but it was a 4+ hour period of time in sleep that triggered the issue. The power button still worked, and after that I could resume/suspend by remote, but that's when I noticed that I wasn't getting any audio (despite the USB stick's LEDs indicating it was active), and videos had these lengthy pauses on playback/stop (likely due to the selected audio device being non-responsive). Then I rebooted, and everything resumed working as it should.

I'll wait to see if the issue happens again before doing anything further.

Nice to hear that you keep backups - because the previous release was working well, but I was wooed by the promise of ACPI fixes. :-)


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-17

I've got my dev box in suspend now, will see how it behaves when I wake up in the AM.

the ACPI stuff mainly affected table names, and a dummy device that Windows didn't like. Nothing that should have any effect on resume from suspend or USB device init upon resume.


BIOS update fails - gkingsmill - 2014-10-17

Code:
I updated ChromeOS from the Stable channel to the Beta channel Version 38.0.2125.101 beta (64-bit) a few weeks ago. Everything has been working fine.

Today I tried to do a standalone BIOS update but unfortunately the update is failing.

curl -L -O http://goo.gl/HSZer4
sudo bash HSZer4

When I run HSZer4 I see the following errors.

Problem1: Exists on both OpenELEC and ChromeOS
----------------------------------------------
dmesg | grep DMI now returns
DMI: GOOGLE Panther, BIOS Google_Panther.4920.24.25 05/12/2014    [ChromeoS]
DMI: GOOGLE Panther, BIOS          05/12/2014            [OpenELEC]
     ^^^^^^^
HSZer4 line 48 is looking for "DMI: Google Panther". I was able to correct this by making the grep case insensitive (changing-m1 to -im1). The HSZer4 script continues and says that this script is going to install a newer firmware version.


Problem2: ChromeOS specific running Beta Channel only
------------------------------------------------------
Next, I get the error "Failure reading current firmware; cannot proceed"
This failure is occurring since /tmp is mounted with he noexec option which prevents executables running from /tmp
I fixed this by making the following changes.

tmpdir=/usr/local/tmp
mkdir -p $tmpdir
flashromcmd="$tmpdir/flashrom"
cbfstoolcmd="$tmpdir/cbfstool"
...
cd $tmpdir   (rather than cd /tmp)

Problem3: Exists on both OpenELEC and ChromeOS
---------------------------------------------
$tmdir/cbfstool bios.bin extract vpd.bin -f vpd.bin
E: File not found: vpd.bin
Failure extracting MAC address from current firmware

Not sure how to fix this one.

I did go back and install the stable version of ChromeOS. Problem 1 and Problem 3 remained. The Problem 2 changes are no longer required however the changes made are still compatible.

I am assuming that installing the Beta channel updated the firmware although I have no way to confirm this. If this version of firmware is what will be coming in a future update then can support be added for this firmware version? If not then how do I recover?

Thanks,
Geoff..



RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/XBMC/Linux/Win8) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-17

Geoff,

the problem is that you are running the wrong script. As it says in the OP:

Quote:This script is only intended to update a ChromeBox already running my custom coreboot firmware, and will not work under ChromeOS/ChromiumOS.

If you're running the stock firmware, you must run the main EZ Setup script from ChromeOS to flash the coreboot firmware.

PS: Google currently has no mechanism in place to update the stock firmware on ChromeOS devices. Updating ChromeOS will in no way change the stock firmware.

(2014-10-17, 07:09)Sunflux Wrote: It works fine now if I do it quickly on and off, but it was a 4+ hour period of time in sleep that triggered the issue. The power button still worked, and after that I could resume/suspend by remote, but that's when I noticed that I wasn't getting any audio (despite the USB stick's LEDs indicating it was active), and videos had these lengthy pauses on playback/stop (likely due to the selected audio device being non-responsive). Then I rebooted, and everything resumed working as it should.

I'll wait to see if the issue happens again before doing anything further.

Nice to hear that you keep backups - because the previous release was working well, but I was wooed by the promise of ACPI fixes. :-)

no issues resuming 6+hrs later


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.0 - 2014/10/16] - Sunflux - 2014-10-18

(2014-10-17, 16:31)Matt Devo Wrote: no issues resuming 6+hrs later

So far agreed... it hasn't happened to me again. Might have been an unfortunately timed quirk, or it's something that's erratic. I'll keep an eye on it.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.0 - 2014/10/16] - warp123 - 2014-10-18

Hi, i have the same problem as Jimmulus and you answer that.

Quote:Jimmulus Wrote:
Hi Matt,

I am a bit ashamed to say i did a factory reset with openelec running.

When i startup i get this message, discussed earlier

(SeaBIOS (version -20140706_180417-build120-m2)

Press ESC for boot menu.

Booting from Hard Disk...
early console in decompress_kernel
KASLR using RDRAND...

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

The problem i have is that keyboards are no longer working (tried 2, wired and wireless), So i can't get into developer mode.

Is there any way to restore the chromebox?

Thanks in advance.

your SeaBIOS build string indicates you are running the stock version, which does not allow for any keyboard input due to broken USB support. You need to press [CTRL-D] *before* the black SeaBIOS screen displays in order to run ChromeOS / re-run the script.

but i can't press ctrl-D , it's never work, do you have a other solution ?

Also i have try to do a framework reset but it's does nothing.always this screen.

Quote:(SeaBIOS (version -20140706_180417-build120-m2)

Press ESC for boot menu.

Booting from Hard Disk...
early console in decompress_kernel
KASLR using RDRAND...

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



RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.0 - 2014/10/16] - Matt Devo - 2014-10-18

(2014-10-18, 17:46)warp123 Wrote: but i can't press ctrl-D , it's never work, do you have a other solution ?

Also i have try to do a framework reset but it's does nothing.always this screen.

Quote:(SeaBIOS (version -20140706_180417-build120-m2)

Press ESC for boot menu.

Booting from Hard Disk...
early console in decompress_kernel
KASLR using RDRAND...

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

there is no other solution, short of flashing the BIOS chip directly with a chip programmer to reset the boot flags. This is just what happens when you do a factory reset without first resetting the boot flags; the (only) solution is to boot to ChromeOS using [CTRL-D] before SeaBIOS loads. Find a working keyboard and go from there


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.0 - 2014/10/16] - JD2k3 - 2014-10-18

Hey Matt,

I'm trying to update the coreboot version of my Asus ChromeBox on Openelec but it fails with the following message:

Code:
Reading current firmware
Failure extracting MAC address from current firmware.

This is most likely caused because I was using some previous version that changed the mac address to a default one.
Is there any way to restore the mac address using Openelec or do I completely need to restore it in order to use this update script?

Thanks!