This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a compressed kernel to save some space, switch to u-boot boot script
- Loading branch information
1 parent
03aa3f3
commit 39130bc
Showing
2 changed files
with
41 additions
and
13 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 @@ | ||
setenv bootargs console=tty1 archisobasedir=arch archisolabel=<LABEL> video=eDP-1:1920x1080@60 | ||
|
||
setenv bootpath /arch/boot/aarch64 | ||
setenv kernelfile ${bootpath}/Image.xz | ||
setenv fdtfile ${bootpath}/rk3399-pinebook-pro.dtb | ||
setenv initrdfile ${bootpath}/archiso.img | ||
|
||
if test "${fdt_addr_r}" -ne ""; then | ||
load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} ${fdtfile} | ||
fdt addr ${fdt_addr_r} | ||
fdt resize | ||
else | ||
# if we're running in qemu, fdt_addr_r won't be defined | ||
setenv fdt_addr_r 0x40000000 | ||
fi | ||
|
||
setenv kernel_comp_addr_r 0x46000000 | ||
size ${devtype} ${devnum}:${bootpart} ${kernelfile} | ||
setenv kernel_comp_size $filesize | ||
setenv ramdisk_comp_addr_r 0x47000000 | ||
|
||
load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${kernelfile} | ||
load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} ${initrdfile} | ||
|
||
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} |
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