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+XBMC) [v3.1 - 2014/10/30] - nickr - 2014-10-30

Sorry I was confused about what device flekz had, forgive my intrusion. I will crawl back to my hole now...


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

(2014-10-30, 20:40)nickr Wrote: Sorry I was confused about what device flekz had, forgive my intrusion. I will crawl back to my hole now...

lol


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - adun79 - 2014-10-30

(2014-10-30, 17:19)Matt Devo Wrote:
(2014-10-30, 07:29)adun79 Wrote: It's 38.0.2125.110 (64bit). The box is HP with 2 gigs of ram

fixed / script updated. Google moved the location of the command outside of the normal executable paths, those jerks.

It works

Thanks, Matt


Is there a way to bring up the boot options? Right now CTRL+D takes me into Chrome, CTRL+L into OE. It is set at OE default, 30 sec delay


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

(2014-10-30, 22:51)adun79 Wrote: It works

Thanks, Matt


Is there a way to bring up the boot options? Right now CTRL+D takes me into Chrome, CTRL+L into OE. It is set at OE default, 30 sec delay


negative. The keyboard shortcuts to boot ChromeOS and the legacy BIOS in the stock firmware are there just for developers, it was never intended to be an option for "regular" users.

The closest you can get is to install my standalone firmware, then install ChromiumOS and dual boot OE, and have a GRUB boot menu to select between the two. There's even a way to "upgrade" ChromiumOS to ChromeOS, but then you lose the auto-update capability. And that's definitely beyond the scope of this script, and what I would consider doable for most users Smile


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - teki4u - 2014-10-31

(2014-10-31, 00:47)Matt Devo Wrote:
(2014-10-30, 22:51)adun79 Wrote: It works

Thanks, Matt


Is there a way to bring up the boot options? Right now CTRL+D takes me into Chrome, CTRL+L into OE. It is set at OE default, 30 sec delay


negative. The keyboard shortcuts to boot ChromeOS and the legacy BIOS in the stock firmware are there just for developers, it was never intended to be an option for "regular" users.

The closest you can get is to install my standalone firmware, then install ChromiumOS and dual boot OE, and have a GRUB boot menu to select between the two. There's even a way to "upgrade" ChromiumOS to ChromeOS, but then you lose the auto-update capability. And that's definitely beyond the scope of this script, and what I would consider doable for most users Smile

But ESC will keep working right? that for me is the chromebox default boot menu, basic and limited but handy.


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

(2014-10-31, 01:35)Veronica Wrote:
(2014-10-31, 00:47)Matt Devo Wrote: negative. The keyboard shortcuts to boot ChromeOS and the legacy BIOS in the stock firmware are there just for developers, it was never intended to be an option for "regular" users.

The closest you can get is to install my standalone firmware, then install ChromiumOS and dual boot OE, and have a GRUB boot menu to select between the two. There's even a way to "upgrade" ChromiumOS to ChromeOS, but then you lose the auto-update capability. And that's definitely beyond the scope of this script, and what I would consider doable for most users Smile

But ESC will keep working right? that for me is the chromebox default boot menu, basic and limited but handy.

not sure what you are asking exactly - the SeaBIOS boot menu will always be available , assuming more than one boot device is present. What I'm referring to is a standard GRUB boot menu which would show after booting the internal hard drive, and allow the selection between ChromiumOS and OpenELEC


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - teki4u - 2014-10-31

(2014-10-31, 02:10)Matt Devo Wrote:
(2014-10-31, 01:35)Veronica Wrote:
(2014-10-31, 00:47)Matt Devo Wrote: negative. The keyboard shortcuts to boot ChromeOS and the legacy BIOS in the stock firmware are there just for developers, it was never intended to be an option for "regular" users.

The closest you can get is to install my standalone firmware, then install ChromiumOS and dual boot OE, and have a GRUB boot menu to select between the two. There's even a way to "upgrade" ChromiumOS to ChromeOS, but then you lose the auto-update capability. And that's definitely beyond the scope of this script, and what I would consider doable for most users Smile

But ESC will keep working right? that for me is the chromebox default boot menu, basic and limited but handy.

