*** tpb has joined #tomu | 00:00 | |
*** awe00 has quit IRC | 00:12 | |
*** futarisIRCcloud has joined #tomu | 00:46 | |
mithro | xobs: I think most of https://github.com/xobs/lxsocsupport/issues/1 should probably just be deleted :-P | 03:34 |
---|---|---|
tpb | Title: Anything that is actually useful here should just go upstream? · Issue #1 · xobs/lxsocsupport · GitHub (at github.com) | 03:34 |
mithro | xobs: Anything which shouldn't be deleted, probably should end up in litex properly | 03:35 |
mithro | xobs: One of those things which has always been on the todo list... | 03:35 |
xobs | mithro: I could see that! I made it because of the up5kpsram module, because I thought that if that module was important then the other stuff must be important too. | 03:35 |
mithro | xobs: I think cr1901_modern was going to get it upstream but never got around to it? | 03:35 |
*** cr1901_modern has joined #tomu | 03:36 | |
mithro | <xobs> mithro: I could see that! I made it because of the up5kpsram module, because I thought that if that module was important then the other stuff must be important too. | 03:36 |
mithro | <mithro> xobs: I think cr1901_modern was going to get it upstream but never got around to it? | 03:36 |
mithro | cr1901_modern: -^ | 03:36 |
cr1901_modern | ? The up5kpsram module should already be in litex-buildenv | 03:37 |
xobs | cr1901_modern: it is, but I'm not using litex-buildenv anymore, which is why I pulled those modules into the `lxsocsupport` temporary repo I created. | 03:39 |
mithro | xobs is a traitor to the cause | 03:40 |
mithro | :-P | 03:40 |
cr1901_modern | Yea I have a vested interest in keeping things in one place, but what are you gonna do :/ | 03:40 |
cr1901_modern | xobs: So what's the problem? I've been... well, kinda overwhelmed w/ my todo list | 03:40 |
mithro | cr1901_modern: It should be in litex right? | 03:40 |
xobs | cr1901_modern: with litex-buildenv, or with the lxsocsupport repo? | 03:41 |
cr1901_modern | mithro: I don't recall having such a convo | 03:41 |
cr1901_modern | xobs: Could you restate your q :P? I don't understand | 03:42 |
mithro | cr1901_modern: Why isn't up5kpsram in upstream litex I think is the question | 03:42 |
xobs | cr1901_modern: I wasn't sure what your "what's the problem?" was referring to -- me using lxbuildenv instead of litex-buildenv, or the upstreaming of things like up5kpsram into litex. | 03:43 |
cr1901_modern | mithro: B/c I never felt a pressing need to put it there :). It's quite family-specific, so I think it should stay w/ the family-specific IP in litex-buildenv | 03:43 |
mithro | xobs: BTW The lto-enable stuff which is kind of got mashed into the Fomu stuff is being tracked at https://github.com/enjoy-digital/litex/issues/139 -- that stuff isn't essential for the Fomu stuff but probably if we want to use tinyusb | 03:44 |
tpb | Title: Enable link time optimisation in builds · Issue #139 · enjoy-digital/litex · GitHub (at github.com) | 03:44 |
cr1901_modern | xobs: I was referring to "what's the problem with the lxsocsupport repo", but I think I see the problem now. | 03:46 |
cr1901_modern | In any case, my time is directed mostly towards litex-buildenv, and I was under the impression/opinion that the up5kspram module was a litex-buildenv-specific IP | 03:46 |
cr1901_modern | _I_ didn't plan on upstreaming it to litex | 03:47 |
*** futarisIRCcloud has quit IRC | 08:52 | |
AmosSam | mithro: gnuk succesufly flashed to tomu, when running over blackmagic probe gdb, it works to the point where it waits for usb connection, so all init functions work... Over usb it wont enumerate, but that's probably irq or address issues... | 09:44 |
mithro | AmosSam: oh? You figured out the space problem? | 09:45 |
AmosSam | mithro: yes, found heap memory definitions, and played with values... after that, fw size was around 65kb, and after un-optimizing sha-256 function, it was reduces to 58kb | 09:47 |
AmosSam | Of course, after i found heap memory defs, i saw that it has ifdef's for down to 8kb od rama specs... | 09:48 |
mithro | Tried -Os? :-P | 09:48 |
mithro | Might want to make sure you have lto enabled too | 09:48 |
mithro | AmosSam: are you using newlib? | 09:49 |
AmosSam | -Os was from the start | 09:49 |
AmosSam | Newlib? I'm using gnuk repo from tomu-samples... | 09:49 |
AmosSam | And i had to modify linker map file | 09:51 |
AmosSam | mithro: and gcc flags are mostly taken from minimal project from tomu-quickstart makefile | 09:57 |
mithro | No idea if they are good or not | 09:58 |
AmosSam | I'm at work, and don't have my laptop with me to tell you precisely... | 09:58 |
mithro | I know that thumb instructions can often save code size too | 09:58 |
AmosSam | Well, they build and other samples work with them... | 09:58 |
mithro | xobs probably knows more | 09:58 |
AmosSam | Will check this evening... | 09:58 |
mithro | AmosSam: no guarantee they are optimal | 09:59 |
mithro | Most people stop at "working" :-) | 09:59 |
AmosSam | Well, this one still doesn't "work"... B-) | 09:59 |
xobs | AmosSam: the tomu-quickstart flags were taken from some chibitronics projects we use, so they should be pretty optimized. They're already thumb2, since that's all the M0 will execute. | 10:01 |
xobs | You might be interested in "nm --size-sort" to try and figure out what's taking the space. | 10:01 |
AmosSam | xobs: I used nm to find that sha-256 was biggest! (And easies to modify...) | 10:01 |
AmosSam | And space problem is fixed, fw is running on tomu, just need to fix usb comms now... | 10:04 |
*** awe00 has joined #tomu | 10:54 | |
*** xkapastel has joined #tomu | 11:11 | |
*** AmosSam has left #tomu | 16:35 | |
*** AmosSam has joined #tomu | 16:44 | |
*** tychotithonus has quit IRC | 17:17 | |
*** awe00 has quit IRC | 17:24 | |
*** AmosSam has left #tomu | 18:43 | |
*** AmosSam has joined #tomu | 18:43 | |
*** AmosSam_ has joined #tomu | 19:00 | |
AmosSam_ | can I connect gdb over SWD (blackmagic probe) and plug tomu in usb? will that work, or something will release magic smoke? | 19:04 |
AmosSam_ | I need to debug usb initialization, and don't know any other way to do it... | 19:04 |
*** AmosSam_ has quit IRC | 19:37 | |
*** awe00 has joined #tomu | 19:38 | |
*** AmosSam_ has joined #tomu | 20:22 | |
*** NoGodDamnIdea has joined #tomu | 20:56 | |
*** AmosSam_ has quit IRC | 21:49 | |
*** xkapastel has quit IRC | 22:31 | |
*** xkapastel has joined #tomu | 22:45 | |
*** NoGodDamnIdea has quit IRC | 23:13 | |
*** futarisIRCcloud has joined #tomu | 23:26 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!