Skip to content

Commit

Permalink
Merge pull request #1 from TCU14/master
Browse files Browse the repository at this point in the history
Request: Instructions to update ChromeOS at the end of README.md
  • Loading branch information
imperador authored Aug 26, 2018
2 parents 4aecb48 + 254af49 commit 3a233d8
Showing 1 changed file with 55 additions and 5 deletions.
60 changes: 55 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,63 @@ Now press F10. If it boots coorectly, you are ready to go

# ADITIONAL:

## Updating the System
## Updating ChromeOS VIA Chromium Native: The Setup
Do not restart out of ChromeOS yet, first go to chrome.qwedl.com and choose the updated recovery image for the device you chose during installation. Download it

Working on this
Mount the zip file you downloaded, and copy the recovery.bin into your downloads. Rename it to chromeos.bin

# Credits:
[allanin](https://github.com/allanin) for all of his ideas on Arnoldthebat discussion, most part of the code here is from him.
Go to ArnoldTheBats and find the latest daily build, download it.install wicked good archiver and reboot. Boot back into ChromeOS and double click the 7z file you downloaded, and copy the Chromium image to your downloads. rename it to Chromium.img

Dnim Ecaep from the [Telegram Group](https://t.me/chromeosforpc)
Reboot again, now that you have downloaded everything you need, and hit e when the grub menu appears. This time, make sure root=/dev/^3, ^ being dependent on the partition system. In my case, it would be /dev/sda3

hit F10 to boot using the current grub configuration, and you will find yourself being greeted by ChromiumOS. Once it boots do not attempt to log in, it will fail. Those accounts are forever ChromeOS accounts unless you reinstalled Chromium. Instead, do Ctrl Alt F2 to open the terminal, and log in as chronos. Do "udo su" to ensure you have root access

Now type in the following commands:
```sh
losetup -fP /home/chronos/user/Downloads/chromeos.bin
losetup -fP /home/chronos/user/Downloads/Chromium.img
mount /dev/sda5 /home/chronos/local
mount /dev/sda3 /home/chronos/native
Now type losetup to get a list of Loop devices, find the one that cooresponds to your ChromeOS Image and than type:
mount /dev/loop{number}p3 /home/chronos/image -o loop,ro
```

Now look in losetup to find the loop device that cooresponds with your Chromium image. Type:
mount /dev/loop{number}p3 /home/chronos/chromium -o loop,ro

## Updating both ChromeOS and Chromium Native: The actual upgrade
Remember, the commands outlined here must be done in EXACTLY this order to guarantee everything goes smoothly. IF you don't do this and find neither the touchscreen, trackpad, or keyboard works, that's on you. Not me, or anyone else.

```sh
rm -rf /home/chronos/local
cp -av /home/chronos/image/* /home/chronos/local
rm -rf /home/chronos/local/lib/firmware
rm -rf /home/chronos/local/lib/modules/
cp -av /lib/firmware /home/chronos/local/lib/
cp -av /lib/modules/ /home/chronos/local/lib/modules/
rm -rf /home/chronos/local/etc/modprobe/alsa-.conf (Alsa-* being whatever the config name is, in my case it would be Alsa-skl.conf)
```
Change in /home/chronos/local/etc/selinux/config the word enforcing to permissive with the following command:
```sh
sudo sed '0,/enforcing/s/enforcing/permissive/' -i /home/chronos/local/etc/selinux/config
```
Now to update Chromium Native,
```sh
rm -rf /home/chronos/native
cp -av /home/chronos/chromium/* /home/chronos/native
rm -rf /home/chronos/native/lib/firmware
rm -rf /home/chronos/native/lib/modules/
cp -av /home/chronos/local/firmware /home/chronos/native/lib/
cp -av /home/chronos/local/lib/modules /home/chronos/native/lib/modules
```
Now that both ChromeOS and CHromium Native are updated, type in "sync", hit enter, and than once you regain the ability to type a command in the terminal reboot your system, and boot into your now upgraded ChromeOS machine. It is important that you use this method, as updating ChromeOS via the update function built in will not work properly, and will try to update the 3rd partition, which is Chromium native. ChromeOS cannot be booted at this point. It is best to follow the instructions outlined here when updating.
## Credits:
[allanin](https://github.com/allanin) for all of his ideas on Arnoldthebat discussion, most part of the code here is from him
[TCU14](github.com/TCU14) for the upgrade part
Dnim Ecaep from the [Telegram Group](https://t.me/chromeosforpc) for the shell command to change the SELINUX to permissive
Diogo from the [Telegram Group](https://t.me/chromeosforpc) for the corrections on the firmware migration
++ some more that I will add soon

0 comments on commit 3a233d8

Please sign in to comment.