Skip to content

Instantly share code, notes, and snippets.

View omac777's full-sized avatar

David Marceau omac777

View GitHub Profile
@omac777
omac777 / gist:28b243eb5d9477357459d83e2076996e
Created March 27, 2019 14:33
fedora rawhide error output 27 march 2019 for PREFIX_RUSTC=1 PREFIX_BINARY=0 make prefix
This file has been truncated, but you can view the full file.
david@io02rawhide 2019-03-27_09:12:00_EDT : ~/redox
$ make pull
git pull --recurse-submodules
Fetching submodule bootloader
Fetching submodule bootloader-coreboot
Fetching submodule bootloader-efi
Fetching submodule cookbook
Fetching submodule cookbook/docgen
Fetching submodule cookbook/pkgutils
Fetching submodule installer
@omac777
omac777 / gist:86d7077ad67a980f98435f75a8b324eb
Created March 27, 2019 19:48
success Redox Fedora Rawhide Aarch make prefix 27 March 2019
This file has been truncated, but you can view the full file.
-*- mode: compilation; default-directory: "~/redox/" -*-
Compilation started at Wed Mar 27 13:07:59
PREFIX_RUSTC=1 PREFIX_BINARY=0 ARCH=aarch64 make prefix
mkdir -p "prefix/aarch64-unknown-redox"
wget -O prefix/aarch64-unknown-redox/gcc.tar.bz2.partial "https://gitlab.redox-os.org/redox-os/gcc/-/archive/redox/gcc-redox.tar.bz2"
--2019-03-27 13:07:59-- https://gitlab.redox-os.org/redox-os/gcc/-/archive/redox/gcc-redox.tar.bz2
Resolving gitlab.redox-os.org (gitlab.redox-os.org)... 206.189.65.122
Connecting to gitlab.redox-os.org (gitlab.redox-os.org)|206.189.65.122|:443... connected.
HTTP request sent, awaiting response... 200 OK
@omac777
omac777 / gist:a5aba1cec9d438b438d3f929631b13c5
Created March 28, 2019 22:12
debian Unstable Aarch64 Make Prefix Success Build Output 28 March 2019
This file has been truncated, but you can view the full file.
-*- mode: compilation; default-directory: "~/redoxstuff/redox/" -*-
Compilation started at Thu Mar 28 17:17:28
PREFIX_RUSTC=1 PREFIX_BINARY=0 ARCH=aarch64 make prefix
rm -rf "prefix/aarch64-unknown-redox/rust-freestanding-build" "prefix/aarch64-unknown-redox/rust-freestanding-install.partial" "prefix/aarch64-unknown-redox/rust-freestanding-install"
mkdir -p "prefix/aarch64-unknown-redox/rust-freestanding-build"
cp -r "prefix/aarch64-unknown-redox/gcc-freestanding-install" "prefix/aarch64-unknown-redox/rust-freestanding-install.partial"
cd "prefix/aarch64-unknown-redox/rust-freestanding-build" && \
export PATH="/home/loongson/redoxstuff/redox/prefix/aarch64-unknown-redox/rust-freestanding-install.partial/bin:$PATH" && \
"/home/loongson/redoxstuff/redox/rust/configure" --prefix="/" --disable-docs && \
@omac777
omac777 / gist:324ac3a11f830a22abc421b17c04ec1a
Created March 28, 2019 23:27
debian unstable x86_64 make prefix build success 28 march 2019
This file has been truncated, but you can view the full file.
-*- mode: compilation; default-directory: "~/redoxstuff/redox/" -*-
Compilation started at Thu Mar 28 18:22:54
PREFIX_RUSTC=1 PREFIX_BINARY=0 make prefix
mkdir -p "prefix/x86_64-unknown-redox"
wget -O prefix/x86_64-unknown-redox/gcc.tar.bz2.partial "https://gitlab.redox-os.org/redox-os/gcc/-/archive/redox/gcc-redox.tar.bz2"
--2019-03-28 18:22:55-- https://gitlab.redox-os.org/redox-os/gcc/-/archive/redox/gcc-redox.tar.bz2
Resolving gitlab.redox-os.org (gitlab.redox-os.org)... 206.189.65.122
Connecting to gitlab.redox-os.org (gitlab.redox-os.org)|206.189.65.122|:443... connected.
HTTP request sent, awaiting response... 200 OK
@omac777
omac777 / gist:64eb324b1615f1ab623f2f67060672c2
Created March 29, 2019 00:30
debian unstable redox x86_64 make all success output 28March 2019
This file has been truncated, but you can view the full file.
-*- mode: compilation; default-directory: "~/redoxstuff/redox/" -*-
Compilation started at Thu Mar 28 19:29:50
PREFIX_RUSTC=1 PREFIX_BINARY=0 make all
mkdir -p build
nasm -f bin -o build/bootloader -D ARCH_x86_64 -ibootloader/x86_64/ bootloader/x86_64/disk.asm
rm -f build/libkernel.a
rm -rf build/initfs
mkdir -p build/initfs
export PATH="/home/loongson/redoxstuff/redox/prefix/x86_64-unknown-redox/relibc-install/bin:$PATH" && \
@omac777
omac777 / gist:5b1b6ea4a4d6057f5d910b39836f0bc8
Created March 29, 2019 00:40
debian unstable redox x86_64 make ci-img failed to build when passed PREFIX_RUSTC=1 PREFIX_BINARY=0
-*- mode: compilation; default-directory: "~/redoxstuff/redox/" -*-
Compilation started at Thu Mar 28 20:33:51
PREFIX_RUSTC=1 PREFIX_BINARY=0 make ci-img
make INSTALLER_FLAGS= \
build/coreboot.elf.gz \
build/harddrive.bin.gz \
build/livedisk.iso.gz \
build/harddrive-efi.bin.gz \
build/livedisk-efi.iso.gz
@omac777
omac777 / gist:222fe6c1aa8fc6e72bc71f7570c97729
Created March 29, 2019 01:34
redox curl build output success 28 March 2019
loongson@righteous:~/redoxstuff/redox$ cd cookbook/
loongson@righteous:~/redoxstuff/redox/cookbook$ cd recipes
loongson@righteous:~/redoxstuff/redox/cookbook/recipes$ cd curl
loongson@righteous:~/redoxstuff/redox/cookbook/recipes/curl$ ls
build recipe.sh source stage stage.sig stage.tar.gz stage.toml sysroot
loongson@righteous:~/redoxstuff/redox/cookbook/recipes/curl$ ls -lht
total 2.7M
-rw-r--r-- 1 loongson loongson 124 Mar 28 19:55 stage.sig
-rw-r--r-- 1 loongson loongson 2.7M Mar 28 19:55 stage.tar.gz
drwxr-xr-x 7 loongson loongson 4.0K Mar 28 19:55 stage
@omac777
omac777 / gist:7d747b2f58b49f9bed7229d6714b2c52
Created March 29, 2019 01:46
relibc within curl using nm
loongson@righteous:~/redoxstuff/redox/cookbook/recipes/curl/build/src$ nm curl|grep relibc
0000000000607630 T relibc_panic
0000000000621e80 T relibc_start
0000000000621e20 T relibc_verify_host
000000000060a9a0 T _ZN38_$LT$relibc..mutex..Mutex$LT$T$GT$$GT$11manual_lock17h01562b15760e3af1E
000000000060aa40 T _ZN38_$LT$relibc..mutex..Mutex$LT$T$GT$$GT$13manual_unlock17hfda4b255642b42e4E
000000000060a970 T _ZN38_$LT$relibc..mutex..Mutex$LT$T$GT$$GT$15manual_try_lock17h5e74dcca53b60904E
000000000060a960 T _ZN38_$LT$relibc..mutex..Mutex$LT$T$GT$$GT$3new17h7926610dc6f7a6ddE
00000000005fd090 T _ZN50_$LT$relibc..platform..CountingWriter$LT$T$GT$$GT$3new17h7df47dcd271f23aeE
00000000005fd0a0 T _ZN50_$LT$relibc..platform..CountingWriter$LT$T$GT$$GT$3new17h9f1568006cd59589E
@omac777
omac777 / redoxPiBuildAndRunFailedAbortPostRedoxfs_28Jan2021.txt
Created January 28, 2021 14:04
Redox os cross-compile to Raspberry Pi 4 target and Test Run
[david@carouselarch ~/tryredox] 2021-01-28 08:14:21 EST -0500
$ curl -sf https://gitlab.redox-os.org/redox-os/redox/raw/master/bootstrap.sh -o bootstrap.sh
[david@carouselarch ~/tryredox] 2021-01-28 08:16:42 EST -0500
$ chmod u+x bootstrap.sh
[david@carouselarch ~/tryredox] 2021-01-28 08:16:47 EST -0500
$ time ./bootstrap.sh
|------------------------------------------|
|----- Welcome to the redox bootstrap -----|
|------------------------------------------|
Your rust install looks good!
@omac777
omac777 / aarch64BootstrapAndRun04May2021.txt
Created May 4, 2021 16:33
Redox OS aarch64 bootstrap build and run output 04 May 2021
davidm@pop-os 2021-05-04_11:16:13_EDT : ~/tryredox
$ mv redox redox.20Jan2021
davidm@pop-os 2021-05-04_11:16:28_EDT : ~/tryredox
$ uname -a
Linux pop-os 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP Thu Apr 22 16:00:45 UTC x86_64 x86_64 x86_64 GNU/Linux
davidm@pop-os 2021-05-04_11:17:21_EDT : ~/tryredox
$ rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2021-05-04, rust version 1.54.0-nightly (716394d65 2021-05-03)