v0|d has quit [Remote host closed the connection]
t184256 has left #nixos-aarch64 [#nixos-aarch64]
h0m1 has quit [Ping timeout: 252 seconds]
h0m1 has joined #nixos-aarch64
cptchaos83 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cptchaos83 has joined #nixos-aarch64
<DigitalKiwi> that one breaks quite frequently :(
<clever> DigitalKiwi: due to that, i cant update my laptop
<clever> DigitalKiwi: and because i cant update my laptop, builtins.isPath doesnt exist, so i cant nixops deploy my nas, lol
<clever> cascade!
<DigitalKiwi> @infinite_scream
<clever> (i could just shove a new nix into PATH, or not install plex)
* craige is toying with the idea of Enlightenment as a default phone shell.
<clever> and yes, home-manager would let me put problems off until later :P
<samueldr> craige: that would be fun
<clever> crazy idea, get ratpoison to work on mobile-nixos! lol
<samueldr> meh
<samueldr> requires a mice
<samueldr> oops
<clever> its entirely driven by keystrokes, have fun! lol
<samueldr> requires a keyboard
<clever> yep, lol
<samueldr> already have awesome instead
<clever> thats why its a crazy idea
<craige> It's not totally crazy - as most of the Enlightment libraries are use in Tizen for just that purpose.
<samueldr> and even crazier
<samueldr> no mappings at all!
<craige> and the lead developer works at Samung, doing Tizen using E libraries.
<samueldr> no keyboard nor mouse mappings for awesome on my mobile-nixos demo
<clever> samueldr: that reminds me, you can compile QT apps to ios and android
<samueldr> no I can't
<clever> (i have in the past)
<samueldr> yeah :)
<clever> samueldr: but since there is no window manager, all windows open fullscreen, and there is no alt+tab to cycle between them
<clever> so you must implement your own window manager, within the app, or limit yourself to 1 window and composite widgets within it
<clever> the other major issue i saw, is just how things scroll
<clever> on android, you drag an element in the list, and the whole list moves with your finger, in the direction your moving it
<clever> but on any desktop platform, you drag a tiny thing in the scrollbar, and the elements move the oposite direction your moving the thing
<clever> and when you just blindly throw a desktop QT app into mobile, it carries over desktop scrolling behavior
<samueldr> yeah
<clever> mobile-nixos will likely have that issue too
<samueldr> kind of
<clever> it acts like a desktop, not a mobile app
<samueldr> but it got better in the meantime
<samueldr> and not really, in the end
<samueldr> since I don't prescribe an interface
<samueldr> so, mobile-nixos with X11 with toolkits that don't do touch, yes
<samueldr> otherwise, no
<clever> the gui toolkits have to be entirely redone, and understand that they are on a mobile device
<samueldr> GTK3 apps are well-behaved
<clever> oh yeah
<samueldr> they already support touch right mostly
<clever> remember what i said about the old old old android simulator?
<samueldr> except for the huge bugs
<samueldr> like gtk3 menus not being touchable at all
<clever> what if that could be revived, as an app within mobile nixos?
<samueldr> or dismissing a gtk3 menu by a click on the root window crashing X11
<samueldr> clever: anbox
<clever> so you could run pure dalvik apps, under mobile nixos
<clever> without any emulation overhead
<clever> i got pulled away for devops stuff, lol
<samueldr> :)
<clever> re-writing a 2mb long bash script as a haskell binary
<clever> somebody used lib.concatMapStringsSep, instead of a bash for loop
<clever> which worked fine, until the loop size grew too big to fit within an env var, lol
<samueldr> lol
<clever> samueldr: there is also a game i sometimes play, that refuses to even start if usb debugging mode is enabled on the phone
<clever> i wonder what it will do in the presense of anbox...
<clever> i'll have to experiment with it tomorrow, its almost midnight here
<craige> Could always brand it "Enlightened NixOS Mobile" ;-)
<samueldr> oof, almost lost a black sd card on my black desk
<samueldr> again
<samueldr> reason 4096 that sd cards are terrible... they're darn too tiny
<samueldr> well, micro SD are
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
ris has quit [Ping timeout: 258 seconds]
zupo has joined #nixos-aarch64
tilpner has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t184256 has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 246 seconds]
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
<clever> $ anbox session-manager
<clever> [ 2019-11-04 12:31:03] [session_manager.cpp:133@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded
orivej has quit [Ping timeout: 268 seconds]
<clever> virtualisation.anbox.enable ahh
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 246 seconds]
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 246 seconds]
ryantrinkle has quit [Ping timeout: 246 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
ryantrinkle has joined #nixos-aarch64
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has joined #nixos-aarch64
vika_nezrimaya has joined #nixos-aarch64
<samueldr> branching off of a previous discussion
<samueldr> SPI bus speed... how does it work?
<samueldr> let's imagine I tried to use a raspberry pi (1, 2, 3 ?) to drive an sd card in spi mode
<clever> samueldr: the bus master will just toggle the clock line at a given speed, and data is then moved on either the rising or falling edge of the clock
<clever> samueldr: there are ~3 ways to drive an SD card with an rpi, using either of the onboard mmc controllers (it has 2), or using the spi bus in master mode
<samueldr> clever: the raspberry pi IS the sd card in my situation
<samueldr> emulating an SD card on another (black box) device
<clever> samueldr: ah, then you want to configure the spi device for slave mode
<clever> and the incoming clock will cause bytes to be shifted into the fifo, from the data pins
<clever> then you can read things, and react to them
<samueldr> great
<samueldr> thinking I could still try and build that first using SPI
<samueldr> then evaluate the needs for better perfs
<clever> the specs say it will start at 10khz, which is pretty slow
<clever> and only if the "sd card" claims to be faser, will the host go faster
<samueldr> it needs 25mhz for sd card AFAICT
<samueldr> ah
<clever> 25mhz is just the highest speed that mode can support
<samueldr> right
<samueldr> then probably no issues
<samueldr> tried to find the info about the raspberry pi, but couldn't
<clever> ack!
<samueldr> ack?
<clever> `The Pi only supports being the SPI master`
<samueldr> ugh!
<clever> `The Pi does have a peripheral which is documented to support a SPI slave mode. No one has managed to get it to work`
<clever> > The Pi has one hardware peripheral which supports I2C/SPI in slave mode. It works in I2C slave mode. It does not work in SPI slave mode (rather no one has managed to get it to work, of course you are welcome to try and may succeed where others have failed.)
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):270:59
<clever> samueldr: you could have an AVR uC take the role of spi slave, and then buffer some data before sending it to the rpi
<clever> samueldr: the wiki also briefly mentioned, that the "sd card" can stall and say "im busy, keep waiting"
<clever> so the avr can just do that, until the rpi has an answer
<samueldr> yeah :/
<samueldr> though at that point I can just plug the AVR to my computer
<samueldr> and forgoe the pi entirely
<samueldr> the pi was for rapidly prototyping it in a handy all-in-one package
<clever> main benefit of staying with the pi, is the parallel gpio
<clever> you could have an 8bit wide bus, between the avr<->rpi
<clever> so you dont have to use as high of a clock rate
<clever> See pages 102 and 160 SPI/BSC SLAVE BCM2835 ARM Peripherals.
<samueldr> (though something else entirely)
<clever> eeemu-spi looks better for messing with the rpi4's boot spi
<clever> it would let you sniff what its doing as it boots, replace the flash, and make it bigger/smaller, and see what breaks
<samueldr> not sure where the limitations stand on SPI flash
<samueldr> e.g. could you simply use a bigger one and things just work?
<clever> possibly
<clever> just have to swap it out, and then use recovery.bin to "unbrick" it
Thra11 has quit [Read error: Connection reset by peer]
FRidh has quit [Quit: Konversation terminated!]
vika_nezrimaya has quit [Remote host closed the connection]
Thra11 has joined #nixos-aarch64
Thra11 has quit [Quit: WeeChat 2.5]
ris has joined #nixos-aarch64
h0m1 has quit [Quit: WeeChat 2.6]
h0m1 has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
pbb has quit [Client Quit]
pbb has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> samueldr: I've still not managed to remove WP from my chromebook, even with disconnecting the battery :/
<samueldr> :/
<samueldr> couldn't say, I don't remember from when I did the things, just remember I had to follow the guide both times
orivej has joined #nixos-aarch64
THFKA4 has quit [Ping timeout: 246 seconds]
THFKA4 has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 240 seconds]
<clever> samueldr: oh, i forgot to check an fpga site i frequent
<clever> samueldr: https://www.fpga4fun.com/SD.html !!
<samueldr> wrong way!
<samueldr> though a good start I guess
<clever> but it still gives you an overview of the internals, and you can just go backwards
<samueldr> I really want to try that at some point
<samueldr> there's just soooo much to learn in-between
<samueldr> and looks like there's not many shortcuts
<clever> samueldr: have you seen iverilog and gtkwave yet?
<samueldr> nope
<clever> samueldr: iverilog can turn verilog code (with some turing complete side-scripting) into an ELF binary
<clever> samueldr: you can then run that, to simulate the verilog having been ran in an fpga, and it will create waveform files
<clever> samueldr: gtkwave can then view those, similar to a scope or logic analyzer
<clever> that lets you simulate stuff, entirely on linux, with open-source tools
<samueldr> neat
<samueldr> I really need to look at basic steps first I guess
<samueldr> hmmm, there's also another alternative
<samueldr> >> Glasgow is a tool for exploring digital interfaces
<samueldr> just remembered how whitequark has that fun-looking thing
<clever> [clever@amd-nixos:~/apps/audiorig]$ nix-locate iverilog
<clever> verilog.out 61,232 x /nix/store/1wiwbvvp44i1djaxcjsvzxnpy14dbx8i-iverilog-2016.05.21/bin/iverilog
<samueldr> clever: ^ look in the subfolders
<clever> [clever@amd-nixos:~/apps/audiorig]$ gist -p testbench.v
<clever> samueldr: the lines starting with $ and # only work in iverilog
<clever> [clever@amd-nixos:~/apps/audiorig]$ ./iverilog/bin/iverilog testbench.v wiznet_control.v wiznet_parallel.v
<clever> [clever@amd-nixos:~/apps/audiorig]$ ls -ltrh
<clever> -rwxr-xr-x 1 clever users 35K Nov 4 19:51 a.out
<clever> [clever@amd-nixos:~/apps/audiorig]$ ./a.out
<clever> -rw-r--r-- 1 clever users 25M Nov 4 19:52 simple.vcd
ryantrinkle has joined #nixos-aarch64
<samueldr> >> Revision C is the latest revision and is being prepared for mass production. It provides 16 I/O pins with a maximum frequency of approx. 100 MHz
<samueldr> >> Maximum frequency achievable in practice depends on many factors and will vary greatly with specific interface and applet design. 24 MHz non-DDR can be achieved for most interfaces with minimal effort.
<clever> [clever@amd-nixos:~/apps/audiorig]$ nix-build '<nixpkgs>' -A gtkwave -o gtkwave
<samueldr> I think this seals it, glasgow it'll be, once ready
<clever> [clever@amd-nixos:~/apps/audiorig]$ ./gtkwave/bin/gtkwave simple.vcd
<clever> samueldr: https://imgur.com/a/dJnf9tU
<clever> samueldr: see the image i linked?
<samueldr> yes