masayuki2009 commented on PR #6365:
URL: https://github.com/apache/incubator-nuttx/pull/6365#issuecomment-1147020150

   >Could you tell me how to generate hello and init elf in the kernel mode?
   
   Please try the following commands.
   
   ```
   $ cd nuttx                                                                   
                                                                                
                                                                            
   $ ./tools/configure.sh rv-virt:knsh64
   $ make V=1 -j7                                                               
                                                                                
                                                                            
   $ make export V=1                                                            
                                                                                
                                                                            
   $ cd ../apps                                                                 
                                                                                
                                                                            
   $ ./tools/mkimport.sh -x ../nuttx/nuttx-export-*.zip                         
                                                                                
                                                                            
   $ make import V=1                                                            
                                                                                
                                                                            
   $ cd ../nuttx
   $ qemu-system-riscv64 -semihosting -nographic -cpu rv64 -smp 8 -M virt -bios 
none -kernel ./nuttx
   ```
   
   >BTW, is it right to set CONFIG_SYSTEM_NSH=y here?
   
   Yes.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to