[RESULTS] Apache NuttX 12.4.0 RC0 release

2024-01-14 Thread Alin Jerpelea
 Hi all,

The vote to release Apache NuttX 12.4.0-rc0 is now closed.
Thanks to those that took the time to review and vote.

The release has passed with 4 +1 (binding) votes and no 0 or -1 votes.

Binding:
+1 Lup Yuen Lee
+1 Tiago Medicci Serrano
+1 Tomek CEDRO
+1 Alin Jerpelea


Vote thread https://lists.apache.org/thread/01g514wpozcsp9qp7m69lb6h9rzmg256


RE: Ox64 crash Was: Re: [VOTE] Apache NuttX 12.4.0 RC0 release

2024-01-14 Thread alin.jerpe...@sony.com
+1 from me
The release was tested on Sony Spresense board


In this case I will close the vote and document the issue regarding Ox64.


Thanks for testing and voting the release

//Alin

From: Lee, Lup Yuen 
Sent: den 15 januari 2024 06:05
To: dev@nuttx.apache.org
Subject: Re: Ox64 crash Was: Re: [VOTE] Apache NuttX 12.4.0 RC0 release

Hi Juha: Thanks for testing, I really appreciate it :-) You're right, there is 
a problem with the sequence of getprime then hello on Ox64. I suggest we 
proceed with the rollout of 12. 4. 0 RC0 while we fix this. BL808 Timer is also 
missing from
ZjQcmQRYFpfptBannerStart
This message is from an unknown sender
You have not previously corresponded with this sender and they are external to 
Sony
ZjQcmQRYFpfptBannerEnd

Hi Juha: Thanks for testing, I really appreciate it :-) You're right, there

is a problem with the sequence of getprime then hello on Ox64.



I suggest we proceed with the rollout of 12.4.0 RC0 while we fix this.

BL808 Timer is also missing from the release (it was merged last week), so

hopefully we'll have BL808 Timer + "getprime then hello" working OK in the

next release.



Here are my findings, I'll keep you updated. Thanks :-)



https://gist.github.com/lupyuen/def8fb96245643c046e5f3ad6c4e3ed0



Lup



On Mon, Jan 15, 2024 at 12:20 AM Juha Niskanen (Haltian)

mailto:juha.niska...@haltian.com.invalid>> 
wrote:



> There is something wrong with this release on Ox64 board. Just running

> this sequence of commands in ox64:nsh defconfig machine:

>

> cd /system/bin

> getprime

> hello

>

> produces a crash:

>

> riscv_exception: EXCEPTION: Store/AMO page fault. MCAUSE:

> 000f, EPC: 50209134, MTVAL: 8020

> riscv_exception: PANIC!!! Exception = 000f

> _assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024

> 00:11:48 risc-v

> _assert: Assertion failed panic: at file: common/riscv_exception.c:85

> task: /system/bin/init process: /system/bin/init 0x804a

> up_dump_register: EPC: 50209134

> up_dump_register: A0: 8020 A1:  A2:

> 02a8 A3: 02a8

> up_dump_register: A4:  A5: 8020 A6:

>  A7: 

> up_dump_register: T0: 0003 T1: 0007 T2:

> 0020 T3: 802002a8

> up_dump_register: T4: 8020 T5: 00ff T6:

> 000f

> up_dump_register: S0: 8020 S1: 00080d58 S2:

>  S3: 80202988

> up_dump_register: S4: 0001 S5: 802008c8 S6:

> 50409980 S7: 

> up_dump_register: S8: 0001 S9:  S10:

>  S11: 

> up_dump_register: SP: 5040b220 FP: 8020 TP:

>  RA: 502098d6

>

> Full log:

> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c<

> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>

