Sunday, 2019-07-07

*** tpb has joined #timvideos00:00
*** CarlFK has quit IRC00:30
*** CarlFK has joined #timvideos00:30
*** ChanServ sets mode: +v CarlFK00:30
mithroCarlFK[m]: I'll merge your pattern change tonight if things go green...02:39
CarlFKmithro: k.02:39
CarlFKmithro: any idea why the jpeg encoder breaks and then gets fixed 5-6 revs later ?02:40
CarlFKaiena: hi02:40
mithroPoke futarisIRCcloud about the above Linux stuff02:40
mithroCarlFK: There must be a missing timing constraint, so some of the time it happens to be satisfied, some of the time it isn't02:40
CarlFKswell :p02:41
mithroCarlFK: In theory if you did a build loop you might get firmware which worked and firmware which didn't...02:41
CarlFKfutarisIRCcloud: fix my keyboard :p02:41
mithroI think jea had something like that happening a while ago?02:41
aienaCarlFK: I had a reasonable amount of success trying out skelinux02:43
aienaas in I figured out that with dd,losetup and gparted its easier to resize the filesystems in it and then install the modules02:43
aienabut make modules_install install older kernel modules into the image too and it runs out of space :P02:44
aienaI am just wondering if it would be easier to create a virtualbox vm and just compile a kernel in it02:45
CarlFKaiena: lots of choices,  hard to say what is easier02:45
aienaCarlFK: I tried to build his qemu sources but I think 2005 is too long back02:46
CarlFKpersonally I wouldn02:46
CarlFKpersonally I wouldn't do anything with virtualbox because I know nothing about it02:46
mithroCarlFK: btw you should join the #litex channel - there are a bunch of people discussing Linux on LiteX there02:47
aienais qemu only an emulator for devices02:47
CarlFKyou can skip building qemu - that is so the lr3k module will have 'hardware' to talk to02:47
aienaand kvm the acutal virtualisation engine?02:47
aienai was going through the docs and it had lots of info i didnt understand but thats the idea I got.02:48
mithroHeading home now - bblr02:50
CarlFKokee dokee02:52
aienaCarlFK: I was installing my built kernel on the host03:01
aienaI noticed that the kernel install ok but I do get a dkms error03:01
aienaso the proprietary nvidia drivers do not install during the make install stage03:02
aienawhat are the steps to use dkms before the make install step?03:02
aienaor do I run it after that03:02
CarlFKor you ignore that ;)03:02
aienalets say I want my nvidia driver to work on the new kernel03:02
aienaI am unsure if the kernel defaults back to nouveau if that error comes up03:03
aienawould it default back to nouveau?03:03
CarlFKdon't know.  it's more things to break, so I would avoid all of that03:04
CarlFKyou will have enough trouble with the simple case03:04
aienaok I'll try without dkms and see how the kernel boots03:05
aienaif it boots then its all cool I don't need the prop driver03:05
CarlFKno one needs it.  people want it so their games are more fun.03:06
aienaI need it only because of Blender03:06
aienaI dont game on my linux lol03:06
aienaCUDA wont work without it\03:07
CarlFKok, blender is not exactly a game, but close ;)03:07
aienaaye :P03:07
aienawhat does `make headers` in the kernle do?03:07
aienadoes it insttall sources to /usr/src?03:07
aienathere are lots of make commands I accidentally ran make mrproper once it removed my config file too03:08
aienaI wonder if there is some doc outside the makefile which explains the commands03:08
CarlFKwell.. "make" is the command03:08
aienai mean documentation for the make TARGETS03:09
aienatargets is more precise03:09
CarlFKI'm sure there are docs explaining how the typical linux Makefile .. works?03:09
aienaok cool
aienafound it03:10
aienaCarlFK: oops I ran `make install` first before `make modules_install` can rerunning `make install` fix the errors03:17
CarlFKmaybe - I'm not sure it matters which of those you do first03:18
aienamake install compalins it cannot find the modules dir if you run it first03:21
aienadepmod: ERROR: could not open directory /lib/modules/5.0.0-aiena: No such file or directory03:21
aienadepmod: FATAL: could not search modules: No such file or directory03:21
aienaseems like makeinstall after that sorts it out03:22
CarlFKhuh. 'good' ;)03:22
aienaok CarlFK dkms works only the nvidia drivers doesnt and thats ok I think. This probably stems from me not using the debian build method to build the kernel03:29
aienalet me reboot into my new kernel and see03:29
CarlFKsounds about right03:30
aienaI had written one shell script to remove a kernel03:32
aienamaybe you can look into it while I reboot I don;t think I missed anything though03:32
tpbTitle: Ubuntu Pastebin (at
*** aiena has quit IRC03:35
*** aiena has joined #timvideos03:43
aienaCarlFK: I have good news and bad news03:44
CarlFKgood is great!   bad is expected :p03:44
aienathe good news the kernel boots perfectly fine. The bad news systemd gets stuck at 'update UTMP about system changes' and this is expected because f the nvidia issue03:45
aienaso I get a TUI but no kde or GUI or xserver03:45
* aiena likes ze gui03:46
aienai mean I can get to a virtual console by going through the distro way03:46
aienai think I'll clean up my kernel and try the ubuntu mainline kernel docs03:47
aiena seems the closest to a manual install03:47
tpbTitle: KernelTeam/GitKernelBuild - Ubuntu Wiki (at
CarlFKthat all sounds about right03:48
CarlFKI personally do all this kind of stuff on a 2nd box over ssh03:48
CarlFKdon't have to worry about gui, or braking it, etc03:49
aienawell for ssh even if there is no GUI you wouldn't care03:49
aienaha aye CarlFK03:49
CarlFKyeah - of course that means a 2nd box, which is cumbersome, and sometimes I have walk over to it and figure out what happened03:49
aienawell at least you can walk over to it :P03:50
aienaimagine ssh into some remote server and building a kernel03:50
aienaok I am trying the debian way lets see hehehe04:02
aienaits rebuilding I just did a good cleanup04:02
aienagah thats failing some dpkg errors04:58
*** tweakoz has joined #timvideos05:02
aienalet me try to fix :P05:05
*** futarisIRCcloud has quit IRC06:16
*** Kamilion has quit IRC06:16
*** Signotheque has quit IRC06:16
*** CarlFK[m] has quit IRC06:17
*** Toba has quit IRC06:17
aienaok cool CarlFK the packages built except the debug one06:19
aienakernel debug symbols are huge I think06:19
CarlFKaiena: no clue - I've never done anything where I needed them06:20
aienathe kernel debug symbols06:20
aienafor drivers i doubt you need then as you are not altering the kernel itself06:21
*** puck_ has quit IRC06:21
*** nrossi has quit IRC06:21
*** nats` has quit IRC06:21
*** kmehall has quit IRC06:21
*** hyadez has quit IRC06:21
*** puck_ has joined #timvideos06:26
*** nrossi has joined #timvideos06:26
*** nats` has joined #timvideos06:26
*** kmehall has joined #timvideos06:26
*** hyadez has joined #timvideos06:26
*** futarisIRCcloud has joined #timvideos06:27
*** Kamilion has joined #timvideos06:27
*** Signotheque has joined #timvideos06:27
*** CarlFK[m] has joined #timvideos06:27
*** Toba has joined #timvideos06:27
aienawoot CarlFK no nvidia dkms errors :)06:36
aienanow time to reboot dis06:36
aienathen I'll see how to turn off building the dbg package that mammoth gives false errors06:37
*** aiena has quit IRC06:37
* CarlFK[m] uploaded an image: VectorImage_2019-07-07_014318.jpg (7763KB) < >06:59
CarlFK7763KB ?!!06:59
CarlFKanyway, neat artifacts, both on the screen and the phone cam made some more07:00
*** aiena has joined #timvideos07:05
aienaHi CarlFK My kernel installed and I got the GUI everything :)07:05
CarlFKwoot! that;s progress!07:06
aienayes now I need to see how to turn off those debug packages and relook at the lerkcode07:07
aienaCarlFK: what is the difference between modprobe and insmod?07:07
CarlFKaiena: modprobe will also load dependencies07:08
aienaok I don;t understand how a driver specifies dependencies but I will understand later07:09
aienaso modprobe and modprobe -r are preferable to insmod and rmmmod07:09
aienaand dmsg shows the output so that dumb driver works07:10
CarlFKyay!!  thats 2 progresses!07:10
aienayes but I feel like slapping the whole deb build system haha07:11
aienai looked at builddep and there is no way to do an incremental compile07:12
aienaso you need to rebuild the whole kernel each time what a waste07:12
aienaCarlFK: I was reading this
tpbTitle: Kernel/Compile - Community Help Wiki (at
aienait says under resons not to compile a kernel number 1 `you merely need to compile a special driver. For this, you only need to install the linux-headers packages. `07:14
aienaso lets say I go with the stock kernel what is the approach to driver development then?07:15
CarlFKwhat is "stock kernel"?07:15
aienathe distro provided one07:15
aienaor lets say the ones provided by the distribution under their packagemanagent from their repositories07:17
aienabecause I can package a custom kernel in a distro format but that doesnt make it stock07:17
CarlFKgood question - I think you will need to manually apply all the patches07:17
CarlFKI suspect using Ubuntu's kernel will be much harder than vanilla07:19
CarlFKI also have no idea how you will install it07:20
*** CarlFK has quit IRC07:30
*** aiena has quit IRC07:32
*** xobs has quit IRC08:20
*** jfng has quit IRC08:21
*** CarlFK[m] has quit IRC08:21
*** nrossi has quit IRC08:21
*** thepatr1ck has quit IRC08:21
*** CarlFK[m] has joined #timvideos08:29
*** tannewt has quit IRC08:34
*** tannewt has joined #timvideos08:35
*** nrossi has joined #timvideos09:03
*** jfng has joined #timvideos09:03
*** xobs has joined #timvideos09:03
*** thepatr1ck has joined #timvideos09:03
*** aiena has joined #timvideos10:02
*** tweakoz has quit IRC11:24
mithroCarlFK[m]: Is 4 x opsis going to be enough?15:40
*** CarlFK has joined #timvideos16:19
*** ChanServ sets mode: +v CarlFK16:19
*** CarlFK has quit IRC17:11
CarlFK[m]mithro yes, I have Atlys.  But more opsis you'd send the more PS I can install17:12
*** springermac_ has joined #timvideos17:28
*** springermac is now known as Guest1444417:28
*** springermac_ is now known as springermac17:29
mithroCarlFK[m]: I mean, I found 4 opsis that I could send18:00
CarlFK[m]mithro send em.  They will help me with pyOhio, and I'll get them fixed up with nice power supplies18:02
mithrookay, will try and send them tomorrow18:06
*** CarlFK has joined #timvideos18:17
*** ChanServ sets mode: +v CarlFK18:17
*** aiena has quit IRC19:17
mithroCarlFK: new firmware with your patches should be published now...19:26
CarlFKmithro: k - I'll check it out19:27
*** CarlFK has quit IRC19:30
*** CarlFK has joined #timvideos19:30
*** ChanServ sets mode: +v CarlFK19:30
*** tweakoz has joined #timvideos20:26
*** tweakoz has quit IRC20:26
CarlFKmithro: where should I get openocd from ?20:45
CarlFKmithro: I can't figure out how to --flash-image21:01
CarlFKseems my pi at home is the only thing that I can get to work21:01
mithroCarlFK: OpenOCD from conda21:35
*** techman83 has quit IRC22:09
*** techman83 has joined #timvideos22:10
*** ChanServ sets mode: +v techman8322:10
CarlFKmithro:  "Run the bootstrap script..."  Unknown CPU value ''22:34
tpbTitle: Bootstrap · timvideos/litex-buildenv Wiki · GitHub (at
tpbTitle: Ubuntu Pastebin (at
mithroexport CPU=vexriscv22:42
mithroI'll fix that shortly22:42
futarisIRCcloudCarlFK: In reference to your photos from ~15 hrs ago.
CarlFKfutarisIRCcloud: nice!22:56
CarlFKfutarisIRCcloud: mithro says this is your problem: um.. boot linux on qemu or Artys, I get a login: but it ignores my keyboard22:58
CarlFKI can ^c and exit qemu, or ^d to exit flterm22:58
CarlFKany idea what I am talking about?22:58
futarisIRCcloudI thought I saw an issue logged against this a while ago.22:59
CarlFKit started before conda broke which was about ... weeks ago22:59
futarisIRCcloudlitex-buildenv linux / qemu, right?22:59
CarlFKI think so22:59
futarisIRCcloudI've seen it happen before, but no-one is really using linux actively on qemu or Artys, so I'm not sure where the issue has crept in.  Probably something changed in litex, which changed how IRQs happen, and the interrupt handler in linux is broken.  So it doesn't see the keys typed (over serial).23:02
CarlFKsweel.. I just said I would to a talk this Sat about "booting Linux on fpga" .. mostly to promote all the open source fpga stuff23:08
futarisIRCcloudBest to demo the linux-on-litex-vexriscv repo, since more people are actually using that.23:37
tpbTitle: GitHub - litex-hub/linux-on-litex-vexriscv: Linux on LiteX-VexRiscv (at
*** TheAssassin has quit IRC23:39
*** puck_ has quit IRC23:39
*** TheAssassin has joined #timvideos23:42
*** puck_ has joined #timvideos23:43

Generated by 2.13.1 by Marius Gedminas - find it at!