doas bash chromeos-install.sh -l -src chromeos.bin -dst ~/tmpmount/chromeos.img -s 18
doas (kai@kat) password:
Creating image file
Creating partition table...
0BF210F5-3004-3C41-8B32-087CE69182CC
start size part contents
0 1 PMBR (Boot GUID: 0BF210F5-3004-3C41-8B32-087CE69182CC)
1 1 Pri GPT header
2 32 Pri GPT table
19255304 18493384 1 Label: "STATE"
Type: Linux data
UUID: BAA4C007-CA96-0848-9436-256EADE4E345
2117638 65536 2 Label: "KERN-A"
Type: ChromeOS kernel
UUID: 0F3D825E-8F59-974B-81C7-FEB8900207F8
Attr: priority=15 tries=15 successful=0
10866696 8388608 3 Label: "ROOT-A"
Type: ChromeOS rootfs
UUID: 3DB61FB4-FA6C-344D-925D-BB39AD9C2780
2183174 65536 4 Label: "KERN-B"
Type: ChromeOS kernel
UUID: DD5E8D23-7890-7249-B649-FECA7CD839BB
Attr: priority=0 tries=15 successful=0
2478088 8388608 5 Label: "ROOT-B"
Type: ChromeOS rootfs
UUID: 84E88CA3-8992-E345-A4DC-A3AAEEFB184F
16448 1 6 Label: "KERN-C"
Type: ChromeOS kernel
UUID: 1D331219-F0D1-0746-81AC-C560A783F82D
Attr: priority=0 tries=15 successful=0
16456 2097152 7 Label: "ROOT-C"
Type: ChromeOS rootfs
UUID: 1A7F2A0A-2AFD-EA48-9330-B9C7583C193F
2248712 32768 8 Label: "OEM"
Type: Linux data
UUID: A4C6DD50-6A37-0245-91B3-FDF208C35417
2113608 1 9 Label: "reserved"
Type: ChromeOS reserved
UUID: 80B4DA48-B4B3-8C4E-A2A0-8D9AB56D3F35
2113609 1 10 Label: "reserved"
Type: ChromeOS reserved
UUID: 7584C2AE-BA9B-2A4C-BCF2-2584FB4DF6FA
64 16384 11 Label: "RWFW"
Type: ChromeOS firmware
UUID: 24ABE2ED-857D-494F-B557-CB9C61F35D8F
2412552 65536 12 Label: "EFI-SYSTEM"
Type: EFI System Partition
UUID: 0BF210F5-3004-3C41-8B32-087CE69182CC
37748703 32 Sec GPT table
37748735 1 Sec GPT header
8.72MiB 0:00:00 [32.4MiB/s] [===============================================================================================================================================>] 100%
16.0MiB 0:00:00 [67.9MiB/s] [===============================================================================================================================================>] 100%
2.34GiB 0:00:19 [ 120MiB/s] [===============================================================================================================================================>] 100%
16.0MiB 0:00:00 [92.1MiB/s] [===============================================================================================================================================>] 100%
2.34GiB 0:00:26 [92.0MiB/s] [===============================================================================================================================================>] 100%
512 B 0:00:00 [19.1KiB/s] [================================================================================================================================================>] 100%
ls: cannot access './rootc.img': No such file or directory
chromeos-install.sh: line 336: * 512 : syntax error: operand expected (error token is "* 512 ")
16.0MiB 0:00:00 [92.2MiB/s] [===============================================================================================================================================>] 100%
512 B 0:00:00 [19.0KiB/s] [================================================================================================================================================>] 100%
512 B 0:00:00 [30.5KiB/s] [================================================================================================================================================>] 100%
8.00MiB 0:00:00 [24.0MiB/s] [===============================================================================================================================================>] 100%
32.0MiB 0:00:00 [ 100MiB/s] [===============================================================================================================================================>] 100%
The grub config needed to boot ChromeOS has been generated in the file "/home/kai/tmpmount//chromeos.img.grub.txt".
If you have a linux distro installed which uses grub as bootloader, run the below command to generate the grub config automatically:
sudo cat /etc/grub.d/40_custom /home/kai/tmpmount//chromeos.img.grub.txt | sudo tee /etc/grub.d/99_brunch; sudo chmod 0755 /etc/grub.d/99_brunch; sudo grub-mkconfig -o /boot/grub/grub.cfg
Otherwise, add this grub config (lines between stars) manually to another grub bootloader:
******************************************************************************************
menuentry "ChromeOS" --class "brunch" {
img_path=/chromeos.img
img_uuid=97311f7e-0c05-5e49-932d-fa7286e82f3c
search --no-floppy --set=root --file $img_path
loopback loop $img_path
source (loop,12)/efi/boot/settings.cfg
if [ -z $verbose ] -o [ $verbose -eq 0 ]; then
linux (loop,7)$kernel boot=local noresume noswap loglevel=7 options=$options chromeos_bootsplash=$chromeos_bootsplash $cmdline_params \
cros_secure cros_debug img_uuid=$img_uuid img_path=$img_path \
console= vt.global_cursor_default=0 brunch_bootsplash=$brunch_bootsplash quiet
else
linux (loop,7)$kernel boot=local noresume noswap loglevel=7 options=$options chromeos_bootsplash=$chromeos_bootsplash $cmdline_params \
cros_secure cros_debug img_uuid=$img_uuid img_path=$img_path
fi
initrd (loop,7)/lib/firmware/amd-ucode.img (loop,7)/lib/firmware/intel-ucode.img (loop,7)/initramfs.img
}
menuentry "ChromeOS (settings)" --class "brunch-settings" {
img_path=/chromeos.img
img_uuid=97311f7e-0c05-5e49-932d-fa7286e82f3c
search --no-floppy --set=root --file $img_path
loopback loop $img_path
source (loop,12)/efi/boot/settings.cfg
linux (loop,7)/kernel boot=local noresume noswap loglevel=7 options= chromeos_bootsplash= edit_brunch_config=1 \
cros_secure cros_debug img_uuid=$img_uuid img_path=$img_path
initrd (loop,7)/lib/firmware/amd-ucode.img (loop,7)/lib/firmware/intel-ucode.img (loop,7)/initramfs.img
}
******************************************************************************************
Once the above actions are completed, you can reboot your computer and start ChromeOS
kai at kat in ~/Downloads/bruch
xbps-install sxhkd ------------ mkdir .config/sxhkd cd .config/sxhkd nano/vim sxhkdrc -------------------------------- XF86AudioRaiseVolume amixer -c 1 -- sset Master 2db+ XF86AudioLowerVolume amixer -c 1 -- sset Master 2db- XF86AudioMute amixer -c 1 -- sset Master toggle alt + shift + Escape pkill -USR1 -x sxhkd XF86MonBrightnessUp xbacklight -inc 20 XF86MonBrightnessDown xbacklight -dec 20 ------------------------------------------------------------- amixer -c card_no -- sset Interface volume run alsamixer to find card no and interface names xbps-install -S git git clone https://git.suckless.org/dwm xbps-install -S base-devel libX11-devel libXft-devel libXinerama-devel vim config.mk # FREETYPEINC = ${X11INC}/freetype2 #comment for non-bsd make clean install cp config.def.h config.h vim config.h xbps-install -S font-symbola #for emoji on statusbar support void audio config xbps-i
Comments
Post a Comment