> [https://github.githubassets.com/assets/gist-og-image-54fd7dc0713e.png]<

> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>

> nuttx-ox64-2024-01-11_getprimes_hello_crash.log<

> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>

> nuttx-ox64-2024-01-11_getprimes_hello_crash.log. GitHub Gist: instantly

> share code, notes, and snippets.

> gist.github.com

> Also slightly different combo:

>

> cd /system/bin

> getprime

> sh

>

> produces:

>

> _assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024

> 00:11:48 risc-v

> _assert: Assertion failed offset && val: at file:

> machine/risc-v/arch_elf.c:565 task: /system/bin/init process:

> /system/bin/init 0x804a

> up_dump_register: EPC: 50201ffe

> up_dump_register: A0: 504013d0 A1: 0235 A2:

> 502275e8 A3: 007e

> up_dump_register: A4: 5040b8d0 A5: 0001 A6:

>  A7: fff8

> up_dump_register: T0: 0003 T1: 0007 T2:

> 0020 T3: 5040b06c

> up_dump_register: T4: 5040b060 T5: 00ff T6:

> 000f

> up_dump_register: S0:  S1: 5040b8d0 S2:

> 5040d200 S3: 5040b8d0

> up_dump_register: S4: 502275e8 S5: 502275b0 S6:

> 000200042022 S7: 50401b30

> up_dump_register: S8: 0235 S9: 0766 S10:

> 2a2d S11: 0100

> up_dump_register: SP: 00

Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)

2024-01-14 Thread Lee, Lup Yuen
<< Do you think it is possible to find an alternative to use the users'
browser connection to communicate to the Internet? This way it avoids
users' consumption of all internet limits on the server side. >>

