Re: Panic in ahci_detach
On 2018/11/03 6:28, Jaromír Doleček wrote: Le jeu. 1 nov. 2018 à 06:38, Masanobu SAITOH a écrit : The meaning of atac_nchannels changed or numbering of channel changed? ahci_detach() counted improperly. Can you confirm rev. 1.66 of dev/ic/ahcisata_core.c fixes the problem? Jaromir I've confirmed this problem was fixed now. Thanks! -- --- SAITOH Masanobu (msai...@execsw.org msai...@netbsd.org)
Re: build.sh distribution failure for evbarm
Chavdar Ivanov writes: > It would benefit from some clarification regarding the ARM ecosystem > indeed. So far I've always used ' evbarm' for my RPI builds and > wondered if I can skip the building of the rest. I think there are two separate issues behind your comment. First is the type of build, which involves a MACHINE, one of the NetBSD port types, corresponding to "uname -m", and then MACHINE_ARCH, which is a CPU type, corresponding to "uname -p". evbarm is a MACHINE that supports a number of hardware platforms and can be built with a number oF MACHINE_ARCH values. See src/build.sh, and search for evbarm. If you build with "-a evbearmv6hf-el", that will use MACHINE=evbarm and MACHINE_ARCH=earmv6hf (implicitly el). That's the right CPU definition for RPI1, and the same userland code will also run on RPI2/3. If you build with evbearmv7hf-el, then the userland code will run on RPI2/3 but not RPI1. "file" on the userland code says EABI5, compiled for earmv7hf. The RPI kernel (for 1) is not built; I am guessing that is because it needs earmv6hf and there's some logic to omit it. These articles are helpful to sort through the confusing naming. In particular note that armvN and armN have different meanings - there are familes, architectures and cores, all almost the same names, but really in different namespaces! https://en.wikipedia.org/wiki/List_of_ARM_microarchitectures https://en.wikipedia.org/wiki/ARM_architecture The second issue is that you might wish to omit building a kernel for a board type you don't have, even if it uses the same CPU and same userland code. This is more or less the same thing as skipping building an alternative i386 kernel. I am unaware of support for that. But, my impression is that there has been significant progress in having more and more boards run GENERIC via FDT. But there do seem to be 37 in current when using evbearmv7hf-el.I find it easier to just run builds in the background than to adjust them. > Anyway, with 'evbearmv6hf-el' the build completed successfully. > > On Fri, 2 Nov 2018 at 19:42, Greg Troxel wrote: >> >> >> Nick Hudson writes: >> >> > RPI should use evbearmv6hf-el >> > RPI2 should use evbearmv7hf-el >> > >> > I'm thinking evbarm should alias to evbearmv7hf-el these days >> >> Maybe, but another theory is that we should have a bunch of aliases and >> that -a evbarm should just error out, because whoever invoked it that >> way doesn't have a clear view of what they want. And we should enable >> RELEASEMACHINEDIR being equal to the alias by default, so that multiple >> builds don't collide so much. >>
Re: build.sh distribution failure for evbarm
"compiled for earmv7hf" is just some text that NetBSD adds in to binaries it builds, it doesn't need to be meaningful. the "EABI5" part must be correct, but file doesn't try to distinguish more than "ARMv1" and "EABI5" (it doesn't make sense to try harder, you can write code to do v7 and v5 in the same binary). If you use gcc -S it can tell you more about the type of code it generated, e.g. for evbarm: ~/arm/tooldir.NetBSD-8.99.21-amd64/bin/arm--netbsdelf-eabi-gcc -S test.c cat test.s .. .cpu arm926ej-s .fpu softvfp Changing the actual triplets is probably a bad idea because the decisions are embedded in a lot of configure scripts in random third party code. But perhaps we need to rename things so no users end up using it by accident. the biggest issue with using evbarm is that it's soft float and you have an FPU you can take advantage of. You can adjust the list of kernels built in src/etc/etc.evbarm.
Re: build.sh distribution failure for evbarm
On Sat, Nov 03, 2018 at 04:44:18AM +, m...@netbsd.org wrote: > Changing the actual triplets is probably a bad idea because the > decisions are embedded in a lot of configure scripts in random third > party code. > But perhaps we need to rename things so no users end up using it by > accident. And that's what nick was suggesting with the alias (I wasn't paying enough attention at first).
daily CVS update output
Updating src tree: P src/lib/libcurses/resize.c P src/share/man/man9/pci.9 P src/sys/arch/aarch64/include/asan.h P src/sys/arch/arm/acpi/acpi_pci_machdep.c P src/sys/arch/arm/altera/cycv_platform.c P src/sys/arch/arm/include/pci_machdep.h P src/sys/arch/evbarm/conf/NANOSOC P src/sys/arch/evbarm/ifpga/ifpga_pci.c P src/sys/arch/sparc64/conf/GENERIC P src/sys/ddb/db_proc.c P src/sys/dev/acpi/acpi_mcfg.c P src/sys/dev/ic/ahcisata_core.c P src/sys/dev/mii/inbmphyreg.h P src/sys/dev/pci/if_wm.c P src/sys/dev/pci/if_wmreg.h P src/sys/kern/kern_descrip.c P src/usr.sbin/sysinst/run.c Updating xsrc tree: Killing core files: Updating tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting...pax: Unable to access src/gnu (No such file or directory) pax: WARNING! These file names were not selected: src/gnu done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc: collecting... replacing... done Updating release-7 src tree (netbsd-7): Updating release-7 xsrc tree (netbsd-7): Updating release-7 tar files: src/top-level: collecting... replacing... done src/bin: collecting... replacing... done src/common: collecting... replacing... done src/compat: collecting... replacing... done src/crypto: collecting... replacing... done src/dist: collecting... replacing... done src/distrib: collecting... replacing... done src/doc: collecting... replacing... done src/etc: collecting... replacing... done src/external: collecting... replacing... done src/extsrc: collecting... replacing... done src/games: collecting... replacing... done src/gnu: collecting... replacing... done src/include: collecting... replacing... done src/lib: collecting... replacing... done src/libexec: collecting... replacing... done src/regress: collecting... replacing... done src/rescue: collecting... replacing... done src/sbin: collecting... replacing... done src/share: collecting... replacing... done src/sys: collecting... replacing... done src/tests: collecting... replacing... done src/tools: collecting... replacing... done src/usr.bin: collecting... replacing... done src/usr.sbin: collecting... replacing... done src/config: collecting... replacing... done src/x11: collecting... replacing... done src: collecting... replacing... done xsrc/top-level: collecting... replacing... done xsrc/external: collecting... replacing... done xsrc/local: collecting... replacing... done xsrc/xfree: collecting... replacing... done xsrc: collecting... replacing... done Updating release-8 src tree (netbsd-8): P distrib/evbarm/instkernel/sshramdisk/Makefile P distrib/sets/lists/base/mi P distrib/sets/lists/man/mi P doc/3RDPARTY U doc/CHANGES-8.1 P etc/mtree/NetBSD.dist.base P external/Makefile U external/broadcom/Makefile U external/broadcom/Makefile.inc U external/broadcom/bwfm/Makefile U external/broadcom/bwfm/dist/LICENCE.broadcom_bcm43xx U external/broadcom/bwfm/dist/brcmfmac43143.bin U external/broadcom/bwfm/dist/brcmfmac43236b.bin U external/broadcom/bwfm/dist/brcmfmac43242a.bin U external/broadcom/bwfm/dist/brcmfmac4350-pcie.bin U external/broadcom/bwfm/dist/brcmfmac4350c2-pcie.bin U external/broadcom/bwfm/dist/brcmfmac43569.bin U external/broadcom/bwfm/dist/brcmfmac43602-pcie.bin P external/public-domain/tz/dist/NEWS U external/public-domain/tz/dist/TZDATA_VERSION P external/public-domain/tz/dist/africa P external/public-domain/tz/dist/europe P external/public-domain/tz/dist/northamerica P external/public-domain/tz/dist/theory.html U external/public-domain/tz/dist/version P external/public-domain/tz/dist/ziguard.awk P external/public-domain/tz/dist/zishrink.awk P share/man/man4/Makefile U share/man/man4/bwfm.4 P sys/arch/amd64/conf/GENERIC P sys/arch/arm/arm/disassem.c P sys/arch/evbarm/conf/RPI_INSTALL P sys/arch/i386/conf/GENERIC P sys/conf/files U sys/dev/ic/bwfm.c U
build.sh distribution failure for evbarm
Hi, With sources from about an hour ago I cannot complete distribution build for evbarm: --- ymir% pwd /home/sysbuild/evbarm/obj/home/sysbuild/src/sys/arch/evbarm/compile/GENERIC ymir% CC=/home/sysbuild/evbarm/tools/bin/arm--netbsdelf-eabi-gcc /home/sysbuild/evbarm/tools/bin/nbmkdep -f armv6_start.d.tmp -- -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings --sysroot=/home/sysbuild/evbarm/destdir -DKERNEL_BASE_VOFFSET=\"\(0x8040-0x0040\)\" -I. -I/home/sysbuild/src/sys/external/bsd/libnv/dist -I/home/sysbuild/src/sys/../common/lib/libx86emu -I/home/sysbuild/src/sys/../common/lib/libc/misc -I/home/sysbuild/src/sys/../common/include -I/home/sysbuild/src/sys/arch -I/home/sysbuild/src/sys -nostdinc -DARM_GENERIC_TODR -D__HAVE_CPU_COUNTER -D__HAVE_CPU_UAREA_ALLOC_IDLELWP -D__HAVE_FAST_SOFTINTS -D__HAVE_PCI_CONF_HOOK -DCOMPAT_44 -DDIAGNOSTIC -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/home/sysbuild/src/sys/lib/libkern/../../../common/lib/libc/quad -I/home/sysbuild/src/sys/lib/libkern/../../../common/lib/libc/string -I/home/sysbuild/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -I/home/sysbuild/src/sys/external/bsd/common/include -I/home/sysbuild/src/sys/external/bsd -I/home/sysbuild/src/sys/external/bsd/dwc2/dist -I/home/sysbuild/src/sys/external/bsd/libfdt/dist -I/home/sysbuild/src/sys/external/bsd/libnv/dist -I/home/sysbuild/src/sys/external/bsd/vchiq/dist -I/home/sysbuild/src/sys/external/bsd/common/include -DVCOS_VERIFY_BKPTS=1 -DUSE_VCHIQ_ARM -D__VCCOREVER__=0x0400 -DVCHIQ_ENABLE_DEBUG=1 -DVCHIQ_LOG_DEFAULT=5 /home/sysbuild/src/sys/arch/arm/arm/armv6_start.S /home/sysbuild/src/sys/arch/arm/arm/armv6_start.S:180:2: error: #error Unsupported CPU #error Unsupported CPU ^ nbmkdep: compile failed. --- The last (third) attempt was with fresh obj directory; I also did 'make cleandir' in the src directory just in case (in the past this has helped). Chavdar Ivanov --
Re: build.sh distribution failure for evbarm
Chavdar Ivanov wrote: >With sources from about an hour ago I cannot complete distribution >build for evbarm: >--- >ymir% pwd >/home/sysbuild/evbarm/obj/home/sysbuild/src/sys/arch/evbarm/compile/GENERIC >ymir% CC=/home/sysbuild/evbarm/tools/bin/arm--netbsdelf-eabi-gcc ^ What did you provide for the 'mach' parameter to build.sh ? If you are building it to run on your Zynq system then you should set it to evbearmv7hf-el.
Re: build.sh distribution failure for evbarm
On Fri, Nov 02, 2018 at 01:04:33PM +, Chavdar Ivanov wrote: > The last (third) attempt was with fresh obj directory; I also did > 'make cleandir' in the src directory just in case (in the past this > has helped). It is best to check the autobuild results in such cases, they fail the same (and they always do a clean build). http://releng.netbsd.org/cgi-bin/builds.cgi Martin
Re: build.sh distribution failure for evbarm
This is the command line: ./build.sh -D/home/sysbuild/evbarm/destdir -M/home/sysbuild/evbarm/obj -N2 -R/home/sysbuild/release -T/home/sysbuild/evbarm/tools -U -X/home/sysbuild/xsrc -j8 -mevbarm -u -x release live-image It is actually done by sysutils/sysbuild (obviously); I need only the RPI kernel for the two boards I have; never went down to figure out how to restrict it building all the other evbarm kernels and images, but thought that anyway it is useful to know if they build. On Fri, 2 Nov 2018 at 13:36, Robert Swindells wrote: > > > Chavdar Ivanov wrote: > >With sources from about an hour ago I cannot complete distribution > >build for evbarm: > >--- > >ymir% pwd > >/home/sysbuild/evbarm/obj/home/sysbuild/src/sys/arch/evbarm/compile/GENERIC > >ymir% CC=/home/sysbuild/evbarm/tools/bin/arm--netbsdelf-eabi-gcc >^ > > What did you provide for the 'mach' parameter to build.sh ? > > If you are building it to run on your Zynq system then you should set it > to evbearmv7hf-el. --
Re: build.sh distribution failure for evbarm
On 02/11/2018 14:33, Chavdar Ivanov wrote: This is the command line: ./build.sh -D/home/sysbuild/evbarm/destdir -M/home/sysbuild/evbarm/obj -N2 -R/home/sysbuild/release -T/home/sysbuild/evbarm/tools -U -X/home/sysbuild/xsrc -j8 -mevbarm -u -x release live-image It is actually done by sysutils/sysbuild (obviously); I need only the RPI kernel for the two boards I have; never went down to figure out how to restrict it building all the other evbarm kernels and images, but thought that anyway it is useful to know if they build. RPI should use evbearmv6hf-el RPI2 should use evbearmv7hf-el I'm thinking evbarm should alias to evbearmv7hf-el these days Nick
Re: build.sh distribution failure for evbarm
Nick Hudson writes: > RPI should use evbearmv6hf-el > RPI2 should use evbearmv7hf-el > > I'm thinking evbarm should alias to evbearmv7hf-el these days Maybe, but another theory is that we should have a bunch of aliases and that -a evbarm should just error out, because whoever invoked it that way doesn't have a clear view of what they want. And we should enable RELEASEMACHINEDIR being equal to the alias by default, so that multiple builds don't collide so much.
Re: build.sh distribution failure for evbarm
It would benefit from some clarification regarding the ARM ecosystem indeed. So far I've always used ' evbarm' for my RPI builds and wondered if I can skip the building of the rest. Anyway, with 'evbearmv6hf-el' the build completed successfully. On Fri, 2 Nov 2018 at 19:42, Greg Troxel wrote: > > > Nick Hudson writes: > > > RPI should use evbearmv6hf-el > > RPI2 should use evbearmv7hf-el > > > > I'm thinking evbarm should alias to evbearmv7hf-el these days > > Maybe, but another theory is that we should have a bunch of aliases and > that -a evbarm should just error out, because whoever invoked it that > way doesn't have a clear view of what they want. And we should enable > RELEASEMACHINEDIR being equal to the alias by default, so that multiple > builds don't collide so much. > --
Re: Panic in ahci_detach
Le jeu. 1 nov. 2018 à 06:38, Masanobu SAITOH a écrit : > The meaning of atac_nchannels changed or numbering of channel > changed? ahci_detach() counted improperly. Can you confirm rev. 1.66 of dev/ic/ahcisata_core.c fixes the problem? Jaromir