Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)
Kudos Lup! It is an interesting aproach to get familiar with NuttX I suggest presenting it at the NuttX workshop Best regards Alin On Sun, 14 Jan 2024, 08:17 Lee, Lup Yuen, wrote: > Thanks Alan! Yep "The Construct" looks like a cool way to learn ROS online, > we should do something similar for Teaching NuttX Online! > > As for Emulated Networking in the Web Browser: TinyEMU Emulator supports > VirtIO Networking. But it's tunnelled through a WebSocket VPN, because of > browser limitations. > > I might test this with NuttX and see how well it works. (I'm also keen to > emulate Ox64 BL808 RISC-V SBC in the Web Browser) > > TinyEMU VirtIO Networking: https://bellard.org/jslinux/tech.html > > WebSocket VPN: > https://www.benjamincburns.com/2013/11/10/jor1k-ethmac-support.html > > Lup > > On Sun, Jan 14, 2024 at 8:10 AM Alan C. Assis wrote: > > > Really cool Lup! > > > > Maybe it could be used for training and deduction purposes. Do you know > > "The Construct" they are using a solution like that to run Linux in the > > browser: > > > > https://app.theconstructsim.com/login/ > > > > Is it possible to get network enabled and use it to communicate? It could > > open new possibilities! > > > > BR, > > > > Alan > > > > > > On Sat, Jan 13, 2024 at 8:30 PM Lee, Lup Yuen wrote: > > > > > NuttX now boots and runs inside a Web Browser! (With WebAssembly) > > > > > > Try "ostest" here: https://lupyuen.github.io/nuttx-tinyemu > > > > > > This article explains how we… > > > (1) Boot NuttX in the Web Browser with TinyEMU RISC-V Emulator > > > (2) Modify NuttX for HTIF Console (Berkeley Host-Target Interface) > > > (3) Explore VirtIO Console with OpenAMP Library > > > (4) And how we might use it: Emulate NuttX Gadgets in the Web Browser? > A > > > Real-Time NuttX Dashboard that lights up as the various NuttX Drivers > are > > > called? > > > > > > Here's the article: > https://lupyuen.codeberg.page/articles/tinyemu.html > > > > > > How will you use NuttX in a Web Browser? Please lemme know > > > > > > Lup > > > > > >
Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)
Thanks Alan! Yep "The Construct" looks like a cool way to learn ROS online, we should do something similar for Teaching NuttX Online! As for Emulated Networking in the Web Browser: TinyEMU Emulator supports VirtIO Networking. But it's tunnelled through a WebSocket VPN, because of browser limitations. I might test this with NuttX and see how well it works. (I'm also keen to emulate Ox64 BL808 RISC-V SBC in the Web Browser) TinyEMU VirtIO Networking: https://bellard.org/jslinux/tech.html WebSocket VPN: https://www.benjamincburns.com/2013/11/10/jor1k-ethmac-support.html Lup On Sun, Jan 14, 2024 at 8:10 AM Alan C. Assis wrote: > Really cool Lup! > > Maybe it could be used for training and deduction purposes. Do you know > "The Construct" they are using a solution like that to run Linux in the > browser: > > https://app.theconstructsim.com/login/ > > Is it possible to get network enabled and use it to communicate? It could > open new possibilities! > > BR, > > Alan > > > On Sat, Jan 13, 2024 at 8:30 PM Lee, Lup Yuen wrote: > > > NuttX now boots and runs inside a Web Browser! (With WebAssembly) > > > > Try "ostest" here: https://lupyuen.github.io/nuttx-tinyemu > > > > This article explains how we… > > (1) Boot NuttX in the Web Browser with TinyEMU RISC-V Emulator > > (2) Modify NuttX for HTIF Console (Berkeley Host-Target Interface) > > (3) Explore VirtIO Console with OpenAMP Library > > (4) And how we might use it: Emulate NuttX Gadgets in the Web Browser? A > > Real-Time NuttX Dashboard that lights up as the various NuttX Drivers are > > called? > > > > Here's the article: https://lupyuen.codeberg.page/articles/tinyemu.html > > > > How will you use NuttX in a Web Browser? Please lemme know > > > > Lup > > >
Re: debugging user app crashes
On Thu, Jan 11, 2024 at 10:35 AM Gregory Nutt wrote: > Everything you need to know is in that referenced wiki page: > > https://cwiki.apache.org/confluence/display/NUTTX/Debugging+ELF+Loadable+Modules > > I don't know anything about QEMU or RISC-V. But assuming that NSH is > your init application... > > * NSH is not in memory when you start the OS; it resides in your init > file. The OS will automatically start NSH as the init application > (if properly configured). > * Since there is no gdbserver or ptrace, there is not elegant way to > break into the program. Some kludgey ways to do that are described > in the referenced wiki page. > * Then just follow the instructions in the wiki page: > o Start the debugger > o Load the symbol table of the NSH application. You probably > don't need as load offset as described in the wiki page. > o Set a breakpoint at nsh_parse, and > o Continue > > I have nothing to add to that. Note to self: Check whether above-linked wiki page has been migrated to Documentation in the repository and, if not, migrate it... I likely won't be able to work on that until next week, so if someone else wants to do it, feel free. :-) Cheers Nathan
Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)
Really cool Lup! Maybe it could be used for training and deduction purposes. Do you know "The Construct" they are using a solution like that to run Linux in the browser: https://app.theconstructsim.com/login/ Is it possible to get network enabled and use it to communicate? It could open new possibilities! BR, Alan On Sat, Jan 13, 2024 at 8:30 PM Lee, Lup Yuen wrote: > NuttX now boots and runs inside a Web Browser! (With WebAssembly) > > Try "ostest" here: https://lupyuen.github.io/nuttx-tinyemu > > This article explains how we… > (1) Boot NuttX in the Web Browser with TinyEMU RISC-V Emulator > (2) Modify NuttX for HTIF Console (Berkeley Host-Target Interface) > (3) Explore VirtIO Console with OpenAMP Library > (4) And how we might use it: Emulate NuttX Gadgets in the Web Browser? A > Real-Time NuttX Dashboard that lights up as the various NuttX Drivers are > called? > > Here's the article: https://lupyuen.codeberg.page/articles/tinyemu.html > > How will you use NuttX in a Web Browser? Please lemme know > > Lup >
Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)
WOW! CONGRATULATIONS LUP!! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
[Article] NuttX in the Web Browser (TinyEMU + VirtIO)
NuttX now boots and runs inside a Web Browser! (With WebAssembly) Try "ostest" here: https://lupyuen.github.io/nuttx-tinyemu This article explains how we… (1) Boot NuttX in the Web Browser with TinyEMU RISC-V Emulator (2) Modify NuttX for HTIF Console (Berkeley Host-Target Interface) (3) Explore VirtIO Console with OpenAMP Library (4) And how we might use it: Emulate NuttX Gadgets in the Web Browser? A Real-Time NuttX Dashboard that lights up as the various NuttX Drivers are called? Here's the article: https://lupyuen.codeberg.page/articles/tinyemu.html How will you use NuttX in a Web Browser? Please lemme know Lup