[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