Kodi Community Forum

Full Version: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
hi,

i've followed the instructions - but can't acess the command prompt - any ideas?
Hi, I have a Harmony Ultimate set up and works absolutely fine with IR but when I enable bluetooth and pair with the hub, the chromebox won't stay in suspend. It wakes up again after 2-3 seconds. If I disable bluetooth in openelec it works as normal (through IR) so for some reason the bluetooth is preventing standby, any ideas? Thanks
oh no, i've changed the boot options to dual boot before running the script a second time - now i think i've bricked it. damn you friday night beer Sad
(2014-12-05, 22:42)emitecaps Wrote: [ -> ]hi,

i've followed the instructions - but can't acess the command prompt - any ideas?

some wireless keyboards that have an on/off switch need to be toggled before you can hit [CTRL-ALT-F2] to bring up the shell prompt; my Logitech K360 is like this.

(2014-12-06, 00:05)snarby2014 Wrote: [ -> ]Hi, I have a Harmony Ultimate set up and works absolutely fine with IR but when I enable bluetooth and pair with the hub, the chromebox won't stay in suspend. It wakes up again after 2-3 seconds. If I disable bluetooth in openelec it works as normal (through IR) so for some reason the bluetooth is preventing standby, any ideas? Thanks

go into the BT setup, select the hub device, and enable standby. There might also be a setting on the hub/Logitech software, but that's kinda out of scope here.

(2014-12-06, 00:31)emitecaps Wrote: [ -> ]oh no, i've changed the boot options to dual boot before running the script a second time - now i think i've bricked it. damn you friday night beer Sad

no, all that happening is that it's going into legacy boot mode (after 1s I'm guessing) and there's nothing for it to boot. Hit [CTRL-D] *before* the black SeaBIOS/legacy boot screen appears to get back into ChromeOS, which may be before your monitor comes out of standby. You can hit [CTRL-D] a few times, it won't hurt anything. Once you get back into ChromeOS, run the script again to finish the dual boot install.
(2014-11-08, 21:54)Matt Devo Wrote: [ -> ]
(2014-11-08, 21:42)murilofla Wrote: [ -> ]Thanks Matt for your help

In this case, I'll give up of this crap Chrome/Chromium OS, and I'll use Mint + Openelec...

Thanks again
Murilo

in that case, I'd just run XBMC in Mint, no real reason to dual boot two different Linux distros.

Matt, the thing is that I want to use OpenELEC 90% of the time because it's a well maintained, always updated minimal and FAAAST booting system. But I would like to have a dual boot, so that I can use/experiment with different Linux distros, on an upgraded SSD, so I don't have to run the system off of a USB stick.

It would be great if your script could handle that. I tried Ununtu install, and adding OpenELEC, following the posted instructions on Kodi forums (or OE forums), but it did not quite work. Not an expert in Linux, but I was hoping to install OE, and afterwards let something like Mint, install it and have Mint offer and set up a dual boot for me. I know in WIndows/Linux dual boots, one always does windows first, would be great if we could do OE first, and some cool Linux distro afterwards. I know I would be thankful!

Domi
(2014-12-06, 04:20)dmalovic Wrote: [ -> ]Matt, the thing is that I want to use OpenELEC 90% of the time because it's a well maintained, always updated minimal and FAAAST booting system. But I would like to have a dual boot, so that I can use/experiment with different Linux distros, on an upgraded SSD, so I don't have to run the system off of a USB stick.

It would be great if your script could handle that. I tried Ununtu install, and adding OpenELEC, following the posted instructions on Kodi forums (or OE forums), but it did not quite work. Not an expert in Linux, but I was hoping to install OE, and afterwards let something like Mint, install it and have Mint offer and set up a dual boot for me. I know in WIndows/Linux dual boots, one always does windows first, would be great if we could do OE first, and some cool Linux distro afterwards. I know I would be thankful!

Domi