not sure what you are asking exactly - the SeaBIOS boot menu will always be available , assuming more than one boot device is present. What I'm referring to is a standard GRUB boot menu which would show after booting the internal hard drive, and allow the selection between ChromiumOS and OpenELEC

I know the difference, i just wanted to make sure ESC was working as he mentioned boot options and for me the first thought was the SeaBIOS boot menu.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - pakman - 2014-10-31

Thanks for such a great script. I wish I had found this earlier, but unfortunately, I got partway through another blog and realized it didn't work for some reason, so went searching for this. I think I have a working system, but some things seem a little weird. let me see if I can describe what happened and perhaps someone here can help.

1. First blog had get into dev mode and issue the following "chromeos-firmwareupdate --mode=todev ", from there run a script to partition for Ubuntu (picked 9G for size) and it ran into problems... so switched over to your script.
2. started by restoring from a USB image (downloaded recovery image from google and imaged a USB stick with it)
3. dualboot script worked great from there (again with 9G for Ubuntu), took a while to get through but it looked good from there.
4. selected Ubuntu to boot in 1 sec delay

Now whenever I boot, the screen still has the warning that OS verification is off and to hit space to enable. it sits there for a while and I typically hit CTL-L to boot to Ubuntu.
now, when I boot to Ubuntu, screen blanks and I get an error about USB descriptors or enumerator.. seems to hang there for a few minutes then goes to the login screen for Ubuntu.

