IRC logs for #automotive for Tuesday, 2020-11-24

*** Wetmelon has quit IRC01:00
*** thaytan has joined #automotive01:25
*** Newami has joined #automotive01:55
*** Newami has quit IRC02:08
*** vrubiolo has joined #automotive06:18
*** vrubiolo has quit IRC06:41
*** leon-anavi has joined #automotive07:06
leon-anavihi07:10
*** rpcme has quit IRC08:09
*** vrubiolo has joined #automotive08:17
*** vrubiolo has quit IRC08:22
*** vrubiolo has joined #automotive08:38
*** vrubiolo has quit IRC09:09
*** eduardas has joined #automotive09:32
*** vrubiolo has joined #automotive09:38
*** Newami has joined #automotive09:56
*** Newami has quit IRC10:02
*** vrubiolo has quit IRC10:49
*** vrubiolo has joined #automotive10:50
cengiz_iohello there!11:01
cengiz_iohope you're having a great day11:01
*** vrubiolo has quit IRC11:02
*** vrubiolo1 has joined #automotive11:02
*** vrubiolo1 is now known as vrubiolo11:04
*** adriano has joined #automotive12:08
adrianohello all, i have just built (bitbake agl-telematics-demo-platform) for raspberry pi 3, and now i try to use devtool to deploy some canges12:09
adriano*changes12:10
adrianohow to setup wifi on raspberry pi? I tried adding a wpa_supplicant.conf, with the credentials12:10
adriano# ip link set wlan0 upip: SIOCSIFFLAGS: Operation not possible due to RF-kill12:11
cengiz_ioadriano what does `ip a` command show for you12:28
cengiz_ioadriano wlan0 interface is available?12:28
adrianoraspberrypi3:~# ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever    inet6 ::1/128 scope host        valid_lft forever preferred_lft forever2: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop12:29
adrianoqlen 1000    link/ether b8:27:eb:ef:21:df brd ff:ff:ff:ff:ff:ff3: can0: <NOARP,UP,LOWER_UP> mtu 72 qdisc noqueue qlen 1000    link/[280]12:29
cengiz_ioadriano what does `rfkill list all` show for you12:29
adrianoraspberrypi3:~# rfkill list all0: phy0: wlan        Soft blocked: yes        Hard blocked: no1: hci0: bluetooth        Soft blocked: yes        Hard blocked: no12:30
cengiz_iorfkill unblock wifi12:32
cengiz_ioor whatever the identifier is12:32
cengiz_iothen you will need to figure out WHY it's blocked.12:33
cengiz_iomight be due to kernel module arguments12:33
cengiz_ioor the hackiest way would be executing rfkill unblock on every boot12:34
cengiz_iowhich is absolutely terrible12:34
adrianoraspberrypi3:~# ifup wlan0Successfully initialized wpa_supplicantrun-parts: /etc/network/if-up.d: No such file or directory12:38
adrianook seems to me that the interface was disabled on purpose12:39
adrianoi am new to running agl, will look into it\12:39
cengiz_iogood luck!12:39
adrianothank you!12:43
adrianoagl should also work on Raspberry Pi 3a+, right?12:47
cengiz_ioI have no idea adriano. not experienced with raspberyy13:09
cengiz_iocan someone tell me why there are no Qt libs inside `agl-image-graphical-qt5` sample image?13:13
cengiz_iowhat does it do for Qt then?13:13
cengiz_ioI'm on jellyfish 10.0.013:13
smurrayadriano: at this point AGL really only supports rpi 3 for the telematics and cluster demos13:15
cengiz_iohello smurray13:17
smurraycengiz_io: I'd need to experiment a bit to see why that is.  As I mentioned previously, nothing tests that image13:20
smurraycengiz_io: If you're not adding your own package that had Qt bits as dependencies, you'll need to add packagegroup-agl-profile-graphical-qt5 to the image, I think13:21
cengiz_iosmurray ok. I don't want to bother you but my core problem is: I have a qt application that requires wayland-egl to run. so basically I need a compositor running (preferably by systemd at boot) with correct user as AGL conventions intended13:22
smurraycengiz_io: look at the cluster demo, it does that13:22
cengiz_iosmurray previously on icefish, I've reached to a point where weston@display.service was failing because user "display" was not found in /etc/passwd.13:22
cengiz_ioI'll look right now13:23
cengiz_iosmurray meta-agl-demo repo or meta-agl-cluster-demo?13:25
smurraycengiz_io: meta-agl-cluster-demo is simpler13:25
cengiz_iook it requires require agl-cluster-demo-qtcompositor.inc and so on13:26
smurraycengiz_io: the display user is created by something in the core, iirc13:26
smurraycengiz_io: no, the qtcompositor stuff is for running with the Qt compositor and not weston13:26
cengiz_iooh13:27
cengiz_iosmurray this one then? https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL/meta-agl-cluster-demo.git;a=blob;f=recipes-platform/images/agl-cluster-demo-platform.bb;h=52d737b74e8146482e4c3a7c408f451cde72e4cd;hb=HEAD13:28
smurraycengiz_io: the packagegroup is more useful13:29
cengiz_iocan I use that packagegroup without enabling agl-demo ?13:30
cengiz_iodon't think so13:30
smurraycengiz_io: no13:30
smurraycengiz_io: I meant to look at it to see what packages/packagegroups it's pulling in13:30
cengiz_iook13:31
smurraycengiz_io: that was probably not a great idea, I forgot that we ended up with a separate profile for cluster13:31
cengiz_ioxD13:31
cengiz_iosmurray let me get this straight: even though I require a profile in my image, I need to explicitly install_append some packagegroups.13:32
smurraycengiz_io: this stuff isn't perfect, I'd need to go back and look in the git history, we had to hack a bit at one point to make that qtcompositor demo that doesn't use weston work13:33
smurraycengiz_io: and as I've said repeatedly, no one's tested using agl-image-graphical-qt5 directly that I can recall13:33
cengiz_iook thank you. I'll be trying harder.13:34
smurraycengiz_io: if you just want to see the libraries add packagegroup-agl-profile-graphical-qt5.  The other images manage to pull them in because their applications have the dependencies, I think13:34
cengiz_iowhat about this? DISTRO_FEATURES_append = " agl-core-image-profile"13:35
smurraythat's not going to do much13:36
cengiz_iofor missing display user?13:36
smurraycengiz_io: the display user is created by the agl-users package, you'll need to add that to your custom image, see what's done in meta-agl-demo or meta-agl-cluster-demo13:36
cengiz_iois it that easy? omg13:36
smurraytook me a while to find that, haven't had coffee yet13:36
smurrayfor historical reasons, that's not done in the core, as someone might want different users than the demo images use13:37
smurrayit does make that agl-image-graphical-qt5 image unusable by default, though.  Like I said, not tested on its own13:37
cengiz_iois there a list of agl-* packages that are essential?13:38
smurraynope13:38
cengiz_ioby blood and pain you say13:38
smurraywell, the usual recommendation is to start with the demo platform image and pare it down13:38
smurraystarting directly from the plain profile images isn't for beginners13:39
cengiz_ioAGL/meta-agl-demo since you said AGL/meta-agl-cluster-demo has a different profile.13:39
smurrayI've actually recommended we nuke them in the upcoming layer reorg, since they're not tested13:39
smurrayright, that's another historical artifact I would have avoided if possible, but could not, sadly13:39
cengiz_iogreat. printing out all of AGL/meta-agl-demo files *jk*13:40
smurrayif you add agl-users to the image you have now, you'll be good, I think, no need to restart13:40
smurrayI'll make a note, that particular requirement will need to change for the upcoming layer reorg, the display user should probably be created elsewhere13:41
cengiz_ionoted.13:42
cengiz_ioone last question before you shoot me: what do you suggest BBFILE_PRIORITY_meta-localdev ?13:42
cengiz_ioit's 20 now13:42
smurrayI've no idea, tbh, kind of depends on whether you think you'll need to over-ride some things13:45
smurrayand note that's sort of intended for temporary local development, if you're going further, you'd likely take that layer and add it to the manifest in a local fork of AGL-repo13:46
smurrayand probably move it off of the meta-localdev name13:47
*** adriano has quit IRC13:56
cengiz_iosmurray got it. I was following https://events19.linuxfoundation.org/wp-content/uploads/2018/07/ALS_jsmoeller_july_2019.pdf14:03
cengiz_ioCreating Your Own Project on-top of AGLFrom minimal image to own project. How to reuse AGL in your own company.Jan-Simon Möller, jsmoeller@linuxfoundation.org14:03
smurraycengiz_io: so I was slightly wrong re agl-users, you'll actually want to pull in packagegroup-agl-core-security (which includes agl-users) if you're going to use the application framework14:04
smurraycengiz_io: I can't remember why things are like that :/14:05
cengiz_iosmurray no idea what application framework is but sure. all I want is weston to be running at boot14:05
cengiz_ioI can perfectly come up with my own systemd units but why reinvent?14:05
smurraycengiz_io: heh, okay, then just agl-users is likely fine for now, that'll get the display user14:05
*** cengiz_io has quit IRC14:10
*** cengiz_io has joined #automotive14:11
*** cengiz_io has quit IRC14:12
*** cengiz_io has joined #automotive14:13
*** adriano has joined #automotive14:21
*** rpcme has joined #automotive14:32
dl9pfprobably need to redo that slidedeck ... a lot has changed14:33
cengiz_iohello dl9pf. I'm following that project-manifest method. works great so far. thanks14:35
rpcmesmurray - it is the agl-demo-platform target14:35
smurrayrpcme: what services are failing?14:36
rpcmeI have to turn the equipment on.  need to work on gps this morning14:38
rpcmegive me a few minutes please14:38
dl9pfrpcme: uae pi4.14:38
dl9pfpi3 is too weak for the agl-demo-platform now14:39
dl9pftests only done on pi414:39
dl9pfcengiz_io: yes, that will do fine.14:40
smurraydl9pf: that was adriano14:40
rpcmealso, if someone has good documentation pointers on configuring SMACK for apps working backwards from access requirements, I would love to see it because right now I am using the virtual sledgehammer to grant system access which doesn't smell good at all14:40
dl9pfok, need coffee.14:40
smurrayrpcme: you'll need to elaborate, do you mean for access to hardware devices?14:40
rpcmesmurray: filesystem. More specifically, this is what I did to overcome the startup issue.  sed -i 's/System _ -----l/System _ -wx--l/g' /etc/smack/accesses.d/default-access-domains14:48
*** d__ep__th has joined #automotive14:49
smurrayrpcme: when you say "apps", what do you mean, exactly?  That definitely should not be required for application framework apps installed from a widget file14:49
smurrayrpcme: except if they access stuff outside their install directory14:49
rpcmesmurray: Installing and running AWS IoT Greengrass.14:49
smurrayrpcme: okay, so some system daemon or the like.  If it's running as root, it'd probably be okay14:51
smurrayrpcme: if it's not, you'll need to create a SMACK configuration for it, I think14:51
rpcmethe daemon is running as root, but the cgroups are running as specific user/group14:52
rpcmeI get the feeling the access permission trouble with that then14:52
smurraycgroups?14:52
rpcmeyes14:52
smurrayit creates some and runs stuff in them?14:52
rpcmeyes14:52
smurrayyou'll need to investigate how to come up with a SMACK configuration for that14:53
rpcmeyes, I need to make it specific.  I don't like the sledgehammer.14:54
rpcmeand i need to find a way to automate that for AGL or yocto w SMACK specifically and add it to the public recipe ... that will be interesting14:54
rpcmeHere is the list of errors and audit failures from the boot on the renesas H3 board https://gist.github.com/rpcme/683a1ba6bade20e077e7efbd6c647c0914:55
rpcmeI have a task to go through them one by one but if anything stands out would be grateful to hear it. Need to finish up some gps work now.14:56
smurrayunicens you can ignore, it fails if the h/w isn't present, which is the case for pretty much everyone14:56
smurrayIs that with or without that default-access-domains change?14:57
smurraysome services will fail if you don't have the h/w, like the unicens, I wouldn't expect stuff like homescreen to fail14:58
*** adriano has quit IRC15:00
d__ep__thtesting from weechat15:01
d__ep__thworks15:01
*** adriano has joined #automotive15:15
*** d__ep__th has quit IRC15:16
*** adriano has joined #automotive15:16
*** adriano has quit IRC15:18
rpcmesmurray: it was failing like that prior to the change15:22
rpcmealso, the audit failures (I believe) didn't happen until I enabled the wireless network dongle15:23
smurrayI definitely can't guarantee that there are no failures during a normal boot up15:27
smurraythat's not been a big concern in the demo images15:27
smurrayif you're not getting homescreen started, that would be a real problem15:28
smurrayI'd need the full journal to maybe able to get an idea of what's happened15:28
*** d__ep__th has joined #automotive15:34
rpcmeOk. it might be some time. Will come back when I have it organized.15:38
*** adriano has joined #automotive15:46
*** d__ep__th has quit IRC16:05
*** rpcme has quit IRC16:45
*** leon-anavi has quit IRC16:57
*** leon-anavi has joined #automotive16:57
*** adriano has quit IRC17:37
*** eduardas has quit IRC20:11
*** leon-anavi has quit IRC20:42
*** vrubiolo has quit IRC22:00

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