In that case, install OpenELEC first in standalone mode, then boot the Ubuntu/Mint/whatever installer, and have it resize the 2nd partition to use as much as you need (OE only needs a gig or two for the 2nd partition). Whatever Linux distro you install should have you install GRUB and allow you to select which OS to boot at startup, but that sort of configuration is an exercise left to the user, and not something I intend to ever add to my script.
Has anyone else had trouble performing a factory reset? I can't get my Asus Chromebox to respond to the recovery USB for the life of me. I've tried 4Gb, 8 Gb, and 16 Gb flash drives (Lexar). I've tried using the Chrome recovery tool in ChromeOS as well as downloading the image, renaming the extension from .BIN to .IMG, and writing it to a USB drive using Win32 Disk Imager. As soon as I enter recovery mode, I insert the USB, and absolutely nothing happens. I've left it in for hours. Not sure what else to try at this point.
(2014-12-05, 13:54)LilSnoop40 Wrote: [ -> ]Matt, i used putty to get into the box that i wasn't sure if i updated the bios on. after type the 2 commands on page one i am getting this error:

OpenELEC (official) Version: 4.2.1
OpenELEC:~ # curl -L -O http://goo.gl/3Tfu5W
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 260 0 260 0 0 3267 0 --:--:-- --:--:-- --:--:-- 3291
0 0 0 383 0 0 914 0 --:--:-- --:--:-- --:--:-- 0
100 33537 100 33537 0 0 48603 0 --:--:-- --:--:-- --:--:-- 48603
OpenELEC:~ # sudo bash 3Tfu5W

There is no working 'sudo'.

On debian/ubuntu/all general purpose linux distributions 'sudo'
allows a permitted user to execute a command as the superuser
or another user, as specified by the security policy

With OpenELEC you have root access by default, so you dont need 'sudo'

I have used putty before but not a pro, what do i need to do here?

Thanks

Run it without sudo. Just

bash 3Tfu5W
(2014-12-06, 07:41)nickr Wrote: [ -> ]
(2014-12-05, 13:54)LilSnoop40 Wrote: [ -> ]Matt, i used putty to get into the box that i wasn't sure if i updated the bios on. after type the 2 commands on page one i am getting this error:

OpenELEC (official) Version: 4.2.1
OpenELEC:~ # curl -L -O http://goo.gl/3Tfu5W
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 260 0 260 0 0 3267 0 --:--:-- --:--:-- --:--:-- 3291
0 0 0 383 0 0 914 0 --:--:-- --:--:-- --:--:-- 0
100 33537 100 33537 0 0 48603 0 --:--:-- --:--:-- --:--:-- 48603
OpenELEC:~ # sudo bash 3Tfu5W

There is no working 'sudo'.

On debian/ubuntu/all general purpose linux distributions 'sudo'
allows a permitted user to execute a command as the superuser
or another user, as specified by the security policy

With OpenELEC you have root access by default, so you dont need 'sudo'

I have used putty before but not a pro, what do i need to do here?

Thanks

Run it without sudo. Just

bash 3Tfu5W

the main EZ setup script cannot be run under OpenELEC because it lacks a bash shell; he has to use the standalone updater script as I mentioned previously

(2014-12-06, 07:14)ajcast5201 Wrote: [ -> ]Has anyone else had trouble performing a factory reset? I can't get my Asus Chromebox to respond to the recovery USB for the life of me. I've tried 4Gb, 8 Gb, and 16 Gb flash drives (Lexar). I've tried using the Chrome recovery tool in ChromeOS as well as downloading the image, renaming the extension from .BIN to .IMG, and writing it to a USB drive using Win32 Disk Imager. As soon as I enter recovery mode, I insert the USB, and absolutely nothing happens. I've left it in for hours. Not sure what else to try at this point.

I've never seen it not respond at all, usually it will detect the media and either start the recovery process, or give an error like 'the USB stick you have connected does not contain a ChromeOS recovery image"
Please forgive that this is not a Kodi-specific question. With the standalone "BIOS", is there any way to give the integrated GPU more memory? I have 4GB in my chromebox and would like to up it to 512MB dedicated to help with steam streaming.
(2014-12-06, 08:22)rodalpho Wrote: [ -> ]Please forgive that this is not a Kodi-specific question. With the standalone "BIOS", is there any way to give the integrated GPU more memory? I have 4GB in my chromebox and would like to up it to 512MB dedicated to help with steam streaming.

