Skip to content

Commit

Permalink
fix grub dtb path
Browse files Browse the repository at this point in the history
  • Loading branch information
jfliu committed Aug 28, 2023
1 parent 513dd1c commit 228b1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 10_linux
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ EOF
if test -e /sys/firmware/devicetree/base/name; then
sed "s/^/$submenu_indentation/" << EOF
smbios -t 11 -s 4 --set=devicetreename
if [ -f "${rel_dirname}/dtb/rockchip/\$devicetreename" ];then
if [ -f ${rel_dirname}/dtb/rockchip/\$devicetreename ];then
devicetree ${rel_dirname}/dtb/rockchip/\$devicetreename
fi
EOF
Expand Down
2 changes: 1 addition & 1 deletion grub-dtb.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index c41a4fba4..9d7fd0bdc 100755
cat >> "${LIVE_ENTRIES_TMP}" <<END
menuentry "${LABEL}"${HOTKEY} {
+ smbios -t 11 -s 4 --set=devicetreename
+ if [ -f "\$devicetreename" ];then
+ if [ -f $(dirname $KERNEL)/dtb/rockchip/\$devicetreename ];then
+ devicetree $(dirname $KERNEL)/dtb/rockchip/\$devicetreename
+ fi
linux $KERNEL $APPEND
Expand Down

0 comments on commit 228b1fe

Please sign in to comment.