Skip to content

How to run nuttx(kernel build) on real hardware instead of qemu semihosting? #9501

@GooTal

Description

@GooTal

Hi, i`ve already ported Nuttx(kernel build) to LoongArch referring to qemu-rv:virt.

I notice that qemu-rv:virt used semihosting to load nsh_main`s code into memory from host file system.

But on real hardware, it`s necessary to load nsh_main`s code from disk. I`m trying to figure out how to load the related code.

I`ve successfully run nuttx(flat build) on real hardware. Here`s how i run it: I put the elf file under the /boot/ directory of Linux. And loaded the elf by grub or pmon, then boot the kernel.

I hope to put the nuttx(kernel build) and apps/bin/sh under the /boot/ directory of Linux. And use grub to boot my kernel, too. Is this a feasible way?

Could anyone provide some suggestions? Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions