aarch64-laptops / build

Build an Linux OS based image
235 stars 55 forks source link

Add Asus & Lenovo modaliases. #42

Closed xnox closed 4 years ago

lag-linaro commented 4 years ago

Could you please provide a suitable commit message?

Please explain what they are used for and what would happen if they weren't applied.

xnox commented 4 years ago

Hm. not sure.

misc/ directory is used for just dumps of information about devices i thought. I.e. documenting how various models of laptops look like.

I don't think it's used at all at the moment. However, I'm trying to use them with grub like so:

insmod smbios
smbios --type 1 --get-string 4 --linux --set dmi_svn        # DMI_SYS_VENDOR
smbios --type 1 --get-string 5 --linux --set dmi_pn         # DMI_PRODUCT_NAME
dmi_product=svn${dmi_svn}:pn${dmi_pn}
dtb=
if [ ${dmi_product} = "svnASUSTeKCOMPUTERINC.:pnNovaGoTP370QL"]; then
    dtb="msm8998-asus-novago-tp370ql.dtb"
fi
if [ ${dmi_product} = "svnLENOVO:pn81JL"]; then
    dtb="sdm850-lenovo-yoga-c630.dtb"
fi

menuentry "Ubuntu {
linux ....
initrd ...
devicetree /boot/$dtb
}

Such that installer / firstboot can load something bootable, without having user manually pick/choose/provision dtb symlink.