-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58d6442
commit 056d8ff
Showing
9 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
builder: dnf | ||
|
||
scripts: | ||
post: | ||
- id: cleanup | ||
name: Clean up system | ||
file: ../base/cleanup.sh | ||
- id: selinux-setup | ||
name: Set up SELinux | ||
file: ../base/selinux.sh | ||
chroot: false | ||
- id: buildstamp | ||
name: Generate buildstamp | ||
file: ../base/buildstamp.sh | ||
- id: submarine | ||
name: Set up ChromeOS bootloader | ||
file: submarine.sh | ||
|
||
dnf: | ||
releasever: 40 | ||
packages: | ||
- cros-keyboard-map | ||
- depthcharge-tools | ||
- vboot-utils | ||
- submarine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
builder: dnf | ||
|
||
import: | ||
- ../chromebook.yaml | ||
|
||
dnf: | ||
releasever: 40 | ||
packages: | ||
- kernel-mt8183 | ||
- kernel-mt8183-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Jacuzzi and Kukui Families (mt8183) | ||
|
||
This is our most complete port. Our reference device is the Lenovo Chromebook Duet (Krane). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
builder: dnf | ||
|
||
import: | ||
- ../chromebook.yaml | ||
|
||
dnf: | ||
releasever: 40 | ||
packages: | ||
- kernel-mt8192 | ||
- kernel-mt8192-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Asurada Family (mt8192) | ||
|
||
Our reference device is the Asus Chromebook Flip CM3 (Hayato). | ||
|
||
## Known Issues | ||
|
||
- [Submarine doesn't initialize the display](https://github.com/FyraLabs/submarine/issues/10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Strongbad and Trogdor Families (QC-7C/sc7180) | ||
|
||
Our reference device is the Lenovo IdeaPad Duet 3 (wormdingler) | ||
|
||
## Known Issues | ||
|
||
- WiFi may be flaky. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
builder: dnf | ||
|
||
import: | ||
- ../chromebook.yaml | ||
|
||
dnf: | ||
releasever: 40 | ||
packages: | ||
- kernel-sc7180 | ||
- kernel-sc7180-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
builder: dnf | ||
|
||
import: | ||
- ../chromebook.yaml | ||
|
||
dnf: | ||
releasever: 40 | ||
packages: | ||
- kernel-stoneyridge | ||
- kernel-stoneyridge-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
# Find bootloader partition and umount | ||
blpart="$(findmnt -n -o SOURCE /mnt)" | ||
rootdev="$(basename `readlink -f "/sys/class/block/$(basename $blpart)/.."`)" | ||
partnum="$(echo $(basename $blpart) | sed 's/'"$rootdev"'//;s/p//')" | ||
umount $blpart | ||
|
||
# Remove /mnt from fstab | ||
sed -i '/mnt/d' /etc/fstab | ||
|
||
# Flash bootloader | ||
submarine="/usr/share/submarine/submarine" | ||
if [ $(uname -m ) == 'x86_64' ]; then | ||
submarine="$submarine-x86.kpart" | ||
elif [ $(uname -m ) == 'aarch64' ]; then | ||
submarine="$submarine-a64.kpart" | ||
fi | ||
|
||
dd if=$submarine of=$blpart | ||
cgpt add -i $partnum -t kernel -P 15 -T 1 -S 1 /dev/$rootdev | ||
|
||
# Workaround for katsu trying to unmount /mnt | ||
mount -o bind /mnt /mnt |