<clever> SD cards work with a command/response scheme. For example, command "17" allows reading one sector (512 bytes) of the card memory. All communication is synchronous to a clock provided by the host (FPGA in our case). The clock should run below 400KHz at startup and can go faster after some card initialization.
<samueldr> I'm not looking into that right now though :)
<samueldr> that'll be for much later, I guess
<clever> 2019-11-04 19:59:41 < emily> if you want an open source FPGA toolchain currently you should buy an iCE40 or ECP5 FPGA
<clever> 2019-11-04 20:00:07 < emily> ofc, there is support in open source software for certain tasks (flashing itself, yosys has some existing Xilinx support to use with Vivado, etc.)
<clever> samueldr: if you want to avoid the 30gig blobs for other fpga dev
<samueldr> haha, the glasgow is based on the iCE40
<samueldr> so looks like that's about right
<samueldr> if you haven't looked, clever, the glasgow uses a thing that takes the python applet and compiles them for the FPGA
<clever> ah, weird
<clever> i would use clash if i was to do more fpga today
<clever> it does everything with haskell
orivej has quit [Ping timeout: 265 seconds]
LnL has quit [Ping timeout: 240 seconds]
LnL has joined #nixos-aarch64
LnL has joined #nixos-aarch64
LnL has quit [Changing host]
ris has quit [Ping timeout: 258 seconds]
h0m1 has quit [Ping timeout: 276 seconds]
h0m1 has joined #nixos-aarch64
<samueldr> I think we need a proper term to differentiate between actual cross-compilation and building through qemu-user
<craige> qemulation?
<samueldr> it's more about the fact it's factitious nativebuilding
<samueldr> rather than actual cross-compilation
cptchaos83 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cptchaos83 has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 265 seconds]
ryantrinkle has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 265 seconds]
zupo has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Acou_Bass has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
sigtrm_ has quit [Ping timeout: 268 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has joined #nixos-aarch64
zupo has joined #nixos-aarch64
sigtrm has joined #nixos-aarch64
zupo_ has joined #nixos-aarch64
zupo has quit [Ping timeout: 276 seconds]
sphalerite has quit [Remote host closed the connection]
sphalerite has joined #nixos-aarch64
sphalerite has quit [Client Quit]
sphalerite has joined #nixos-aarch64
sphalerite has quit [Client Quit]
sphalerite has joined #nixos-aarch64
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 276 seconds]
tilpner_ has joined #nixos-aarch64
tilpner has quit [Ping timeout: 276 seconds]
tilpner_ is now known as tilpner
sigtrm has quit [Ping timeout: 265 seconds]
zupo has joined #nixos-aarch64
sigtrm has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andi-> Qcompiling?
<gchristensen> would be nice if we could get the Q to help us change th laws of physics to compile faster
<andi-> indeed. I'd like to get a copy of the binary cache +5y from now. Thanks.
<gchristensen> +1
<gchristensen> inb4 it suppotrs 18 architectures and takes up 250pb
ryantrinkle has joined #nixos-aarch64
<samueldr> this is fun and hard to find documentation for
<samueldr> "ERROR: Operation Denied" at the bootloader
<samueldr> no idea what it means
<samueldr> though once I flashed TWRP it went away
<gchristensen> nice.
<samueldr> seems to not be an issue at all in the end
<samueldr> simply that everyone seeing this has *also* soft-bricked their devices
orivej has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 268 seconds]
<samueldr> :/ don't know if my wiring is wrong device not configured right or the system not outputting to serial
<samueldr> using TWRP and default roms
<samueldr> so it's possible neither output to tty
<samueldr> okay, so fastboot oem uart enable does add console=ttyMSM0,115200,n8
<samueldr> looks like I need to break out the salaea clone
THFKA4 has joined #nixos-aarch64
THFKA4 has quit [Changing host]
<samueldr> great news, the information is not entirely wrong
<samueldr> pulseview sees the UART just right
<samueldr> (read in the green bubbles, Context u:object_r:perfetto_traces_data etc)
<samueldr> :/ shows up fine in the logic analyzer
<samueldr> nothing in picocom
vika_nezrimaya has joined #nixos-aarch64
zupo has joined #nixos-aarch64
<samueldr> thinking maybe the length of the serial cable's wires could affect something here
<samueldr> though the serial cable is a known good one, from adafruit (through newark)
<samueldr> or the other possibility I'm thinking of is I'm somehow using the wrong ground reference
<samueldr> but tried both
<samueldr> and it worked with the analyser
<samueldr> picocom's parameters match the analyser's
zupo has quit [Ping timeout: 240 seconds]
zupo has joined #nixos-aarch64
orivej has quit [Ping timeout: 265 seconds]
<samueldr> [ 2314.951449] c6 581 mdss_fb_set_backlight: backlight sent to panel :0
<samueldr> success!
Thra11 has quit [Ping timeout: 240 seconds]
<samueldr> used one with shorter wires
<samueldr> (and for anyone trying this: it *is* orientation dependent)
<samueldr> (SBU1 and SBU2 will be switched around otherwise)
<samueldr> interesting!
<samueldr> when the device is powered off, you need to hold the power button to turn it on
<samueldr> it's all software based
<samueldr> the UEFI starts with a short press
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has quit [Quit: Konversation terminated!]
zupo has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
<samueldr> just double checked and it does not want to work with the "known good" serial, so likely that
<clever> samueldr: if you dont care about serial from pc->phone, you can tie the rx pin to both SBU1 and SBU2
<samueldr> hm?
<clever> oh wait, no
<samueldr> ah
<clever> then its a loopback
<samueldr> yeah
<clever> so the phone gets all of its output back in
<clever> would need diodes
<samueldr> though the "cable" is easily identifiable to put in the right way around
tilpner_ has joined #nixos-aarch64
<clever> better option, is to detect which way around the plug is (how does usb-c do it?) and then mosfet things around
<samueldr> type-c does it through a particular pin pair
<samueldr> but eh
<samueldr> this requires minimal soldering
<samueldr> and should be doable without at all by picking the right UART
tilpner has quit [Ping timeout: 276 seconds]
<samueldr> it's amazing to see that the battery icon thingy on android is just an android system
<samueldr> still, something is off with my setup
<samueldr> sometimes the uart hangs
<samueldr> thinking it's likely the new cheapo uart
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> *definitely* the UART used is not good
<samueldr> it wouldn't work
<samueldr> until I did a plug in-out cycle from usb
<samueldr> popped out the plastic covers and soldered the pins on the type-c breakout board since they would get off easily
<samueldr> and I *think* ground not having a good connection could have been an issue
<samueldr> craige: pretty much confirmed that the instructions are good, though it could happen that some serial adapters will not work right
<craige> :-)
<samueldr> and a serial thingy like the "6 Pin MICRO USB" one here https://www.ebay.ca/itm/USB2-0-to-TTL-UART-5-6PIN-Module-Serial-Converter-CP2102-FT232-Case-ATF/263458028413?hash=item3d57527b7d:m:mSehCHb2iuWvgsNZ1RrgG0g
ris has joined #nixos-aarch64
<samueldr> once I circle back to porting to walleye, I'll be able to better debug issues
<craige> Nice.
orivej has joined #nixos-aarch64
<samueldr> so, what I've learned today is great, that logic analyser and FLOSS is amazing
<gchristensen> nice!!
<samueldr> if you missed the picture, gchristensen https://stuff.samueldr.com/screenshots/2019/11/20191105142702.png
<gchristensen> ooooo!!!
<samueldr> a cheap analyser, a clone apparently (didn't know at purchase time) and software already in nixpkgs
<gchristensen> wow!!
<gchristensen> :D
<samueldr> just had to tag the right lines TX and RX
<samueldr> then add UART analysing
<samueldr> the software is pulseview
<craige> Big wins :-)
<samueldr> I wasn't *that* surprised that it worked
<samueldr> but surprised that it worked without knowing much about it all
orivej has quit [Ping timeout: 240 seconds]
pbb has quit [Remote host closed the connection]
fooker has joined #nixos-aarch64
pbb has joined #nixos-aarch64
tilpner_ has quit [Remote host closed the connection]
tilpner_ has joined #nixos-aarch64
misuzu has quit [Quit: leaving]
misuzu has joined #nixos-aarch64