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/Linux+Kodi) [2016/04/18] - jjslegacy - 2016-04-20

Used this one from today:
LibreELEC-Generic.x86_64-8.0-Milhouse-20160419210537-#0419-gfee76be.tar
from:
http://milhouse.libreelec.tv/builds/master/Generic/

Guessing this is the issue:
Theater:~ # /tmp/flashrom -r bios.bin
flashrom v0.9.4 chromium.googlesource.com/chromiumos/third_party/flashrom : 51822fd : Apr 12 2016 22:22:28 UTC on Linux 4.4.7 (x86_64), built with libpci 3.3.1, GCC 5.3.1 20160406 (Red Hat 5.3.1-6), little endian
Cannot stat /run/lockCould not acquire lock.

I fixed it temporarily by creating the directory /run/lock that worked and allowed it to finish


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - rvf263 - 2016-04-20

Thanks christoofar, appreciate it. I'll try a wired one and see if it works.

Thanks for the link Matt, I really appreciate it.

I'm hoping to get this up and running tomorrow morning after work!


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Matt Devo - 2016-04-20

(2016-04-20, 03:11)jjslegacy Wrote: Used this one from today:
LibreELEC-Generic.x86_64-8.0-Milhouse-20160419210537-#0419-gfee76be.tar
from:
http://milhouse.libreelec.tv/builds/master/Generic/

Guessing this is the issue:
Theater:~ # /tmp/flashrom -r bios.bin
flashrom v0.9.4 chromium.googlesource.com/chromiumos/third_party/flashrom : 51822fd : Apr 12 2016 22:22:28 UTC on Linux 4.4.7 (x86_64), built with libpci 3.3.1, GCC 5.3.1 20160406 (Red Hat 5.3.1-6), little endian
Cannot stat /run/lockCould not acquire lock.

I fixed it temporarily by creating the directory /run/lock that worked and allowed it to finish

ok, I'll check that out and see what's up. I did update to a newer build of flashrom so maybe that's the issue


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Matt Devo - 2016-04-20

(2016-04-20, 03:39)Matt Devo Wrote:
(2016-04-20, 03:11)jjslegacy Wrote: Used this one from today:
LibreELEC-Generic.x86_64-8.0-Milhouse-20160419210537-#0419-gfee76be.tar
from:
http://milhouse.libreelec.tv/builds/master/Generic/

Guessing this is the issue:
Theater:~ # /tmp/flashrom -r bios.bin
flashrom v0.9.4 chromium.googlesource.com/chromiumos/third_party/flashrom : 51822fd : Apr 12 2016 22:22:28 UTC on Linux 4.4.7 (x86_64), built with libpci 3.3.1, GCC 5.3.1 20160406 (Red Hat 5.3.1-6), little endian
Cannot stat /run/lockCould not acquire lock.

I fixed it temporarily by creating the directory /run/lock that worked and allowed it to finish

ok, I'll check that out and see what's up. I did update to a newer build of flashrom so maybe that's the issue

flashrom recompiled and updated, should be good to go now.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - jjslegacy - 2016-04-20

Thanks Matt!


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - DJChrome - 2016-04-22

Hello,

I'm trying to set up a Samsung stumpy with this script on standalone, but it keeps telling me that my write protect is turned on. I have a wire jumper on the correct spot, according to the google+ group thread on the subject (2nd jumper from top, right above the chip), have unplugged and replugged in the coin cell battery, and have checked the status with the crossystem command (it shows 0, meaning disabled.)

I am in developer mode. Am I missing something?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Matt Devo - 2016-04-22

(2016-04-22, 11:39)DJChrome Wrote: Hello,

I'm trying to set up a Samsung stumpy with this script on standalone, but it keeps telling me that my write protect is turned on. I have a wire jumper on the correct spot, according to the google+ group thread on the subject (2nd jumper from top, right above the chip), have unplugged and replugged in the coin cell battery, and have checked the status with the crossystem command (it shows 0, meaning disabled.)

I am in developer mode. Am I missing something?

there's a few write-protect related variables reported by crossystem. what is crossystem reporting for both wpsw_cur and wpsw_boot? Are both 0?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - DJChrome - 2016-04-22

wpsw_boot: 0 (Position at boot) and wpsw_cur: (error) (Current position)

It's running Google_Stumpy.2.102.0 if that makes any difference.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - mjuti - 2016-04-22

