Skip to content

Instantly share code, notes, and snippets.

@fcicq
Last active August 31, 2020 01:40
Show Gist options
  • Save fcicq/6d8371cd883b3925b073152ca4c9cf65 to your computer and use it in GitHub Desktop.
Save fcicq/6d8371cd883b3925b073152ca4c9cf65 to your computer and use it in GitHub Desktop.
enable GIC for kvm for Jetson Nano (tegra210), make sure you edit /boot/extlinux/extlinux.conf, add "FDT /boot/tegra210-p3448-XXXX-p3449-XXXX-XXX.dtb"
--- a/hardware/nvidia/soc/t210/kernel-dts/tegra210-soc/tegra210-soc-base.dtsi 2020-08-31 08:40:36.602176618 +0800
+++ b/hardware/nvidia/soc/t210/kernel-dts/tegra210-soc/tegra210-soc-base.dtsi 2020-08-31 08:41:45.223679918 +0800
@@ -351,7 +351,10 @@
#interrupt-cells = <3>;
interrupt-controller;
reg = <0x0 0x50041000 0x0 0x1000
- 0x0 0x50042000 0x0 0x0100>;
+ 0x0 0x50042000 0x0 0x2000
+ 0x0 0x50044000 0x0 0x2000
+ 0x0 0x50046000 0x0 0x2000>;
+ interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
status = "disabled";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment