#flex-dev Logs

Jun 20 2025

#flex-dev Calendar

04:35 AM Tom_L: morning
05:03 AM JT-Cave: morning
05:35 AM JT-Cave: hal io button on the todo list... time to ride before it gets hot
07:01 AM Tom_L: 95F today
07:30 AM rdtsc-wk: morning. Ya know Tom, even after using gparted to blank the SD card and yet again having a successful burn, when I re-opened it in Linux (Manjaro/Mabox) the ROOTFS partition was the same size as the data. At least it wasn't "corrupt"
07:30 AM rdtsc-wk: was able to resize it to the remaining size
07:30 AM rdtsc-wk: so it should boot, hopefully
07:38 AM Tom_L: won't it resize a partion on the first boot anyway?
07:38 AM Tom_L: at least all my backup images have been full size
07:43 AM Tom_L: i found you really only need to blank the first few sectors
07:43 AM Tom_L: enough to destroy the boot record
07:51 AM * rdtsc-wk thinks this guy is a genius... https://www.youtube.com/watch?v=6CfLC5xVy90
07:55 AM Tom_L: wasn't that an early printer usb connector?
07:57 AM Tom_L: adding a couple more gnd to the ribbon
08:06 AM Tom_L: ok, 4 gnd wires now
08:06 AM Tom_L: that should be plenty
08:38 AM Tom_L: JT-Cave, no module spidev found.. how do i add libs to python3?
08:45 AM Tom_L: i don't think it will work for this application anyway
08:50 AM rdtsc-wk: Tom, in Debian, look for an apt package: https://tracker.debian.org/pkg/spidev might be called spidev or python3-spidev, etc
08:50 AM rdtsc-wk: can try apt search spidev
08:51 AM Tom_L: i don't think setting the clock there is permanent so i'm looking for an alternate way
08:51 AM Tom_L: there's a file but it has to be recompiled
08:52 AM Tom_L: i'm not sure i'm up for that
08:52 AM Tom_L: the clock rate is 250Mhz and i'm not sure what the default spi clock is but i think it's pretty high
08:54 AM rdtsc-wk: think the default is 20MHz. maybe try: https://github.com/cpb-/spi-tools
08:55 AM Tom_L: i'm slowly running out of options
08:55 AM Tom_L: the cable has 4 GND now. that should be plenty
08:57 AM rdtsc-wk: should be able to follow the instructions there to make & install on the rpi5, then run the command to set the spi speed... perform a capture, and the result should be obvious
08:57 AM rdtsc-wk: "Should" heheh
08:58 AM rdtsc-wk: if going from 20MHz to 1MHz, the capture should look 20x larger
08:58 AM Tom_L: i find it odd the rpi4 worked on the rasbpi os but not debian12
08:59 AM rdtsc-wk: at least for me, the Rpi5 is a very quirky beast
08:59 AM Tom_L: setting the wifi is solid now once i figured that
09:00 AM rdtsc-wk: on the forums, found a thread by "unknown" which has all of the collective updates and work-arounds for the rpi5 image
09:00 AM rdtsc-wk: nothing major, but did include a section on network manager
09:01 AM rdtsc-wk: hopefully someone will release a newer rpi5 image and we'll all be golden
09:02 AM Tom_L: something to pass the time until JT makes something for me to break :)
09:03 AM Tom_L: i might try the rpi4 since i think it's easier to set the spi clock on it
09:04 AM Tom_L: i got the same result with the 'improved' cable
09:15 AM Tom_L: i get errors compiling that util
09:15 AM Tom_L: he's using c99 and it doesn't like that
09:16 AM JT-Cave: Tom_L, it's python3-spidev
09:16 AM Tom_L: i'm wondering if i set it with python though if it will stick
09:18 AM JT-Cave: 21 miles today
09:18 AM Tom_rpi5: http://paste.debian.net/1381300/
09:19 AM Tom_L: i won't be going that far but i'm sure i'll be wore out.. taking the girls on a 'field trip'
09:20 AM JT-Cave: the heater gets turned on here for a week or more starting tonight
09:22 AM Tom_L: invalid char in python3-spidev '-'
09:23 AM JT-Cave: trying to install it?
09:23 AM Tom_L: it might help if i did :D
09:25 AM Tom_L: python3-spidev installed ok
09:26 AM * JT-Cave starts his chicken day
09:26 AM Tom_L: ok i got it to run at least
09:35 AM JT-MShop: cool
09:36 AM Tom_L: i think the speed change goes away when you quit python though
09:36 AM Tom_L: on the close() command
10:26 AM JT-MShop is now known as JT-Shop
11:26 AM JT-Cave: nap time
12:57 PM JT-Shop: got the PO for the grinder... I guess I better deliver it soon
01:12 PM rdtsc-wk: sounds like you've already got a jump on it, now to just pull the trigger
01:48 PM Tom_L: i ran a simple spi loopback test and it's returning what was sent
01:49 PM Tom_L: https://github.com/rm-hull/spidev-test
01:54 PM Tom_rpi5: lsmod | grep -i spi
01:54 PM Tom_rpi5: spidev 49152 0
01:54 PM Tom_rpi5: spi_bcm2835 49152 0
01:54 PM Tom_rpi5: spi_dw_mmio 49152 0
01:54 PM Tom_rpi5: spi_dw 49152 1 spi_dw_mmio
01:54 PM Tom_rpi5: ls -l /dev/spi*
01:54 PM Tom_rpi5: crw-rw---- 1 root spi 153, 0 Jun 20 13:34 /dev/spidev0.0
01:54 PM Tom_rpi5: crw-rw---- 1 root spi 153, 1 Jun 20 13:34 /dev/spidev10.0
01:55 PM Tom_L: wonder if it's a root privilege thing
01:59 PM Tom_L: nope, already a member
02:01 PM Tom_L: max speed is 500Khz
05:08 PM JT-Shop: got spi working?
05:12 PM Tom_L: using a test program but not with mesaflash yet
05:12 PM Tom_L: i did a loopback test
05:13 PM Tom_L: http://paste.debian.net/1381335/
05:13 PM Tom_L: so the hardware is responding
05:14 PM Tom_L: worked on the cable a bit so now it has 4 GND wires
05:14 PM Tom_L: and i know it's wired right because i've used it in the past
05:14 PM Tom_L: and i've beep tested it 2-3 times
05:15 PM Tom_L: i have a rpi os sd i'm gonna plug in and try
05:17 PM Tom_L: that was the wrong paste
05:17 PM Tom_L: http://paste.debian.net/1381337/
05:18 PM Tom_L: i had the loopback wire unplugged on the first one
05:20 PM JT-Shop: C8 is back home and they could not find anything...
05:22 PM JT-Shop: plugged in the charger and it started at 1 led (there are 4 leds from low to full)
05:28 PM Tom_L: huh
05:29 PM Tom_L: gonna work on this this evening a bit i think but busy right now
05:29 PM JT-Shop: I'm just making sure the battery is fully charged and I have a watt meter on the charger so once it's full I'll be able to see if the charger kicks back in
05:30 PM JT-Shop: going to echo bluff state park tomorrow
05:30 PM Tom_L: have fun
05:30 PM Tom_L: in the C8?
05:30 PM JT-Shop: yup
05:30 PM JT-Shop: battery is 100% and they have a fancy battery checker
05:31 PM Tom_L: lead acid or new tech?
05:32 PM JT-Shop: I'm not sure, I did see how to get to it though
05:33 PM Tom_L: front?
05:34 PM JT-Shop: looks like it's wet and yes it's in the front
05:41 PM Tom_L: i think i'll load the stock rpi os and put mesaflash on it and see what happens
05:43 PM Tom_L: you gonna get one to mess with?
05:44 PM JT-Shop: thinking about it... I just ordered an air over hydraulic bridge jack for the lift
05:45 PM Tom_L: what's that do?
05:45 PM JT-Shop: https://wildfirelifts.com/products/wildfire-4500-lb-jack-air-over-hydraulic-bridge-jack
05:47 PM Tom_L: nice
05:49 PM JT-Shop: I debated different options and the bridge jack is the safest way to lift the car
05:49 PM JT-Shop: and best of all the grinder paid for that jack :)
05:50 PM Tom_L: and you can still use it
05:50 PM JT-Shop: yup
05:50 PM Tom_L: pair or just one end?
05:51 PM JT-Shop: just one end
05:51 PM Tom_L: one of their pics shows 2 on a 4x
05:51 PM JT-Shop: it's on rollers
05:51 PM Tom_L: yeah i figuerd that
05:51 PM Tom_L: same as the trays
05:52 PM Tom_L: is it hard to move one in front of the other if needed?
05:52 PM Tom_L: tray vs jack
05:52 PM JT-Shop: oh yeah the can-am is on two jacks
05:52 PM JT-Shop: the jack tray is easy to move, the bridge jack is 250 lbs
05:53 PM JT-Shop: oh the gmc truck is on two bridge jacks too
05:56 PM Tom_L: missing libmd for mesaflash on the stock pi os
05:56 PM Tom_L: won't build
05:56 PM JT-Shop: did you install all the dependencies for mesaflash
05:57 PM Tom_L: yes
05:57 PM Tom_L: 2 libs
05:57 PM Tom_L: i have notes on those
05:57 PM Tom_L: and it's in his readme
05:58 PM Tom_L: i may have missed one
05:59 PM Tom_L: that's better
06:03 PM Tom_L: they keep moving the friggin config.txt around
06:04 PM Tom_L: first /boot/ then /boot/broadcom/ now /boot/firmware/
06:04 PM Tom_L: make up your fckin mind!
06:06 PM xxcoder: ugh hate it when something is heavily changed
06:07 PM xxcoder: reminded me of that firmware where they changed basically all parameter names
06:07 PM xxcoder: and there was no translation chart lol
06:09 PM Tom_L: and of course i forgot to copy my notes to the thumbdrive before switching sd cards
06:16 PM JT-Shop: I like storing my notes on the nas
06:21 PM Tom_L: this os copy wanted me to enable the spi kernel module
06:21 PM Tom_L: the lcnc image didn't
06:21 PM Tom_L: i'm not sure how to do that manually on it
06:21 PM Tom_L: we will make a copy of the config.txt and see
06:31 PM * JT-Shop calls it a day
06:34 PM Tom_L: http://paste.debian.net/1381355
06:35 PM Tom_L: using the 'official' rasbpy os
06:58 PM rdtsc: to run a command from within linux python, first add a import os to the top, then later, something like os.system("sudo ifconfig eth0 up")
06:59 PM rdtsc: replacing the ifconfig quote with the whole mesaflash line
07:00 PM rdtsc: that way you should be able to set the spi speed, and run the command before it expires
07:00 PM rdtsc: mesaflash may override the speed though... dunno
07:01 PM Tom_L: 8mhz i think he said
07:01 PM rdtsc: worth a try
07:01 PM Tom_L: he couldn't remember
07:01 PM rdtsc: I wouldn't be surprised if he adds that as a command-line parameter :)
07:03 PM Tom_rpi5: http://paste.debian.net/1381358/
07:03 PM Tom_L: that's the file
07:03 PM Tom_L: the main bits of it anyway