I am trying to build a grub2 image which will be loaded through pxe on TX2 on top of the u-boot running on it.
Since grub2’s current open source code supports u-boot only on ARM (not ARM64), I was wondering if anyone has tried to load an ARM(32-bit) grub2 image on TX2 with/without U-boot. Preferably, I would like to load it on top on U-boot as a second chain of bootloader.
Currently, my setup is such that my boot script expects a grub2 command prompt in order to proceed further and hence I am interested in running grub2 image on TX2.
If I try to load generated grub2 image on U-boot of TX2, I get below error:
Tegra186 (P2771-0000-500) # tftpboot $loadaddr $serverip:grub/arm-uboot/core.img
ethernet@2490000 Waiting for PHY auto negotiation to complete… done
Using ethernet@2490000 device
TFTP from server 10.134.30.138; our IP address is 10.134.30.6
Load address: 0x80080000
Bytes transferred = 74676 (123b4 hex)
Tegra186 (P2771-0000-500) # bootm $loadaddr
Booting kernel from Legacy Image at 80080000 …
Image Type: ARM Linux Kernel Image (no loading done) (uncompressed)
Data Size: 74612 Bytes = 72.9 KiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
Unsupported Architecture 0x2
ERROR: can’t get kernel image!
which is expected, I guess because U-boot might be expecting an ARM64 image.
Please let me know if grub2 ARM image can be loaded on TX2 U-boot or if there’s an alternative source code or any other input. Greatly appreciate it.