#
#asahi-alt · 2023-04-10 22:43
chadmed_so its a mess
#asahi-alt · 2023-04-10 22:43
chadmed_but theres already one for cbindgen (different) because firefox uses it
#asahi-alt · 2023-04-10 22:43
chadmed_ive been racking my brain trying to think of how we handle this for packaging rusty sources upstream and i think the easiest way is make a rust ebuild for bindgen
#asahi-alt · 2023-04-10 22:42
chadmed_MichaelLong: we're all learning, dont sweat it :P
#asahi-alt · 2023-04-10 21:07
MichaelLongchadmed, a thx for the clarification. that stuff is totally new for me, just trying to get it working.
#asahi-alt · 2023-04-10 20:52
chadmedbut ive been using the packaged ~arm64 rustc for ages now and it works fine
#asahi-alt · 2023-04-10 20:52
chadmedMichaelLong: for a while the kernel rust was unstable and new versions would throw errors every week so the recommendation was to have rustup override your system toolchain
#asahi-alt · 2023-04-10 18:16
MichaelLongwas I was also almost going that way but looking at packages.gentoo.org virtual/rust is already stable at 1.66.1. the ashai-kernel I use (based on 6.2.0) wants 1.66.0
#asahi-alt · 2023-04-10 18:15
MichaelLongbut why?
#asahi-alt · 2023-04-10 18:15
ChaosPrincessthis is all brittle and janky, but technically works
#asahi-alt · 2023-04-10 18:14
ChaosPrincessim using emerged rust for stuff that needs it to build and a separate rust for kernel (that rust is not in PATH unless im compiling kernels)
#asahi-alt · 2023-04-10 18:14
zerdoxChaosPrincess ty. i guess i will remove emerged rust and will use rustup because i already cannot downgrade rustc
#asahi-alt · 2023-04-10 18:13
MichaelLongzerdox, I fear it is :)
#asahi-alt · 2023-04-10 18:13
zerdoxMichaelLong: i am on gentoo. i would not like to compile kernel but it's maybe required for me to graphics work correctly
#asahi-alt · 2023-04-10 18:10
MichaelLong(don't have the exact failure message right now as I shut down the laptop for today)
#asahi-alt · 2023-04-10 18:08
MichaelLongI used this https://codentium.com/building-a-linux-kernel-with-rust-support-on-gentoo/ (now older) article, but stopped as I have rust 1.66.1 (the kernel would like to have 1.66.0) and bindgen is available in portage in version 0.56.0 so I was save. I was able to overcome the "make LLVM=1 rustavailable" stage and can select rust in the kernel eventually but compiling the kernel failed very very early complaingin rust having some "indent" error
#asahi-alt · 2023-04-10 18:08
MichaelLongin some kernel include file.
#asahi-alt · 2023-04-10 18:00
ChaosPrincesswhoever wrote the makefile that way is a bad person, :P, having a bunch of drivers randomly vanish because you dared to run make menuconfig w/o rust in path is terrible
#asahi-alt · 2023-04-10 17:59
ChaosPrincesszerdox: make sure rustc is the version it wants and is in PATH, also bindgen is the correct version
#asahi-alt · 2023-04-10 17:31
MichaelLongzerdox, so your're also on gentoo or another distribution?
#asahi-alt · 2023-04-10 17:26
zerdoxand thank you
#asahi-alt · 2023-04-10 17:26
zerdoxok so for now i will just wait for your ping...
#asahi-alt · 2023-04-10 17:18
zerdoxit's get_canonical_version which uses $1-3 inside which are empty for some reason
#asahi-alt · 2023-04-10 17:12
zerdoxexactly i get line 21: 100000 * + 100 * + : syntax error: operand expected
#asahi-alt · 2023-04-10 17:12
MichaelLongzerdox, no problem I've another error compiling the kernel with the rust bindings. don't have it at hand right now.
#asahi-alt · 2023-04-10 17:11
zerdoxsorry about me being this but... i can't even google it
#asahi-alt · 2023-04-10 17:11
MichaelLongthat part is a lot of work
#asahi-alt · 2023-04-10 17:09
zerdoxchadmed: so.. make LLVM=1 rustavailable itself gives me syntax error (scripts/rust_is_available.sh line 21). i did all requirements except older rustc, but still don't get hidden option in menuconfig
#asahi-alt · 2023-04-09 22:50
chadmedits the same as on a PC, we use grub
#asahi-alt · 2023-04-09 22:47
zerdoxyep.. thanks. i will give it a try tomorrow or one day later. i would also need to know how to install this new kernel and not get fucked
#asahi-alt · 2023-04-09 22:45
chadmedbut when you install bindgen-cli make sure to pass --version ^0.62.0 to cargo
#asahi-alt · 2023-04-09 22:44
chadmedlatest rustc works at the moment so you should be fine to use gentoo=s rust
#asahi-alt · 2023-04-09 22:43
chadmedhttps://docs.kernel.org/rust/quick-start.html
#asahi-alt · 2023-04-09 22:41
zerdoxas i can see at a first glance it won't be easy. i can't yet find any useful info
#asahi-alt · 2023-04-09 22:36
zerdoxbuild i mean
#asahi-alt · 2023-04-09 22:36
zerdoxok. ima google how to compile kernel with rust
#asahi-alt · 2023-04-09 22:36
chadmedand i have no idea about hyprland options, youll have to experiment once the driver is installed
#asahi-alt · 2023-04-09 22:35
chadmedits necessary because the kernel driver is written in rust
#asahi-alt · 2023-04-09 22:33
zerdoxlegacy renderer in that fancy window manager i mean
#asahi-alt · 2023-04-09 22:33
zerdoxand do i need to enable legacy renderer (2.0) or we use 3 version? idk what the state of asahi with it
#asahi-alt · 2023-04-09 22:32
zerdoxoof.. okay. but why do i need this to get video drivers work?
#asahi-alt · 2023-04-09 22:31
chadmedbuilding with rust is a bit more annoying, the rust for linux project readme should get you started
#asahi-alt · 2023-04-09 22:31
chadmedyeah so the config file should be valid, mv it to the file name .config and just run make against the kernel
#asahi-alt · 2023-04-09 22:30
zerdoxyeah i did
#asahi-alt · 2023-04-09 22:30
zerdoxok. i need to build kernel with the rust asahi driver? how can i do it?
#asahi-alt · 2023-04-09 22:30
chadmeddid you use menuconfig
#asahi-alt · 2023-04-09 22:30
zerdoxi spent about an hour learning about kernel options and found a bunch of unused stuff in my kernel. like... unused filesystems, languages. a disabled some options but saved to draft file cause I don't know yet how to use it
#asahi-alt · 2023-04-09 22:29
chadmedyeah you need to install rust tooling compatible with the kernel and build a kernel with the rust asahi driver
#asahi-alt · 2023-04-09 22:28
zerdoxidk really how i should have get to this point
#asahi-alt · 2023-04-09 22:28
zerdoxyeah i didn't rebuild my kernel yet

plus ›