Skip to content

Instantly share code, notes, and snippets.

@lsfxz

lsfxz/boot.txt Secret

Last active February 1, 2020 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsfxz/7c70c6e2febf7261e4a089c7a928f441 to your computer and use it in GitHub Desktop.
Save lsfxz/7c70c6e2febf7261e4a089c7a928f441 to your computer and use it in GitHub Desktop.
# 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
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