.
Yours Sincerely,
Ayush Singh
[1]: https://edk2.groups.io/g/devel/message/94949
[2]: https://edk2.groups.io/g/devel/message/94950
[3]: https://github.com/tianocore/edk2-basetools/pull/58
[4]: https://github.com/tianocore/edk2-basetools/issues/57
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You
,
Ayush Singh
On Wed, 12 Oct, 2022, 10:42 Michael D Kinney,
wrote:
> Hi Ayush,
>
>
>
> All BaseTools python changes are initially done in the edk2-basetools
> repo to generate pip modules and then ported to edk2 repo BaseTools dir
>
>
>
> https://githu
I wanted to ask if BaseTools has a maintainer or someone I should directly
Cc. I also think that it would be great to have a list of people for
different parts of edk2 (like Linux Kernel has) for contributions to each
package.
On Tue, 11 Oct, 2022, 01:36 Ayush Singh, wrote:
> Fix formatting
/Ayush1325/edk2/tree/formatting
Ayush Singh (1):
Format BaseTools python files using autopep8
BaseTools/Bin/CYGWIN_NT-5.1-i686/armcc_wrapper.py
| 74 +-
BaseTools/Edk2ToolsBuild.py
|4
Hello everyone,
I wanted to ask if a NULL pointer can be returned as a valid event from
`EFI_BOOT_SERVICES.CreateEvent()` or `EFI_BOOT_SERVICES.CreateEventEx()`?
Or does the specification state that a valid event pointer has to be
non-NULL?
Yours Sincerely,
Ayush Singh
give your feedback.
Yours Sincerely,
Ayush Singh
[1]: https://github.com/rust-lang/rust/pull/100316
[2]: https://github.com/rust-lang/libs-team/issues/87
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92720): https://edk2.groups.io/g
, there is no handle supporting
`EFI_TIMESTAMP_PROTOCOL`.
For more information on what I am trying to implement, see
`std::time::Instant` [1] and the PR comment [2].
Yours Sincerely
Ayush Singh
[1]: https://doc.rust-lang.org/std/time/struct.Instant.html
[2]: https://github.com/rust-lang/rust
(uses some incompatible headers). I might write a version of
`rust_test_helpers` for UEFI at some point, but it is not high priority
right now.
Ayush Singh
[1]:
https://doc.rust-lang.org/nightly/rustc/platform-support/unknown-uefi.html#cross-compilation-toolchains-and-c-code
On 8/10/22 00
Hello everyone. This email is just a quick announcement for everyone
interested in the GSoC project porting Rust std for UEFI. A Draft PR [1]
has been created to upstream Rust project to get UEFI std work merged.
Feel free to check out the PR and provide feedback.
Yours Sincerely,
Ayush
might be possible to extract the allocator and other stuff from the
std so that they can be used without std, but that's not really the goal
right now.
Ayush Singh
On 8/2/22 00:36, Pedro Falcato wrote:
Right. I had no idea that you were going to go for std support in your
project. Thi
Hi Mike. What should be the naming scheme of the branch/s? I think you
already had some in mind to handle the development workflow.
Ayush Singh
On 8/1/22 23:43, Michael D Kinney wrote:
Hi Ayush,
I have created a fork in tianocore
https://github.com/tianocore/rust
I have added you
lanning on completing the merge (and possibly helping
future UEFI contributions upstream), even after GSoC duration is over.
Ayush Singh
On 8/1/22 23:37, Yao, Jiewen wrote:
Hi Ayush
Thanks for the great work.
Would you please help me understand that how far we are between
current [1] a
in upstream Rust.
Yours Sincerely
Ayush Singh
[1]: https://github.com/Ayush1325/rust/tree/uefi-std-rebase
On 8/1/22 22:56, Pedro Falcato wrote:
Hi,
May I suggest you just port the bare rust language (no crates, no std)
to EDK2? It seems far more plausible to expect people to use a cut
Tier-2, and
having an std implementation will certainly help with that.
Yours Sincerely.
Ayush Singh
On 8/1/22 22:56, Pedro Falcato wrote:
Hi,
May I suggest you just port the bare rust language (no crates, no std)
to EDK2? It seems far more plausible to expect people to use a cut
down ve
tests:
- passed: 12797
- failed: 40
- ignored: 375
Yours Sincerely,
Ayush Singh
[1]: https://edk2.groups.io/g/devel/message/91989
[2]: https://github.com/rust-lang/rust
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92019): https
someone can also help me with the flags that
need to be supplied if it can.
Yours Sincerely
Ayush Singh
[1]:
https://edk2-docs.gitbook.io/edk-ii-build-specification/9_build_or_make_stage/95_dynamic_link
[2]:
https://github.com/tianocore/edk2/blob/e9150618ec91f79e70a1719ac8c198bee34a99be/B
ns of
`compiler_builtins` and `r-efi` crates, and refactor the code and UEFI
documentation.
Yours Sincerely
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91989): https://edk2.groups.io/g/devel/message/91989
Mute This
since the bug might
affect other `msvc-like` tier-2 and tier-3 targets. There is also
renewed interest in making UEFI targets Tier-2 from Tier-3 (sponsored by
Red Hat), so it's possible that someone else might pick it up before I
am done with the std errors I am trying to fix.
Ayush
.
Yours Sincerely,
Ayush Singh
On 7/26/22 00:24, Andrew Fish wrote:
I guess I could at least dump to the end (req)…. Going backwards is a
bit painful in x86.
(lldb) dis -s 0x000140001B60 -b -c 30
hello_world_std.efi[0x140001b60]: 48 8b 09 movq
(%rcx), %rcx
2. EFI Binary:
https://rust-lang.zulipchat.com/user_uploads/4715/CknqtXLR8SaJZmyOnXctQkpL/hello_world_std.efi
3. PDB file:
https://rust-lang.zulipchat.com/user_uploads/4715/zV4i6DsjgQXotp_gS1naEsU0/hello_world_std-338028f9369e2d42.pdb
Yours Sincerely,
Ayush Singh
[1]: https://doc.r
m to ignore (if they don't make sense in UEFI).
Yours Sincerely
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91761): https://edk2.groups.io/g/devel/message/91761
Mute This Topic: https://groups.io/mt/92580483/21656
G
utput and errors to a file and reading
from it). However, that seems more like a hack, and so I wanted to know
if there was a better way to do this.
Yours Sincerely
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91551):
address [2]? I
was thinking just converting the IPv4 address to IPv6 instead of using
EFI_TCP4_PROTOCOL.
Ayush Singh
[1]: https://doc.rust-lang.org/std/net/struct.TcpListener.html#
[2]:
https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#ipv4-mapped-ipv6-addresses
On 7/14/22 00:00, Ayu
> https://github.com/tianocore/edk2/blob/master/NetworkPkg/Library/DxeNetLib/DxeNetLib.c
>
> Mike
>
>
> > -Original Message-
> > From: Ayush Singh
> > Sent: Wednesday, July 13, 2022 9:45 AM
> > To: devel@edk2.groups.io
> > Cc: Kinney, Michael D ;
onnection manually. It
is closed once the object is dropped (which is done once the object
owner goes out of scope at compile time).
Yours Sincerely
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91318): https://edk2.gr
urs Sincerely
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91259): https://edk2.groups.io/g/devel/message/91259
Mute This Topic: https://groups.io/mt/92334052/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://e
device and all. However, in UEFI, the
`LocateHanldle` returns an array of all the devices that implement the
protocol. So well, the internal implementation will need to select
which device to connect to. Basically, it is not possible to change
the signatures of any of the net stuff (to take the han
provide functions under `std::os` to allow users to use a particular
handle if they want (although this will mean caching the Handle).
Since all the functions in net return `Result` we can just return an
error if the device does not have networking support.
Ayush Singh
On Sat, Jul 2, 2022 at 1:05
UdpSocket (unsupported version link [4]).
So should I go ahead with implementing `net`? Is there anything
special that I should consider?
Yours Sincerely,
Ayush Singh
[1]:
https://rustc-dev-guide.rust-lang.org/tests/running.html#testing-on-emulators
[2]: https://github.com/rust-lang/rust/tree/master/src
Just for clarification, UCS2 and not UTF-16 means there are no
surrogate pairs right?
Ayush Singh
On Tue, Jun 7, 2022 at 5:15 PM Ayush Singh via groups.io
wrote:
>
> Ok, Thanks for all the help.
>
> On Tue, Jun 7, 2022 at 3:28 PM Pedro Falcato wrote:
> >
> > I'd sa
is means that the LF will be changed to CRLF only when using
stdio and not when writing to say an external file.
Firstly, I wanted to ask other people's opinions about doing this.
Secondly, I wanted to ask if `\r\r\n` is the same as `\r\n` or if the
extra CR should be trimmed.
Ayush
into implementing std for the
PEI.
Yours Sincerely
Ayush Singh
On Thu, Jun 23, 2022 at 4:28 AM Nate DeSimone
wrote:
>
> Hi Ayush,
>
>
>
> For your work to make Rust run in PEI I would recommend writing a generic
> heap manager that uses the PEI services AllocatePage(
s Services (Section 7.5)
Yours Sincerely,
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90653): https://edk2.groups.io/g/devel/message/90653
Mute This Topic: https://groups.io/mt/91898972/21656
Group Owner: devel+ow...@edk2
`allocate_pool` pointer in
SystemTable is replaced with a different pointer midway through the
program. In that case, the pointer in the allocator module will become
invalid but the SystemTable will contain the pointer to the new
location of `allocate_pool` and stay valid.
Yours Sincerely,
Ayush
will start looking at the edk2 integration
(although that might be beyond the scope of the project)
On Fri, Jun 17, 2022 at 4:51 AM Andrew Fish wrote:
>
>
> On Jun 16, 2022, at 1:17 PM, Ayush Singh wrote:
>
> Thanks for the great answer. After some discussion in the zulip [1],
vel detail
that there is almost no documentation for anything that happens before
`rust lang_start`. Still, I do have some idea now, so will see how it
goes.
Ayush Singh
[1]:
(https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Run.20a.20function.20before.20.60lang_start.60/near/2
able to call the normal `main` function
rather than using the `no_main` feature.
My blog post [1] shows how we currently use the `efi_main` function.
Yours sincerely,
Ayush Singh
[1]: (https://www.programmershideaway.xyz/post5/)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages
:
https://www.programmershideaway.xyz/tags/gsoc22/atom.xml
Lastly, my personal fork of the rust-lang/rust can be found here:
https://github.com/rust-lang/rust
The branches related to my work will be based on tag-1.61.0 (the last
rust-stable release)
Yours Sincerely,
Ayush Singh
t
has been canceled?
Yours Sincerely,
Ayush Singh
[1] https://github.com/tianocore/edk2
[2] https://github.com/tianocore/edk2-basetools
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90457): https://edk2.groups.io/g/devel/message/90457
Thanks for the wonderful answer.
Ayush Singh
On Thu, Jun 9 2022 at 01:26:58 PM -0700, Andrew Fish
wrote:
On Jun 9, 2022, at 10:28 AM, Ayush Singh <mailto:ayushdevel1...@gmail.com>> wrote:
Hello everyone,
Can anyone help me with understanding dynamic memory management in
PE
. SetMem()
6. FreePages()
However, no `FreePool()` service seems to be present. So how is the
memory allocated using `AllocatePool()` freed?
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90409): https://edk2.groups.io/g/devel
Ok, Thanks for all the help.
On Tue, Jun 7, 2022 at 3:28 PM Pedro Falcato wrote:
>
> I'd say that it depends. But 98% of the strings you'll find in UEFI
> (including APIs) are UCS-2 CHAR16 strings.
>
> On Tue, Jun 7, 2022 at 9:19 AM Ayush Singh wrote:
>>
Thanks, Pedro,
However, according to the specs, it is possible to construct ASCII
Strings as well. So when would ASCII Strings be used over normal UCS-2
Strings?
Ayush Singh
On Tue, Jun 7, 2022 at 1:13 PM Pedro Falcato wrote:
>
> Hi Ayush,
>
> In the latest UEFI 2.9 spec, it'
resources/specifications of
UEFI Strings, it would be a great help.
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90277): https://edk2.groups.io/g/devel/message/90277
Mute This Topic: https://groups.io/mt/91595087/21656
Group
place.
Yours Sincerely
Ayush Singh
On Thu, May 26, 2022 at 2:20 AM Michael Kubacki
wrote:
>
> Hi Ayush,
>
> Welcome! I'm excited about this project too and I look forward to
> working you.
>
> We will be reaching out soon to set up our regularly scheduled
> discussi
d a script
to run/test the applications in qemu.
Ayush Singh
On Sat, Jun 4, 2022 at 3:36 AM Brian J. Johnson wrote:
>
> Qemu's virtual VFAT (vvfat) disk type is a convenient way to test UEFI
> applications. It presents a folder on the host as a VFAT file system to
> the guest.
cations
in qemu. However, it builds a FAT filesystem around the EFI
application, so I was wondering if there was a better and simpler way
to do it.
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90190): https://edk2.groups.io/
Hello Everyone,
I am Ayush Singh, a 2nd-year university student from the Indian
Institute of Technology (Indian School of Mines), Dhanbad, India. In
Google Summer of Code 2022, I will be working on Adding Rust support
to EDK II. The original Task from the wiki can be found here:
https
w writes to physical memory for MMIO
> there will always be a ton of unsafe code even if it is all pure Rust.
>
>
>
> Thanks for looking into this and for the well-researched answer!
>
>
>
> Best Regards,
>
> Nate
>
>
>
> From: Ayush Singh
> Sent: Fr
ossible to make the std with stable Rust
even though if internals use nightly, so that's cool. Some useful projects
about writing libstd for new platform that I found are below:
- https://github.com/betrusted-io/rust/tree/1.54.0.5
- https://github.com/japaric/steed
Ayush Singh
On Fri,
hink this needs additional discussion.
It can also be useful for `ShellPkg`, `NetworkPkg`, etc. However, I
think I will get a better understanding by actually writing a driver.
Feel free to give suggestions and ask more questions. I would be happy
to answer them.
Ayush Singh.
-=-=-=-=-=-=-=-=
GSoC
application portal? Or is there someone I should contact first?
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#88410): https://edk2.groups.io/g/devel/message/88410
Mute This Topic: https://groups.io/mt/90247496/21656
Ok,
I would like to ask why edkii-rust was abandoned. Was it simply because of a
lack of time or were there some technical limitations/walls that lead to it?
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87772): https
.
I did not know about https://github.com/jyao1/rust-firmware , will take a look
at it as well.
My introduction mail can be found here (
https://edk2.groups.io/g/devel/message/87637 ).
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply
I see. While the other mails got the CC from the commits, the cover letter also
needs to do a CC separately. Will keep this in mind from the next commit.
Ayush Singh
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87758): https://edk2
Removed defination of _fltused from
RustPkg/Library/UefiRustIntrinsicLib since compiler_builtins now
provides one
Cc: Jiewen Yao
Signed-off-by: Ayush Singh
---
RustPkg/Library/UefiRustIntrinsicLib/src/lib.rs | 8 --
RustPkg/Test/TestRustLangApp/.cargo/config.toml | 3 +
RustPkg/Test
/master like it is supposed
to according to the edk2-staging/about branch.
My working repository for these commits can be found at:
https://github.com/Ayush1325/edk2-staging/tree/edkii-rust-fix-v1
Ayush Singh (3):
RustPkg/Test: Replace cargo-xbuild with build-std
RustPkg/Test/TestRustLangLib: Fix
From: Ayush Singh
Removed the Alloc trait usage which seems to have been removed from
Rust now.
Cc: Jiewen Yao
Signed-off-by: Ayush Singh
---
RustPkg/Library/UefiRustAllocationLib/src/lib.rs | 53 ++--
RustPkg/Test/TestRustLangLib/.cargo/config.toml | 3 +
RustPkg/Test/TestRustLangLib
From: Ayush Singh
Tests Migrated:
- Test/HelloWorld
- Test/HelloWorld2
Cc: Jiewen Yao
Signed-off-by: Ayush Singh
---
RustPkg/Test/HelloWorld/.cargo/config.toml | 3 +++
RustPkg/Test/HelloWorld2/.cargo/config.toml | 3 +++
2 files changed, 6 insertions(+)
diff --git a/RustPkg/Test
59 matches
Mail list logo