lupyuen commented on issue #15916: URL: https://github.com/apache/nuttx/issues/15916#issuecomment-2691762725
On PinePhone (Arm A53) it's actually the Binary NuttX Image (`nuttx.bin`) that has a Linux Header in front, without any ELF Sections. Will this work on BeagleY-AI? https://lupyuen.github.io/articles/uboot#nuttx-header ```text /* Kernel startup entry point. * --------------------------- * * This must be the very first address in the loaded image. * It should be loaded at any 4K-aligned address. * __start will be set to 0x4008 0000 in the Linker Script */ .globl __start; __start: /* DO NOT MODIFY. Image header expected by Linux boot-loaders. * * This add instruction has no meaningful effect except that * its opcode forms the magic "MZ" signature of a PE/COFF file * that is required for UEFI applications. */ add x13, x18, #0x16 /* the magic "MZ" signature */ b real_start /* branch to kernel start */ /* PinePhone Image load offset from start of RAM */ .quad 0x0000 /* Effective size of kernel image, little-endian */ .quad _e_initstack - __start /* Informative flags, little-endian */ .quad __HEAD_FLAGS .quad 0 /* reserved */ .quad 0 /* reserved */ .quad 0 /* reserved */ .ascii "ARM\x64" /* Magic number, "ARM\x64" */ .long 0 /* reserved */ /* NuttX OS Code begins here, after the header */ real_start: ... ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org