Re: [yocto] #yocto systemd not able to start sshd after a reboot

2020-09-19 Thread Zoran
Interesting... Here is what I have on Fedora32:

[root@fedora32-ssd system]# pwd
/lib/systemd/system
[root@fedora32-ssd system]# cat /lib/systemd/system/sshd.service
[Unit]
Description=OpenSSH server daemon
Documentation=man:sshd(8) man:sshd_config(5)
*After=network.target sshd-keygen.target*
Wants=sshd-keygen.target

[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/sshd-permitrootlogin
EnvironmentFile=-/etc/sysconfig/sshd
ExecStart=/usr/sbin/sshd -D $OPTIONS $PERMITROOTLOGIN
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s

[Install]
WantedBy=multi-user.target

*Seems that some leftovers from System V still reside in YOCTO...
Correct???*

Best Regards,
Zoran
___


On Sat, Sep 19, 2020 at 3:37 PM  wrote:

> Hello All,
>
> I finally got it to work!!!
>
> There was a sshd.socket file in /lib/systemd/system which had the
> following line in it.
>
> Conflicts=sshd.service
>
> I remove it and added the following two lines:
>
> After=network.target
> Before=sshd.service
>
> And that did the trick. Now sshd service starts on every boot.
>
> Thanks,
> -=Srijan Nandi
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50741): https://lists.yoctoproject.org/g/yocto/message/50741
Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] #yocto systemd not able to start sshd after a reboot

2020-09-19 Thread srijan . nandi
Hello All,

I finally got it to work!!!

There was a sshd.socket file in /lib/systemd/system which had the following 
line in it.

Conflicts=sshd.service

I remove it and added the following two lines:

After=network.target
Before=sshd.service

And that did the trick. Now sshd service starts on every boot.

Thanks,
-=Srijan Nandi

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50739): https://lists.yoctoproject.org/g/yocto/message/50739
Mute This Topic: https://lists.yoctoproject.org/mt/76932692/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [yocto-kernel-cache]: bcm-2xxx-rpi: enable config CONFIG_OF_OVERLAY

2020-09-19 Thread Meng Li
From: Limeng 

Hi Bruce,

Could you please help to merge this patch into yocto-kernel-cache, branch is 
only yocto-5.4?

diffstat info ad below:

 bcm-2xxx-rpi.cfg |1 +
 1 file changed, 1 insertion(+)


thanks,
Limeng

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9073): 
https://lists.yoctoproject.org/g/linux-yocto/message/9073
Mute This Topic: https://lists.yoctoproject.org/mt/76951284/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [PATCH] bcm-2xxx-rpi: enable config CONFIG_OF_OVERLAY

2020-09-19 Thread Meng Li
From: Limeng 

Signed-off-by: Meng Li 
---
 bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg 
b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
index 272d69af..a93fa896 100755
--- a/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
+++ b/bsp/bcm-2xxx-rpi/bcm-2xxx-rpi.cfg
@@ -311,3 +311,4 @@ CONFIG_LOGIG940_FF=y
 CONFIG_SENSORS_RPI_POE_FAN=m
 CONFIG_LEDS_CLASS=y
 CONFIG_NEW_LEDS=y
+CONFIG_OF_OVERLAY=y
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9072): 
https://lists.yoctoproject.org/g/linux-yocto/message/9072
Mute This Topic: https://lists.yoctoproject.org/mt/76951282/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Yocto recipe for Tailscale #yocto #golang

2020-09-19 Thread Mike Thompson via lists.yoctoproject.org
Inheriting from go-mod didn't make any difference that I could tell.

This is what I have so far for the Tailscale recipe.  I'm resolving 
dependencies with individual Bitbake files that pull in each dependency as I 
find them.

-

# tailscale_1.0.5.bb

SUMMARY = "Tailscale client and daemon for Linux"

HOMEPAGE = "github.com/tailscale/tailscale"

LICENSE = "CLOSED"

LIC_FILES_CHKSUM = 
"file://src/${GO_IMPORT}/LICENSE;md5=d995c1c44529856a0f35a5ad43e51cc5"

SRC_URI = "git://github.com/tailscale/tailscale.git;nobranch=1;tag=v${PV}"

DEPENDS += "github.com-apenwarr-fixconsole \

github.com-coreos-go-iptable \

github.com-godbus-dbus \

github.com-golang-groupcache \

github.com-jsimonetti-rtnetlink \

github.com-klauspost-compress \

github.com-mdlayher-netlink \

github.com-pborman-getopt \

github.com-peterbourgon-ff \

github.com-tailscale-wireguard-go \

github.com-tcnksm-go-httpstat \

github.com-toqueteos-webbrowser \

golang.org-x \

go4.org-mem \

inet.af-netaddr \

rsc.io-goversion \

"

inherit go

inherit go-mod

GO_IMPORT = "tailscale.com"

GO_INSTALL = "${GO_IMPORT}/cmd/tailscale"

RDEPENDS_${PN}-dev += "bash"

-

Unfortunately, the golang.org-x.bb recipe is turning into an endless source of 
dependencies during do_compile stage.  I feel I must be on the wrong track.

Is there a way to package up the following so that just what is needed by 
Tailscale is included, but dependencies not needed by Tailscale are ignored?

-
# golang.org-x.bb
DESCRIPTION = "Go X libraries"

SRC_URI = "\
git://github.com/golang/mod.git;protocol=https;name=mod;destsuffix=${PN}-${PV}/src/golang.org/x/mod
 \
git://github.com/golang/net.git;protocol=https;name=net;destsuffix=${PN}-${PV}/src/golang.org/x/net
 \
git://github.com/golang/sys.git;protocol=https;name=sys;destsuffix=${PN}-${PV}/src/golang.org/x/sys
 \
git://github.com/golang/text.git;protocol=https;name=text;destsuffix=${PN}-${PV}/src/golang.org/x/text
 \
git://github.com/golang/time.git;protocol=https;name=time;destsuffix=${PN}-${PV}/src/golang.org/x/time
 \
git://github.com/golang/sync.git;protocol=https;name=sync;destsuffix=${PN}-${PV}/src/golang.org/x/sync
 \
git://github.com/golang/tools.git;protocol=https;name=tools;destsuffix=${PN}-${PV}/src/golang.org/x/tools
 \
git://github.com/golang/build.git;protocol=https;name=build;destsuffix=${PN}-${PV}/src/golang.org/x/build
 \
git://github.com/golang/oauth2.git;protocol=https;name=oauth2;destsuffix=${PN}-${PV}/src/golang.org/x/oauth2
 \
git://github.com/golang/crypto.git;protocol=https;name=crypto;destsuffix=${PN}-${PV}/src/golang.org/x/crypto
 \
git://github.com/golang/xerrors.git;protocol=https;name=xerrors;destsuffix=${PN}-${PV}/src/golang.org/x/xerrors
 \
"
SRCREV_FORMAT = "golang"
SRCREV_mod = "${AUTOREV}"
SRCREV_net = "${AUTOREV}"
SRCREV_sys = "${AUTOREV}"
SRCREV_text = "${AUTOREV}"
SRCREV_time = "${AUTOREV}"
SRCREV_sync = "${AUTOREV}"
SRCREV_tools = "${AUTOREV}"
SRCREV_build = "${AUTOREV}"
SRCREV_oauth2 = "${AUTOREV}"
SRCREV_crypto = "${AUTOREV}"
SRCREV_xerrors = "${AUTOREV}"

LICENSE = "MIT"
LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit go
GO_IMPORT = "golang.org/x"
-

Thanks,

Mike Thompson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50738): https://lists.yoctoproject.org/g/yocto/message/50738
Mute This Topic: https://lists.yoctoproject.org/mt/76925556/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Yocto recipe for Tailscale #yocto #golang

2020-09-19 Thread Khem Raj



On 9/18/20 4:46 PM, Mike Thompson via lists.yoctoproject.org wrote:
OK, I'm making some progress a Bitbake recipe for the Tailscale client 
built using Go from various samples I found in the OpenEmbedded layers.
However, I'm running into import issues during compilation and I'm 
hoping a person familiar with Go might be able to provide some hints. 
 From what I can tell, Go packages to are allowed to declare that they 
must be imported using a specific name 
 and it seems that 
declaration is included in the Tailscale source code.
Is there a way to craft the Bitbake recipe to honor that requirement for 
the Tailscale Go source code?

Currently, my Bitbake recipe for Tailscale looks as shown below.
tailscale_1.0.5.bb
-
SUMMARY = "Tailscale client and daemon for Linux"
HOMEPAGE = "github.com/tailscale/tailscale"
LICENSE = "DWTFYW"
LIC_FILES_CHKSUM = 
"file://src/${GO_IMPORT}/LICENSE;md5=d995c1c44529856a0f35a5ad43e51cc5"

GO_IMPORT = "github.com/tailscale/tailscale"
SRC_URI = "git://${GO_IMPORT};nobranch=1;tag=v${PV}"
inherit go
GO_INSTALL = "${GO_IMPORT}/cmd/tailscale"
RDEPENDS_${PN}-dev += "bash"
-
The Bitbake output with the import error is below:
-
$ bitbake tailscale
...
NOTE: Executing Tasks
ERROR: tailscale-1.0.5-r0 do_compile: Execution of 
'/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/temp/run.do_compile.10615' 
failed with exit code 1:
can't load package: package 
github.com/tailscale/tailscale/cmd/tailscale: code in directory 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build/src/github.com/tailscale/tailscale/cmd/tailscale 
expects import "tailscale.com/cmd/tailscale"
can't load package: package .: no Go files in 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build

WARNING: exit code 1 from a shell command.
ERROR: Logfile of failure stored in: 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/temp/log.do_compile.10615

Log data follows:
| DEBUG: Executing shell function do_compile
| can't load package: package 
github.com/tailscale/tailscale/cmd/tailscale: code in directory 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build/src/github.com/tailscale/tailscale/cmd/tailscale 
expects import "tailscale.com/cmd/tailscale"
| can't load package: package .: no Go files in 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build

| WARNING: exit code 1 from a shell command.
| ERROR: Execution of 
'/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/temp/run.do_compile.10615' 
failed with exit code 1:
| can't load package: package 
github.com/tailscale/tailscale/cmd/tailscale: code in directory 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build/src/github.com/tailscale/tailscale/cmd/tailscale 
expects import "tailscale.com/cmd/tailscale"
| can't load package: package .: no Go files in 
/home/mike/Development/markbot_linux/build_markbot/tmp/work/corei7-64-dusty-linux/tailscale/1.0.5-r0/build

| WARNING: exit code 1 from a shell command.
|
ERROR: Task 
(/home/mike/Development/markbot_linux/sources/meta-markbot/recipes-tailscale/tailscale/tailscale_1.0.5.bb:do_compile) 
failed with exit code '1'
NOTE: Tasks Summary: Attempted 2253 tasks of which 2245 didn't need to 
be rerun and 1 failed.

-
Thanks,
Mike Thompson



perhaps you need to inherit go-mod as well, if its using modules.







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50737): https://lists.yoctoproject.org/g/yocto/message/50737
Mute This Topic: https://lists.yoctoproject.org/mt/76925556/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Mute #golang:https://lists.yoctoproject.org/g/yocto/mutehashtag/golang
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-