Hi Alan: You're right, TinyEMU Emulator talks to a WebSocket VPN hosted at `
relay.widgetry.org` that's throttled at 40 kB/s (for free, fair use). But I
don't see a good alternative to this WebSocket VPN:

(1) Can the Web Browser talk directly to the internet without WebSocket VPN?

TinyEMU and VirtIO Networking are sending Ethernet Frames / IP Packets from
the Web Browser to the internet. But Web Browsers are not allowed to send
IP Packets directly. That's why we need to tunnel the packets through a
WebSocket VPN.

(2) Can we host our own WebSocket VPN on our Local Computer?

Possibly. But then we will have to host the Web Server on our Local
Computer too. Which makes it cumbersome to install.

(3) Can we host the WebSocket VPN on a server operated by the NuttX Project?

Probably not, because we need to throttle the internet traffic for free,
fair use. And prevent abuse.

I've documented my findings on TinyEMU, VirtIO Networking and WebSocket
VPN:
https://github.com/lupyuen/nuttx-tinyemu#tinyemu-networking-in-the-web-browser

Lup

On Sun, Jan 14, 2024 at 9:54 PM Alan C. Assis  wrote:

> Hi Lup,
>
> Thank you very much!
>
> Looking at the WebSocket VPN article it said the connection goes through
> the server hosting the emulator.
>
> Do you think it is possible to find an alternative to use the users'
> browser connection to communicate to the Internet?
> This way it avoids users' consumption of all internet limits on the server
> side.
>
> BR,
>
> Alan
>
> On Sun, Jan 14, 2024 at 4:17 AM 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: Ox64 crash Was: Re: [VOTE] Apache NuttX 12.4.0 RC0 release

2024-01-14 Thread Lee, Lup Yuen
Hi Juha: Thanks for testing, I really appreciate it :-) You're right, there
is a problem with the sequence of getprime then hello on Ox64.

I suggest we proceed with the rollout of 12.4.0 RC0 while we fix this.
BL808 Timer is also missing from the release (it was merged last week), so
hopefully we'll have BL808 Timer + "getprime then hello" working OK in the
next release.

Here are my findings, I'll keep you updated. Thanks :-)

https://gist.github.com/lupyuen/def8fb96245643c046e5f3ad6c4e3ed0

Lup

On Mon, Jan 15, 2024 at 12:20 AM Juha Niskanen (Haltian)
 wrote:

> There is something wrong with this release on Ox64 board. Just running
> this sequence of commands in ox64:nsh defconfig machine:
>
> cd /system/bin
> getprime
> hello
>
> produces a crash:
>
> riscv_exception: EXCEPTION: Store/AMO page fault. MCAUSE:
> 000f, EPC: 50209134, MTVAL: 8020
> riscv_exception: PANIC!!! Exception = 000f
> _assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024
> 00:11:48 risc-v
> _assert: Assertion failed panic: at file: common/riscv_exception.c:85
> task: /system/bin/init process: /system/bin/init 0x804a
> up_dump_register: EPC: 50209134
> up_dump_register: A0: 8020 A1:  A2:
> 02a8 A3: 02a8
> up_dump_register: A4:  A5: 8020 A6:
>  A7: 
> up_dump_register: T0: 0003 T1: 0007 T2:
> 0020 T3: 802002a8
> up_dump_register: T4: 8020 T5: 00ff T6:
> 000f
> up_dump_register: S0: 8020 S1: 00080d58 S2:
>  S3: 80202988
> up_dump_register: S4: 0001 S5: 802008c8 S6:
> 50409980 S7: 
> up_dump_register: S8: 0001 S9:  S10:
>  S11: 
> up_dump_register: SP: 5040b220 FP: 8020 TP:
>  RA: 502098d6
>
> Full log:
> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c<
> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>
> [https://github.githubassets.com/assets/gist-og-image-54fd7dc0713e.png]<
> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>
> nuttx-ox64-2024-01-11_getprimes_hello_crash.log<
> https://gist.github.com/juniskane/6695c16da910c040773911069d10812c>
> nuttx-ox64-2024-01-11_getprimes_hello_crash.log. GitHub Gist: instantly
> share code, notes, and snippets.
> gist.github.com
> Also slightly different combo:
>
> cd /system/bin
> getprime
> sh
>
> produces:
>
> _assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024
> 00:11:48 risc-v
> _assert: Assertion failed offset && val: at file:
> machine/risc-v/arch_elf.c:565 task: /system/bin/init process:
> /system/bin/init 0x804a
> up_dump_register: EPC: 50201ffe
> up_dump_register: A0: 504013d0 A1: 0235 A2:
> 502275e8 A3: 007e
> up_dump_register: A4: 5040b8d0 A5: 0001 A6:
>  A7: fff8
> up_dump_register: T0: 0003 T1: 0007 T2:
> 0020 T3: 5040b06c
> up_dump_register: T4: 5040b060 T5: 00ff T6:
> 000f
> up_dump_register: S0:  S1: 5040b8d0 S2:
> 5040d200 S3: 5040b8d0
> up_dump_register: S4: 502275e8 S5: 502275b0 S6:
> 000200042022 S7: 50401b30
> up_dump_register: S8: 0235 S9: 0766 S10:
> 2a2d S11: 0100
> up_dump_register: SP: 5040afa0 FP:  TP:
>  RA: 50201ffe
> 
> riscv_exception: EXCEPTION: Load page fault. MCAUSE: 000d,
> EPC: 502048b4, MTVAL: 802002f8
> riscv_exception: PANIC!!! Exception = 000d
> _assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024
> 00:11:48 risc-v
> _assert: Assertion failed panic: at file: common/riscv_exception.c:85
> task: /system/bin/init process: /system/bin/init 0x804a
> up_dump_register: EPC: 502048b4
> up_dump_register: A0: 802002f8 A1: 0003 A2:
>  A3: 0001
> up_dump_register: A4: 0001 A5:  A6:
> 000200042022 A7: 
> up_dump_register: T0: 002e T1: 006a T2:
> 01ff T3: 006c
> up_dump_register: T4: 0068 T5: 0009 T6:
> 002a
> up_dump_register: S0: 802002f8 S1: 5040b6d0 S2:
> 5040b700 S3: 5040bba0
> up_dump_register: S4: 5040c870 S5: 5040fb50 S6:
>  S7: 0002
> up_dump_register: S8: 0080 S9: 0766 S10:
> 2a2d S11: 0100
> up_dump_register: SP: 5040b030 FP: 000

Ox64 crash Was: Re: [VOTE] Apache NuttX 12.4.0 RC0 release

2024-01-14 Thread Juha Niskanen (Haltian)
There is something wrong with this release on Ox64 board. Just running this 
sequence of commands in ox64:nsh defconfig machine:

cd /system/bin
getprime
hello

produces a crash:

riscv_exception: EXCEPTION: Store/AMO page fault. MCAUSE: 000f, 
EPC: 50209134, MTVAL: 8020
riscv_exception: PANIC!!! Exception = 000f
_assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024 00:11:48 
risc-v
_assert: Assertion failed panic: at file: common/riscv_exception.c:85 task: 
/system/bin/init process: /system/bin/init 0x804a
up_dump_register: EPC: 50209134
up_dump_register: A0: 8020 A1:  A2: 
02a8 A3: 02a8
up_dump_register: A4:  A5: 8020 A6: 
 A7: 
up_dump_register: T0: 0003 T1: 0007 T2: 
0020 T3: 802002a8
up_dump_register: T4: 8020 T5: 00ff T6: 000f
up_dump_register: S0: 8020 S1: 00080d58 S2: 
 S3: 80202988
up_dump_register: S4: 0001 S5: 802008c8 S6: 
50409980 S7: 
up_dump_register: S8: 0001 S9:  S10: 
 S11: 
up_dump_register: SP: 5040b220 FP: 8020 TP: 
 RA: 502098d6

Full log: 
https://gist.github.com/juniskane/6695c16da910c040773911069d10812c
[https://github.githubassets.com/assets/gist-og-image-54fd7dc0713e.png]
nuttx-ox64-2024-01-11_getprimes_hello_crash.log
nuttx-ox64-2024-01-11_getprimes_hello_crash.log. GitHub Gist: instantly share 
code, notes, and snippets.
gist.github.com
Also slightly different combo:

cd /system/bin
getprime
sh

produces:

_assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024 00:11:48 
risc-v
_assert: Assertion failed offset && val: at file: machine/risc-v/arch_elf.c:565 
task: /system/bin/init process: /system/bin/init 0x804a
up_dump_register: EPC: 50201ffe
up_dump_register: A0: 504013d0 A1: 0235 A2: 
502275e8 A3: 007e
up_dump_register: A4: 5040b8d0 A5: 0001 A6: 
 A7: fff8
up_dump_register: T0: 0003 T1: 0007 T2: 
0020 T3: 5040b06c
up_dump_register: T4: 5040b060 T5: 00ff T6: 000f
up_dump_register: S0:  S1: 5040b8d0 S2: 
5040d200 S3: 5040b8d0
up_dump_register: S4: 502275e8 S5: 502275b0 S6: 
000200042022 S7: 50401b30
up_dump_register: S8: 0235 S9: 0766 S10: 
2a2d S11: 0100
up_dump_register: SP: 5040afa0 FP:  TP: 
 RA: 50201ffe

riscv_exception: EXCEPTION: Load page fault. MCAUSE: 000d, EPC: 
502048b4, MTVAL: 802002f8
riscv_exception: PANIC!!! Exception = 000d
_assert: Current Version: NuttX  12.4.0-RC0 4761af7069 Jan 11 2024 00:11:48 
risc-v
_assert: Assertion failed panic: at file: common/riscv_exception.c:85 task: 
/system/bin/init process: /system/bin/init 0x804a
up_dump_register: EPC: 502048b4
up_dump_register: A0: 802002f8 A1: 0003 A2: 
 A3: 0001
up_dump_register: A4: 0001 A5:  A6: 
000200042022 A7: 
up_dump_register: T0: 002e T1: 006a T2: 
01ff T3: 006c
up_dump_register: T4: 0068 T5: 0009 T6: 002a
up_dump_register: S0: 802002f8 S1: 5040b6d0 S2: 
5040b700 S3: 5040bba0
up_dump_register: S4: 5040c870 S5: 5040fb50 S6: 
 S7: 0002
up_dump_register: S8: 0080 S9: 0766 S10: 
2a2d S11: 0100
up_dump_register: SP: 5040b030 FP: 802002f8 TP: 
 RA: 50207b9a

Full log: 
https://gist.github.com/juniskane/b9e6a75f389562e8c989ca1f7069054c
[https://github.githubassets.com/assets/gist-og-image-54fd7dc0713e.png]
nuttx-ox64-2024-01-11_getprimes_sh_crash.log
nuttx-ox64-2024-01-11_getprimes_sh_crash.log. GitHub Gist: instantly share 
code, notes, and snippets.
gist.github.com

Each of "hello", "sh" and "getprime" works correctly in isolation, but not so 
when run after each other without reset. I think the assertion is superficial, 

Re: [Article] NuttX in the Web Browser (TinyEMU + VirtIO)

2024-01-14 Thread Alan C. Assis
Hi Lup,

Thank you very much!

Looking at the WebSocket VPN article it said the connection goes through
the server hosting the emulator.

Do you think it is possible to find an alternative to use the users'
browser connection to communicate to the Internet?
This way it avoids users' consumption of all internet limits on the server
side.

BR,

Alan

On Sun, Jan 14, 2024 at 4:17 AM 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
> > >
> >
>