Quote:flashrom recompiled and updated, should be good to go now.

Hi Matt,

I have been using your scripts on my Chromebox ( Panther ) since the 1st day I received it from Amazon. I am running Archlinux, nothing else ( standalone ) and on your April 3 coreboot firmware. Now I have this problem:

" Failure reading current firmware; cannot proceed "

Running the script directly gives:

"root@arch /tmp # /tmp/flashrom -r bios.bin Sad
flashrom v0.9.4 chromium.googlesource.com/chromiumos/third_party/flashrom : 51822fd : Apr 12 2016 22:22:28 UTC on Linux 4.5.1-1-ARCH (x86_64), built with libpci 3.3.1, GCC 5.2.1 20151010, little endian
Error accessing high tables, 0x100000 bytes at 0x7f708000
/dev/mem mmap failed: Resource temporarily unavailable
Failed getting access to coreboot high tables.
Error accessing ICH RCRB, 0x4000 bytes at 0xfed1c000
/dev/mem mmap failed: Operation not permitted

As you can see I am root and can confirm /dev/mem does exist ( size 0 )

Thanks for your support


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Matt Devo - 2016-04-22

(2016-04-22, 12:03)DJChrome Wrote: wpsw_boot: 0 (Position at boot) and wpsw_cur: (error) (Current position)

It's running Google_Stumpy.2.102.0 if that makes any difference.

I just pushed an update that should work around stumpy reporting wpsw_curr = error

(2016-04-22, 13:05)mjuti Wrote: Hi Matt,

I have been using your scripts on my Chromebox ( Panther ) since the 1st day I received it from Amazon. I am running Archlinux, nothing else ( standalone ) and on your April 3 coreboot firmware. Now I have this problem:

" Failure reading current firmware; cannot proceed "

Running the script directly gives:

"root@arch /tmp # /tmp/flashrom -r bios.bin Sad
flashrom v0.9.4 chromium.googlesource.com/chromiumos/third_party/flashrom : 51822fd : Apr 12 2016 22:22:28 UTC on Linux 4.5.1-1-ARCH (x86_64), built with libpci 3.3.1, GCC 5.2.1 20151010, little endian
Error accessing high tables, 0x100000 bytes at 0x7f708000
/dev/mem mmap failed: Resource temporarily unavailable
Failed getting access to coreboot high tables.
Error accessing ICH RCRB, 0x4000 bytes at 0xfed1c000
/dev/mem mmap failed: Operation not permitted

As you can see I am root and can confirm /dev/mem does exist ( size 0 )

Thanks for your support

I'm guessing either a kernel config or change in 4.5 is breaking something, hard to say as I'm not familiar with the inner workings of flashrom. I'd suggest just booting a Ubuntu (or GalliumOS) live USB and running the script from there as a workaround until I have a chance to look into it.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - mjuti - 2016-04-22

Thanks for your prompt response Matt, good guess I believe, I 'll do what you suggested and report back


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - DJChrome - 2016-04-23

(2016-04-22, 13:31)Matt Devo Wrote:
(2016-04-22, 12:03)DJChrome Wrote: wpsw_boot: 0 (Position at boot) and wpsw_cur: (error) (Current position)

It's running Google_Stumpy.2.102.0 if that makes any difference.

I just pushed an update that should work around stumpy reporting wpsw_curr = error

It functioned perfectly, I've got standalone boot up and going now.

Thank you Matt!


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Boulder - 2016-04-24

I'm trying to install the standalone coreboot firmware to an HP Chromebox to install Win10 on it, but I'm having two issues:

1) When trying to backup the original firmware, I get the option "0+1" for my SD card and I cannot get the backup option working because the script expects an integer

2) I get a checksum failed error when the coreboot firmware is downloaded


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Matt Devo - 2016-04-24

(2016-04-24, 14:27)Boulder Wrote: I'm trying to install the standalone coreboot firmware to an HP Chromebox to install Win10 on it, but I'm having two issues:

1) When trying to backup the original firmware, I get the option "0+1" for my SD card and I cannot get the backup option working because the script expects an integer

2) I get a checksum failed error when the coreboot firmware is downloaded

1) not sure how that happened, but fixed

2) must have been a bad download, so the error checking did its job


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2016/04/18] - Boulder - 2016-04-24

Thanks, I'll test the process again tomorrow. I did try repeating the update procedure multiple times, but maybe the backup error caused something to go wrong.