| 9 Nov 2025 |
Tristan Ross | I'm not doing cross, I'm doing native | 22:24:16 |
Sergei Zimmerman (xokdvium) | Where is it segfaulting? somewhere in musl? | 22:24:23 |
Tristan Ross | I can't get a backtrace | 22:24:33 |
Tristan Ross | If I execute the ld-linux shared library, it does print. But grep, awk, and patchelf can't be executed. | 22:25:11 |
Sergei Zimmerman (xokdvium) | So static executables built with nixpkgs musl are borked with that kernel? | 22:26:11 |
Sergei Zimmerman (xokdvium) | As in they don't even make their way to main? | 22:26:21 |
Tristan Ross | Yes | 22:26:41 |
Tristan Ross | Even if I do start in GDB, I get a segfault on calling gcc | 22:26:59 |
Tristan Ross | nproc works | 22:28:10 |
Sergei Zimmerman (xokdvium) | Then maybe put a breakpoint on the elf entrypoint and step instruction-by-instruction? | 22:28:31 |
Sergei Zimmerman (xokdvium) | I don't know if that will work even | 22:28:46 |
Tristan Ross | Even if I set a breakpoint on _start, it still says segfault | 22:29:47 |
Tristan Ross | If I do strace on awk, I get EPERM on execve | 22:30:51 |
Tristan Ross | awk has 777 so it should be executable | 22:32:14 |
Tristan Ross | AppArmor is enabled | 22:32:57 |
Tristan Ross | It still segfaulted | 22:40:48 |
Tristan Ross | Same EPERM with AppArmor off | 22:41:15 |
Sergei Zimmerman (xokdvium) | bootstrap tarball looks very weird to me | 22:41:41 |
Tristan Ross | Hmm, so it's a bootstrap tarball problem that probably should be fixed? | 22:42:19 |
Sergei Zimmerman (xokdvium) | Yeah no idea. Do they happen to have a somewhat representative qemu-system setup to debug this without hardware? | 22:53:10 |
Tristan Ross | I don't have a VM set up | 22:56:50 |
| 10 Nov 2025 |
Alex | In reply to @rosscomputerguy:matrix.org I have a system with an ESWIN EIC770X CPU in it. Tried building hello and got an error about bootstrap-tools segfaulting. Seems like patchelf and all of the bootstrap tools don't want to execute. I haven't seen it mentioned yet so worth a try: have you looked at the kernel log for hints? | 16:39:34 |
Tristan Ross | In reply to @alex:tunstall.xyz I haven't seen it mentioned yet so worth a try: have you looked at the kernel log for hints? I looked and the only thing I saw was EDID logging | 16:45:43 |
Tristan Ross | LD vmlinux
BTFIDS vmlinux
FAILED elf_update(WRITE): no error
make[2]: *** [../scripts/Makefile.vmlinux:37: vmlinux] Error 255
make[2]: *** Deleting file 'vmlinux'
make[1]: *** [/build/source/Makefile:1165: vmlinux] Error 2
make: *** [../Makefile:234: __sub-make] Error 2
Wtf is this error? I'm trying to build the kernel for this system.
| 21:45:42 |
Tristan Ross | boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.buildLinux rec {
version = "6.6.18";
modDirVersion = version;
src = pkgs.fetchFromGitHub {
owner = "DC-DeepComputing";
repo = "fml13v03_linux";
rev = "7842fe7eb2ccc33fc7002dd2a04e575831b921c3";
hash = "sha256-/ysRPYqIW1CJ0Itp1cVkQk5d3mzqqXYI4rleCIDY6yE=";
};
defconfig = "fml13v03_defconfig";
kernelPatches = [
{
name = "fix-eswin-ai-dsp";
patch = ./linux-fix-eswin-ai-dsp.patch;
}
{
name = "fix-eswin-media-ext";
patch = ./linux-fix-eswin-media-ext.patch;
}
{
name = "fix-ap12275";
patch = ./linux-fix-ap12275.patch;
}
{
name = "fix-eswin-mem";
patch = ./linux-fix-eswin-mem.patch;
}
{
name = "fix-eswin-headers";
patch = ./linux-fix-eswin-headers.patch;
}
{
name = "fix-eswin-dev-buff";
patch = ./linux-fix-eswin-dev-buff.patch;
}
{
name = "fix-eswin-codec-conflict";
patch = ./linux-fix-eswin-codec-conflict.patch;
}
{
name = "fix-eswin-sysfs";
patch = ./linux-fix-eswin-sysfs.patch;
}
];
structuredExtraConfig = with lib.kernel; {
DWC_MIPI_TC_DPHY_GEN3 = no;
};
});
Patches come from https://github.com/DC-DeepComputing/fml13v03_linux/pull/3 & https://github.com/DC-DeepComputing/fml13v03_linux/pull/2
| 21:47:06 |
| 11 Nov 2025 |
Tristan Ross | Hmm, if I override it so CONFIG_DEBUG_INFO_BTF=n is set then it builds | 03:58:23 |
Tristan Ross | Great, I think I have all of the binaries I need. I have the kernel, secboot-fw, nsign, and u-boot. Now I need to figure out partitioning and I should be able to boot this. | 05:48:33 |
dramforever | Tristan Ross: https://github.com/torvalds/linux/commit/44382b3ed6b2787710c8ade06c0e97f5970a47c8 | 06:50:36 |
dramforever | probably | 06:50:40 |
Tristan Ross | In reply to @dramforever:matrix.org Tristan Ross: https://github.com/torvalds/linux/commit/44382b3ed6b2787710c8ade06c0e97f5970a47c8 Yes, that unfortunately looks like it | 06:51:11 |