[ptxdist] DistroKit platform vexpress: can't compile systemd
Hi, I tried to compile the latest DistroKit vexpress platform with ptxdist 2014.08.0 and OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf. (I changed the compiler in the platformconfig and did a ptxdist migrate) But I can't compile systemd. Any idea's, or do I need to use the older ptxdist version and the cortexa8 compiler? Best regards, Matthias --- target: systemd.get --- finished target systemd.get --- target: systemd.extract --- extract: pkg_src=ptxdist_src/systemd-215.tar.xz extract: pkg_extract_dir=DistroKit/platform-pengutronix-vexpress/build-target/systemd-215 pkg_patch_dir: 'ptxdist-2014.08.0/patches/systemd-215' pkg_patch_series: 'ptxdist-2014.08.0/patches/systemd-215/series' patchin: patch: apply 'ptxdist-2014.08.0/patches/systemd-215/series' applying '0001-util.h-include-missing.h-for-MAX_HANDLE_SZ.patch' patching file src/shared/util.h applying '0002-missing-defined-extra-clock-ids.patch' patching file src/shared/missing.h applying '0003-always-check-for-__BYTE_ORDER-__BIG_ENDIAN-when-chec.patch' patching file src/shared/architecture.h patching file src/shared/gpt.h patching file src/shared/time-dst.c patchin: patch: done finished target systemd.extract target: systemd.extract.post pkg_patch_autogen: 'none' patchin: fixup: DistroKit/platform-pengutronix-vexpress/build-target/systemd-215/configure DistroKit/platform-pengutronix-vexpress/build-target/systemd-215/build-aux/ltmain.sh patchin: fixup: done finished target systemd.extract.post --- target: systemd.prepare --- checking for arm-v7a-linux-gnueabihf-gcc... arm-v7a-linux-gnueabihf-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-v7a-linux-gnueabihf-gcc accepts -g... yes checking for arm-v7a-linux-gnueabihf-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... arm-v7a-linux-gnueabihf-cpp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/local/lib/ptxdist-2014.08.0/bin/install -c checking whether build environment is sane... yes checking for arm-v7a-linux-gnueabihf-strip... arm-v7a-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /usr/local/lib/ptxdist-2014.08.0/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking dependency style of arm-v7a-linux-gnueabihf-gcc... gcc3 checking whether make supports nested variables... (cached) yes checking build system type... x86_64-host-linux-gnu checking host system type... arm-v7a-linux-gnueabihf checking how to print strings... printf checking for a sed that does not truncate output... /usr/local/lib/ptxdist-2014.08.0/bin/sed checking for fgrep... /bin/grep -F checking for ld used by arm-v7a-linux-gnueabihf-gcc... arm-v7a-linux-gnueabihf-ld checking if the linker (arm-v7a-linux-gnueabihf-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... arm-v7a-linux-gnueabihf-nm checking the name lister (arm-v7a-linux-gnueabihf-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands +=... yes checking how to convert x86_64-host-linux-gnu file names to arm-v7a-linux-gnueabihf format... func_convert_file_noop checking how to convert x86_64-host-linux-gnu file names to toolchain format... func_convert_file_noop checking for arm-v7a-linux-gnueabihf-ld option to reload object files... -r checking for arm-v7a-linux-gnueabihf-objdump... arm-v7a-linux-gnueabihf-objdump checking how to recognize dependent libraries... pass_all checking for
Re: [ptxdist] DistroKit platform vexpress: can't compile systemd
The kernel/kernelheaders are too old. - Erwin On 12-8-2014 13:24, Matthias Klein wrote: Hi, I tried to compile the latest DistroKit vexpress platform with ptxdist 2014.08.0 and OSELAS.Toolchain-2013.12.2/arm-v7a-linux-gnueabihf. (I changed the compiler in the platformconfig and did a ptxdist migrate) But I can't compile systemd. Any idea's, or do I need to use the older ptxdist version and the cortexa8 compiler? Best regards, Matthias --- target: systemd.get --- finished target systemd.get --- target: systemd.extract --- extract: pkg_src=ptxdist_src/systemd-215.tar.xz extract: pkg_extract_dir=DistroKit/platform-pengutronix-vexpress/build-target/systemd-215 pkg_patch_dir: 'ptxdist-2014.08.0/patches/systemd-215' pkg_patch_series: 'ptxdist-2014.08.0/patches/systemd-215/series' patchin: patch: apply 'ptxdist-2014.08.0/patches/systemd-215/series' applying '0001-util.h-include-missing.h-for-MAX_HANDLE_SZ.patch' patching file src/shared/util.h applying '0002-missing-defined-extra-clock-ids.patch' patching file src/shared/missing.h applying '0003-always-check-for-__BYTE_ORDER-__BIG_ENDIAN-when-chec.patch' patching file src/shared/architecture.h patching file src/shared/gpt.h patching file src/shared/time-dst.c patchin: patch: done finished target systemd.extract target: systemd.extract.post pkg_patch_autogen: 'none' patchin: fixup: DistroKit/platform-pengutronix-vexpress/build-target/systemd-215/configure DistroKit/platform-pengutronix-vexpress/build-target/systemd-215/build-aux/ltmain.sh patchin: fixup: done finished target systemd.extract.post --- target: systemd.prepare --- checking for arm-v7a-linux-gnueabihf-gcc... arm-v7a-linux-gnueabihf-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether arm-v7a-linux-gnueabihf-gcc accepts -g... yes checking for arm-v7a-linux-gnueabihf-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... arm-v7a-linux-gnueabihf-cpp checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/local/lib/ptxdist-2014.08.0/bin/install -c checking whether build environment is sane... yes checking for arm-v7a-linux-gnueabihf-strip... arm-v7a-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /usr/local/lib/ptxdist-2014.08.0/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking dependency style of arm-v7a-linux-gnueabihf-gcc... gcc3 checking whether make supports nested variables... (cached) yes checking build system type... x86_64-host-linux-gnu checking host system type... arm-v7a-linux-gnueabihf checking how to print strings... printf checking for a sed that does not truncate output... /usr/local/lib/ptxdist-2014.08.0/bin/sed checking for fgrep... /bin/grep -F checking for ld used by arm-v7a-linux-gnueabihf-gcc... arm-v7a-linux-gnueabihf-ld checking if the linker (arm-v7a-linux-gnueabihf-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... arm-v7a-linux-gnueabihf-nm checking the name lister (arm-v7a-linux-gnueabihf-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands +=... yes checking how to convert x86_64-host-linux-gnu file names to arm-v7a-linux-gnueabihf format... func_convert_file_noop checking how to convert x86_64-host-linux-gnu file names to toolchain format... func_convert_file_noop checking for arm-v7a-linux-gnueabihf-ld option to
Re: [ptxdist] DistroKit platform vexpress: can't compile systemd
OK, I now I have used the ptxdist 2014.05.0 and OSELAS.Toolchain-2013.12.2/arm-cortexa8-linux-gnueabihf as configured in DistroKit. ptxdist go and images runs fine, but when I try to start qemu with the run script the kernel crashs. Any idea's? I am wondering that the cortexa8 compiler and not the arm-v7a compiler is configured in the platformconfig. Best regards, Matthias mak@NB-MAK:~/DistroKit$ ./configs/platform-pengutronix-vexpress/run Booting Linux on physical CPU 0x0 Linux version 3.8.4 (mak@NB-MAK) (gcc version 4.8.3 2013 (prerelease) (OSELAS.Toolchain-2013.12.2 linaro-4.8-2013.11) ) #1 SMP Tue Aug 12 13:56:54 CEST 2014 CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: ARM-Versatile Express Memory policy: ECC disabled, Data cache writealloc sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms PERCPU: Embedded 8 pages/cpu @80e4d000 s10880 r8192 d13696 u32768 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096 Kernel command line: root=/dev/mmcblk0p1 rootfs=ext2 rw mem=1024M console=ttyAMA0,38400n8 rootwait PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) __ex_table already sorted, skipping sort Memory: 1024MB = 1024MB total Memory: 1033072k/1033072k available, 15504k reserved, 0K highmem Virtual kernel memory layout: vector : 0x - 0x1000 ( 4 kB) fixmap : 0xfff0 - 0xfffe ( 896 kB) vmalloc : 0xc080 - 0xff00 (1000 MB) lowmem : 0x8000 - 0xc000 (1024 MB) modules : 0x7f00 - 0x8000 ( 16 MB) .text : 0x80008000 - 0x80584398 (5617 kB) .init : 0x80585000 - 0x805caa80 ( 279 kB) .data : 0x805cc000 - 0x8060c460 ( 258 kB) .bss : 0x8060c460 - 0x80646dec ( 235 kB) SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 Hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. NR_IRQS:16 nr_irqs:16 16 Console: colour dummy device 80x30 Calibrating delay loop... 621.77 BogoMIPS (lpj=3108864) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok ftrace: allocating 15217 entries in 45 pages CPU0: thread -1, cpu 0, socket 0, mpidr 8000 smp_twd: clock not found: -2 Calibrating local timer... 99.92MHz. Setting up static identity map for 0x60406c30 - 0x60406c88 CPU1: Booted secondary processor CPU1: thread -1, cpu 1, socket 0, mpidr 8001 Brought up 2 CPUs SMP: Total of 2 processors activated (21859.53 BogoMIPS). devtmpfs: initialized NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations L310 cache controller enabled l2x0: 8 ways, CACHE_ID 0x00c0, AUX_CTRL 0x0242, Cache size: 131072 B hw-breakpoint: debug architecture 0x0 unsupported. Serial: AMBA PL011 UART driver mb:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 37) is a PL011 rev1 console [ttyAMA0] enabled mb:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 38) is a PL011 rev1 mb:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 39) is a PL011 rev1 mb:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 40) is a PL011 rev1 bio: create slab bio-0 at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Advanced Linux Sound Architecture Driver Initialized. Switching to clocksource v2m-timer1 Unable to handle kernel paging request at virtual address 69736e75 pgd = 80004000 [69736e75] *pgd= Internal error: Oops: 5 [#1] SMP ARM Modules linked in: CPU: 0Not tainted (3.8.4 #1) PC is at kmem_cache_alloc_trace+0x48/0x15c LR is at 0x47e pc : [800ef380]lr : [047e]psr: 2113 sp : bf83fdc8 ip : bf83fe00 fp : bf83fdfc r10: 805f8388 r9 : 0080 r8 : 005f r7 : 8024a18c r6 : 00d0 r5 : 69736e75 r4 : bf801200 r3 : r2 : 805ccac0 r1 : 00885000 r0 : bf801200 Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 10c53c7d Table: 6000406a DAC: 0015 Process swapper/0 (pid: 1, stack limit = 0xbf83e238) Stack: (0xbf83fdc8 to 0xbf84) fdc0: 80055068 80054e24 805d5348 23bd bf8c19c0 005f fde0: bf974db8 005f 0003 805f8388 bf83fe1c bf83fe00 8024a18c 800ef344 fe00: 0002 bf8c19c0 005f bf83fe64 bf83fe20 8024af90 8024a0c8 fe20: 0001 bf8045f4 bf804400 8063ea54 805f84e8 805f8384 bf83fe5c 0001 fe40: 0014 8063ec78 8060c480 8060c480 8059d210 bf83fe84 bf83fe68 fe60: 8059ca4c 8024ae8c 0001 8063eb54 0001 bf83feac bf83fe88 fe80: 8059cf54 8059ca0c 804e0b90 80154df4 bf83feac 8063e680 8063f440 fea0: bf83fecc bf83feb0 8059c36c 8059cdc8 804bb36c bf83fed4 000c 8042ce1c fec0: bf83fef4
Re: [ptxdist] Env variable for PKGs build dir?
Hi, On Thu, Jul 31, 2014 at 06:01:40PM -0400, Jon Ringle wrote: Is there an env variable that I can reference from a make rule that points to a package's build directory if PKG_BUILD_OOT := YES ? I tried to do this at some point. Unfortunately it's not that easy. Packages with PKG_CONF_TOOL == cmake build out-of-tree by default. Handling that correctly while making sure all variables are resolved in the correct order is not that simple. Maybe I'll get around to implement that in the future, but no promises. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [RFC] u-boot-tools: emmc support in fw_printenv/fw_setenv
Hello Bruno, Am 04.08.2014 10:29, wrote Bruno Thomsen: Provide read/write access to U-Boot environment stored in eMMC flash from Linux. Access to U-Boot environment can be very useful; dual kernel/rootfs images, production default values, change kernel bootargs, etc. Tested with U-Boot 2009.08 and 2013.04 on TQMa28. Wouldn't it be better to rework the support for u-boot tools in general? (I know, this will be tricky, since U-Boot environment tools compilation is really an adventure). Also I think, we should use the same version of U-Boot tools as we use for the U-Boot itself. What do you think? For reference here is an internal used version of the u-boot-tools Makefile (known to work with U-Boot versions from our BSP for TQMa53 / TQMa6x). Should work at least for U-Boot 2013.01 and 2013.04 You need to provide a target specific /etc/fw_env.config 8 # -*-makefile-*- # # Copyright (C) 2012 by Andreas Bießmann andr...@biessmann.de # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_U_BOOT_TOOLS) += u-boot-tools # # Paths and names # U_BOOT_TOOLS_VERSION:= $(U_BOOT_VERSION) U_BOOT_TOOLS_MD5:= $(U_BOOT_MD5) U_BOOT_TOOLS:= u-boot-$(U_BOOT_TOOLS_VERSION) U_BOOT_TOOLS_SUFFIX := tar.bz2 U_BOOT_TOOLS_URL:= http://ftp.denx.de/pub/u-boot/$(U_BOOT_TOOLS).$(U_BOOT_TOOLS_SUFFIX) U_BOOT_TOOLS_SOURCE := $(SRCDIR)/$(U_BOOT_TOOLS).$(U_BOOT_TOOLS_SUFFIX) U_BOOT_TOOLS_DIR:= $(BUILDDIR)/$(U_BOOT_TOOLS) U_BOOT_TOOLS_LICENSE:= GPLv2 $(STATEDIR)/u-boot-tools.extract: $(STATEDIR)/u-boot.extract @$(call targetinfo) @$(call touch) $(STATEDIR)/u-boot-tools.prepare: $(STATEDIR)/u-boot.prepare @$(call targetinfo) @$(call touch) # # Prepare # U_BOOT_TOOLS_PATH := $(U_BOOT_PATH) # U_BOOT_TOOLS_MAKE_OPT := $(U_BOOT_MAKE_OPT) tools U_BOOT_TOOLS_CONF_TOOL := NO U_BOOT_TOOLS_MAKE_OPT := \ HOSTCC=$(BOOTLOADER_CROSS_COMPILE)gcc \ HOSTSTRIP=$(BOOTLOADER_CROSS_COMPILE)strip \ CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \ tools # HOSTCC=$(CROSS_CC) \ # HOSTSTRIP=$(CROSS_STRIP) \ # tools ifdef PTXCONF_U_BOOT_TOOLS_TOOL_ENV U_BOOT_TOOLS_MAKE_OPT += env endif # # Install # $(STATEDIR)/u-boot-tools.install: @$(call targetinfo) install -D $(U_BOOT_TOOLS_DIR)/tools/env/fw_printenv \ $(U_BOOT_TOOLS_PKGDIR)/usr/sbin/fw_printenv @$(call touch) # # Target-Install # $(STATEDIR)/u-boot-tools.targetinstall: @$(call targetinfo) @$(call install_init, u-boot-tools) @$(call install_fixup, u-boot-tools,PRIORITY,optional) @$(call install_fixup, u-boot-tools,SECTION,base) @$(call install_fixup, u-boot-tools,AUTHOR,\ Andreas Bießmann andr...@biessmann.de) @$(call install_fixup, u-boot-tools,DESCRIPTION,missing) ifdef PTXCONF_U_BOOT_TOOLS_TOOL_ENV @$(call install_copy, u-boot-tools, 0, 0, 0755, -, /usr/sbin/fw_printenv) @$(call install_link, u-boot-tools, fw_printenv, /usr/sbin/fw_setenv) @$(call install_alternative, u-boot-tools, 0, 0, 0644, /etc/fw_env.config) endif @$(call install_finish, u-boot-tools) @$(call touch) $(STATEDIR)/u-boot-tools.clean: @$(call targetinfo) -rm $(STATEDIR)/u-boot-tools.* # @$(call clean_pkg, U_BOOT_TOOLS) # vim: syntax=make 8 Regards Markus -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] Fehler bei Installation ptxdist
Sehr geehrte Damen und Herren, bei der Installation des ptxdist auf einem Ubuntu 14.-04.1 kommen wir nicht weiter. Vorab: Es sind zwei Versionen der ptixdist installiert, ptxdist-2014.07.0 und ptxdist-2013.12.0 (hier arbeitet die Toolchain 2013.12.2). Frage dazu: Aus welcher ptxdist/bin darf ich den ptxdist-Befehl als Ubuntu-Umgebungsvariable setzen? Derzeit sind beide eingetragen. Zum eigentlichen Problem: Beim Befehl ptxdist go erscheint die folgende Fehlermeldung: ptxdist: error: 'pkg_xpkg' or 'ptx_xpkg_type' undefined Wie kann man an diesen herangehen bzw. diesen beheben? Marco Habermehl Support http://www.dinob.de/ Fon: +49 (0) 66 43 / 79 864 29 Fax: +49 (0) 66 43 / 79 864 99 mailto:m.haberm...@dinob.de m.haberm...@dinob.de Herbsteiner Straße 14 36355 Grebenhain Inhaber Stephan Wies USt-IdNr.: DE236820591 Hinweis: Bestimmte Dateitypen werden zum Schutz vor Computerviren u. U. nicht als Anlagen gesendet oder empfangen. Überprüfen Sie in den E-Mail-Sicherheitseinstellungen, wie Anlagen gehandhabt werden. Diese Information ist für den Gebrauch durch die Person oder die Firma/Organisation bestimmt, die in der Empfängeradresse benannt ist und unterliegt u. U. dem Betriebsgeheimnis, dem Schutz von Arbeitsergebnissen oder anderweitigem rechtlichen Schutz. Wenn Sie nicht der angegebene Empfänger sind, nehmen Sie bitte zur Kenntnis, dass Weitergabe, Kopieren, Verteilung oder Nutzung des Inhalts dieser E-Mail-Übertragung unzulässig ist. Falls Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie den Absender bitte unverzüglich telefonisch oder durch eine E-Mail und löschen Sie diese Information aus Ihrem EDV-System. This e-mail message is intended only for the use of the named recipient(s) and contains information which may be confidential or privileged. If you are not the intended recipient, be aware that any distribution, or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender and delete the material from the computer. -- ptxdist mailing list ptxdist@pengutronix.de