!VRFarxUZgQhGPZpROi:matrix.org

Redox OS/Support

194 Members
Ask for help using and/or manually building Redox OS17 Servers

Load older messages


SenderMessageTime
23 Feb 2024
@lgh-127001:matrix.orglgh-127001I don't want to spam the room with the code so here it is: https://text.is/5M6N13:43:43
@lgh-127001:matrix.orglgh-127001rw_van sorry, I saw your message just after I sent mine, thank you for your help.13:45:19
@willnode:matrix.orgWildan Mubaroklet me try compiling pcid. thanks.13:46:31
@willnode:matrix.orgWildan Mubarokquick update.. Tried to compile drivers with pcid works, but now it begs for ACPI support. That's the kernel... the elephant in the room... turns out the implementation is incomplete for aarch64. As aarch64 can't boot from BIOS as I read the bootloader code... so it's impossible as a workaround for easy framebuffer access. The link above is updated with latest logs... likely this is the real iceberg for me as i'm not knowledgeable to understand assembly :/ 15:56:27
@willnode:matrix.orgWildan Mubarok *

quick update.. Tried to compile drivers with pcid works, but now it begs for ACPI support. That's the kernel... the elephant in the room... turns out the implementation is incomplete for aarch64.

As aarch64 can't boot from BIOS (from what I read in the bootloader code)... it's impossible to use it as a workaround for easy framebuffer access.

The link above is updated with the latest logs... this is likely the real iceberg for me as I'm not knowledgeable to understand assembly :/

15:59:50
@draft_isa:matrix.orgRibbon
In reply to @lgh-127001:matrix.org
Hello! I'm looking at nushell, but what I found is that because of these table-formatted output and such things it's not the easiest for me because of screen reader software, so maybe I'm not the best person to test it out for visual appearance and correct formatting and such. But what I was thinking about, do you know what is the status of SSH for example? Because if needed I can test it out, and I see it still uses the old recipe.sh format so I can try and convert it if it helps you and I can test it out.

AFAIK SSH is not working, redox-ssh and ssh recipes.

I should rename ssh to openssh.

