Re: [yocto] Missing .o files.

2023-04-10 Thread Khem Raj
you need to add

DEPENDS += "readline ncurses"

to your recipe.

On Mon, Apr 10, 2023 at 10:39 PM MOHAMMED HASSAN
 wrote:
>
> Hi Khem,
> Thanks for your reply.
> I tried the changes you wanted me to make and this is the error I got.
>
> ERROR: zigbee-0.1-r0 do_compile: oe_runmake failed
> ERROR: zigbee-0.1-r0 do_compile: Execution of 
> '/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/temp/run.do_compile.171358'
>  failed with exit code 1
> ERROR: Logfile of failure stored in: 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/temp/log.do_compile.171358
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 4 CC=aarch64-poky-linux-gcc  -march=armv8-a+crc 
> -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
> -Werror=format-security 
> --sysroot=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot
>  RANLIB=aarch64-poky-linux-gcc-ranlib AR=aarch64-poky-linux-gcc-ar CFLAGS= 
> -O2 -pipe -g -feliminate-unused-debug-types 
> -fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0=/usr/src/debug/zigbee/0.1-r0
>  
> -fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot=
>  
> -fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native=
>   
> -I/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0 
> BUILDDIR=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0 
> all
> | aarch64-poky-linux-gcc  -march=armv8-a+crc -fstack-protector-strong  
> -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
> --sysroot=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot
>  build/znet-bookkeeping.o build/call-command-handler.o build/callback-stub.o 
> build/stack-handler-stub.o build/znet-cli.o build/hostforEdge3_callbacks.o 
> build/library.o build/command-interpreter2.o build/zigbee-device-common.o 
> build/zigbee-device-host.o build/event-control.o build/led-stub.o 
> build/mem-util.o build/antenna-stub.o build/buzzer-stub.o 
> build/address-table.o build/address-table-cli.o build/basic.o 
> build/color-control-server.o build/concentrator-support.o 
> build/concentrator-support-cli.o build/counters-cli.o 
> build/counters-ota-host.o build/counters-host.o build/ez-mode.o 
> build/ez-mode-cli.o build/ezsp-callbacks.o build/ezsp-enum-decode.o 
> build/ezsp-frame-utilities.o build/ezsp.o build/ezsp-host-io.o 
> build/ezsp-host-queues.o build/ezsp-host-ui.o build/serial-interface-uart.o 
> build/ash-host-ui.o build/ash-host.o build/ash-common.o 
> build/file-descriptor-dispatch.o build/gateway-support.o 
> build/backchannel-support.o build/gateway-support-cli.o 
> build/green-power-client.o build/green-power-client-cli.o 
> build/green-power-common.o build/gp-util.o build/heartbeat.o 
> build/ias-zone-client.o build/ias-zone-client-cli.o build/identify.o 
> build/identify-cli.o build/identify-feedback.o build/level-control.o 
> build/linked-list.o build/aes.o build/asn1parse.o build/asn1write.o 
> build/base64.o build/bignum.o build/ccm.o build/chacha20.o build/chachapoly.o 
> build/cipher.o build/cipher_wrap.o build/cmac.o build/ctr_drbg.o build/des.o 
> build/ecdh.o build/ecdsa.o build/ecjpake.o build/ecp.o build/ecp_curves.o 
> build/entropy.o build/error.o build/gcm.o build/md.o build/md5.o build/oid.o 
> build/pem.o build/pk.o build/pk_wrap.o build/pkparse.o build/platform_util.o 
> build/poly1305.o build/psa_crypto.o build/psa_crypto_cipher.o 
> build/psa_crypto_client.o build/psa_crypto_driver_wrappers.o 
> build/psa_crypto_ecp.o build/psa_crypto_hash.o build/psa_crypto_mac.o 
> build/psa_crypto_slot_management.o build/psa_crypto_storage.o build/rsa.o 
> build/rsa_internal.o build/sha1.o build/sha256.o build/sha512.o 
> build/ssl_cache.o build/ssl_ciphersuites.o build/ssl_cli.o build/ssl_cookie.o 
> build/ssl_msg.o build/ssl_srv.o build/ssl_ticket.o build/ssl_tls.o 
> build/threading.o build/x509.o build/x509_create.o build/x509_crl.o 
> build/x509_crt.o build/x509_csr.o build/x509write_crt.o build/x509write_csr.o 
> build/ncp-configuration.o build/network-creator.o build/network-creator-cli.o 
> build/network-creator-security.o build/network-creator-security-cli.o 
> build/network-steering.o build/network-steering-cli.o 
> build/network-steering-v2.o build/network-steering-host.o build/on-off.o 
> build/ota-common.o build/ota-server.o build/ota-server-page-request.o 
> build/ota-server-cli.o build/ota-server-dynamic-block-period.o 
> build/ota-server-policy.o build/ota-storage-common.o 
> build/ota-storage-common-cli.o build/ota-storage-linux.o 
> build/poll-control-client.o build/poll-control-client-cli.o build/reporting.o 
> build/reporting-cli.o build/reporting-default-configuration.o 
> build/scan-dispatch.o 

Re: [yocto] [ptest-runner][PATCH 1/2] utils.c: rework pty setup

2023-04-10 Thread Ovidiu Panait

+cc Anibal's gmail account, the Linaro one seems not valid anymore.

On 3/21/23 21:21, Ovidiu Panait via lists.yoctoproject.org wrote:

The run-read bash ptest fails when it's being run by ptest-runner, but
it is successful when run manually:
  0 0 0
  0
  0
-0
+1
  timeout 1: ok
  unset or null 1
-1
+timeout 2: ok
  unset or null 2
  timeout 3: ok
  unset or null 3
FAIL: run-read

The actual testcase that is failing is:
tests/read6.sub:
read -t 0
echo $?

This failure seems to be related to how the pty setup is handled:
openpty() is called in the child process and the master/slave file
descriptors are left dangling.

To fix this:
- move the openpty() call in the parent process, before fork()-ing
- assign the slave end of the pty as the stdin for the child process
- adjust the TIOCSCTTY ioctl call to use the file descriptor of the pty file

Fixes: 59381a643e1f ("utils: ensure child can be session leader")
Signed-off-by: Ovidiu Panait 
---
  utils.c | 45 +
  1 file changed, 25 insertions(+), 20 deletions(-)

diff --git a/utils.c b/utils.c
index a67ac11..87ac20e 100644
--- a/utils.c
+++ b/utils.c
@@ -385,18 +385,9 @@ wait_child(pid_t pid)
   * fp should be writable, likely stdout/err.
   */
  static int
-setup_slave_pty(FILE *fp) {
-   int pty_master = -1;
-   int pty_slave = -1;
-   char pty_name[256];
+setup_slave_pty(FILE *fp, char *pty_name) {
struct group *gptr;
gid_t gid;
-   int slave = -1;
-
-   if (openpty(_master, _slave, pty_name, NULL, NULL) < 0) {
-   fprintf(fp, "ERROR: openpty() failed with: %s.\n", 
strerror(errno));
-   return -1;
-   }
  
  	if ((gptr = getgrnam(pty_name)) != 0) {

gid = gptr->gr_gid;
@@ -419,10 +410,7 @@ setup_slave_pty(FILE *fp) {
fprintf(fp, "ERROR: chmod() failed with: %s.\n", 
strerror(errno));
}
  
-	if ((slave = open(pty_name, O_RDWR)) == -1) {

-   fprintf(fp, "ERROR: open() failed with: %s.\n", 
strerror(errno));
-   }
-   return (slave);
+   return 0;
  }
  
  
@@ -441,10 +429,14 @@ run_ptests(struct ptest_list *head, const struct ptest_options opts,

int pipefd_stderr[2];
time_t sttime, entime;
time_t duration;
-   int slave;
int pgid = -1;
pthread_t tid;
  
+	int pty_master = -1;

+   int pty_slave = -1;
+   char pty_name[256];
+   int fd = -1;
+
if (opts.xml_filename) {
xh = xml_create(ptest_list_length(head), opts.xml_filename);
if (!xh)
@@ -493,15 +485,22 @@ run_ptests(struct ptest_list *head, const struct 
ptest_options opts,
fprintf(fp, "ERROR: getpgid() failed, %s\n", 
strerror(errno));
}
  
+			if (openpty(_master, _slave, pty_name, NULL, NULL) < 0) {

+   fprintf(fp, "ERROR: openpty() failed with: 
%s.\n", strerror(errno));
+   return -1;
+   }
+
child = fork();
if (child == -1) {
fprintf(fp, "ERROR: Fork %s\n", 
strerror(errno));
rc = -1;
break;
} else if (child == 0) {
-   close(0);
-   if ((slave = setup_slave_pty(fp)) < 0) {
-   fprintf(fp, "ERROR: could not setup pty 
(%d).", slave);
+   close(pty_master);
+   dup2(pty_slave, STDIN_FILENO);
+
+   if ((rc = setup_slave_pty(fp, pty_name)) < 0) {
+   fprintf(fp, "ERROR: could not setup pty 
(%d).", rc);
}
if (setpgid(0,pgid) == -1) {
fprintf(fp, "ERROR: setpgid() failed, 
%s\n", strerror(errno));
@@ -511,8 +510,12 @@ run_ptests(struct ptest_list *head, const struct 
ptest_options opts,
fprintf(fp, "ERROR: setsid() failed, 
%s\n", strerror(errno));
}
  
-if (ioctl(0, TIOCSCTTY, NULL) == -1) {

-   fprintf(fp, "ERROR: Unable to attach to 
controlling tty, %s\n", strerror(errno));
+   if ((fd = open(pty_name, O_RDWR)) >= 0) {
+   if (ioctl(fd, TIOCSCTTY, NULL) == -1) {
+   fprintf(fp, "ERROR: Unable to attach 
to controlling tty, %s\n", strerror(errno));
+   }
+
+   close(fd);
}
  
  run_child(p->run_ptest, pipefd_stdout[1], pipefd_stderr[1]);

@@ -549,6 +552,8 @@ run_ptests(struct ptest_list *head, const struct 

Re: [yocto] Missing .o files.

2023-04-10 Thread MOHAMMED HASSAN
Hi Khem,
Thanks for your reply.
I tried the changes you wanted me to make and this is the error I got.

ERROR: zigbee-0.1-r0 do_compile: oe_runmake failed
ERROR: zigbee-0.1-r0 do_compile: Execution of 
'/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/temp/run.do_compile.171358'
 failed with exit code 1
ERROR: Logfile of failure stored in: 
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/temp/log.do_compile.171358
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CC=aarch64-poky-linux-gcc  -march=armv8-a+crc 
-fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
-Werror=format-security 
--sysroot=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot
 RANLIB=aarch64-poky-linux-gcc-ranlib AR=aarch64-poky-linux-gcc-ar CFLAGS= -O2 
-pipe -g -feliminate-unused-debug-types 
-fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0=/usr/src/debug/zigbee/0.1-r0
                     
-fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot=
                     
-fdebug-prefix-map=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native=
                      
-I/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0 
BUILDDIR=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0 all
| aarch64-poky-linux-gcc  -march=armv8-a+crc -fstack-protector-strong  
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
--sysroot=/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot
 build/znet-bookkeeping.o build/call-command-handler.o build/callback-stub.o 
build/stack-handler-stub.o build/znet-cli.o build/hostforEdge3_callbacks.o 
build/library.o build/command-interpreter2.o build/zigbee-device-common.o 
build/zigbee-device-host.o build/event-control.o build/led-stub.o 
build/mem-util.o build/antenna-stub.o build/buzzer-stub.o build/address-table.o 
build/address-table-cli.o build/basic.o build/color-control-server.o 
build/concentrator-support.o build/concentrator-support-cli.o 
build/counters-cli.o build/counters-ota-host.o build/counters-host.o 
build/ez-mode.o build/ez-mode-cli.o build/ezsp-callbacks.o 
build/ezsp-enum-decode.o build/ezsp-frame-utilities.o build/ezsp.o 
build/ezsp-host-io.o build/ezsp-host-queues.o build/ezsp-host-ui.o 
build/serial-interface-uart.o build/ash-host-ui.o build/ash-host.o 
build/ash-common.o build/file-descriptor-dispatch.o build/gateway-support.o 
build/backchannel-support.o build/gateway-support-cli.o 
build/green-power-client.o build/green-power-client-cli.o 
build/green-power-common.o build/gp-util.o build/heartbeat.o 
build/ias-zone-client.o build/ias-zone-client-cli.o build/identify.o 
build/identify-cli.o build/identify-feedback.o build/level-control.o 
build/linked-list.o build/aes.o build/asn1parse.o build/asn1write.o 
build/base64.o build/bignum.o build/ccm.o build/chacha20.o build/chachapoly.o 
build/cipher.o build/cipher_wrap.o build/cmac.o build/ctr_drbg.o build/des.o 
build/ecdh.o build/ecdsa.o build/ecjpake.o build/ecp.o build/ecp_curves.o 
build/entropy.o build/error.o build/gcm.o build/md.o build/md5.o build/oid.o 
build/pem.o build/pk.o build/pk_wrap.o build/pkparse.o build/platform_util.o 
build/poly1305.o build/psa_crypto.o build/psa_crypto_cipher.o 
build/psa_crypto_client.o build/psa_crypto_driver_wrappers.o 
build/psa_crypto_ecp.o build/psa_crypto_hash.o build/psa_crypto_mac.o 
build/psa_crypto_slot_management.o build/psa_crypto_storage.o build/rsa.o 
build/rsa_internal.o build/sha1.o build/sha256.o build/sha512.o 
build/ssl_cache.o build/ssl_ciphersuites.o build/ssl_cli.o build/ssl_cookie.o 
build/ssl_msg.o build/ssl_srv.o build/ssl_ticket.o build/ssl_tls.o 
build/threading.o build/x509.o build/x509_create.o build/x509_crl.o 
build/x509_crt.o build/x509_csr.o build/x509write_crt.o build/x509write_csr.o 
build/ncp-configuration.o build/network-creator.o build/network-creator-cli.o 
build/network-creator-security.o build/network-creator-security-cli.o 
build/network-steering.o build/network-steering-cli.o 
build/network-steering-v2.o build/network-steering-host.o build/on-off.o 
build/ota-common.o build/ota-server.o build/ota-server-page-request.o 
build/ota-server-cli.o build/ota-server-dynamic-block-period.o 
build/ota-server-policy.o build/ota-storage-common.o 
build/ota-storage-common-cli.o build/ota-storage-linux.o 
build/poll-control-client.o build/poll-control-client-cli.o build/reporting.o 
build/reporting-cli.o build/reporting-default-configuration.o 
build/scan-dispatch.o build/secure-ezsp-stub.o build/simple-main.o 
build/simple-metering-client.o build/simple-metering-client-cli.o 
build/stack-diagnostics.o build/test-harness.o build/read-write-attributes.o 
build/test-harness-host.o build/time-server.o 
build/trust-center-nwk-key-update-broadcast.o 

Re: [yocto] Missing .o files.

2023-04-10 Thread Khem Raj
On Mon, Apr 10, 2023 at 9:46 PM MOHAMMED HASSAN
 wrote:
>
> Hi guys,
> Its my first time using yocto so I dont have much experience on this. I am 
> trying to cerate a .exe file for my target hardware. I am calling the 
> makefile using oe_runmake command but there are some missing .o files for 
> which I have no solution. If you  have any idea where I can find the related 
> .c files for this (I am still a beginner at work) then I would be grateful to 
> you. There error is shown below
>
> ute-size.o build/attribute-storage.o build/attribute-table.o 
> build/client-api.o build/message.o build/multi-network.o build/print.o 
> build/print-formatter.o build/process-cluster-message.o 
> build/process-global-message.o build/service-discovery-common.o 
> build/time-util.o build/util.o build/af-main-host.o 
> build/service-discovery-host.o  -lreadline -lncurses  -lm -lpthread -o 
> ./build/exe/hostforEdge3
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find Scrt1.o: No such file or directory
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find crti.o: No such file or directory
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find crtbeginS.o: No such file or directory
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lreadline
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lncurses
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lm
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lpthread
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lgcc
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lgcc_s
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lc
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lgcc
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find -lgcc_s
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find crtendS.o: No such file or directory
> | 
> /home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
>  cannot find crtn.o: No such file or directory
> | collect2: error: ld returned 1 exit status
> | make: *** [Makefile:411: build/exe/hostforEdge3] Error 1
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
>

in the makefile set

LINKER = $(CC)
ARCHIVE = $(AR)

that might help

>
> Thanks
> Hassan
>
> 
>

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



[yocto] Missing .o files.

2023-04-10 Thread MOHAMMED HASSAN
Hi guys,
Its my first time using yocto so I dont have much experience on this. I am
trying to cerate a .exe file for my target hardware. I am calling the
makefile using oe_runmake command but there are some missing .o files for
which I have no solution. If you  have any idea where I can find the
related .c files for this (I am still a beginner at work) then I would be
grateful to you. There error is shown below

ute-size.o build/attribute-storage.o build/attribute-table.o
build/client-api.o build/message.o build/multi-network.o build/print.o
build/print-formatter.o build/process-cluster-message.o
build/process-global-message.o build/service-discovery-common.o
build/time-util.o build/util.o build/af-main-host.o
build/service-discovery-host.o  -lreadline -lncurses  -lm -lpthread -o
./build/exe/hostforEdge3
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find Scrt1.o: No such file or directory
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find crti.o: No such file or directory
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find crtbeginS.o: No such file or directory
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lreadline
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lncurses
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lm
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lpthread
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lgcc
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lgcc_s
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lc
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lgcc
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find -lgcc_s
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find crtendS.o: No such file or directory
|
/home/mohan/amlogic/build/tmp/work/aarch64-poky-linux/zigbee/0.1-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.3.0/ld:
cannot find crtn.o: No such file or directory
| collect2: error: ld returned 1 exit status
| make: *** [Makefile:411: build/exe/hostforEdge3] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.


Thanks
Hassan


do_compile
Description: Binary data


makefile
Description: Binary data

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



[yocto] M+ & H bugs with Milestone Movements WW14

2023-04-10 Thread Stephen Jolley
All,

 

YP M+ or high bugs which moved to a new milestone in WW14 are listed below: 


Priority

Bug ID

Short Description

Changer

Owner

Was

Became


High

14065

Automated ptest regression testing

randy.macl...@windriver.com

alexis.loth...@bootlin.com

4.2 M4

4.3 M1


 

15089

Enabling create-spdx causes autobuilder failures

randy.macl...@windriver.com

david.re...@windriver.com

0.0.0

4.3 M1


 

15094

ctrl-c aborts bitbake immediately

randy.macl...@windriver.com

richard.pur...@linuxfoundation.org

0.0.0

4.3 M1


Medium+

14125

busybox wget ssl is exposed to MitM attack due to CVE-2018-1000500

randy.macl...@windriver.com

randy.macl...@windriver.com

4.2 M4

4.3 M1


 

15091

libarchive does't respect DISTRO_FEATURES acl and xattr for native target

randy.macl...@windriver.com

p.lob...@welotec.com

0.0.0

4.3 M1


 

15090

rust recipe zvariant is not reproducible

randy.macl...@windriver.com

frederic.martins...@gmail.com

0.0.0

4.3 M1


 

15092

Document devicetree.bbclass

randy.macl...@windriver.com

michael.opdenac...@bootlin.com

0.0.0

4.3 M1


 

15093

Add Yocto Compatible icon to Layer Index.

randy.macl...@windriver.com

unassig...@yoctoproject.org

0.0.0

4.3 M2


 

15095

recipes-devtools/go-1.20 native: not possible to build with go 1.4

randy.macl...@windriver.com

jonas.li...@gmail.com

0.0.0

4.3 M1

Thanks, 

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com  

 


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



[yocto] Enhancements/Bugs closed WW14!

2023-04-10 Thread Stephen Jolley
All,

 

The below were the owners of enhancements or bugs closed during the last
week!


Who

Count


geoffrey.g...@smile.fr

2


randy.macl...@windriver.com

2


ross.bur...@arm.com

2


yoann.con...@smile.fr

2


fawzi.kha...@smile.fr

1


Grand Total

9

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[yocto] Current high bug count owners for Yocto Project 4.2

2023-04-10 Thread Stephen Jolley
All,

 

Below is the list as of top 38 bug owners as of the end of WW14 of who have
open medium or higher bugs and enhancements against YP 4.2.   There are 13
possible work days left until the final release candidates for YP 4.2 needs
to be released.


Who

Count


michael.opdenac...@bootlin.com

34


ross.bur...@arm.com

32


randy.macl...@windriver.com

28


david.re...@windriver.com

26


richard.pur...@linuxfoundation.org

26


bruce.ashfi...@gmail.com

21


jpewhac...@gmail.com

11


pa...@zhukoff.net

10


sakib.sa...@windriver.com

6


pi...@pidge.org

4


tim.orl...@konsulko.com

4


sundeep.kokko...@gmail.com

4


p.lob...@welotec.com

3


yash.shi...@windriver.com

3


alexis.loth...@bootlin.com

2


jon.ma...@arm.com

2


rybczyn...@gmail.com

2


sundeep.kokko...@windriver.com

2


frank.wo...@smile.fr

1


jens.ge...@desy.de

1


louis.ran...@syslinbit.com

1


tvgamb...@gmail.com

1


mark.asselst...@windriver.com

1


martin.ja...@gmail.com

1


fathi.bou...@linaro.org

1


thr...@amazon.de

1


pokyli...@reliableembeddedsystems.com

1


hongxu@windriver.com

1


fawzi.kha...@smile.fr

1


frederic.martins...@gmail.com

1


wen.yan@intel.com

1


jonas.li...@gmail.com

1


geissona...@yahoo.com

1


mathew.pro...@gmail.com

1


alexandre.bell...@bootlin.com

1


thomas.per...@bootlin.com

1


st...@sakoman.com

1


yashinde...@gmail.com

1


Grand Total

240

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[yocto] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2023-04-10 Thread Stephen Jolley
All,

 

The triage team is starting to try and collect up and classify bugs which a
newcomer to the project would be able to work on in a way which means people
can find them. They're being listed on the triage page under the appropriate
heading:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs  Also please
review:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and
how to create a bugzilla account at:

https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work
on who doesn't have deep experience with the project.  If anyone can help,
please take ownership of the bug and send patches!  If anyone needs
help/advice there are people on irc who can likely do so, or some of the
more experienced contributors will likely be happy to help too.

 

Also, the triage team meets weekly and does its best to handle the bugs
reported into the Bugzilla. The number of people attending that meeting has
fallen, as have the number of people available to help fix bugs. One of the
things we hear users report is they don't know how to help. We (the triage
team) are therefore going to start reporting out the currently 426
unassigned or newcomer bugs.

 

We're hoping people may be able to spare some time now and again to help out
with these.  Bugs are split into two types, "true bugs" where things don't
work as they should and "enhancements" which are features we'd want to add
to the system.  There are also roughly four different "priority" classes
right now,  "4.2", "4.3", "4.99" and "Future", the more pressing/urgent
issues being in "4.2" and then "4.3".

 

Please review this link and if a bug is something you would be able to help
with either take ownership of the bug, or send me (sjolley.yp...@gmail.com
 ) an e-mail with the bug number you would
like and I will assign it to you (please make sure you have a Bugzilla
account).  The list is at:
https://wiki.yoctoproject.org/wiki/Bug_Triage_Archive#Unassigned_or_Newcomer
_Bugs

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



Re: [linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: add nxp-imx8 bsp kernel config

2023-04-10 Thread Bruce Ashfield
merged.

Bruce

In message: [linux-yocto][yocto-kernel-cache yocto-6.1][PATCH] nxp-imx8: add 
nxp-imx8 bsp kernel config
on 10/04/2023 Xiaolei Wang wrote:

> Signed-off-by: Xiaolei Wang 
> ---
>  bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg |  15 +
>  bsp/nxp-imx8/nxp-imx8-preempt-rt.scc |  10 +
>  bsp/nxp-imx8/nxp-imx8-standard.scc   |   8 +
>  bsp/nxp-imx8/nxp-imx8.cfg| 537 +++
>  bsp/nxp-imx8/nxp-imx8.scc|  11 +
>  5 files changed, 581 insertions(+)
>  create mode 100644 bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
>  create mode 100644 bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
>  create mode 100644 bsp/nxp-imx8/nxp-imx8-standard.scc
>  create mode 100644 bsp/nxp-imx8/nxp-imx8.cfg
>  create mode 100644 bsp/nxp-imx8/nxp-imx8.scc
> 
> diff --git a/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg 
> b/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
> new file mode 100644
> index ..780e974a
> --- /dev/null
> +++ b/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
> @@ -0,0 +1,15 @@
> +..
> +.WARNING
> +.
> +. This file is a kernel configuration fragment, and not a full kernel
> +. configuration file.  The final kernel configuration is made up of
> +. an assembly of processed fragments, each of which is designed to
> +. capture a specific part of the final configuration (e.g. platform
> +. configuration, feature configuration, and board specific hardware
> +. configuration).  For more information on kernel configuration, please
> +. consult the product documentation.
> +.
> +..
> +
> +# CONFIG_TRANSPARENT_HUGEPAGE is not set
> +# CONFIG_LEDS_TRIGGER_CPU is not set
> diff --git a/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc 
> b/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
> new file mode 100644
> index ..677790ee
> --- /dev/null
> +++ b/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
> @@ -0,0 +1,10 @@
> +define KMACHINE nxp-imx8
> +define KTYPE preempt-rt
> +define KARCH arm64
> +
> +include ktypes/preempt-rt
> +branch nxp-imx8
> +
> +include nxp-imx8.scc
> +
> +kconf hardware nxp-imx8-preempt-rt.cfg
> diff --git a/bsp/nxp-imx8/nxp-imx8-standard.scc 
> b/bsp/nxp-imx8/nxp-imx8-standard.scc
> new file mode 100644
> index ..222cbeac
> --- /dev/null
> +++ b/bsp/nxp-imx8/nxp-imx8-standard.scc
> @@ -0,0 +1,8 @@
> +define KMACHINE nxp-imx8
> +define KTYPE standard
> +define KARCH arm64
> +
> +include ktypes/standard
> +branch nxp-imx8
> +
> +include nxp-imx8.scc
> diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
> new file mode 100644
> index ..d90837d3
> --- /dev/null
> +++ b/bsp/nxp-imx8/nxp-imx8.cfg
> @@ -0,0 +1,537 @@
> +CONFIG_ARM64=y
> +CONFIG_SMP=y
> +CONFIG_ARCH_NXP=y
> +CONFIG_ARCH_LAYERSCAPE=y
> +CONFIG_ARCH_MXC=y
> +CONFIG_HAVE_IMX_BUSFREQ=y
> +
> +CONFIG_PM=y
> +CONFIG_CPU_PM=y
> +
> +#
> +# CPU Idle
> +#
> +CONFIG_CPU_IDLE=y
> +CONFIG_ARM_PSCI_CPUIDLE=y
> +CONFIG_ARM_PSCI_CPUIDLE_DOMAIN=y
> +
> +#
> +# CPU Frequency scaling
> +#
> +CONFIG_CPU_FREQ=y
> +CONFIG_CPU_FREQ_GOV_ATTR_SET=y
> +CONFIG_CPU_FREQ_GOV_COMMON=y
> +CONFIG_CPU_FREQ_STAT=y
> +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
> +CONFIG_CPU_FREQ_GOV_POWERSAVE=y
> +CONFIG_CPU_FREQ_GOV_USERSPACE=y
> +CONFIG_CPU_FREQ_GOV_ONDEMAND=y
> +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
> +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
> +
> +#
> +# CPU frequency scaling drivers
> +#
> +CONFIG_CPUFREQ_DT=y
> +CONFIG_ARM_IMX_CPUFREQ_DT=y
> +
> +#
> +# CAN
> +#
> +CONFIG_CAN=m
> +CONFIG_CAN_FLEXCAN=m
> +
> +CONFIG_PCI=y
> +CONFIG_PCI_MSI=y
> +CONFIG_PCI_IMX6=y
> +CONFIG_PCI_IMX6_HOST=y
> +
> +CONFIG_IMX_DSP=y
> +CONFIG_IMX_SCU=y
> +CONFIG_IMX_SCU_PD=y
> +CONFIG_IMX_SECO_MU=y
> +CONFIG_IMX_EL_ENCLAVE=m
> +CONFIG_IMX_ELE_TRNG=y
> +
> +#
> +## MTD
> +#
> +CONFIG_MTD=y
> +CONFIG_MTD_CMDLINE_PARTS=y
> +CONFIG_MTD_BLOCK=y
> +CONFIG_MTD_CFI=y
> +CONFIG_MTD_CFI_ADV_OPTIONS=y
> +CONFIG_MTD_CFI_INTELEXT=y
> +CONFIG_MTD_CFI_AMDSTD=y
> +CONFIG_MTD_CFI_STAA=y
> +CONFIG_MTD_PHYSMAP=y
> +CONFIG_MTD_PHYSMAP_OF=y
> +CONFIG_MTD_DATAFLASH=y
> +CONFIG_MTD_RAW_NAND=y
> +CONFIG_MTD_NAND_DENALI_DT=y
> +CONFIG_MTD_SPI_NOR=y
> +CONFIG_MTD_SST25L=y
> +
> +#
> +## Regulator Driver
> +#
> +CONFIG_PWM=y
> +CONFIG_REGULATOR=y
> +CONFIG_REGULATOR_FIXED_VOLTAGE=y
> +CONFIG_REGULATOR_FAN53555=y
> +CONFIG_REGULATOR_GPIO=y
> +CONFIG_REGULATOR_MAX8973=y
> +CONFIG_REGULATOR_PCA9450=y
> +CONFIG_REGULATOR_PFUZE100=y
> +CONFIG_REGULATOR_PWM=y
> +
> +#
> +# Controllers with non-SFF native interface
> +#
> +CONFIG_ATA=y
> +CONFIG_MFD_SYSCON=y
> +CONFIG_AHCI_IMX=y
> +CONFIG_SATA_AHCI=y
> +CONFIG_SATA_AHCI_PLATFORM=y
> +CONFIG_LEDS_TRIGGERS=y
> +
> +#
> +# Networking
> +#
> +CONFIG_FEC=y
> +CONFIG_AT803X_PHY=y
> +
> +#
> +# Input device support
> +#
> +CONFIG_INPUT=y
> +CONFIG_INPUT_KEYBOARD=y
> +CONFIG_INPUT_EVDEV=y
> +CONFIG_KEYBOARD_ADC=m
> +CONFIG_KEYBOARD_GPIO=y
> +CONFIG_KEYBOARD_SNVS_PWRKEY=y
> +CONFIG_KEYBOARD_IMX_SC_KEY=y
> 

Re: [linux-yocto][v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g][PATCH 0/3]

2023-04-10 Thread Bruce Ashfield
In message: 
[linux-yocto][v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g][PATCH 0/3]
on 09/04/2023 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> Hi Bruce,
> Would you please help merge these 3 patches to the branches:
>   v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g
>   v5.15/standard/nxp-sdk-5.15/nxp-s32g

merged.

Bruce

> Thanks,
> Quanyang
> 
> Quanyang Wang (3):
>   gpio: s32: force regmap use raw spinlock
>   gpio: s32: switch the spinlock of siul2_gpio_dev to raw spinlock
>   gpio: s32: don't run callbacks in some callbacks
> 
>  drivers/gpio/gpio-siul2-s32cc.c | 34 +
>  1 file changed, 9 insertions(+), 25 deletions(-)
> 
> -- 
> 2.36.1
> 

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



Re: [linux-yocto] [linux-yocto v6.1/standard/base] fat: Replace prandom_u32() with get_random_u32()

2023-04-10 Thread Bruce Ashfield
In message: [linux-yocto v6.1/standard/base] fat: Replace prandom_u32() with 
get_random_u32()
on 07/04/2023 Kevin Hao wrote:

> From: Kevin Hao 
> 
> The prandom_u32() is just wrapper of get_random_u32() and has been
> removed by commit de492c83cae0 ("prandom: remove unused functions").
> So use get_random_u32() directly.

merged (and staged for future kernel versions).

Bruce

> 
> Signed-off-by: Kevin Hao 
> ---
>  fs/fat/namei_vfat.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
> index ef5cf74789ca..ef79a242751d 100644
> --- a/fs/fat/namei_vfat.c
> +++ b/fs/fat/namei_vfat.c
> @@ -616,7 +616,7 @@ static void vfat_build_dummy_83_buffer(struct inode *dir, 
> char *msdos_name,
>0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x22, 0x2a,
>0x3a, 0x3c, 0x3e, 0x3f, 0x5b, 0x5d, 0x7c };
>   int i, tilde_pos, slash_pos;
> - u32 rand_num = prandom_u32();
> + u32 rand_num = get_random_u32();
>  
>   /* We need a '~' in the prefix to make Win98 happy. */
>   tilde_pos = rand_num % 8;
> @@ -651,7 +651,7 @@ static void vfat_build_dummy_83_buffer(struct inode *dir, 
> char *msdos_name,
>   invalidchar[rand_num % sizeof(invalidchar)];
>   rand_num /= sizeof(invalidchar);
>   if (rand_num < sizeof(invalidchar))
> - rand_num = prandom_u32();
> + rand_num = get_random_u32();
>   }
>   }
>  }
> -- 
> 2.39.2
> 

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



Re: [linux-yocto][v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc][PATCH] usb: dwc3: gadget: do cleanup for dwc3_stop_active_transfer

2023-04-10 Thread Bruce Ashfield
In message: [linux-yocto][v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc][PATCH] 
usb: dwc3: gadget: do cleanup for dwc3_stop_active_transfer
on 07/04/2023 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> The cmd_endtransfer has been move to a new function
> __dwc3_stop_active_transfer in the commit 1536e51c30ada ("usb: dwc3:
> gadget: move cmd_endtransfer to extra function"), but it is brought back
> by merging. So delete it to fix compile error.
> 
> Signed-off-by: Quanyang Wang 
> ---
> Hi Bruce,
> Would you please help merge this patch to the branches:
>   v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc
>   v5.15/standard/sdkv5.15/xlnx-soc

merged.

Bruce

> Thanks,
> Quanyang
> ---
>  drivers/usb/dwc3/gadget.c | 38 +++---
>  1 file changed, 11 insertions(+), 27 deletions(-)
> 
> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
> index 9e9133ac9ab9b..79ea40f69db70 100644
> --- a/drivers/usb/dwc3/gadget.c
> +++ b/drivers/usb/dwc3/gadget.c
> @@ -3767,6 +3767,17 @@ void dwc3_stop_active_transfer(struct dwc3_ep *dep, 
> bool force, bool interrupt)
>   (dep->flags & DWC3_EP_END_TRANSFER_PENDING))
>   return;
>  
> + if (!interrupt)
> + dep->flags &= ~DWC3_EP_TRANSFER_STARTED;
> + else
> + dep->flags |= DWC3_EP_END_TRANSFER_PENDING;
> + /*
> +  * when transfer is stopped with force rm bit false, it can be
> +  * restarted by passing resource_index in params; don't loose it
> +  */
> + if (force)
> + dep->resource_index = 0;
> +
>   /*
>* NOTICE: We are violating what the Databook says about the
>* EndTransfer command. Ideally we would _always_ wait for the
> @@ -3797,33 +3808,6 @@ void dwc3_stop_active_transfer(struct dwc3_ep *dep, 
> bool force, bool interrupt)
>* controller to handle the command completely before DWC3
>* remove requests attempts to unmap USB request buffers.
>*/
> -
> - cmd = DWC3_DEPCMD_ENDTRANSFER;
> - cmd |= force ? DWC3_DEPCMD_HIPRI_FORCERM : 0;
> - cmd |= interrupt ? DWC3_DEPCMD_CMDIOC : 0;
> - cmd |= DWC3_DEPCMD_PARAM(dep->resource_index);
> - memset(, 0, sizeof(params));
> - ret = dwc3_send_gadget_ep_cmd(dep, cmd, );
> - WARN_ON_ONCE(ret);
> -
> - /*
> -  * when transfer is stopped with force rm bit false, it can be
> -  * restarted by passing resource_index in params; don't loose it
> -  */
> - if (force)
> - dep->resource_index = 0;
> -
> - if (!interrupt)
> - dep->flags &= ~DWC3_EP_TRANSFER_STARTED;
> - else
> - dep->flags |= DWC3_EP_END_TRANSFER_PENDING;
> - /*
> -  * when transfer is stopped with force rm bit false, it can be
> -  * restarted by passing resource_index in params; don't loose it
> -  */
> - if (force)
> - dep->resource_index = 0;
> -
>   __dwc3_stop_active_transfer(dep, force, interrupt);
>  }
>  
> -- 
> 2.36.1
> 

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



[yocto] Need help with CMake cross compile using libxml2

2023-04-10 Thread Stephen Yu (Microchip) via lists.yoctoproject.org
Hello Community,

My CMake project needs to cross compile (.c sources) using libxml2.

  *   The CMakeLists.txt has "find_package(LibXml2)"
  *   The recipe.bb has
 *   "DEPENDS += "libxml2"
 *   "inherit cmake"

It does not work. "do_configure" returns error it cannot set 
LIBXML2_INCLUDE_DIR and LIBXML2_LIBRARY.

  *   I assume I need to add "set(CMAKE_FIND_ROOT_PATH )" 
but don't know how to specify the .
  *   Perhaps I need to specify something to EXTRA_OECMAKE but don't know what 
this is.

Greatly appreciate if someone can offer help.

Many thanks,
Stephen


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



Re: [yocto] [meta-parsec][PATCH] Fix PACKAGECONFIG check in Parsec OEQA tests

2023-04-10 Thread Armin Kuster



On 4/10/23 2:33 PM, Anton Antonov wrote:

If PACKAGECONFIG is not defined in local.conf then
its default value is not included in cls.tc.td map.

Signed-off-by: Anton Antonov 



This gets testing working again.

Thanks,
- Armin

---
  meta-parsec/lib/oeqa/runtime/cases/parsec.py | 13 +++--
  1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py 
b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
index 71061db..66932ed 100644
--- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py
+++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
@@ -61,9 +61,18 @@ class ParsecTest(OERuntimeTestCase):
  
  def check_packageconfig(self, prov):

  """ Check that the require provider is included in Parsec """
-if prov not in self.tc.td['PACKAGECONFIG:pn-parsec-service']:
+
+if 'PACKAGECONFIG:pn-parsec-service' in self.tc.td.keys():
+providers = self.tc.td['PACKAGECONFIG:pn-parsec-service']
+else:
+# PACKAGECONFIG is not defined in local.conf
+# Let's use the default value
+providers = "PKCS11 MBED-CRYPTO"
+if 'tpm2' in self.tc.td['DISTRO_FEATURES']:
+providers += " TPM"
+if prov not in providers:
  self.skipTest('%s provider is not included in Parsec. Parsec PACKAGECONFIG: 
"%s"' % \
-  (prov, 
self.tc.td['PACKAGECONFIG:pn-parsec-service']))
+  (prov, providers))
  
  def check_packages(self, prov, packages):

  """ Check for the required packages for Parsec providers software backends 
"""






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



[linux-yocto] Reading file would overwrite reserved memory. Failed to load 'hello_world.bin - imx7d-pico - Uboot 2022.04

2023-04-10 Thread Neuber Sousa
https://stackoverflow.com/questions/71073386/reading-file-would-overwrite-reserved-memory-failed-to-load-hello-world-bin

Hi,

I had this issue last year and I solved it via device tree. However, I used
Yocto hardknott and uboot 2021.04 and Ubuntu 20.04. Now I use Yocto kirkstone
and uboot 2022.04 and Ubuntu 22.04


I've been trying to resolve this issue for seven days now. I've already
made several changes to the uboot and yocto/device tree configurations
without success.

Every help is welcome


Note I tried:

https://dantechrb.com/blog/how-to-build-and-debug-freertos-applications-for-cortexm4-on-mx6sx

https://whycan.com/t_5474.html

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



[yocto] [meta-parsec][PATCH] Fix PACKAGECONFIG check in Parsec OEQA tests

2023-04-10 Thread Anton Antonov
If PACKAGECONFIG is not defined in local.conf then
its default value is not included in cls.tc.td map.

Signed-off-by: Anton Antonov 
---
 meta-parsec/lib/oeqa/runtime/cases/parsec.py | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py 
b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
index 71061db..66932ed 100644
--- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py
+++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
@@ -61,9 +61,18 @@ class ParsecTest(OERuntimeTestCase):
 
 def check_packageconfig(self, prov):
 """ Check that the require provider is included in Parsec """
-if prov not in self.tc.td['PACKAGECONFIG:pn-parsec-service']:
+
+if 'PACKAGECONFIG:pn-parsec-service' in self.tc.td.keys():
+providers = self.tc.td['PACKAGECONFIG:pn-parsec-service']
+else:
+# PACKAGECONFIG is not defined in local.conf
+# Let's use the default value
+providers = "PKCS11 MBED-CRYPTO"
+if 'tpm2' in self.tc.td['DISTRO_FEATURES']:
+providers += " TPM"
+if prov not in providers:
 self.skipTest('%s provider is not included in Parsec. Parsec 
PACKAGECONFIG: "%s"' % \
-  (prov, 
self.tc.td['PACKAGECONFIG:pn-parsec-service']))
+  (prov, providers))
 
 def check_packages(self, prov, packages):
 """ Check for the required packages for Parsec providers software 
backends """
-- 
2.25.1


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



Re: [yocto] [meta-security][PATCH v3] parsec-service: update from 1.1.0 to 1.2.0-rc1

2023-04-10 Thread Anton Antonov
On Mon, Apr 10, 2023 at 04:17 AM, Armin Kuster wrote:

> 
> Something in latest master may have introduced another issue, this time
> the runtime testing.  I am see this new error:
> 
> self.check_packageconfig("TS")
> File
> "/home/akuster/oss/maint/meta-security/meta-parsec/lib/oeqa/runtime/cases/parsec.py",
> line 64, in check_packageconfig
> if prov not in self.tc.td['PACKAGECONFIG:pn-parsec-service']:
> KeyError: 'PACKAGECONFIG:pn-parsec-service'
> 
> Any ideas on how to fix or what might be causing this? I thought I had a
> fix but the test hangs.

The default value of PACKAGECONFIG is not included into tc.td if it's not 
defined in local.conf for whatever reason.

I will send a fix soon.

Cheers,

Anton

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



Re: [yocto] configure task runs in devshell but not in bitbake #devtool #kirkstone

2023-04-10 Thread Khem Raj
On Mon, Apr 10, 2023 at 3:48 AM  wrote:
>
> I have a native tool (dotnet cli) that i use for configure/compile. It used 
> to run fine in honister but im now having issues in kirkstone after recently 
> upgrading. I can switch to a devshell and execute run.do_configure script 
> without issue. Any tips to further debug would be appreciated.

Its not clear how its failing. So please describe how you built this
tool. Is it a native recipe which provides it ? if not then are you
expecting it to
come from host. If its being run but failing then share error logs.
This might help further pinpoint the problem.

> 
>

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



Re: [yocto] [meta-parsec][v2][PATCH] parsec-service: fix SRC_URI hash

2023-04-10 Thread Anton Antonov
On Sun, Apr 9, 2023 at 10:40 AM, Armin Kuster wrote:

> 
> Fixes:
> ERROR: Missing SRC_URI checksum, please add those to the recipe:
> SRC_URI[parsec-service-1.2.0.sha256sum] =
> "f58e7ba859c22cc1904dc8298b1a7d94ee1ba3b4d4808f28e4cc0c96ddb149c9"
> 
> Needed to S dir too.

Until a few days ago the S dir wasn't needed in the recipe if the crate fetcher 
was used. If it's a new fetcher behavior, then S should be defined in the cargo 
class instead, I think.

Cheers,

Anton

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



Re: [yocto] [meta-security][PATCH v3] parsec-service: update from 1.1.0 to 1.2.0-rc1

2023-04-10 Thread Armin Kuster



On 4/6/23 8:41 AM, Anton Antonov wrote:

On Thu, Apr 6, 2023 at 05:38 AM, Armin Kuster wrote:

1.2.0 released yesterday. Is someone planning on sending  a new
series. If not, I can give it a shot.

Yes, we're testing the new recipes atm. We will send them asap.



Something in latest master may have introduced another issue, this time 
the runtime testing.  I am see this new error:



 self.check_packageconfig("TS")
  File 
"/home/akuster/oss/maint/meta-security/meta-parsec/lib/oeqa/runtime/cases/parsec.py", 
line 64, in check_packageconfig

    if prov not in self.tc.td['PACKAGECONFIG:pn-parsec-service']:
KeyError: 'PACKAGECONFIG:pn-parsec-service'


Any ideas on how to fix or what might be causing this? I thought I had a 
fix but the test hangs.


-armin


Cheers,

Anton







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



[yocto] configure task runs in devshell but not in bitbake #devtool #kirkstone

2023-04-10 Thread douglas . cooper1
I have a native tool (dotnet cli) that i use for configure/compile. It used to 
run fine in honister but im now having issues in kirkstone after recently 
upgrading. I can switch to a devshell and execute run.do_configure script 
without issue. Any tips to further debug would be appreciated.

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



Re: [yocto] [PATCH 1/2] meta-parsec: Disable RSA-OAEP OEQA tests for Parsec PKCS11 backend

2023-04-10 Thread Anton Antonov
On Thu, Apr 6, 2023 at 12:04 PM, Armin Kuster wrote:

> 
> Does this apply to older versions ?

No, it's required only after upgrade parsec-tool to 0.6.0. This version 
introduces new tests which are no supported by softhsm2

Cheers,

Anton

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