Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1575084535 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis closed pull request #2363: apps: Add uploadfiles to simplify file loading to NuttX URL: https://github.com/apache/nuttx-apps/pull/2363 -- 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 spe

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
xiaoxiang781216 commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574995699 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMa

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574883934 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574883934 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574869936 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
patacongo commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574840189 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeList

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2069595917 > Maybe this ROM Disk should be included in the kernel side instead of apps. What do you think? That might be the cleaner solution and would work in all build modes. -- This

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
xiaoxiang781216 commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574705071 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMa

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
xiaoxiang781216 commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574705071 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMa

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574562315 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
xiaoxiang781216 commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574530715 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMa

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574525015 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeLists.

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2069038616 > > which should be worked even in protected and kernel mode. > > I think Alan wants to load the file into physical memory using JTAG. This would work in KERNEL mode only if the

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-22 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2069031481 > This kind of logic will not work in the KERNEL build. It should work in a FLAT build. I think the PROTECTED build as well although the volume would probably need to be in user space

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068359499 > which should be worked even in protected and kernel mode. I think Alan wants to load the file into physical memory using JTAG. This would work in KERNEL mode only if the fil

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574036105 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMakeList

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
xiaoxiang781216 commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068347461 @acassis the official way to convert a file to a block device and mount a file system is using the loop device: https://nuttx.apache.org/docs/latest/components/drivers/charac

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
xiaoxiang781216 commented on code in PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#discussion_r1574031388 ## uploadfiles/CMakeLists.txt: ## @@ -0,0 +1,42 @@ +# ## +# apps/uploadfiles/CMa

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068271529 This kind of logic will not work in the KERNEL build. It should work in a FLAT build. I think the PROTECTED build as well although the volume would probably need to be in user spac

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068269970 Yes, it is a ROM Disk, the genromfs just create a romfs.image with the files that user copied to there. It is like the bastest example, but instead generating the romfs.img with fixed

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068265634 > The idea is copy the files in the computer directly to some uniform/default place to be integrated into ROMFS, without extra effort. Imagine you want some samples audio file and yo

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068259616 > > Add uploadfiles to simplify file loading to NuttX > > I don't understand the purpose of this. A more standard way of doing this is to mount create a RAMDISK at /data, then lo

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068244286 > Add uploadfiles to simplify file loading to NuttX I don't understand the purpose of this. A more standard way of doing this is to mount create a RAMDISK at /data, then load

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068240971 > I just realized the after mounting to ROMFS, the amount of RAM used is not exactly the size of the file in the ROMFS, actually it is way less then the size of the file: That

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
patacongo commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068240450 > @xiaoxiang781216 @patacongo Is there some way to use the ROMFS directly in the flash without using the RAMDISK? In order to mount a file system, you need a block (or MTD) dri

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068215970 I just realized the after mounting to ROMFS, the amount of RAM used is not exactly the size of the file in the ROMFS, actually it is way less then the size of the file: ``` N

Re: [PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
acassis commented on PR #2363: URL: https://github.com/apache/nuttx-apps/pull/2363#issuecomment-2068213689 @xiaoxiang781216 @patacongo Is there some way to use the ROMFS directly in the flash without using the RAMDISK? @JorgeGzm asked me: since it is already in the flash, should it be mount

[PR] apps: Add uploadfiles to simplify file loading to NuttX [nuttx-apps]

2024-04-21 Thread via GitHub
acassis opened a new pull request, #2363: URL: https://github.com/apache/nuttx-apps/pull/2363 ## Summary Add uploadfiles to simplify file loading to NuttX ## Impact It will allow user to include files to use on NuttX without using SDCard, Flash, etc ## Testing STM32F4Discovery