Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe fix chromebooks? #31

Draft
wants to merge 15 commits into
base: um40
Choose a base branch
from
68 changes: 68 additions & 0 deletions katsu/modules/base/base-disk-nokernel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
scripts:
post:
- id: initial-setup
name: Enable Initial Setup
file: initial-setup.sh
- id: disk-setup
name: Extra configuration for disk images
file: disk-setup.sh
dnf:
releasever: 40
options:
- --setopt=cachedir=/var/cache/dnf
- --setopt=keepcache=True
- --setopt=tsflags=
- --setopt=max_parallel_downloads=20
exclude:
- fedora-release*
- generic-release*
- kernel
- kernel-core
- kernel-devel
packages:
- initial-setup-gui
- filesystem
- setup
- lvm2
- btrfs-progs
- dmraid
- nvme-cli
- glibc
- glibc-common
- dracut-config-generic
- dracut-tools
- dnf
- dracut
# - mkpasswd # maybe not needed soon
- "@core"
- "@standard"
- grub2-tools
- "@hardware-support"
- NetworkManager
- rpm
- libgomp
- fedora-repos
- efibootmgr
- ultramarine-raw-filesystem
- plymouth
- plymouth-system-theme
- plymouth-theme-spinner

arch_packages:
aarch64:
- grub2-efi-aa64
- grub2-efi-aa64-modules
- grub2-efi-aa64-cdboot
- shim-aa64
- shim-unsigned-aarch64
- bcm283x-firmware
- bcm283x-overlays
- "@arm-tools"
x86_64:
- grub2-efi-x64
- grub2-efi-x64-modules
- grub2-efi-x64-cdboot
- grub2-pc
- grub2-pc-modules
- shim-x64
- shim-unsigned-x64
12 changes: 12 additions & 0 deletions katsu/modules/base/repodir/kaibutsu.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[kaibutsu]
name=Kaibutsu Device Kernels
baseurl=https://repos.fyralabs.com/kaibutsu
metadata_expire=6h
type=rpm
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://repos.fyralabs.com/kaibutsu/key.asc
repo_gpgcheck=1
enabled=1
enabled_metadata=1
priority=1
15 changes: 7 additions & 8 deletions katsu/modules/base/repodir/ultramarine.repo
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ repo_gpgcheck=1
enabled=1
enabled_metadata=1

[kaibutsu]
name=Kaibutsu Device Kernels
baseurl=https://repos.fyralabs.com/kaibutsu
[ultramarine-source]
name=Ultramarine Linux $releasever - Source
#baseurl=https://repos.fyralabs.com/um$releasever-source
metalink=https://tetsudou.fyralabs.com/metalink?repo=um$releasever-source&arch=$basearch
metadata_expire=6h
type=rpm
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://repos.fyralabs.com/kaibutsu/key.asc
gpgkey=https://repos.fyralabs.com/um$releasever-source/key.asc
repo_gpgcheck=1
enabled=1
enabled_metadata=1
priority=1
enabled=0
enabled_metadata=0
2 changes: 1 addition & 1 deletion katsu/modules/kde/base-disk-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ scripts:
file: ../base/grub-setup.sh

disk:
size: 15GB
size: 16GB
partitions:
- label: EFI
type: esp
Expand Down
34 changes: 34 additions & 0 deletions katsu/modules/ports/chromebook/aarch64/aarch64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
builder: dnf

import:
- ../chromebook.yaml

dnf:
releasever: 40
arch: aarch64
packages:
- kernel
- kernel-devel

disk:
size: 16GB
partitions:
- label: Submarine
type: fe3a2a5d-4f32-41a7-b725-accc3285a309
size: 64MB
filesystem: fat
mountpoint: /submarine

- label: boot
type: xbootldr
size: 1.1GB
filesystem: ext4
mountpoint: /boot

