1set default="0"
2set timeout=1
3menuentry 'AOSP' {
4    search.fs_label boot root
5    set root=($root)
6    linux /Image console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime androidboot.selinux=permissive
7    initrd /ramdisk.img
8    devicetree /hi6220-hikey.dtb
9}
10menuentry 'AOSP-DEBUG' {
11    search.fs_label boot root
12    set root=($root)
13    linux /Image earlycon=pl011,0xf7113000 no_console_suspend=1 console=ttyFIQ0 androidboot.console=ttyFIQ0 sysrq_always_enabled androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime androidboot.selinux=permissive
14    initrd /ramdisk.img
15    devicetree /hi6220-hikey.dtb
16}
17menuentry 'AOSP-CONSOLE' {
18    search.fs_label boot root
19    set root=($root)
20    linux /Image console=ttyAMA3,115200 androidboot.console=ttyAMA3 fiq_debugger.disable=Y androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime androidboot.selinux=permissive
21    initrd /ramdisk.img
22    devicetree /hi6220-hikey.dtb
23}
24menuentry 'AOSP@720P' {
25    search.fs_label boot root
26    set root=($root)
27    linux /Image console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime video=HDMI-A-1:1280x720@60 androidboot.selinux=permissive
28    initrd /ramdisk.img
29    devicetree /hi6220-hikey.dtb
30}
31menuentry 'AOSP@SVGA' {
32    search.fs_label boot root
33    set root=($root)
34    linux /Image console=ttyFIQ0 androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime video=HDMI-A-1:800x600@60 androidboot.selinux=permissive
35    initrd /ramdisk.img
36    devicetree /hi6220-hikey.dtb
37}
38menuentry 'Fastboot' {
39    search.fs_label boot root
40    chainloader ($root)/EFI/BOOT/fastboot.efi
41}
42