matthewcroughan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rajivr has joined #nixos-aarch64
konubinix has joined #nixos-aarch64
Raito_Bezarius has quit [Remote host closed the connection]
Raito_Bezarius has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
<elvishjerricco> Anyone know anything about BAR space? I'm trying to get my CM4 to see my HBA with NixOS, but I'm getting this:
<elvishjerricco> Note the `BAR 0: no space for [io size 0x0100]` near the end
<elvishjerricco> Does the fact that my model only has 2GB of ram matter? (can't find the 4GB or 8GB models anywhere :/)
monk has left #nixos-aarch64 ["Error from remote client"]
<samueldr> I don't know much, but I seem to recall it happens that some systems have limits that can't be fixed
monk has joined #nixos-aarch64
<samueldr> e.g. RK3399 is limited to 32MiB of BAR or something like that
<samueldr> (preventing use of external GPUs)
<elvishjerricco> samueldr: The latest pi firmware enables up to 1G of BAR
<elvishjerricco> I have no idea if it can be configured higher if you want
<samueldr> yeah, just saying what I knew
<samueldr> pretty sure it's limited to 1GB
<samueldr> and in the *first* GB
<elvishjerricco> I doubt this HBA needs 1G of BAR though, right?
<samueldr> so if things are in the first GB of memory for other reasons, that's less space available
<samueldr> but I don't know what to make of what I said
matthewcroughan has joined #nixos-aarch64
monk has left #nixos-aarch64 [#nixos-aarch64]
h0m1 has quit [Ping timeout: 260 seconds]
monk has joined #nixos-aarch64
h0m1 has joined #nixos-aarch64
awmv has quit [Quit: Connection closed for inactivity]
spacetato has joined #nixos-aarch64
evils has joined #nixos-aarch64
orivej has joined #nixos-aarch64
<clever> samueldr: https://youtu.be/u7DzPvkzEGA, the glitching is just due to pushing it too far over the edge, it can do the same thing (with less sprites) without glitching
orivej has quit [Ping timeout: 244 seconds]
<patagonicus> elvishjerricco: https://www.youtube.com/watch?v=ikpgZu6kLKE talks about BARs a bit, trying to get GPUs working on the CM4 (not really successful, but they get past the BAR no space problems).
<clever> patagonicus: jeff geerling?
<patagonicus> Yep. Don't really watch the channel, but happened to watch that video a couple of days ago.
<elvishjerricco> patagonicus: yea, he just increased how much BAR space there was. The latest rpi firmware does this on its own
<clever> elvishjerricco: i saw something about the default being cranked up to 1gig
<patagonicus> Ah, ok, didn't know that.
<elvishjerricco> I think my problem is that my model is a 2GB RAM model. Reading some forum posts, it seems like the 4GB+ models work a little better with this stuff
<clever> there are also dma bugs, where the pci-e can only access the lower 3gig of ram
<clever> fixed in later revisions, but not documented well enough
<elvishjerricco> I wish I knew how to interpret the numbers in that paste I linked before. Might make it possible to understand the actual issue...
<clever> 2021-03-22 22:17:47 < elvishjerricco> Note the `BAR 0: no space for [io size 0x0100]` near the end
<elvishjerricco> I did manage to find a 4GB model tonight though, so we'll see if that's the magic fixer.
<clever> elvishjerricco: the CM4 has zero support for IO BAR's
<clever> IO is an x86 concept, and not all arm systems have translation for it
<clever> some devices have both io and mmio BAR's, but the driver needs to support switching over
<elvishjerricco> clever: Oh so this card just relies on stuff the cm4 fundamentally can't handle?
<clever> depends on if there is a fallback in mmio or not
<clever> and if the drivers support that
<elvishjerricco> Is there something I could do to test that?
<clever> load the driver and see if it worsk :P
<clever> to get a more detailed answer, you would have to learn what the driver is doing to talk to the card
<elvishjerricco> fwiw, geerling did manage to get a fairly modern hardware RAID card working in some of his recent videos
<elvishjerricco> dunno if that's at all relevant
<clever> every pci-e card behaves in a different way
<elvishjerricco> So I might just have to wait until someone finds a HBA that works on the CM4 and then find one of those on ebay or something :P
<clever> or find a kernel developer that is familiar with a given card, and loan him a CM4
adamzivcak has joined #nixos-aarch64
cole-h has quit [Ping timeout: 246 seconds]
zupo has joined #nixos-aarch64
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
orivej has joined #nixos-aarch64
FRidh has joined #nixos-aarch64
Raito_Bezarius has quit [Ping timeout: 260 seconds]
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
<artturin> Ales Huzik: download the demo rootfs then flash it and build and flash the boot partition and uboot they can be crosscompiled
monk has left #nixos-aarch64 ["Error from remote client"]
<artturin> samueldr: we should set system chassis too https://github.com/nikhiljha/pp-fedora-sdsetup/pull/74 other distros do it too
<{^_^}> nikhiljha/pp-fedora-sdsetup#74 (by eddsalkield, 15 weeks ago, merged): Set system chassis to handset
<artturin> its needed for posh to work correctly atleast
<artturin> possible types are:
<artturin> "desktop", "laptop", "server", "tablet", "handset", "watch", as well as the special chassis types "vm" and "container"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
makefu has quit [Quit: WeeChat 2.6]
orivej has quit [Ping timeout: 265 seconds]
monk has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos-aarch64
FRidh has quit [Quit: Konversation terminated!]
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spacetato has quit [Ping timeout: 265 seconds]
edrex has quit [Ping timeout: 265 seconds]
leonardp has quit [Ping timeout: 265 seconds]
adisbladis has quit [Remote host closed the connection]
unclechu has quit [Ping timeout: 265 seconds]
davidak[m] has quit [Ping timeout: 246 seconds]
craige[m]1 has quit [Ping timeout: 246 seconds]
hpfr has quit [Ping timeout: 246 seconds]
colemickens has quit [Ping timeout: 246 seconds]
railroadmanualji has quit [Ping timeout: 246 seconds]
Ke has quit [Ping timeout: 265 seconds]
Ox4A6F has quit [Ping timeout: 240 seconds]
bachp has quit [Ping timeout: 240 seconds]
manveru[m] has quit [Ping timeout: 240 seconds]
Ericson2314 has quit [Ping timeout: 240 seconds]
adisbladis has joined #nixos-aarch64
matthewcroughan has quit [Remote host closed the connection]
Danct12[m] has quit [Ping timeout: 240 seconds]
ejpcmac has quit [Ping timeout: 244 seconds]
veleiro has quit [Ping timeout: 244 seconds]
artturin has quit [Ping timeout: 258 seconds]
LinuxHackerman has quit [Ping timeout: 268 seconds]
fgaz has quit [Ping timeout: 240 seconds]
JJJollyjim has quit [Ping timeout: 240 seconds]
mica[m] has quit [Ping timeout: 240 seconds]
matthewcroughan has joined #nixos-aarch64
thefloweringash has quit [Ping timeout: 258 seconds]
Dandellion has quit [Ping timeout: 268 seconds]
bbigras has quit [Ping timeout: 240 seconds]
cepheus has quit [Ping timeout: 240 seconds]
roberth has quit [Ping timeout: 240 seconds]
siraben has quit [Ping timeout: 244 seconds]
danielrf[m] has quit [Ping timeout: 244 seconds]
DavHau[m] has quit [Ping timeout: 240 seconds]
Fuseteam has quit [Ping timeout: 240 seconds]
kloenk has quit [Ping timeout: 240 seconds]
Jassuko[m] has quit [Ping timeout: 258 seconds]
puzzlewolf has quit [Ping timeout: 258 seconds]
AlesHuzik[m] has quit [Ping timeout: 268 seconds]
anton[m] has quit [Ping timeout: 268 seconds]
jdnixx-M has quit [Ping timeout: 268 seconds]
ky0ko1 has quit [Ping timeout: 268 seconds]
zuh0 has quit [Ping timeout: 244 seconds]
Guest57260 has quit [Ping timeout: 244 seconds]
l-as has quit [Ping timeout: 258 seconds]
mvnetbiz_ has quit [Ping timeout: 258 seconds]
cwprobablydead[m has quit [Ping timeout: 268 seconds]
hiroshi[m] has quit [Ping timeout: 268 seconds]
zupo has joined #nixos-aarch64
lopsided98 has quit [Ping timeout: 256 seconds]
srk has quit [Remote host closed the connection]
srk has joined #nixos-aarch64
lopsided98 has joined #nixos-aarch64
davidak[m] has joined #nixos-aarch64
craige[m]1 has joined #nixos-aarch64
leonardp has joined #nixos-aarch64
spacetato has joined #nixos-aarch64
edrex has joined #nixos-aarch64
jdnixx-M has joined #nixos-aarch64
colemickens has joined #nixos-aarch64
ky0ko1 has joined #nixos-aarch64
bachp has joined #nixos-aarch64
manveru[m] has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ejpcmac has joined #nixos-aarch64
hpfr has joined #nixos-aarch64
Ericson2314 has joined #nixos-aarch64
veleiro has joined #nixos-aarch64
JJJollyjim has joined #nixos-aarch64
artturin has joined #nixos-aarch64
unclechu has joined #nixos-aarch64
railroadmanualji has joined #nixos-aarch64
mica[m] has joined #nixos-aarch64
LinuxHackerman has joined #nixos-aarch64
thefloweringash has joined #nixos-aarch64
zupo has joined #nixos-aarch64
Dandellion has joined #nixos-aarch64
Ke has joined #nixos-aarch64
Danct12[m] has joined #nixos-aarch64
Ox4A6F has joined #nixos-aarch64
siraben has joined #nixos-aarch64
fgaz has joined #nixos-aarch64
danielrf[m] has joined #nixos-aarch64
AlesHuzik[m] has joined #nixos-aarch64
roberth has joined #nixos-aarch64
anton[m] has joined #nixos-aarch64
DavHau[m] has joined #nixos-aarch64
Guest57260 has joined #nixos-aarch64
Jassuko[m] has joined #nixos-aarch64
cepheus has joined #nixos-aarch64
Fuseteam has joined #nixos-aarch64
zuh0 has joined #nixos-aarch64
l-as has joined #nixos-aarch64
puzzlewolf has joined #nixos-aarch64
kloenk has joined #nixos-aarch64
mvnetbiz_ has joined #nixos-aarch64
bbigras has joined #nixos-aarch64
cwprobablydead[m has joined #nixos-aarch64
hiroshi[m] has joined #nixos-aarch64
cole-h has joined #nixos-aarch64
apache8080 has joined #nixos-aarch64
apache8080 has quit [Client Quit]
apache8080 has joined #nixos-aarch64
apache8080 has quit [Client Quit]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apache8080 has joined #nixos-aarch64
apache8080 has quit [Client Quit]
apache8080 has joined #nixos-aarch64
apache8080 has quit [Quit: WeeChat 1.9.1]
apache8080 has joined #nixos-aarch64
apache8080 has quit [Client Quit]
apache8080 has joined #nixos-aarch64
matthewcroughan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
matthewcroughan has joined #nixos-aarch64
matthewcroughan has quit [Client Quit]
matthewcroughan has joined #nixos-aarch64
justanotheruser has joined #nixos-aarch64
justan0theruser has quit [Ping timeout: 260 seconds]
dev_mohe has joined #nixos-aarch64
dev_mohe has quit [Client Quit]
apache8080 has quit [Ping timeout: 260 seconds]
monk has left #nixos-aarch64 ["Error from remote client"]
monk has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-aarch64
rajivr has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 258 seconds]
zupo has joined #nixos-aarch64
cole-h has quit [Quit: Goodbye]
dev_mohe has joined #nixos-aarch64
zupo has quit [Ping timeout: 258 seconds]
zupo has joined #nixos-aarch64
cole-h has joined #nixos-aarch64
evils has quit [Ping timeout: 256 seconds]
dev_mohe has quit [Quit: dev_mohe]
monk has left #nixos-aarch64 ["Error from remote client"]
zupo has quit [Ping timeout: 265 seconds]
zupo_ has joined #nixos-aarch64
monk has joined #nixos-aarch64
<lovesegfault> PSA: the rpi4 sd image is borked
<samueldr> lovesegfault: borked how?
<samueldr> at build or runtime?
<lovesegfault> samueldr: build time
<samueldr> known issue
* samueldr digs
<samueldr> too many PRs
<samueldr> I mean, existing PRs, not mine
<{^_^}> #111683 (by markuskowa, 7 weeks ago, open): Raspberry Pi 4 SD card image broken on master
<samueldr> a PR that aimed to increase correctness was merged
<samueldr> but it broke even internal uses of NixOS
<samueldr> and there is literally no correct way to solve thise
<samueldr> this*
<samueldr> other than reverting
<lovesegfault> :(
<samueldr> and I mean: solve
<samueldr> you can probably work around the issue
<samueldr> but it won't solve the basic issue
<samueldr> we have a list of modules that uses a list
<samueldr> which means you cannot "remove" a module from the list once added in the modules system
<samueldr> really, I think the previous behaviour was way better because of the mismatched kernel versions and architectures
<samueldr> I've seen another issue float up that I haven't looked at
<samueldr> with sun* kernel modules (sunxi: alllwinner)
<samueldr> which mean it might have broken a bit more than I thought
<samueldr> but fighting against correctness is hard
<lovesegfault> I think we just need to not add that module unconditionally
<samueldr> (this upgrade cycle to 21.05, I'm sure this will bite a lot of people)
<samueldr> "just"
<lovesegfault> `sd-image-aarch64.nix` L25
<samueldr> how do you "not add this unconditionally"?
<samueldr> anyway the raspberry pi 4 image is meant to be removed
<lovesegfault> hardware.raspberrypi option :P
<samueldr> no
<lovesegfault> or if `config.kernelPackages == ...`
<samueldr> or else we should start adding toggles for all hardware in the whole universe
<samueldr> we might use the fact that it's not been built for a while as a good sign it's not needed
<samueldr> but first check that the generic image does work
<lovesegfault> Well, I hit it because I needed it 😄
<samueldr> colemickens started looking into it, not sure where it was standing
<lovesegfault> Oh, does the generic kernel just work?
<lovesegfault> like linuxPackages_latest
<samueldr> I think it's supposed to since ~5.11
<samueldr> maybe 5.10
<{^_^}> #112677 (by colemickens, 5 weeks ago, open): nixos rpi bootloader: install files for raspberry pi 4 (rpi4)
<lovesegfault> I can test
<samueldr> it might not have hardware support for everything, but it's a starting point
<samueldr> as long as you can nixos-rebuild into a linuxPackages_rpi4 it's fine
<samueldr> since that's the expectation for all arm hardware
<samueldr> the default kernel is, at worst, enough to allow you to rebuild with a specialized kernel
makefu has joined #nixos-aarch64
<lovesegfault> Maybe we can just enable those modules on the custom kernel pkg
<samueldr> so huh, I thought the sun* issue was a separate issue, but if it's about the rpi4, then it's good
<samueldr> then it's more needless modules
<samueldr> really the pi4 image should be removed the moment it's possible to remove it
<samueldr> it was introduced specifically as a stop-gap measure for a popular platform
<samueldr> I still think maybe we should have never have done that
* lovesegfault shrugs
<lovesegfault> I definitely love being able to run NixOS on my rpis
<samueldr> oh, it's a good thing to be able to
<samueldr> but is it worth the support headache to have a special build for it?
<samueldr> we don't have a raspberry pi 3 image
<samueldr> and it's great"!
<samueldr> it's just an ARM image
<samueldr> we don't have images for any other specific aarch64 targets than the raspberry pi 4, and it sucks
<lovesegfault> I guess the value prop depends on how bad the pi4 is with mainline kernel?
<lovesegfault> like, does wifi work?
<samueldr> I don't know
<samueldr> but still, it was never intended to live long
<samueldr> it's lived too long already
<samueldr> (the special image)
adamzivcak has quit [Quit: Leaving.]
orivej has joined #nixos-aarch64
pinpox has quit [Quit: The Lounge - https://thelounge.chat]
pinpox has joined #nixos-aarch64
Raito_Bezarius has joined #nixos-aarch64
ib07 has joined #nixos-aarch64
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> ,stty
<{^_^}> echo "stty rows $(tput lines) cols $(tput cols)" # Alternatively eval `resize` may work
<clever> samueldr: ive just confirmed, just running resize, without even an eval, worked
apache8080 has joined #nixos-aarch64
monk has left #nixos-aarch64 ["Error from remote client"]
<apache8080> I want my /boot on a separate device from the rest of /, so could I simply add fileSystem."/boot" and fileSystems."/" to my config file and point them to the respective drives