-
-
Save lsfxz/7c70c6e2febf7261e4a089c7a928f441 to your computer and use it in GitHub Desktop.
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
# After modifying, run ./mkscr | |
# MAC address (use spaces instead of colons) | |
setenv macaddr da 19 c8 7a 6d f4 | |
part uuid ${devtype} ${devnum}:${bootpart} uuid | |
setenv bootargs console=tty1 root=/dev/cvg/root cryptdevice=UUID=adcf76e9-23f8-451d-87ce-ba524adf1505:croot:allow-discards resume=/dev/cvg/swap rw rootwait append video=eDP-1:1920x1080@60 | |
setenv fdtfile rockchip/rk3399-pinebook-pro.dtb | |
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} Image; then | |
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} dtbs/${fdtfile}; then | |
fdt addr ${fdt_addr_r} | |
fdt resize | |
fdt set /ethernet@fe300000 local-mac-address "[${macaddr}]" | |
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} initramfs-linux.img; then | |
# This upstream Uboot doesn't support compresses cpio initrd, use kernel option to | |
# load initramfs | |
# edit: or don't, otherwise the initramfs won't be loaded at all | |
# setenv bootargs ${bootargs} initrd=${ramdisk_addr_r},20M ramdisk_size=10M | |
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}; | |
else | |
booti ${kernel_addr_r} - ${fdt_addr_r}; | |
fi; | |
fi; | |
fi |
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
MODULES=(panfrost rockchipdrm drm_kms_helper hantro_vpu analogix_dp rockchip_rga panel_simple arc_uart cw2015_battery i2c-hid icp iscsi_boot_sysfs jsm pwm_bl spl uhid) | |
BINARIES=() | |
FILES=() | |
HOOKS=(base udev keyboard autodetect keymap modconf block encrypt lvm2 filesystems fsck) | |
COMPRESSION="cat" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment