Darkmatter66_ has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 260 seconds]
pkral has quit [Ping timeout: 240 seconds]
angerman has quit [Read error: Connection reset by peer]
TheNumb has quit [Ping timeout: 260 seconds]
angerman has joined #nixos-aarch64
NekomimiScience has quit [Ping timeout: 246 seconds]
claudiii_ has quit [Ping timeout: 246 seconds]
TheNumb has joined #nixos-aarch64
h0m1 has quit [Ping timeout: 272 seconds]
h0m1 has joined #nixos-aarch64
NekomimiScience has joined #nixos-aarch64
claudiii_ has joined #nixos-aarch64
angerman has quit [Ping timeout: 256 seconds]
pkral has joined #nixos-aarch64
angerman has joined #nixos-aarch64
orivej has joined #nixos-aarch64
ryantrinkle has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
cole-h has quit [Ping timeout: 264 seconds]
cole-h has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-aarch64
cript0nauta has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
cript0nauta has joined #nixos-aarch64
cript0nauta has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
alp has joined #nixos-aarch64
rajivr has joined #nixos-aarch64
zupo has joined #nixos-aarch64
cript0nauta has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
cole-h has quit [Quit: Goodbye]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
zupo has joined #nixos-aarch64
andi- has quit [Ping timeout: 260 seconds]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
lopsided98 has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-aarch64
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
julm has quit [Ping timeout: 258 seconds]
julm has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 246 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
FRidh has joined #nixos-aarch64
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
andi- has joined #nixos-aarch64
zarel has quit [Ping timeout: 256 seconds]
zarel has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
Darkmatter66_ has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-aarch64
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
FRidh has quit [Ping timeout: 258 seconds]
orivej has joined #nixos-aarch64
FRidh has joined #nixos-aarch64
FRidh has quit [Quit: Konversation terminated!]
FRidh has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej_ has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Remote host closed the connection]
zarel has quit [Ping timeout: 240 seconds]
zarel has joined #nixos-aarch64
zupo has joined #nixos-aarch64
alp has joined #nixos-aarch64
zarel has quit [Quit: ZNC 1.7.5 - https://znc.in]
zarel has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cole-h has joined #nixos-aarch64
zarel has quit [Ping timeout: 264 seconds]
zarel has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos-aarch64
quinn has joined #nixos-aarch64
cript0nauta has quit [Remote host closed the connection]
<cole-h> At some point in the near future I was thinking of setting up my Rock64 with NixOS. Does anybody have or know of any relevant configuration I could peek at?
alp has joined #nixos-aarch64
<cole-h> I found https://github.com/thefloweringash/rock64-nix via https://github.com/NixOS/nixpkgs/issues/35166, but I'm wondering if it's still applicable (have yet to try it).
<{^_^}> #35166 (by cstrahan, 2 years ago, open): Rock64 SD image support
<samueldr> lopsided//98 edited it recently enough with AFAIK all good and recent information
<cole-h> Thanks, I remember finding that page previously, but forgot about it...
<samueldr> might also be another github user to look for configs, dunno if it's public
<thefloweringash> Hmm. I don’t think that repo is really relevant any more. nixpkgs has uboot now, mainline kernel mostly works, just need to set up a generic image
<samueldr> nice to have confirmation, I thought mainline must have been good
<samueldr> thefloweringash: do you know if there is a u-boot for the SPI flash that is useful?
<cole-h> Thanks for the pointer samueldr -- I've found their rock64 config: https://github.com/lopsided98/nixos-config/blob/master/machines/Rock64/
<thefloweringash> I didn’t look much past microSD booting.
<samueldr> cole-h: the "quick" setup guide is that you'll need to install u-boot on the generic sd image, and then that generic sd image should be able to boot
<samueldr> you install "in-place"
<samueldr> so rather than booting from usb and installing to /mnt, you "just" change the /etc/configuration.nix (that you'll have to create
<thefloweringash> I think USB3 on mainline only required a dtb patch as of about 5.0. Though it stopped working recently and I haven’t found the time to debug it yet.
<samueldr> if another kernel is needed, it's likely possible to cross-compile
<samueldr> (since you don't want to build on the community machine for your trustable infra :))
<cole-h> samueldr: Sorry, not grokking that installation stuff... I wouldn't be using nixos-install from a `nix-build -A .....sdImage -I nixos-config=iso.nix`, where iso.nix has the rock64Uboot stuff setup?
<samueldr> oh, does the device have an eMMC?
<samueldr> in that case yes, you could also nixos-install to the eMMC
<samueldr> but generally, the sd image has been built with the expectation that you rebuild ontop of the first generation
<cole-h> I wonder if I could install from SD or USB, but boot from an external USB drive... since SD's have such low durability
<thefloweringash> I just put uboot on a microSD and everything else on usb3
greizgh has quit [Quit: greizgh]
<thefloweringash> Start with usb2 though.
<thefloweringash> The patches for usb3 can be found at https://github.com/archlinuxarm/PKGBUILDs/tree/master/core/linux-aarch64
greizgh has joined #nixos-aarch64
<samueldr> cole-h: durability isn't even the worst part, imo, it's their (lack of) speed that is
<samueldr> I was testing things on a raspi4 yesterday and using atop all operations that ended up "laggy" were waiting on I/O
<cole-h> I guess I have more reading to do...
<samueldr> (but yes, they can end up broken by too much writing allegedly)
<cole-h> thefloweringash: Do you have your rock64 config public anywhere? Interested in how the uboot on uSD and all else on USB works
<cole-h> samueldr: Yeah, my pihole SD actually died recently because of all the logging that gets written... x)
<samueldr> cole-h: remove all partitions off an SD card, and write u-boot at the offset
<samueldr> well, write the two components at their offsets (idbloader.img, u-boot.itb)
<thefloweringash> Config is public, and here: https://bitbucket.org/thefloweringash/rock64-config/
<samueldr> cole-h: do you have an idea of how the RK3399 boot flow works?
<samueldr> or, RKwhatever
<cole-h> Nope :^)
<thefloweringash> But it’s not super interesting. u-boot goes on the card by itself and does magic extlinux stuff.
<cole-h> I had originally gotten it with the plan to set it up as a nextcloud device
<samueldr> the SoC (the CPU) has a small program built-in that will look for some "storage" devices, the SPI Flash, the eMMC, and SD card in order
<samueldr> it will look for a bootable program that it can recognize
orivej_ has quit [Ping timeout: 246 seconds]
<thefloweringash> I think the u-boot setup is so external to my config it won’t even be in that repo
<samueldr> the SoC will boot the first program it finds
orivej has joined #nixos-aarch64
<samueldr> for block devices (SD, eMMC), it looks at a particular disk offset, here it's sector 64 (512*64 bytes)
<samueldr> this, in most cases, and in the case we're talking about, ends up booting u-boot
<samueldr> u-boot, itself, is a confusing piece of tech :)
<samueldr> it's playing the roles of both a firmware (like a BIOS or UEFI) and a bootloader (grub, systemd-boot, syslinux)
<samueldr> u-boot will initialize some (most?) hardware, and then you're mostly done with Rockchip specific things
<samueldr> some defaults may end up different on a rockchip-based platform, e.g. the u-boot search order, but it's configurable
<cole-h> So I would first image the SD with ubootRock64 as described on that wiki page. If I plug in a USB that's been imaged with a custom NixOS installer, will that be automagically booted? Or am I misunderstanding?
<thefloweringash> That should work
<cole-h> I wonder if I could enable the write-lock on my SD after imaging it with the uboot...
<thefloweringash> Or do what I did and get an arm board with a miswired microSD slot that is always read only ;-)
<cole-h> Hehehe
<cole-h> Well, it's small enough that I'll have a chance to use my 2GB SD card :P
<cole-h> I wonder if I have anything smaller
orivej has quit [Quit: No Ping reply in 180 seconds.]
<samueldr> sorry, had to attend to something
<samueldr> u-boot, in its own boot order, searches for a couple strategies
<samueldr> but for our images, it searches for a partition flagged bootable, with a boot/extlinux.conf (or simply extlinux.conf file at the root)
orivej has joined #nixos-aarch64
<samueldr> another strategy it can use is search for a EFI program on an ESP, but that can get confusing fast, and there are some issues related to loading the right device FDT (.dtb)
alp has quit [Ping timeout: 272 seconds]
<cole-h> samueldr: OK, I'm about to write the stuff to my SD -- when you say to remove all the partitions, can I just do `dd if=... of=/dev/sdf ...`, or do I actually need to ensure I remove the partitions using some tool?
<samueldr> clever: nice, "whining" (asking) on the firmware repo seemed to give results https://github.com/raspberrypi/firmware/issues/1387#issuecomment-643171390
<samueldr> so in a week or two I'll be able to know what I did wrong, if it's even my fault
<samueldr> cole-h: you don't technically have to remove the partitions, but if you don't it can get confusing fast :)
<cole-h> Would that `dd` invocation not remove/corrupt the partition table?
<samueldr> the ones on the wiki page (idbloader/u-boot) won't touch the partition table
<cole-h> I see.
<samueldr> if you dd if=/dev/zero bs=1M count=8 of=/dev/... it should wipe it clean enough
<samueldr> (I don't remember how long a GPT is
<cole-h> I could also just zero the entire thing, I guess :P
<samueldr> that would also work
<samueldr> the main reason I said to remove partitions is to ensure they don't end up getting mounted and corrupting the "firmware" that is installed at an arbitrary offset
<cole-h> Ah, I see.
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
<cole-h> Oh wait I think this 2GB one was the dead one from my pihole... lol.
<samueldr> haha
<samueldr> keep it
<samueldr> it could be useful if e.g. the first few dozen MB are good
<samueldr> you could use it to host a mostly-read-only uefi implementation https://rpi4-uefi.dev/
<samueldr> that's what I'm using on a rpi3 setup, a "dead" µsd that still has enough working space for this
<samueldr> in turn, that makes the raspberry pi behave like a completely coherent and modern piece of computing
<samueldr> I can just put a usb drive with the aarch64 uefi iso
<samueldr> and install using grub
<samueldr> (on another usb device)
<cole-h> I had a spare SD that I switched it to instead :P (The SD card death happened months ago now)
<samueldr> it's, sadly, not yet 100% working on the rpi4 :(
<samueldr> though if it's dead enough, bin it in the e-waste
<cole-h> Well, badblocks doesn't say anything bad about the SD
<cole-h> I can certainly read and write
<cole-h> Guess it just got corrupted somehow, then.
<samueldr> ah, so it might simply have been filesystem corruption
<cole-h> Yep
<samueldr> which is not an SD thing, but a raspberry pi thing AFAIUI
<cole-h> Very cool...
<samueldr> allegedly its power issues can make it unreliable with sd cards, too
<clever> samueldr: nice!
<samueldr> (which is how the meme of sd cards being fiddly was born)
orivej has quit [Ping timeout: 264 seconds]
<clever> samueldr: i'm currently looking into how DPI and the pixel valves work...
<samueldr> you're in much deeper than I want to think about :)
<clever> but not for video output, but RF output!
<samueldr> raspberry pi SDR?
<clever> not exactly
<clever> have you seen this hack before? https://bellard.org/dvbt/
<samueldr> yes, but I forgot about it, so "no"
* samueldr needs to read the page
orivej has joined #nixos-aarch64
<samueldr> targeting NTSC I guess?
<clever> basically, its abusing the pixel DAC in a VGA card, to generate full digital tv signal (the whole QAM encoding)
<samueldr> oh, ATSC, that's neat
<clever> the DPI on the rpi can basically spit out an rgb888 signal (full parallel output) at 75mhz
<clever> run it thru your own DAC, and you can pull off the exact same trick
<samueldr> you're a mad lad :)
<clever> it gets even more crazy
<clever> i dont think i'm bound by normal resolution limits
<clever> so i could make the width of the frame, equal to 1 symbol period
<clever> and then i could generate images, for each byte, that are N symbols tall
<clever> and then by just tweaking the display lists, the HVS will try to render a series of rects (hardware image composition)
<clever> but, each rect is a sequence of symbols to barf out the DPI
<clever> so i can pre-generate an image for every byte, and then just tell the gfx hw to emit a specific byte
<clever> and fill a full frame up with a whole sequence of them
<samueldr> and get unlicensed transmission of data over TV signals?
<clever> or feed it thru an RF mixer to boost it up to any other frequency
<samueldr> how would reception be handled?
<samueldr> I guess *then* you need RTL-SDR or something of the like?
<clever> exactly
<clever> rx would be handled by an rtl-sdr
<clever> and tx by the DPI
<clever> the GPCLK can also be used for tuning
<clever> you would basically have 3 signals involved
<clever> 1: a constant freq, in an area like 2.4ghz for example
<clever> 2: a variable freq driven by the GPCLK (0hz->75mhz)
<clever> 3: the raw data (potentially 3 DAC channels, with a sample-rate of 75mhz)
<clever> due to nyquist, 3 would have a max toggle rate of 37.5mhz i think
<clever> and the mixer, would just mult each freq together
<clever> > 2400 * 75 * 37.5
<{^_^}> 6.75e+06
<samueldr> is it beacause of the drowsiness of nyquist? would dayquist be better?
<samueldr> (obviously that's a joke)
<clever> :D
<clever> so i can basically use GPCLK to tune up/down within a band
<clever> and DPI to then generate a signal of whatever bandwidth i want (up to 37.5mhz wide, i think)
<clever> and then #1 would set what range GPCLK can tune within
<samueldr> (for non-north-americans, nyquil/dayquil is a brand of "cold medicine")
<clever> > 75 * 37.5 / 2400
<{^_^}> 1.17188
<clever> if my undestanding of the math is right, a 1.17mhz intermediate would let you mix up into the 2.4ghz band
<clever> > 75 * 10 / 2400
<{^_^}> 0
<clever> > 75 * 10.0 / 2400
<{^_^}> 0.3125
<clever> > (75 * 10.0) / 2400
<{^_^}> 0.3125
* clever heads off to bed
Thra11 has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
orivej_ has quit [Ping timeout: 260 seconds]
FRidh has quit [Quit: Konversation terminated!]
alp has joined #nixos-aarch64
Thra11 has quit [Ping timeout: 260 seconds]
Thra11 has joined #nixos-aarch64
globin has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos-aarch64
julm has quit [Ping timeout: 258 seconds]
<mla> so what's the status of the PBP on nixos; do generic aarch64 images shipped by hydra boot with video
<mla> a few month ago when i tried; that wasn't the case; and to have a working system you needed an overlay from a oneoff gh repo
<mla> is that still the case?
<samueldr> AFAIK it's still the case, but I haven't checked in like 2 months if anything was upstreamed in the kernel
<mla> ah i see, thanks for the info
julm has joined #nixos-aarch64
alp has quit [Remote host closed the connection]
alp has joined #nixos-aarch64
alp has quit [Remote host closed the connection]
alp has joined #nixos-aarch64
alp has quit [Ping timeout: 272 seconds]
* colemickens really wants to bump up rpi4 bits