*** tpb has joined #tomu | 00:00 | |
*** CarlFK has joined #tomu | 00:35 | |
*** emeb has quit IRC | 01:24 | |
*** emeb has joined #tomu | 01:29 | |
CarlFK | im hacking on https://github.com/im-tomu/fomu-hardware/blob/master/hacker/fomu-jig.svg | 02:44 |
---|---|---|
tpb | Title: fomu-hardware/fomu-jig.svg at master · im-tomu/fomu-hardware · GitHub (at github.com) | 02:44 |
CarlFK | I want to snug up the hole the fomu sits in | 02:45 |
CarlFK | measuring a fomu, I get 13.00 mm | 02:46 |
CarlFK | I want to type that into inkscape, but because there is scale:3.54331 I have to ... divide by that? | 02:46 |
CarlFK | anyone know how to scale everything so that I can type 13.00? | 02:46 |
CarlFK | 4.872 * 3.54331 = 17.26300632 ?! what's that number | 03:12 |
*** craigo has joined #tomu | 03:34 | |
CarlFK | never mind all that. I'm not sure what I was looking at, but numbers are now the ones I want | 03:56 |
*** emeb has quit IRC | 04:04 | |
*** CarlFK has quit IRC | 06:12 | |
*** rohitksingh has quit IRC | 06:49 | |
*** craigo has quit IRC | 06:52 | |
*** CarlFK has joined #tomu | 08:07 | |
MadHacker | CarlFK: Working in pixels vs. mm? | 08:18 |
*** cedric has quit IRC | 10:00 | |
*** cedric has joined #tomu | 10:00 | |
*** cedric has joined #tomu | 10:00 | |
alexhw | CarlFK: I just did a programming jig PCB design two days ago perhaps it is usefull for you: https://github.com/usbalex/fomu_programming_jig It is for the hacker version. I don't know if there are differences in the testpoints for the production version. Also I'm using quite large pogo pins (1.37 mm diameter), so I had to space out the MISO and RST pins slightly from the MOSI pin to fit. | 11:42 |
tpb | Title: GitHub - usbalex/fomu_programming_jig (at github.com) | 11:42 |
alexhw | I made the cutout is .25mm larger than the fomu on each side. | 11:43 |
MadHacker | xobs: Did you chase crowd supply for me or something? EVT just turned up. :) | 12:22 |
xobs | MadHacker: hooray! | 12:46 |
*** deltab has quit IRC | 12:48 | |
MadHacker | OK, so, good news, board turned up, power light is on when plugged into a pi. Bad news, fomu-flash hangs with just -r. | 12:48 |
MadHacker | (stuck in spi_wait_cs_idle line 971, fresh checkout) | 12:49 |
MadHacker | I've got the SPI interface on the pi enabled in /boot/config.txt | 12:50 |
MadHacker | Anything else required? | 12:50 |
xobs | MadHacker: that might be expected. Try again? | 12:51 |
xobs | Try -i | 12:51 |
xobs | (admittedly I recently modified it to work better with the test jig...) | 12:52 |
MadHacker | Tried again a few times, and with another reboot. Actually tried with -i already too, sorry - was mostly trying with -i rather than -r in fact. | 12:52 |
MadHacker | Does it sit an unintuitive way on the pi or anything? I'm guessing not from the power LED working, but just in case... | 12:53 |
xobs | The spi interface in config.txt shouldn't matter, since it bit bangs it regardless. | 12:53 |
MadHacker | Ah, the README.md on fomu-flash mentions it. | 12:53 |
xobs | (the mosi and miso lines swap direction depending on whether you're talking to the fpga or the spi flash) | 12:53 |
*** xkapastel has joined #tomu | 12:54 | |
MadHacker | Both -r and -i hand on the same line. | 12:54 |
MadHacker | (just tried again) | 12:54 |
xobs | You could try loading foboot with "fomu-flash -f evt-top.bin" | 12:54 |
MadHacker | Also tried that. :/ | 12:55 |
MadHacker | I'll break out a meter in a minute and start checking out the usual suspects. | 12:55 |
xobs | https://github.com/im-tomu/foboot/blob/master/releases/v1.9.1/evt-top.bin | 12:55 |
tpb | Title: foboot/evt-top.bin at master · im-tomu/foboot · GitHub (at github.com) | 12:55 |
MadHacker | Was just in case it was something obvious. | 12:55 |
MadHacker | I rebuilt top.bin from the foboot sources and was trying that. | 12:55 |
MadHacker | Think it's hanging in the same place anyway though. | 12:55 |
*** deltab has joined #tomu | 12:56 | |
xobs | Try the latest foboot too. | 12:56 |
*** ademski has joined #tomu | 12:57 | |
MadHacker | OK. Grabbed that evt-top.bin, ./fomu-flash -f evt-top.bin hangs, backtrace just says:- | 12:59 |
MadHacker | spi_wait_cs_idle (spi=0x282b8) at spi.c:971 | 12:59 |
MadHacker | /home/jamie/fomu-flash/spi.c:971:20986:beg:0x132a4 | 12:59 |
MadHacker | So, same. :( | 12:59 |
MadHacker | Doesn't enumerate on its USB port either, although I guess on an EVT that's not unexpected. | 13:00 |
MadHacker | EPROM looks like it has "OK" in pencil on it. :D | 13:00 |
xobs | Try just adding a "return" to https://github.com/im-tomu/fomu-flash/blob/c24ffda85ba5d2a11cee0358831930fbd16c94cc/spi.c#L945 | 13:02 |
tpb | Title: fomu-flash/spi.c at c24ffda85ba5d2a11cee0358831930fbd16c94cc · im-tomu/fomu-flash · GitHub (at github.com) | 13:02 |
MadHacker | Hangs before it gets there; the hang is from spi_wait_cs_idle called in spiInit() at line 989-ish. | 13:08 |
MadHacker | Patching that out just gives all zeroes returned. | 13:08 |
MadHacker | If it weren't conspicuously perched on the pi and with a glowy LED on it, I'd swear it just wasn't plugged in. | 13:10 |
MadHacker | (I did check!) | 13:10 |
xobs | They didn't do something silly like load the SPI flash in upside-down, did they? Pin 1 should be facing the RESET button. | 13:16 |
MadHacker | Nah, it's in the right way. 3.3v rail is OK. 5v rail is OK. | 13:17 |
MadHacker | At this point, I'm going to have to break out a logic analyser I suspect. :/ | 13:17 |
MadHacker | Ah, wait. OK. I think I know what's going on. This is a Pi 4. | 13:20 |
MadHacker | You worked on a pi 1/2/3, yeah? | 13:21 |
xobs | Yeah... | 13:21 |
xobs | I haven't seen a Pi 4 yet. | 13:21 |
MadHacker | OK. The Pi 4 has more SPI ports natively. Maybe one of them is playing silly buggers. | 13:21 |
xobs | Probably the GPIO mapping is different and it's not being handled correctly :-/ | 13:22 |
MadHacker | Some of the problem is easy, then, GPIO base is now at 0xFE000000. Still doesn't work though. Hm. | 13:26 |
MadHacker | The pull-up/downs work differently too. | 13:27 |
MadHacker | OK, patched that. | 13:36 |
MadHacker | Works./ | 13:36 |
MadHacker | xobs: https://github.com/RPi-Distro/raspi-gpio/blob/master/raspi-gpio.c#L474 - you need that instead of your pull up/down code, and to change the base address to 0xFE000000. | 13:38 |
tpb | Title: raspi-gpio/raspi-gpio.c at master · RPi-Distro/raspi-gpio · GitHub (at github.com) | 13:38 |
MadHacker | Otherwise, it's fine. | 13:38 |
xobs | MadHacker: Thanks, mind if I integrate that? | 13:41 |
MadHacker | That's not my code, it's part of the rpi distro. | 13:42 |
MadHacker | But please do. Saves me some hassle. :) | 13:42 |
MadHacker | I'll throw you a diff in a minute if you like instead. | 13:43 |
xobs | Strange. I didn't remember setting pullups/pulldowns at all... | 13:47 |
MadHacker | Maybe you don't, and it's just I fixed that before finding the 2nd check for pi model on the GPIO base address? :D | 13:48 |
xobs | Could be! So it's just a different base address? | 13:49 |
MadHacker | https://pastebin.com/wC6Qka7Y guess so! Here's the patch that I'm using and which works OK. | 13:50 |
tpb | Title: [C] diff --git a/rpi.c b/rpi.c index f8de633..2638a54 100644 --- a/rpi.c +++ b/rp - Pastebin.com (at pastebin.com) | 13:50 |
MadHacker | I make no boasts about the quality, it's just a quick hack-it-together-to-work thing. | 13:50 |
MadHacker | Pi 4 cpuinfo is model name : ARMv7 Processor rev 3 (v7l) | 13:50 |
MadHacker | You can add the Pi 4 to the list of devices that don't particularly like foboot, BTW. Seems to make the hub unhappy; it lists itself as a single TT hub, so that makes sense. | 13:57 |
MadHacker | Still, that's it up and running and functional. | 13:58 |
xobs | 1.9.1? | 13:58 |
MadHacker | Whichever binary you linked above. | 13:58 |
MadHacker | I'll clone latest and try a build and see what it does. | 13:59 |
*** cdmatter has joined #tomu | 13:59 | |
MadHacker | If you're ever playing with one, the Pi 4 *really* needs a heatsink BTW. | 14:00 |
MadHacker | Fan, TBH, not just HS. It does not like having something right on top minus a fan. | 14:00 |
xobs | 1.9.1 ought to pay attenton to SET_ADDRESS, and so should work just fine. | 14:00 |
MadHacker | OK. I've grabbed a clone of master for foboot and it's building just now. | 14:00 |
xobs | But that's good to know about the pi 4. | 14:01 |
MadHacker | So I'll try it out. | 14:01 |
MadHacker | http://paste.debian.net/1100557/ hm, OK, seems alright. Shows as "Generic" on lsusb but I think that's a device class thing. lsusb -vvvv has a bunch of errors but I think they're actually unrelated, now I try it without. Pi 4 is just funny, perhaps. | 14:13 |
tpb | Title: debian Pastezone (at paste.debian.net) | 14:13 |
MadHacker | So think it's OK after all. :) | 14:13 |
CarlFK | alexhw: my pins are the same https://www.mouser.com/datasheet/2/193/72_73-8874.pdf | 16:32 |
CarlFK | MadHacker: I thought I had changed to mm - no idea why I was having problems - all of a sudden I wasn't so I got on with things | 16:33 |
alexhw | CarlFK: I have very similar ones (https://www.conrad.de/de/p/ptr-1025-e-g-1-5n-au-1-5-praezisionspruefstift-730866.html). The boards will probably show up mid to end of next week. Then I can tell you if they and the fomu fit. | 16:39 |
tpb | Title: %product-title% kaufen (at www.conrad.de) | 16:39 |
*** cedric has quit IRC | 17:05 | |
*** cedric has joined #tomu | 17:10 | |
*** cedric has joined #tomu | 17:10 | |
*** emeb has joined #tomu | 17:25 | |
*** rohitksingh has joined #tomu | 17:36 | |
*** cdmatter has quit IRC | 17:56 | |
*** halosghost has joined #tomu | 17:57 | |
halosghost | o/ | 17:57 |
halosghost | any update on fomu's shipping timeline? | 17:57 |
* halosghost is trying to be patient :) | 17:57 | |
*** cdmatter has joined #tomu | 18:00 | |
*** cdmatter has quit IRC | 18:09 | |
*** cdmatter has joined #tomu | 18:09 | |
*** cdmatter has quit IRC | 18:22 | |
*** cdmatter has joined #tomu | 18:24 | |
*** rohitksingh has quit IRC | 19:01 | |
*** rohitksingh has joined #tomu | 19:40 | |
*** xkapastel has quit IRC | 20:14 | |
*** foosinn[m] has quit IRC | 20:42 | |
*** shalzz has quit IRC | 20:42 | |
*** jimt[m] has quit IRC | 20:42 | |
*** nrossi has quit IRC | 20:42 | |
*** AmosSam_ has quit IRC | 20:42 | |
*** kwauchope[m] has quit IRC | 20:42 | |
*** ptotter[m] has quit IRC | 20:42 | |
*** xobs has quit IRC | 20:42 | |
*** alexhw[m] has quit IRC | 20:42 | |
*** manf[m] has quit IRC | 20:42 | |
*** EmilKarlson has quit IRC | 20:42 | |
*** alexhw[m] has joined #tomu | 20:48 | |
*** ptotter[m] has joined #tomu | 20:59 | |
*** nrossi has joined #tomu | 20:59 | |
*** jimt[m] has joined #tomu | 20:59 | |
*** foosinn[m] has joined #tomu | 20:59 | |
*** EmilKarlson has joined #tomu | 20:59 | |
*** shalzz has joined #tomu | 20:59 | |
*** xobs has joined #tomu | 20:59 | |
*** manf[m] has joined #tomu | 20:59 | |
*** kwauchope[m] has joined #tomu | 20:59 | |
*** AmosSam_ has joined #tomu | 20:59 | |
*** ademski has quit IRC | 21:08 | |
*** halosghost has quit IRC | 21:26 | |
*** rohitksingh has quit IRC | 21:43 | |
*** rohitksingh has joined #tomu | 21:47 | |
*** rohitksingh has quit IRC | 23:31 | |
*** rohitksingh has joined #tomu | 23:42 | |
*** emeb has quit IRC | 23:44 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!