So... can I get past that OS verification screen and boot into Ubuntu quickly? and is there something strange going on with the USB warning (sorry... not in front of my box now, so I'll have post the detailed error when I get home).

Also, if I want to go back to the start and restore chrome os from the USB image, does that take me back to scratch (i.e. back to stock, HD back to original partitions, etc..)

finally, if I do the standalone Ubuntu load, are there any specific versions that work better than others? 14.04? and which specific image should I be putting on a USB stick

lot's of questions so thanks in advance for helping!


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - rahjer - 2014-10-31

Had to send my HP Chromebox off to HP for a new motherboard (warranty) cause it would not power on. Got it back yesterday and re-ran the script and all went well until I try option 3 and try to set the boot options. I choose option 1 and it confirms that it has created the 1 sec boot option. When I reboot the chromebox it is always stuck on the 30 sec boot option. I can do ctrl-D and ctrl-L just fine and it takes me into Chrome/XBMC with no problem and they function OK. I would just like to get it back to the 1 sec delay rather than the 30 sec delay. I have removed the firmware write protect screw as per the WIKI instructions.
Any ideas?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - rahjer - 2014-11-01

I was able to set the boot option by setting the flags manually from a ChromeOS shell prompt using the following command:
sudo set_gbb_flags.sh 0x489


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - Matt Devo - 2014-11-01

(2014-10-31, 20:33)pakman Wrote: Thanks for such a great script. I wish I had found this earlier, but unfortunately, I got partway through another blog and realized it didn't work for some reason, so went searching for this. I think I have a working system, but some things seem a little weird. let me see if I can describe what happened and perhaps someone here can help.

1. First blog had get into dev mode and issue the following "chromeos-firmwareupdate --mode=todev ", from there run a script to partition for Ubuntu (picked 9G for size) and it ran into problems... so switched over to your script.
2. started by restoring from a USB image (downloaded recovery image from google and imaged a USB stick with it)
3. dualboot script worked great from there (again with 9G for Ubuntu), took a while to get through but it looked good from there.
4. selected Ubuntu to boot in 1 sec delay

Now whenever I boot, the screen still has the warning that OS verification is off and to hit space to enable. it sits there for a while and I typically hit CTL-L to boot to Ubuntu.

that's normal, there is a 30s delay on the developer mode boot screen. You can change it to 1s using the 'Set Boot Options' feature of my script.

Quote:now, when I boot to Ubuntu, screen blanks and I get an error about USB descriptors or enumerator.. seems to hang there for a few minutes then goes to the login screen for Ubuntu.

again both are normal, and nothing to worry about. You can shorten the boot time by upgrading the kernel and/or disabling the TPM from the grub command line. I don't have the commands handy as I don't use a dual boot setup, but google should help.

Quote:Also, if I want to go back to the start and restore chrome os from the USB image, does that take me back to scratch (i.e. back to stock, HD back to original partitions, etc..)

using the ChromeOS recovery media will restore the original partitions/layout, but it will not reset the boot options if you make changes with my script (so if you do want to restore, set the boot options back to the default first). After restoring, hit space to exit developer mode.

Quote:finally, if I do the standalone Ubuntu load, are there any specific versions that work better than others? 14.04? and which specific image should I be putting on a USB stick

lot's of questions so thanks in advance for helping!

I'd just install 14.10 using the 64-bit desktop version, but after running the standalone setup, you can run pretty much any distro you like, as long as you use a relatively recent kernel (3.14+).


(2014-10-31, 22:03)rahjer Wrote: Had to send my HP Chromebox off to HP for a new motherboard (warranty) cause it would not power on. Got it back yesterday and re-ran the script and all went well until I try option 3 and try to set the boot options. I choose option 1 and it confirms that it has created the 1 sec boot option. When I reboot the chromebox it is always stuck on the 30 sec boot option. I can do ctrl-D and ctrl-L just fine and it takes me into Chrome/XBMC with no problem and they function OK. I would just like to get it back to the 1 sec delay rather than the 30 sec delay. I have removed the firmware write protect screw as per the WIKI instructions.
Any ideas?
(2014-11-01, 00:10)rahjer Wrote: I was able to set the boot option by setting the flags manually from a ChromeOS shell prompt using the following command:
sudo set_gbb_flags.sh 0x489

can you boot into ChromeOS and tell me what version you are running? I made some adjustments yesterday to the 'Set Boot Options' feature to accommodate newer versions of ChromeOS, but since you were able to run the command manually I'd assume it's an older version and something I changed in the script broke things there.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - pakman - 2014-11-01

So I tried to change the boot settings to 1s and default to Ubuntu. when I reboot, it still takes > 1s to do anything and then defaults to ChromeOS, I don't think it worked properly....

when I run the command, it shows me the usage of set_gbb_flags.sh then says:

Boot options successfully set.

Checking if Legacy BIOS needs updating/reparing
Legacy BIOS does not need update/repair
press [enter] to return to main menu.

I then reboot, and it still goes 30s and to chrome os by default.

am I missing something?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - pakman - 2014-11-01

[quote='Matt Devo' pid='1826509' dateline='1414799941']

Quote:again both are normal, and nothing to worry about. You can shorten the boot time by upgrading the kernel and/or disabling the TPM from the grub command line. I don't have the commands handy as I don't use a dual boot setup, but google should help.


The USB error thing I got was as follows:

usb 1-4: string descriptor 0 malformed (err = -61), defaulting to 0x0409


I did the standard Ubuntu-desktop install as per the script, so it looks like Ubuntu 14.10. which I think is on the latest kernel already isn't it?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - Matt Devo - 2014-11-01

(2014-11-01, 07:50)pakman Wrote: So I tried to change the boot settings to 1s and default to Ubuntu. when I reboot, it still takes > 1s to do anything and then defaults to ChromeOS, I don't think it worked properly....

when I run the command, it shows me the usage of set_gbb_flags.sh then says:

Boot options successfully set.

Checking if Legacy BIOS needs updating/reparing
Legacy BIOS does not need update/repair
press [enter] to return to main menu.

I then reboot, and it still goes 30s and to chrome os by default.

am I missing something?

no. please boot ChromeOS (guest login ok) and tell me what version you are running, as well as which ChromeBox.

(2014-11-01, 08:23)pakman Wrote: The USB error thing I got was as follows:

usb 1-4: string descriptor 0 malformed (err = -61), defaulting to 0x0409

I did the standard Ubuntu-desktop install as per the script, so it looks like Ubuntu 14.10. which I think is on the latest kernel already isn't it?

that error is normal / can be ignored.

the script will install Ubuntu 14.04 + 3.16.5 kernel. If it's still taking 30s to boot into Ubuntu after the legacy BIOS screen, then you need to edit your grub config to disable the TPM.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+XBMC) [v3.1 - 2014/10/30] - Krypto - 2014-11-02

Has anybody had any issues with connecting over Wi-Fi? I got an Asus Chromebox running standalone OpenELEC. I can see my network but when I try to connect over Wi-Fi I always get an abort error. It runs fine if its wired though. Can somebody help me out?