17:46:39
@draft_isa:matrix.orgRibbon
In reply to @lgh-127001:matrix.org
Ok, what about me taking zstd then? Recipe says it needs a build script, is it ok if I give it a try?
Can be, remember that cross-compilation scripts is advanced.
17:50:30
@draft_isa:matrix.orgRibbon
In reply to @lgh-127001:matrix.org
Sorry another question about recipes, I understand what the porting guide says about recipe.toml sections and fields. But very often in custom template scripts I see a "cookbook_configure" command at the end and no invocation of make. Could someone explain please, how is make invoked in this case, or how could I figure out what "cookbook_configure" actually executes? It would be needed to set up the make variables correctly, and I have to use the custom template because zstd has no configure script (that's why cookbook_configure is confusing a bit for me).
  • cookbook_configure - The configure template, used for GNU Autotools, runs the commands ./configure && make && make install with cross-compilation variables.
  • cookbook_cargo - The cargo template, run the command cargo build with cross-compilation variables.

If the program only uses GNU Make, you can't use these functions.

17:55:03
@wifi_goood_boi:matrix.orgpugguu joined the room.19:36:01
25 Feb 2024
@janet-rs:matrix.org@janet-rs:matrix.org left the room.10:20:40
@jcake:matrix.orgJCakeHey is anyone else having issues mounting a build? redoxfs seems to be having a few issues17:59:20
@rw_van:matrix.orgrw_van
In reply to @jcake:matrix.org
Hey is anyone else having issues mounting a build? redoxfs seems to be having a few issues
Can you give any more details? Most of the recent changes have been in the Redox-only code.
18:10:14
@jcake:matrix.orgJCake

Hm. I wish... The only symptoms I've really been able to spot, is that I copied an old build from somewhere into my working directory, and mounted it which worked fine, but then I needed to customise it slightly, made alterations to the config, rebuilt and then mounting fails with the following error:

$ ~/Redox/bin/redoxfs ~/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img .fs
redoxfs: opening /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img
redoxfs: failed to open filesystem /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img: No such file or directory
redoxfs: not able to mount path /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img

I tested this with the regular desktop and server-minimal configs too and got the same results. Those are unmodified

18:12:30
@jcake:matrix.orgJCake *

Hm. I wish... The only symptoms I've really been able to spot, is that I copied an old build from somewhere into my working directory, and mounted it. That worked fine. But then I needed to customise it slightly, made alterations to the config, rebuilt. And then mounting fails with the following error:

$ ~/Redox/bin/redoxfs ~/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img .fs
redoxfs: opening /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img
redoxfs: failed to open filesystem /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img: No such file or directory
redoxfs: not able to mount path /home/jcake/Redox/builds/redox/build/x86_64/rwm-minimal/harddrive.img

I tested this with the regular desktop and server-minimal configs too and got the same results. Those are unmodified

18:13:14
@rw_van:matrix.orgrw_van I've never used redoxfs directly, I always use make mount. 18:15:21
@jcake:matrix.orgJCake
In reply to @rw_van:matrix.org
I've never used redoxfs directly, I always use make mount.
I normally would too, but this is meant to be used in a script, so I'm attempting to reduce the overhead as much as possible by deabstracting things where I can
18:16:06
@jcake:matrix.orgJCake Peculiar. I figured it out.... redoxfs was old 18:17:18
@jcake:matrix.orgJCakeconcerningly, only by a few hours18:17:27
@jcake:matrix.orgJCake Explained why make mount was failing too 18:18:02
@rw_van:matrix.orgrw_van Is it an old SHA in the redox repo? 18:18:15
@jcake:matrix.orgJCake I guess so. I did a make pull and things started working again 18:18:44
@jcake:matrix.orgJCakeyes it was18:19:43
@jcake:matrix.orgJCake Right so my redoxfs troubles apparently aren't over yet... I'm hoping someone can provide some insight; When I have a redoxfs image mounted, I can copy a build artifact from cargo into the image using the standard copy command. If I do this, something causes the hashes to not match. However, if I copy the file with dd and restore the file permissions afterwards, this doesn't happen. 20:53:55
@jcake:matrix.orgJCakeInterestingly, the build artefact I want to copy is a normal executable of about 30MiB. for some reason, the cp command completes very quickly, while dd seems to hang for about 10-20s before completing. Now, I have a very fast NVMe so that's not the problem... 21:00:48
@jcake:matrix.orgJCake The nushell equivalent open --raw artefact | save --raw -f dest completes comparably quickly to cp. Guys I'm so lost 21:01:49
@jcake:matrix.orgJCake guys my head hurts. I wrapped it in a timeit block and it stops breaking 21:07:10
@jcake:matrix.orgJCake

Ugly workaround because I can't be bothered dealing with this:

timeit {
            open --raw target/x86_64-unknown-redox/debug/rwm | save --raw -f .fs/bin/rwm
            chmod (stat -c "%a" target/x86_64-unknown-redox/debug/rwm) .fs/bin/rwm
        }

Hope this is useful to someone :P

21:25:35
@jcake:matrix.orgJCake *

Ugly workaround because I can't be bothered dealing with this:

timeit {
  open --raw target/x86_64-unknown-redox/debug/rwm | save --raw -f .fs/bin/rwm
  chmod (stat -c "%a" target/x86_64-unknown-redox/debug/rwm) .fs/bin/rwm
}

Hope this is useful to someone :P

21:25:46
@jcake:matrix.orgJCakeNope. didn't do it. 21:30:24
@draft_isa:matrix.orgRibbon JCake: Are you using a different build system? 22:04:17

There are no newer messages yet.


Back to Room ListRoom Version: 9