Skip to content

Commit 12543c9

Browse files
committed
Merge branch 'r114-dev' of ssh://gitlab.fydeos.xyz/openFyde/overlays/chromium_os-raspberry_pi into r114-dev
2 parents f658014 + cd6dc08 commit 12543c9

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ Git and curl as the essential tools that need to be installed in the host OS, yo
178178
(outside)
179179
sudo apt-get install git-core gitk git-gui curl lvm2 thin-provisioning-tools \
180180
python-pkg-resources python-virtualenv python-oauth2client xz-utils \
181-
python3.6
181+
python3.9
182182

183-
# If Python 3.5 is the default, switch it to Python 3.6.
183+
# If Python 3.5 is the default, switch it to Python 3.9.
184184
python3 --version
185185
# If above version says 3.5, you'll need to run:
186186
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
187-
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
187+
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
188188
sudo update-alternatives --config python3
189189
```
190190

@@ -246,7 +246,7 @@ If you are building a different release, make sure you use the actual directory
246246

247247
First, you need to find out the reference name of the release you would like to build, by visiting this page [https://chromium.googlesource.com/chromiumos/manifest.git](https://chromium.googlesource.com/chromiumos/manifest.git):
248248

249-
You will see a list of Git commit IDs and its name in the form of `refs/heads/release-Rxx-xxxx.B`. That `release-Rxx-XXXX.B` link is what you need for fetching the code of that specific Chromium OS release. For example, [release-R102-14695.B](https://chromium.googlesource.com/chromiumos/manifest.git/+/refs/heads/release-R102-14695.B) for release r102.
249+
You will see a list of Git commit IDs and its name in the form of `refs/heads/release-Rxx-xxxx.B`. That `release-Rxx-XXXX.B` link is what you need for fetching the code of that specific Chromium OS release. For example, [release-R102-14695.B](https://chromium.googlesource.com/chromiumos/manifest.git/+/refs/heads/release-R114-15437.B) for release r114.
250250

251251
Now run these commands to fetch the source code. Find and use a different release name if you would like to build a different release.
252252

@@ -255,7 +255,7 @@ Now run these commands to fetch the source code. Find and use a different releas
255255
#Assuming you understand what /path/to means. If not, replace it with '~'
256256
$ cd /path/to/cros-pi
257257

258-
$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git -b release-R102-14695.B
258+
$ repo init -u https://chromium.googlesource.com/chromiumos/manifest.git --repo-url https://chromium.googlesource.com/external/repo.git -b release-R114-15437.B
259259

260260
# Raise this number if you have a fast internet connection
261261
$ repo sync -j8
@@ -267,6 +267,8 @@ Fetching Chromium OS source code may take 20 to more than 40 minutes depending o
267267

268268
### Request for Google API key
269269

270+
If you don't need to compile your modified version of Chromium, you can skip this step.
271+
270272
If you would like to login into the Chromium OS GUI by using your Google account, you will need to request for Google API key and include them in the disk image you build. Since the only authentication mechanism included in Chromium OS is Google ID, you probably will need this or you will only be able to log in as a guest user.
271273

272274
Apply for Google API on the Google website per [this document](http://www.chromium.org/developers/how-tos/api-keys). After acquiring the client ID, client secret and API key, put them in ```~/.googleapikeys``` file as in the below format.
@@ -308,6 +310,8 @@ By now, your `cros-pi/src/overlays` directory should have included symbolic link
308310

309311
# Setup local chromium source
310312

313+
If you don't need to compile your modified version of Chromium, you can skip this step.
314+
311315
It's recommended to build Chromium browser on your local setup so that your Chromium OS for Raspberry Pi could benefit from the additional functionalities like kiosk mode, you will also have the option to incorporate your modifications. If you wish to do so, you need to prepare the necessary files before entering the cros_sdk.
312316

313317
As far as this project is concerned, the chromium source that we use to build our releases can be found in the [chromium-raspberry_pi](https://github.com/FydeOS/chromium-raspberry_pi) project. You may also choose to use Google's vanilla chromium repository which can be found [here](https://chromium.googlesource.com/chromium/src.git/).
@@ -330,9 +334,6 @@ Now clone the desired chromium project:
330334

331335
```bash
332336
(outside)
333-
# use our chromium repo
334-
$ git clone git@github.com:FydeOS/chromium-raspberry_pi.git .
335-
336337
# use google's vanilla chromium
337338
$ git clone https://chromium.googlesource.com/chromium/src.git .
338339
```
@@ -343,11 +344,8 @@ Then choose the correct branch/tag
343344

344345
```bash
345346
(outside)
346-
#with our chromium repo
347-
$ git checkout chromium-m102
348-
349347
#with Google's repo and you wish to build for r102
350-
$ git checkout 102.0.5005.90
348+
$ git checkout 114.0.5735.337
351349
```
352350

353351
Now you need to create a config file known to gclient for syncing the chromium dependencies:
@@ -426,7 +424,7 @@ It may take 10 to over 30 minutes depending on your internet connection speed an
426424

427425
```
428426
(inside)
429-
(release-R102-14695.B/(xxxxxx...)) <user>@<host> ~/trunk/src/scripts $
427+
(release-R114-15437.B/(xxxxxx...)) <user>@<host> ~/trunk/src/scripts $
430428
```
431429

432430
The chroot environment is located under the `/path/to/cros-pi/chroot` directory.
@@ -546,8 +544,14 @@ Now it is time to build all software packages for the rpi4 board.
546544

547545
```bash
548546
(inside)
549-
$ ./build_packages --board=rpi4 --nowithautotest
550-
# Append "--nowithautotest" to speed up the build process by skipping some tests
547+
build_packages --board=rpi4 --no-withautotest
548+
# Append "--no-withautotest" to speed up the build process by skipping some tests
549+
```
550+
If you wish to build your chromium, please append the `--no-use-any-chrome` argument to the build_packages command.
551+
552+
```
553+
(inside)
554+
build_packages --board=rpi4 --no-withautotest --no-use-any-chrome
551555
```
552556

553557
It may take hours depending on your processor power, your memory size, your disk speed and the quality of your internet connection. Here are some examples for you to adjust your expectation:
@@ -588,7 +592,7 @@ After the build_packages command is finished successfully, you can start buildin
588592

589593
```bash
590594
(inside)
591-
$ ./build_image --board=rpi4 --noenable_rootfs_verification
595+
$ build_image --board=rpi4 --noenable_rootfs_verification
592596
# Append --noenable_rootfs_verification flag to enable root file system read/write on the built image
593597
```
594598

0 commit comments

Comments
 (0)