Friday, 2019-09-13

*** tpb has joined #tomu00:00
*** CarlFK has joined #tomu00:35
*** emeb has quit IRC01:24
*** emeb has joined #tomu01:29
CarlFKim hacking on https://github.com/im-tomu/fomu-hardware/blob/master/hacker/fomu-jig.svg02:44
tpbTitle: fomu-hardware/fomu-jig.svg at master · im-tomu/fomu-hardware · GitHub (at github.com)02:44
CarlFKI want to snug up the hole the fomu sits in02:45
CarlFKmeasuring a fomu, I get 13.00 mm02:46
CarlFKI want to type that into inkscape, but because there is scale:3.54331  I have to ... divide by that?02:46
CarlFKanyone know how to scale everything so that I can type 13.00?02:46
CarlFK4.872 * 3.54331 = 17.26300632 ?! what's that number03:12
*** craigo has joined #tomu03:34
CarlFKnever mind all that.  I'm not sure what I was looking at, but numbers are now the ones I want03:56
*** emeb has quit IRC04:04
*** CarlFK has quit IRC06:12
*** rohitksingh has quit IRC06:49
*** craigo has quit IRC06:52
*** CarlFK has joined #tomu08:07
MadHackerCarlFK: Working in pixels vs. mm?08:18
*** cedric has quit IRC10:00
*** cedric has joined #tomu10:00
*** cedric has joined #tomu10:00
alexhwCarlFK: 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
tpbTitle: GitHub - usbalex/fomu_programming_jig (at github.com)11:42
alexhwI made the cutout is .25mm larger than the fomu on each side.11:43
MadHackerxobs: Did you chase crowd supply for me or something? EVT just turned up. :)12:22
xobsMadHacker: hooray!12:46
*** deltab has quit IRC12:48
MadHackerOK, 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
MadHackerI've got the SPI interface on the pi enabled in /boot/config.txt12:50
MadHackerAnything else required?12:50
xobsMadHacker: that might be expected. Try again?12:51
xobsTry -i12:51
xobs(admittedly I recently modified it to work better with the test jig...)12:52
MadHackerTried 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
MadHackerDoes 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
xobsThe spi interface in config.txt shouldn't matter, since it bit bangs it regardless.12:53
MadHackerAh, 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 #tomu12:54
MadHackerBoth -r and -i hand on the same line.12:54
MadHacker(just tried again)12:54
xobsYou could try loading foboot with "fomu-flash -f evt-top.bin"12:54
MadHackerAlso tried that. :/12:55
MadHackerI'll break out a meter in a minute and start checking out the usual suspects.12:55
xobshttps://github.com/im-tomu/foboot/blob/master/releases/v1.9.1/evt-top.bin12:55
tpbTitle: foboot/evt-top.bin at master · im-tomu/foboot · GitHub (at github.com)12:55
MadHackerWas just in case it was something obvious.12:55
MadHackerI rebuilt top.bin from the foboot sources and was trying that.12:55
MadHackerThink it's hanging in the same place anyway though.12:55
*** deltab has joined #tomu12:56
xobsTry the latest foboot too.12:56
*** ademski has joined #tomu12:57
MadHackerOK. Grabbed that evt-top.bin, ./fomu-flash -f evt-top.bin hangs, backtrace just says:-12:59
MadHackerspi_wait_cs_idle (spi=0x282b8) at spi.c:97112:59
MadHacker/home/jamie/fomu-flash/spi.c:971:20986:beg:0x132a412:59
MadHackerSo, same. :(12:59
MadHackerDoesn't enumerate on its USB port either, although I guess on an EVT that's not unexpected.13:00
MadHackerEPROM looks like it has "OK" in pencil on it. :D13:00
xobsTry just adding a "return" to https://github.com/im-tomu/fomu-flash/blob/c24ffda85ba5d2a11cee0358831930fbd16c94cc/spi.c#L94513:02
tpbTitle: fomu-flash/spi.c at c24ffda85ba5d2a11cee0358831930fbd16c94cc · im-tomu/fomu-flash · GitHub (at github.com)13:02
MadHackerHangs before it gets there; the hang is from spi_wait_cs_idle called in spiInit() at line 989-ish.13:08
MadHackerPatching that out just gives all zeroes returned.13:08
MadHackerIf 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
xobsThey 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
MadHackerNah, it's in the right way. 3.3v rail is OK. 5v rail is OK.13:17
MadHackerAt this point, I'm going to have to break out a logic analyser I suspect. :/13:17
MadHackerAh, wait. OK. I think I know what's going on. This is a Pi 4.13:20
MadHackerYou worked on a pi 1/2/3, yeah?13:21
xobsYeah...13:21
xobsI haven't seen a Pi 4 yet.13:21
MadHackerOK. The Pi 4 has more SPI ports natively. Maybe one of them is playing silly buggers.13:21
xobsProbably the GPIO mapping is different and it's not being handled correctly :-/13:22
MadHackerSome of the problem is easy, then, GPIO base is now at 0xFE000000. Still doesn't work though. Hm.13:26
MadHackerThe pull-up/downs work differently too.13:27
MadHackerOK, patched that.13:36
MadHackerWorks./13:36
MadHackerxobs: 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
tpbTitle: raspi-gpio/raspi-gpio.c at master · RPi-Distro/raspi-gpio · GitHub (at github.com)13:38
MadHackerOtherwise, it's fine.13:38
xobsMadHacker: Thanks, mind if I integrate that?13:41
MadHackerThat's not my code, it's part of the rpi distro.13:42
MadHackerBut please do. Saves me some hassle. :)13:42
MadHackerI'll throw you a diff in a minute if you like instead.13:43
xobsStrange.  I didn't remember setting pullups/pulldowns at all...13:47
MadHackerMaybe you don't, and it's just I fixed that before finding the 2nd check for pi model on the GPIO base address? :D13:48
xobsCould be!  So it's just a different base address?13:49
MadHackerhttps://pastebin.com/wC6Qka7Y guess so! Here's the patch that I'm using and which works OK.13:50
tpbTitle: [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
MadHackerI make no boasts about the quality, it's just a quick hack-it-together-to-work thing.13:50
MadHackerPi 4 cpuinfo is model name      : ARMv7 Processor rev 3 (v7l)13:50
MadHackerYou 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
MadHackerStill, that's it up and running and functional.13:58
xobs1.9.1?13:58
MadHackerWhichever binary you linked above.13:58
MadHackerI'll clone latest and try a build and see what it does.13:59
*** cdmatter has joined #tomu13:59
MadHackerIf you're ever playing with one, the Pi 4 *really* needs a heatsink BTW.14:00
MadHackerFan, TBH, not just HS. It does not like having something right on top minus a fan.14:00
xobs1.9.1 ought to pay attenton to SET_ADDRESS, and so should work just fine.14:00
MadHackerOK. I've grabbed a clone of master for foboot and it's building just now.14:00
xobsBut that's good to know about the pi 4.14:01
MadHackerSo I'll try it out.14:01
MadHackerhttp://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
tpbTitle: debian Pastezone (at paste.debian.net)14:13
MadHackerSo think it's OK after all. :)14:13
CarlFKalexhw: my pins are the same https://www.mouser.com/datasheet/2/193/72_73-8874.pdf16:32
CarlFKMadHacker: 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 things16:33
alexhwCarlFK: 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
tpbTitle: %product-title% kaufen (at www.conrad.de)16:39
*** cedric has quit IRC17:05
*** cedric has joined #tomu17:10
*** cedric has joined #tomu17:10
*** emeb has joined #tomu17:25
*** rohitksingh has joined #tomu17:36
*** cdmatter has quit IRC17:56
*** halosghost has joined #tomu17:57
halosghosto/17:57
halosghostany update on fomu's shipping timeline?17:57
* halosghost is trying to be patient :)17:57
*** cdmatter has joined #tomu18:00
*** cdmatter has quit IRC18:09
*** cdmatter has joined #tomu18:09
*** cdmatter has quit IRC18:22
*** cdmatter has joined #tomu18:24
*** rohitksingh has quit IRC19:01
*** rohitksingh has joined #tomu19:40
*** xkapastel has quit IRC20:14
*** foosinn[m] has quit IRC20:42
*** shalzz has quit IRC20:42
*** jimt[m] has quit IRC20:42
*** nrossi has quit IRC20:42
*** AmosSam_ has quit IRC20:42
*** kwauchope[m] has quit IRC20:42
*** ptotter[m] has quit IRC20:42
*** xobs has quit IRC20:42
*** alexhw[m] has quit IRC20:42
*** manf[m] has quit IRC20:42
*** EmilKarlson has quit IRC20:42
*** alexhw[m] has joined #tomu20:48
*** ptotter[m] has joined #tomu20:59
*** nrossi has joined #tomu20:59
*** jimt[m] has joined #tomu20:59
*** foosinn[m] has joined #tomu20:59
*** EmilKarlson has joined #tomu20:59
*** shalzz has joined #tomu20:59
*** xobs has joined #tomu20:59
*** manf[m] has joined #tomu20:59
*** kwauchope[m] has joined #tomu20:59
*** AmosSam_ has joined #tomu20:59
*** ademski has quit IRC21:08
*** halosghost has quit IRC21:26
*** rohitksingh has quit IRC21:43
*** rohitksingh has joined #tomu21:47
*** rohitksingh has quit IRC23:31
*** rohitksingh has joined #tomu23:42
*** emeb has quit IRC23:44

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!