- label: root
flags:
- grow-fs
type: root
# size: 2.5MB
filesystem: btrfs
mountpoint: /
19 changes: 19 additions & 0 deletions katsu/modules/ports/chromebook/aarch64/kde.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
builder: dnf

import:
- aarch64.yaml
- ../../../kde/kde.yaml
- ../../../kde/kde-disk.yaml
- ../../../base/base.yaml
- ../../../base/base-disk-nokernel.yaml

distro: Ultramarine Linux 40 KDE (aarch64 Chromebook)

out_file: ultramarine-cbe-aarch64-kde-40.img

bootloader: grub

kernel_cmdline: "quiet rhgb"

dnf:
releasever: 40
7 changes: 7 additions & 0 deletions katsu/modules/ports/chromebook/aarch64/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# aarch64 Chromebooks

For aarch64 chromebooks that work with the upstream kernel. Our reference device is the Samsung Chromebook Plus (kevin).

## Known Issues

N/A
6 changes: 4 additions & 2 deletions katsu/modules/ports/chromebook/chromebook.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
builder: dnf

scripts:
post:
- id: cleanup
Expand All @@ -15,11 +14,14 @@ scripts:
- id: submarine
name: Set up ChromeOS bootloader
file: submarine.sh

- id: grub
name: Set up GRUB
file: ../../base/grub-setup.sh
dnf:
releasever: 40
packages:
- cros-keyboard-map
- depthcharge-tools
- vboot-utils
- submarine
- alsa-ucm-cros
17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8183/flagship.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8183/gnome.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion katsu/modules/ports/chromebook/mt8183/kde.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ builder: dnf
import:
- mt8183.yaml
- ../../../kde/kde.yaml
- ../../../kde/base-disk-aarch64.yaml
- ../../../kde/kde-disk.yaml
- ../../../base/base.yaml
- ../../../base/base-disk-nokernel.yaml

distro: Ultramarine Linux 40 KDE (mt8183 Chromebook)

Expand Down
24 changes: 24 additions & 0 deletions katsu/modules/ports/chromebook/mt8183/mt8183.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ import:

dnf:
releasever: 40
arch: aarch64
packages:
- kernel-mt8183
- kernel-mt8183-devel

disk:
size: 16GB
partitions:
- label: Submarine
type: fe3a2a5d-4f32-41a7-b725-accc3285a309
size: 64MB
filesystem: fat
mountpoint: /submarine

- label: boot
type: xbootldr
size: 1.1GB
filesystem: ext4
mountpoint: /boot

- label: root
flags:
- grow-fs
type: root
# size: 2.5MB
filesystem: btrfs
mountpoint: /
17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8183/xfce.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8192/flagship.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8192/gnome.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions katsu/modules/ports/chromebook/mt8192/kde.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
builder: dnf

import:
- mt8192.yaml
- ../../../kde/kde.yaml
- ../../../kde/base-disk-aarch64.yaml
- ../../../kde/kde-disk.yaml
- ../../../base/base.yaml
- ../../../base/base-disk-nokernel.yaml

distro: Ultramarine Linux 40 KDE (mt8192 Chromebook)

Expand Down
24 changes: 24 additions & 0 deletions katsu/modules/ports/chromebook/mt8192/mt8192.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ import:

dnf:
releasever: 40
arch: aarch64
packages:
- kernel-mt8192
- kernel-mt8192-devel

disk:
size: 16GB
partitions:
- label: Submarine
type: fe3a2a5d-4f32-41a7-b725-accc3285a309
size: 64MB
filesystem: fat
mountpoint: /submarine

- label: boot
type: xbootldr
size: 1.1GB
filesystem: ext4
mountpoint: /boot

- label: root
flags:
- grow-fs
type: root
# size: 2.5MB
filesystem: btrfs
mountpoint: /
17 changes: 0 additions & 17 deletions katsu/modules/ports/chromebook/mt8192/xfce.yaml

This file was deleted.

Loading
Loading