what does Steam report currently? The fixed GPU memory can be adjusted, but only in the firmware at compile time.
Steam reports 268.44MB of GPU memory, and recommends using a bizarre sub-HD 1066x600 resolution.

Edit: Actually upon doing a bit of research, it looks like this may be a long-standing unfixed bug in Steam. How much memory is actually dedicated to the GPU in the coreboot/seabios version you distribute? Is it actually 256MB, or less?

https://github.com/ValveSoftware/steam-f...ssues/1562
https://github.com/ValveSoftware/steam-f...ssues/2897
https://github.com/ValveSoftware/steam-f...ssues/3418

Edit2: After more research it does look like it's actually 256MB, so can't blame a steam bug. 512MB would work a lot better for streaming.

Code:
root@whiskeyjack:~# lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Google, Inc. Device c000
        Flags: bus master, fast devsel, latency 0, IRQ 64
        Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 3000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
(2014-12-06, 02:22)Matt Devo Wrote: [ -> ]
(2014-12-06, 00:05)snarby2014 Wrote: [ -> ]Hi, I have a Harmony Ultimate set up and works absolutely fine with IR but when I enable bluetooth and pair with the hub, the chromebox won't stay in suspend. It wakes up again after 2-3 seconds. If I disable bluetooth in openelec it works as normal (through IR) so for some reason the bluetooth is preventing standby, any ideas? Thanks

go into the BT setup, select the hub device, and enable standby. There might also be a setting on the hub/Logitech software, but that's kinda out of scope here.

Matt, many thanks for the tip and fast reply! It was a setting in the hub - I had the windows computer to be always on so changed to 'turn off when not in use' and its working great. Just one more little issue I don't know if you can help with?

I have a boblight setup with an arduino connected via usb but when I put the chromebox into standby after resuming the lights don't work even though it comes up with the message 'connected to boblight'. I have checked the logs and nothing seems out of the ordinary, however if I disconnect the usb lead and put it back it starts working again. Is there any way to reset the usb port after resume?
(2014-12-06, 08:33)rodalpho Wrote: [ -> ]Steam reports 268.44MB of GPU memory, and recommends using a bizarre sub-HD 1066x600 resolution.

Edit: Actually upon doing a bit of research, it looks like this may be a long-standing unfixed bug in Steam. How much memory is actually dedicated to the GPU in the coreboot/seabios version you distribute? Is it actually 256MB, or less?

https://github.com/ValveSoftware/steam-f...ssues/1562
https://github.com/ValveSoftware/steam-f...ssues/2897
https://github.com/ValveSoftware/steam-f...ssues/3418

Edit2: After more research it does look like it's actually 256MB, so can't blame a steam bug. 512MB would work a lot better for streaming.

Code:
root@whiskeyjack:~# lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Google, Inc. Device c000
        Flags: bus master, fast devsel, latency 0, IRQ 64
        Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 3000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

unfortunately, while I can find where in the code the VGA aperture is set to 256MB, I can't figure out how to alter that value. I've asked on the coreboot IRC channel for help.

(2014-12-06, 09:20)snarby2014 Wrote: [ -> ]Matt, many thanks for the tip and fast reply! It was a setting in the hub - I had the windows computer to be always on so changed to 'turn off when not in use' and its working great. Just one more little issue I don't know if you can help with?

I have a boblight setup with an arduino connected via usb but when I put the chromebox into standby after resuming the lights don't work even though it comes up with the message 'connected to boblight'. I have checked the logs and nothing seems out of the ordinary, however if I disconnect the usb lead and put it back it starts working again. Is there any way to reset the usb port after resume?

while I'm not familiar with the boblight, I'd suspect you can reset the individual port it's connected to when resuming from suspend via script - OE provides a mechanism for this - I just don't know the particulars
no worries, I think this is the way forward too, I just cant find out how to do it (im a linux noob!)
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