apache / apache/nuttx

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

Open
#9,501 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.