Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Fix updatekernel script
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkyDeveloper committed Mar 13, 2022
1 parent 23ef007 commit aa5cf28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions bin/updatekernel-on-emmc
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@ function extractModules {

sudo apt install vboot-kernel-utils cgpt -y

export USB=$(mount | sed -n 's|^\(.*\) on / .*|\1|p')
export USB_ROOTFS=$(mount | sed -n 's|^\(.*\) on / .*|\1|p')
export USB=$(lsblk -no pkname $USB_ROOTFS)
printq "Using $USB to update the kernel and its modules"

if [[ $USB == *"/dev/sd"* ]]; then
export USB_KERNEL="${USB}1"
else
export USB_KERNEL="${USB}p1"
fi

cd ~/linux-build || { mkdir ~/linux-build; cd ~/linux-build; }

# Download kernel commandline
Expand All @@ -71,7 +78,7 @@ futility vbutil_kernel \
--pack bzImage.signed

# Flash kernel
sudo dd if=bzImage.signed of=${USB1}
sudo dd if=bzImage.signed of=$USB_KERNEL

# Extract modules
sudo rm -rf ~/linux-build/modules/lib/modules/*
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ Reboot, and with the USB plugged in, press <kbd>CTRL</kbd> <kbd>U</kbd> instead

### Audio

If your device is one of the devices on the above list, you can enable audio.

Once booted into Breath run the command depending on your device's board:

**Connect to Wifi on your Chromebook!**

- `NAMI`: `setup-audio`
- `BLOOG` or `BLOOGLET`: `setup-audio` and then `sof-setup-audio`
- All Apollo Lake Devices (`CORAL` and `REEF`): `apl-sof-setup-audio`
Expand Down

0 comments on commit aa5cf28

Please sign in to comment.