Skip to content

[BUG] Is BINFS broken? #16484

@TimJTi

Description

@TimJTi

Description / Steps to reproduce the issue

I am trying to use BINFS to allow thttp to run CGI scripts. It seems that when you mount binfs all the builtin apps have zero size and cannot be executed.

NuttShell (NSH) NuttX-12.9.0
nsh: mount -t binfs /bin
nsh: ls -l /bin
/bin:
 ---x--x--x           0 flash_eraseall
 ---x--x--x           0 nsh
 ---x--x--x           0 phf
 ---x--x--x           0 ping
 ---x--x--x           0 redirect
 ---x--x--x           0 sh
 ---x--x--x           0 ssi
 ---x--x--x           0 thttp
nsh: ?

Builtin Apps:
    flash_eraseall    phf               redirect          ssi               
    nsh               ping              sh                thttp             

nsh: phf
phf CGI probe from (null)
Content-type: text/html
Status: 404/html

<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD>
<BODY><H2>404 Not Found</H2>
The requested object does not exist on this server.
The link you followed is either outdated, inaccurate,
or the server has been instructed not to let you have it.
</BODY></HTML>

nsh: /bin/phf
nsh: /bin/phf: command not found
t2: 

I have spent hours trying every Kconfig option I can stumble across and just cannot get binfs to mount apps properly.

Bug? Or a configuration option I haven;t yet tried?

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Ubuntu

NuttX Version

master (also 12.9)

Issue Architecture

[Arch: arm]

Issue Area

[Area: File System]

Host information

tim@tim-NUC8:~/designs/nuttx/nuttx$ make host_info
file sysinfo.h not exists
NuttX CFLAGS:
  -Wstrict-prototypes
  -Wno-attributes
  -Wno-unknown-pragmas
  -Wno-psabi
  -fomit-frame-pointer
  -fstack-protector-all
  -fstack-usage
  --param=min-pagesize=0
  -fno-common
  -Wall
  -Wshadow
  -Wundef
  -ffunction-sections
  -fdata-sections \-g\
  -mcpu=cortex-a5
  -mfloat-abi=softfp
  -mfpu=neon-vfpv4
  -mlittle-endian   
  -isystem /home/tim/designs/nuttx/nuttx/include
  -D__NuttX__ 
  -pipe
  -DBUILD_NUMBER=\\\\


NuttX CXXFLAGS:
  -Wno-attributes
  -Wno-unknown-pragmas
  -nostdinc++
  -Wno-psabi
  -std=\gnu++17\
  -fno-exceptions
  -fcheck-new
  -fno-rtti
  -fomit-frame-pointer
  -fstack-protector-all
  -fstack-usage
  --param=min-pagesize=0
  -fno-common
  -Wall
  -Wshadow
  -Wundef
  -ffunction-sections
  -fdata-sections \-g\
  -mcpu=cortex-a5
  -mfloat-abi=softfp
  -mfpu=neon-vfpv4
  -mlittle-endian   
  -isystem /home/tim/designs/nuttx/nuttx/include/cxx
  -isystem /home/tim/designs/nuttx/nuttx/include
  -D__NuttX__ 
  -pipe


NuttX LDFLAGS:
  --print-memory-usage
  --no-warn-rwx-segments
  --entry=__start
  -nostdlib
  --gc-sections
  --cref
  -Map=/home/tim/designs/nuttx/nuttx/nuttx.map


NuttX configuration options:
  CONFIG_HOST_LINUX=y

Host system OS:
  CONFIG_APPS_DIR=\

Host system PATH:

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arch: armIssues related to ARM (32-bit) architectureArea: File SystemFile System issuesOS: LinuxIssues related to Linux (building system, etc)Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions