apache / apache/nuttx

Kernel Build Apps

Open
#12,356 29 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

Hi,

I have NuttX starting up in kernel build but it fails to load the init ELF file and as such, nothing really happens:

![image](https://github.com/apache/nuttx/assets/168458700/17494701-0d40-43db-809f-9cfa2ad7383f)

I have read various documentation regarding building kernal apps which leads me down the road of performing a `make export` in the nuttx directory followed by a `make import` in the apps directory. This produces an apps/bin folder but the files contained in this folder are all over 4MB in size and the resulting `boot_romfsimg.h` file is over 40MB in size. Does this sound right? The resulting flat build outputs a binary that is <200kb in size so I am failing to understand why kernel build generates files this large.

Is there an elegant way to do this? Any documentation that explains the proper way to build and run the NSH library in kernal mode?

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.