Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video/vnc: add vnc_fb_register #11383

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

jianglianfang
Copy link
Contributor

@jianglianfang jianglianfang commented Dec 13, 2023

Summary

Optimize the initialization of vnc, change it to vnc_fb_register.

Impact

Nuttx vnc

Testing

run nuttx with vnc

@jianglianfang
Copy link
Contributor Author

jianglianfang commented Dec 26, 2023

I successfully compiled sim:vncserver in the docker [ https://github.com/apache/nuttx/pkgs/container/nuttx%2Fapache-nuttx-ci-linux],
Proceed as follows:

  1. sudo docker run -it -v $PWD:/home/nuttx ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest@sha256:324c3660ddcc78fd7efcee52b80bc8060f007da44a3f51b7551bb27ba16ab34a /bin/bash
  2. cd /home/nuttx/nuttx
  3. rm Make.defs
  4. ln -s /home/nuttx/nuttx/tools/../boards/sim/sim/sim/scripts/Make.defs Make.defs
  5. make distclean
  6. ./tools/configure.sh -l sim:vncserver
  7. make clean;make

@xiaoxiang781216
Copy link
Contributor

I guess the error is due to linker doesn't move the unused fb_register from final image. It could be fixed by changing fb_register to macro or inline function.

@acassis
Copy link
Contributor

acassis commented Dec 28, 2023

@jianglianfang before we merge it, could you please confirm that this tutorial still working after your modifications: https://nuttx.apache.org/docs/latest/platforms/sim/sim/index.html#running-vnc-server ?

@acassis
Copy link
Contributor

acassis commented Feb 2, 2024

Could you please verify the compilation error?

graphics/nxmu/nxmu_start.c Outdated Show resolved Hide resolved
boards/sim/sim/sim/src/sim_bringup.c Show resolved Hide resolved
boards/sim/sim/sim/src/sim_bringup.c Outdated Show resolved Hide resolved
include/nuttx/video/fb.h Show resolved Hide resolved
graphics/nxmu/nxmu_start.c Outdated Show resolved Hide resolved
graphics/nxmu/nxmu_start.c Outdated Show resolved Hide resolved
graphics/nxmu/nxmu_start.c Outdated Show resolved Hide resolved
graphics/nxmu/nxmu_start.c Outdated Show resolved Hide resolved
boards/sim/sim/sim/src/sim_bringup.c Outdated Show resolved Hide resolved
@jianglianfang jianglianfang force-pushed the feat_vnc branch 2 times, most recently from bc79173 to 53cbb2c Compare April 7, 2024 02:03
To optimize the initialization of vnc, change it to vnc_fb_register.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 62a4799 into apache:master Apr 12, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants