Re: RE: Hi,anybody build nuttx that use openamp on board STM32H747I-disco

2020-05-09 Thread Xiang Xiao
On Sat, May 9, 2020 at 10:47 AM stee...@163.com  wrote:
>
> Thanks a lot
> I make it work
>
> But there is some other bugs
> First
> in file
> /incubator-nuttx/include/metal/cpu.h
> line 15# include   should be  # include 
> 
>
> Second
> There is no  "processor " directory under  /incubator-nuttx/include/metal
> I don't understand the rules  of makefile ,I just copy the directory  from 
> /incubator-nuttx/openamp/libmetal/lib/processorunder  
> /incubator-nuttx/include/metal
> and copy cpu.h and atomic.h  from   
> /incubator-nuttx/openamp/libmetal/lib/processor/arm  to
> /incubator-nuttx/openamp/libmetal/lib/processor and it works.
> Perhaps this is a stupid way to do so ,forgive me .
>
> I examiming the code ,perhaps make a link is the right way.

We can't use the link here directly, because the header files need do
some process to remove the special marker, like @PROJECT_SYSTEM@:
/*
 * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

/*
 * @file mutex.h
 * @brief Mutex primitives for libmetal.
 */

#ifndef __METAL_MUTEX__H__
#define __METAL_MUTEX__H__

#ifdef __cplusplus
extern "C" {
#endif

/** \defgroup mutex Mutex Interfaces
 *  @{
 */

The snippet in openamp/libmetal.defs use sed to replace these mark
with the real value:
#include 


LIBMETAL_HDRS_SEDEXP := \
"s/@PROJECT_VER_MAJOR@/0/g; \
s/@PROJECT_VER_MINOR@/1/g; \
s/@PROJECT_VER_PATCH@/0/g; \
s/@PROJECT_VER@/0.1.0/g; \
s/@PROJECT_SYSTEM@/nuttx/g; \
s/@PROJECT_PROCESSOR@/$(LIBMETAL_ARCH)/g; \
s/@PROJECT_MACHINE@/$(CONFIG_ARCH_CHIP)/g; \
s/@PROJECT_SYSTEM_UPPER@/nuttx/g; \
s/@PROJECT_PROCESSOR_UPPER@/$(LIBMETAL_ARCH)/g; \
s/@PROJECT_MACHINE_UPPER@/$(CONFIG_ARCH_CHIP)/g; \
s/cmakedefine/undef/g"

libmetal.zip:
$(Q) wget https://github.com/OpenAMP/libmetal/archive/v$(VERSION).zip
-O libmetal.zip
$(Q) unzip -o libmetal.zip
$(Q) mv libmetal-$(VERSION) libmetal
$(Q) patch -p0 < 0001-nuttx-change-sched_kfree-to-metal_free_memory.patch

.libmetal_headers: libmetal.zip
$(eval headers := $(wildcard libmetal/lib/compiler/gcc/*.h))
$(eval headers += $(wildcard libmetal/lib/processor/$(LIBMETAL_ARCH)/*.h))
$(eval headers += $(wildcard libmetal/lib/system/nuttx/*.h))
$(eval headers += $(wildcard libmetal/lib/*.h))
$(foreach header,$(headers), \
$(eval hobj := $(patsubst
libmetal$(DELIM)lib$(DELIM)%,$(TOPDIR)$(DELIM)include$(DELIM)metal$(DELIM)%,$(header)))
\
$(shell if [ ! -d $(dir $(hobj)) ];then mkdir -p $(dir $(hobj)); fi) \
$(shell sed $(LIBMETAL_HDRS_SEDEXP) $(header) > $(hobj)) \

So you don't need do anything special action after apply my patch.
it's enough to run:
make distclean
./tools/configure.sh xxx:yyy
make

>
>
>
>
>
>
>
> stee...@163.com
>
> 发件人: Xiang Xiao
> 发送时间: 2020-05-08 17:21
> 收件人: dev@nuttx.apache.org
> 主题: RE: Hi,anybody build nuttx that use openamp on board STM32H747I-disco
> Please try this patch:
> https://github.com/apache/incubator-nuttx/pull/1003
> The openamp/libmetal.defs fail to handle arch other than x86-64 and risc-v 
> correctly.
>
> Thanks
> Xiang
>
> -Original Message-
> From: stee...@163.com 
> Sent: Friday, May 8, 2020 3:25 PM
> To: dev 
> Subject: Hi,anybody build nuttx that use openamp on board STM32H747I-disco
>
> Hi
> Anybody build nuttx that use openamp on board stm32h747i-disco?
> I turn on the openamp opion ,but give errors like
>
> make[1]: Entering directory '/home/steelen/nuttx/nuttx/openamp'
> make[1]: *** No rule to make target 'libmetal/lib/system/nuttx/condition.c', 
> needed by '.depend'.  Stop.
> make[1]: Leaving directory '/home/steelen/nuttx/nuttx/openamp'
> tools/Makefile.unix:504: recipe for target 'pass2dep' failed
> make: *** [pass2dep] Error 2
>
> I also download the incubator-nuttx version , when make it download a lot 
> files and also erros
>
> make[1]: Entering directory '/home/steelen/nuttx/incubator-nuttx/openamp'
> In file included from 
> /home/steelen/nuttx/incubator-nuttx/include/metal/io.h:23:0,
>  from 
> /home/steelen/nuttx/incubator-nuttx/include/metal/device.h:16,
>  from ./libmetal/lib/system/nuttx/device.c:12:
> /home/steelen/nuttx/incubator-nuttx/include/metal/cpu.h:15:35: fatal error: 
> metal/processor//cpu.h: No such file or directory  # include 
> 
>^
> compilation terminated.
> ERROR: arm-none-eabi-gcc failed: 1
>command: arm-none-eabi-gcc -M -fno-builtin -Wall -Wstrict-prototypes 
> -Wshadow -Wundef -g -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard 
> -I. -isystem /home/steelen/nuttx/incubator-nuttx/include -D__KERNEL__ -pipe 
> -DMETAL_INTERNAL ./libmetal/lib/system/nuttx/device.c
> Makefile:72: recipe for target '.depend' failed
> make[1]: *** [.depend] Error 1
> make[1]: Leaving directory '/home/steelen/nuttx/incubator-nuttx/openamp'
> tools/Makefile.unix:498: recipe for target 'pass2dep' failed
> make: *** [pass2dep] Error 2
>
> I modify   # include   to  # include 
> 
> also  erros
>
>
>
>
>
> ste

Re: [VOTE] Release Apache NuttX (Incubating) 9.0.0 [RC1]

2020-05-09 Thread 俊平堵
Sorry for the delay as I just take a vacation back.

+1 (binding)

I checked:
- sigs and hashes are OK
- DISCLAIMER (WIP), LICENSE and NOTICE are exists
- No unexpected binary files
- Try to compile from source, but not succeed as a bit confused with config
in make - better improve with command line/document for new comer, but not
a blocker issue for now.

Thanks,

Junping


Brennan Ashton  于2020年5月1日周五 下午3:27写道:

> Hello all,
>
> This is a call for a vote to release Apache NuttX (Incubating) version
> 9.0.0.
>
> The Apache NuttX community has voted on and approved a proposal to release
> Apache NuttX (Incubating) version 9.0.0.
>
> We now kindly request the Incubator PMC members review and vote on this
> incubator release.
>
> NuttX is a real-time operating system (RTOS) with an emphasis on standards
> compliance and small footprint. Scalable from 8-bit to 32-bit
> microcontroller
> environments, the primary governing standards in NuttX are Posix and ANSI
> standards. Additional standard APIs from Unix and other common RTOS’s
> (such as VxWorks) are adopted for functionality not available under these
> standards, or for functionality that is not appropriate for deeply-embedded
> environments (such as fork()).
>
> Apache NuttX community vote and result thread:
> Result:
>
> https://lists.apache.org/thread.html/rf2361c5e458d993f0b3ccf9559ddf3ef8a7e5c5c55eb1e6d19ed6e1d%40%3Cdev.nuttx.apache.org%3E
> Vote:
>
> https://lists.apache.org/thread.html/r38ffad1d33081c375a0161eeb6eef3a08b8af048c973fddbf9fbc601%40%3Cdev.nuttx.apache.org%3E
>
> The release candidates (RC1):
> https://dist.apache.org/repos/dist/dev/incubator/nuttx/9.0.0-RC1/
>
> Git tag for the release (RC1):
> https://github.com/apache/incubator-nuttx/releases/tag/nuttx-9.0.0-RC1
> https://github.com/apache/incubator-nuttx-apps/releases/tag/nuttx-9.0.0-RC1
>
> Hash for the release incubating-nuttx tag:
>   725bdfb0e8c704823669d20931fd0a824c462212
> Hash for the release incubating-nuttx-apps tag:
>   9d4872780f095d7af7414501ccf34ea23d4d565b
>
> Release Notes:
>
> https://raw.githubusercontent.com/apache/incubator-nuttx/nuttx-9.0.0-RC1/ReleaseNotes
>
>
> The artifacts have been signed with Key :
> 3554D78458CEB6954B020E12E1B6E30DB05D6280, which can be found in the keys
> file:
> https://dist.apache.org/repos/dist/dev/incubator/nuttx/KEYS
>
> Look at here for how to verify this release candidate:
>
> https://cwiki.apache.org/confluence/display/NUTTX/Validating+a+staged+Release
>
> The vote will be open for at least 72 hours.
>
> Please vote accordingly:
> [ ] +1 approve
> [ ] +0 no opinion
> [ ] -1 disapprove with the reason
>
> Brennan Ashton
> Apache NuttX
>


Build failed in Jenkins: NuttX-Nightly-Build #121

2020-05-09 Thread Apache Jenkins Server
See 

Changes:


--
Started by timer
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on H27 (ubuntu) in workspace 

[NuttX-Nightly-Build] $ /bin/bash -xe /tmp/jenkins4504112303803909551.sh
+ '[' -d testing ']'
+ rm -rf testing
+ '[' -d nuttx ']'
+ '[' -d apps ']'
+ git clone https://github.com/apache/incubator-nuttx-testing testing
Cloning into 'testing'...
+ cd testing
+ ./cibuild.sh -i -s ./testlist/all.dat
~/jenkins-slave/workspace/NuttX-Nightly-Build/testing 
~/jenkins-slave/workspace/NuttX-Nightly-Build/testing
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 
20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

p32-gcc (GCC) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

riscv64-unknown-elf-gcc (SiFive GCC 8.3.0-2019.08.0) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

xtensa-esp32-elf-gcc (crosstool-NG esp32-2019r1-rc2) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

./cibuild.sh: line 214: pip3: command not found
Build step 'Execute shell' marked build as failure