LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-16-2020, 06:42 AM   #31
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled

After installing the dtc binary from source, and correcting ./build/source/u-boot-pinebook_pro/scripts/dtc-version.sh to:

Code:
#!/bin/sh
#
# dtc-version dtc-command
#
# Prints the dtc version of `dtc-command' in a canonical 4-digit form
# such as `0222' for binutils 2.22
#

dtc="$*"

if [ ${#dtc} -eq 0 ]; then
        echo "Error: No dtc command specified."
        printf "Usage:\n\t$0 <dtc-command>\n"
        exit 1
fi

MAJOR=$(/usr/local/bin/dtc $dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 1)
MINOR=$(/usr/local/bin/dtc $dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 2)

printf "%02d%02d\\n" $MAJOR $MINOR
The compilation fails like this:

Code:
  OD      build/rk3399/release/bl31/bl31.dump
out:trust.img
merge success(trust.img)
  CLEAN   spl/u-boot.cfg
  CLEAN   u-boot.cfg
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2468:
scripts/kconfig/confdata.c: In function 'conf_write':
scripts/kconfig/confdata.c:771:19: warning: '%s' directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  771 |  sprintf(newname, "%s%s", dirname, basename);
      |                   ^~~~~~
scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytes
scripts/kconfig/confdata.c:771:2: note: 'sprintf' output 1 or more bytes (assuming 4104) into a destination of size 4097
  771 |  sprintf(newname, "%s%s", dirname, basename);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:774:20: warning: '.tmpconfig.' directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
  774 |   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
      |                    ^~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:774:3: note: 'sprintf' output between 13 and 4119 bytes into a destination of size 4097
  774 |   sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     include/autoconf.mk
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/config.h
  CFG     u-boot.cfg
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CC      lib/asm-offsets.s
  CC      arch/arm/lib/asm-offsets.s
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/generic-asm-offsets.h
  UPD     include/generated/asm-offsets.h
  HOSTCC  tools/envcrc.o
  WRAP    tools/lib/crc32.c
  WRAP    tools/env/embedded.c
  WRAP    tools/lib/sha1.c
  HOSTCC  tools/gen_eth_addr
  LDS     u-boot.lds
  HOSTCC  tools/gen_ethaddr_crc.o
  WRAP    tools/lib/crc8.c
  HOSTCC  tools/img2srec
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/os_support.o
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
In file included from ./tools/../lib/libfdt/libfdt.h:10,
                 from tools/../include/libfdt.h:1,
                 from tools/fdt_host.h:11,
                 from tools/imagetool.h:24,
                 from tools/aisimage.c:8:
/usr/local/include/libfdt_env.h:27:30: error: conflicting types for 'fdt64_t'
   27 | typedef uint64_t FDT_BITWISE fdt64_t;
      |                              ^~~~~~~
In file included from <command-line>:
././include/libfdt_env.h:19:16: note: previous declaration of 'fdt64_t' was here
   19 | typedef __be64 fdt64_t;
      |                ^~~~~~~
In file included from ././include/libfdt_env.h:12,
                 from <command-line>:
/usr/local/include/libfdt_env.h:47:24: error: expected ')' before 'x'
   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)
      |                        ^~~~~~~~~~~~
././include/compiler.h:71:9: error: expected ')' before '&' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |         ^
././include/compiler.h:71:23: error: expected ')' before '>>' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                       ^~
././include/compiler.h:71:30: error: expected ')' before '|' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                              ^
/usr/local/include/libfdt_env.h:51:23: error: expected ')' before 'x'
   51 | static inline fdt32_t cpu_to_fdt32(uint32_t x)
      |                       ^~~~~~~~~~~~
././include/compiler.h:71:9: error: expected ')' before '&' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |         ^
././include/compiler.h:71:23: error: expected ')' before '>>' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                       ^~
././include/compiler.h:71:30: error: expected ')' before '|' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                              ^
/usr/local/include/libfdt_env.h:56:24: error: expected ')' before 'x'
   56 | static inline uint64_t fdt64_to_cpu(fdt64_t x)
      |                        ^~~~~~~~~~~~
././include/compiler.h:76:9: error: expected ')' before '&' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |         ^
././include/compiler.h:76:36: error: expected ')' before '>>' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                    ^~
././include/compiler.h:76:43: error: expected ')' before '|' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                           ^
/usr/local/include/libfdt_env.h:60:23: error: expected ')' before 'x'
   60 | static inline fdt64_t cpu_to_fdt64(uint64_t x)
      |                       ^~~~~~~~~~~~
././include/compiler.h:76:9: error: expected ')' before '&' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |         ^
././include/compiler.h:76:36: error: expected ')' before '>>' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                    ^~
././include/compiler.h:76:43: error: expected ')' before '|' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                           ^
make[1]: *** [scripts/Makefile.host:116: tools/aisimage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ./tools/../lib/libfdt/libfdt.h:10,
                 from tools/../include/libfdt.h:1,
                 from tools/fdt_host.h:11,
                 from tools/imagetool.h:24,
                 from tools/atmelimage.c:8:
/usr/local/include/libfdt_env.h:27:30: error: conflicting types for 'fdt64_t'
   27 | typedef uint64_t FDT_BITWISE fdt64_t;
      |                              ^~~~~~~
In file included from <command-line>:
././include/libfdt_env.h:19:16: note: previous declaration of 'fdt64_t' was here
   19 | typedef __be64 fdt64_t;
      |                ^~~~~~~
In file included from ././include/libfdt_env.h:12,
                 from <command-line>:
/usr/local/include/libfdt_env.h:47:24: error: expected ')' before 'x'
   47 | static inline uint32_t fdt32_to_cpu(fdt32_t x)
      |                        ^~~~~~~~~~~~
././include/compiler.h:71:9: error: expected ')' before '&' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |         ^
././include/compiler.h:71:23: error: expected ')' before '>>' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                       ^~
././include/compiler.h:71:30: error: expected ')' before '|' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                              ^
/usr/local/include/libfdt_env.h:51:23: error: expected ')' before 'x'
   51 | static inline fdt32_t cpu_to_fdt32(uint32_t x)
      |                       ^~~~~~~~~~~~
././include/compiler.h:71:9: error: expected ')' before '&' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |         ^
././include/compiler.h:71:23: error: expected ')' before '>>' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                       ^~
././include/compiler.h:71:30: error: expected ')' before '|' token
   71 |  ((((x) & 0xff000000) >> 24) | \
      |                              ^
/usr/local/include/libfdt_env.h:56:24: error: expected ')' before 'x'
   56 | static inline uint64_t fdt64_to_cpu(fdt64_t x)
      |                        ^~~~~~~~~~~~
././include/compiler.h:76:9: error: expected ')' before '&' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |         ^
././include/compiler.h:76:36: error: expected ')' before '>>' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                    ^~
././include/compiler.h:76:43: error: expected ')' before '|' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                           ^
/usr/local/include/libfdt_env.h:60:23: error: expected ')' before 'x'
   60 | static inline fdt64_t cpu_to_fdt64(uint64_t x)
      |                       ^~~~~~~~~~~~
././include/compiler.h:76:9: error: expected ')' before '&' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |         ^
././include/compiler.h:76:36: error: expected ')' before '>>' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                    ^~
././include/compiler.h:76:43: error: expected ')' before '|' token
   76 |  ((((x) & 0xff00000000000000##sfx) >> 56) | \
      |                                           ^
make[1]: *** [scripts/Makefile.host:116: tools/atmelimage.o] Error 1
make: *** [Makefile:1278: tools] Error 2
 
Old 02-16-2020, 07:00 AM   #32
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
assemble a DTC package
fixed cross-compilation issue for x86_64
 
1 members found this post helpful.
Old 02-17-2020, 12:58 AM   #33
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
assemble a DTC package
fixed cross-compilation issue for x86_64
Here are my updates:
* I removed my home-built vanilla dtc, and built it via your SlackBuild script

At this point I decided to keep my local modifications, and clone your most recent changes to a different directory, and work with it there. So my actions are now running on two parallel tracks.

In the directory with my local changes, and an older version of your git repo:
==============================================================================
* after installing your dtc version, and fixing the absolute path I used in dtc-version.sh, u-boot compiled successfully.
* after that the pinebook-pro kernel started compiling, which eventually failed due to the command mkimage (form u-boot-tools) missing
* after building u-boot-tools with your SlackBuild script, the kernel image was built successfully too
* finally the build failed when trying to patch u-boot-pinebook_pro, as the patches failed to apply

Code:
  OBJCOPY lib/efi_loader/helloworld.efi
  LD      lib/built-in.o
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end
make[2]: 'arch/arm/dts/rk3399-pinebook-pro.dtb' is up to date.
  MKIMAGE u-boot.itb
u-boot.its:8.11-15.5: Warning (unit_address_vs_reg): /images/uboot@1: node has a unit name, but no reg property
u-boot.its:16.9-24.5: Warning (unit_address_vs_reg): /images/atf@1: node has a unit name, but no reg property
u-boot.its:25.9-32.5: Warning (unit_address_vs_reg): /images/atf@2: node has a unit name, but no reg property
u-boot.its:33.9-40.5: Warning (unit_address_vs_reg): /images/atf@3: node has a unit name, but no reg property
u-boot.its:41.9-46.5: Warning (unit_address_vs_reg): /images/fdt@1: node has a unit name, but no reg property
u-boot.its:51.12-56.5: Warning (unit_address_vs_reg): /configurations/config@1: node has a unit name, but no reg property
~/slackbuild/slackware_arm_build_kit/build/source/u-boot-pinebook_pro ~/slackbuild/slackware_arm_build_kit/build/source/u-boot-pinebook_pro
Image Type:   Rockchip RK33 (SD/MMC) boot image
Data Size:    116736 bytes
1617+1 records in
1617+1 records out
827928 bytes (828 kB, 809 KiB) copied, 0.00369337 s, 224 MB/s
~/slackbuild/slackware_arm_build_kit/build/source/u-boot-pinebook_pro
~/slackbuild/slackware_arm_build_kit/build/source/linux-rk3399-next-pinebook_pro ~/slackbuild/slackware_arm_build_kit/build/source/u-boot-pinebook_pro
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Documentation/admin-guide/kernel-parameters.txt.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file Documentation/devicetree/bindings/usb/rockchip,dwc3.txt.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm64/Makefile.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm64/boot/dts/rockchip/Makefile.rej
Reversed (or previously applied) patch detected!  Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file arch/arm64/boot/dts/rockchip/rk3328-rock64.dts.rej
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file arch/arm64/boot/dts/rockchip/rk3328.dtsi.rej
Reversed (or previously applied) patch detected!  Skipping patch.
16 out of 16 hunks ignored -- saving rejects to file arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm64/boot/dts/rockchip/rk3399.dtsi.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file arch/arm64/configs/defconfig.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/cpufreq/cpufreq-dt-platdev.c.rej
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file drivers/mmc/core/mmc.c.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/ethernet/stmicro/stmmac/stmmac_main.c.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c.rej
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file drivers/net/phy/realtek.c.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/of/Kconfig.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/of/Makefile.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/storage/uas-detect.h.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file drivers/usb/storage/unusual_uas.h.rej
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/linux/stmmac.h.rej

In the directory with your most recent changes:
===============================================
* Without any changes, your most recent vanilla build environment failed again at
Code:
|info| compiling    u-boot-tools next-dev::
* Again the problem was that the environment was trying to compile the u-boot code with the native x86_64 compiler
* I yet again had to patch slackware_arm_build_kit/build/source/u-boot-tools/Makefile with

Code:
+CROSS_COMPILE   = $(CROSS)
* But this worked, as the CROSS variable was now set up correctly
* So I got one step further, but this time the patching step of u-boot-tools failed like this:

Code:
  HOSTCC  tools/rockchip/loaderimage.o
tools/rockchip/boot_merger.c: In function 'main':
tools/rockchip/boot_merger.c:895:11: warning: array subscript 20 is outside array bounds of 'char[20]' [-Warray-bounds]
  895 |  str[len] = 0;
      |  ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:933:7: note: while referencing 'name'
  933 |  char name[MAX_NAME_LEN];
      |       ^~~~
  HOSTCC  tools/rockchip/sha.o
  HOSTCC  tools/rockchip/crc32_rk.o
  HOSTCC  tools/rockchip/resource_tool.o
  HOSTCC  tools/proftool
  HOSTCC  tools/relocate-rela
  HOSTCC  tools/fdtgrep.o
  HOSTCC  tools/lib/crc8.o
  HOSTCC  tools/lib/crc32.o
  HOSTCC  tools/common/bootm.o
  HOSTCC  tools/lib/fdtdec_common.o
  HOSTCC  tools/lib/fdtdec.o
  HOSTCC  tools/common/image-fit.o
  HOSTCC  tools/common/image.o
  HOSTCC  tools/lib/md5.o
  HOSTCC  tools/lib/rc4.o
  HOSTCC  tools/lib/sha1.o
  HOSTCC  tools/lib/sha256.o
  HOSTCC  tools/common/hash.o
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  HOSTCC  tools/lib/libfdt/fdt_region.o
  HOSTLD  tools/boot_merger
  HOSTLD  tools/trust_merger
  HOSTLD  tools/loaderimage
  HOSTLD  tools/resource_tool
  HOSTLD  tools/gen_ethaddr_crc
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/fdtgrep
~/slackbuild/slackware_arm_build_kit-new/build/source/arm-trusted-firmware ~/slackbuild/slackware_arm_build_kit-new/build/source/u-boot-tools
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file plat/rockchip/common/params_setup.c.rej

So, even though I managed to move a few steps forward, I'm stuck yet again.
 
2 members found this post helpful.
Old 02-17-2020, 11:36 AM   #34
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
Quote:
* Without any changes, your most recent vanilla build environment failed again at
Code:
|info| compiling    u-boot-tools next-dev::
* Again the problem was that the environment was trying to compile the u-boot code with the native x86_64 compiler
* I yet again had to patch slackware_arm_build_kit/build/source/u-boot-tools/Makefile with
u-boot-tools should be assembled exactly as the host system in which u-boot components are combined.

Quote:
Code:
  HOSTCC  tools/rockchip/loaderimage.o
tools/rockchip/boot_merger.c: In function 'main':
tools/rockchip/boot_merger.c:895:11: warning: array subscript 20 is outside array bounds of 'char[20]' [-Warray-bounds]
  895 |  str[len] = 0;
      |  ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:933:7: note: while referencing 'name'
  933 |  char name[MAX_NAME_LEN];
      |       ^~~~
  HOSTCC  tools/rockchip/sha.o
  HOSTCC  tools/rockchip/crc32_rk.o
  HOSTCC  tools/rockchip/resource_tool.o
  HOSTCC  tools/proftool
  HOSTCC  tools/relocate-rela
  HOSTCC  tools/fdtgrep.o
  HOSTCC  tools/lib/crc8.o
  HOSTCC  tools/lib/crc32.o
  HOSTCC  tools/common/bootm.o
  HOSTCC  tools/lib/fdtdec_common.o
  HOSTCC  tools/lib/fdtdec.o
  HOSTCC  tools/common/image-fit.o
  HOSTCC  tools/common/image.o
  HOSTCC  tools/lib/md5.o
  HOSTCC  tools/lib/rc4.o
  HOSTCC  tools/lib/sha1.o
  HOSTCC  tools/lib/sha256.o
  HOSTCC  tools/common/hash.o
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  HOSTCC  tools/lib/libfdt/fdt_region.o
  HOSTLD  tools/boot_merger
  HOSTLD  tools/trust_merger
  HOSTLD  tools/loaderimage
  HOSTLD  tools/resource_tool
  HOSTLD  tools/gen_ethaddr_crc
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/fdtgrep
~/slackbuild/slackware_arm_build_kit-new/build/source/arm-trusted-firmware ~/slackbuild/slackware_arm_build_kit-new/build/source/u-boot-tools
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file plat/rockchip/common/params_setup.c.rej

So, even though I managed to move a few steps forward, I'm stuck yet again.
regarding an error with patches, for some reason your source files are not reset to their original state.
just select clean from the menu (everything in build / {output, pkg, source} will be cleared)
 
Old 02-18-2020, 05:08 AM   #35
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
regarding an error with patches, for some reason your source files are not reset to their original state.
just select clean from the menu (everything in build / {output, pkg, source} will be cleared)
I prefer not to clean my environment, because my local fixes/changes are lost when the environment is reset.

Either way, I did a clean and download run with build.sh, and then re-applied my fixes, but the build failed again at the same place like before: the patches to u-boot-tools did not apply:
Code:
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/fdtgrep
~/slackbuild/slackware_arm_build_kit-new/build/source/arm-trusted-firmware ~/slackbuild/slackware_arm_build_kit-new/build/source/u-boot-tools
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file plat/rockchip/common/params_setup.c.rej
On my own branch, I also did a make clean/download run, and then re-added my own modifications, and now it got past bulding the kernel image, but it now kind of seems stuck at
Code:
  MKIMAGE arch/arm64/boot/dts/rockchip/overlay/rockchip-fixup.scr
  DTC     arch/arm64/boot/dts/rockchip/px30-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3308-evb.dtb
Image Name:
Created:      Fri Feb 14 23:38:27 2020
Image Type:   AArch64 Linux Script (uncompressed)
Data Size:    2634 Bytes = 2.57 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 2626 Bytes = 2.56 KiB = 0.00 MiB
  DTC     arch/arm64/boot/dts/rockchip/rk3308-roc-cc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-a1.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-r88.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-ficus.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-firefly.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-inx.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-kd.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-captain.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-v.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4v2.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-orangepi.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rock960.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dtb
|info| create       kernel packages
No disk activity, no measurable CPU usage. It just sits there...
Code:
user    25853  0.0  0.2   9760  5792 ?        Ss   Feb14   0:02 SCREEN
user    28171  0.0  0.1   7672  3920 pts/3    Ss   Feb14   0:00  \_ /bin/bash
user    25936  0.0  0.2   8260  4480 pts/3    S+   Feb14   0:00      \_ /bin/bash ./build.sh
user    23688  0.0  0.2  13604  4260 pts/3    S+   Feb14   0:00          \_ make prepare
user    23968  0.0  0.1  12564  3364 pts/3    S+   Feb14   0:00              \_ make -f ./Makefile syncconfig
user    24127  0.0  0.2  13212  4068 pts/3    S+   Feb14   0:00                  \_ make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
user    24188  0.0  1.4  29488 28504 pts/3    S+   Feb14   0:00                      \_ scripts/kconfig/conf --syncconfig Kconfig
When I ran strace on its PID, it was waiting in a "read(0," call.
I believe that it was waiting for user input, but its STDOUT was captured by the build script, and I did not get to read it. Maybe it was asking me a question like "make oldconfig" does...

BTW, is there a way to make the build process more verbose? Like "make V=99" in case of openwrt? I would welcome the possibility to see what is happening.

Luckily I could find out from the build log what was happening:
Code:
Image Name:   
Created:      Fri Feb 14 23:38:36 2020
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1290 Bytes = 1.26 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1282 Bytes = 1.25 KiB = 0.00 MiB
  CLEAN   certs
  CLEAN   drivers/firmware/efi/libstub
  CLEAN   drivers/scsi
  CLEAN   drivers/tty/vt
  CLEAN   drivers/video/logo
  CLEAN   kernel
  CLEAN   lib/raid6
  CLEAN   lib
  CLEAN   net/bpfilter
  CLEAN   net/wireless
  CLEAN   usr/include
  CLEAN   usr
  CLEAN   modules.builtin.modinfo
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
...
So it was asking me questions about the kernel configuration, but I couldn't answer anything as I was not seeing that there was a question...
After pressing CTRL+d the compilation resumed, and finally failed with:

Code:
|info| create       kernel packages
|info| download     slarm64-current-aarch64-rootfs-20200118
|info| prepare      slarm64-current-aarch64-base-rootfs-20200118-5.5.4-pinebook_pro-build-20200214
|err | details      /home/janos/slackbuild/slackware_arm_build_kit/build/source/build.log
The build.log contains the following:
Code:
2020-02-15 00:33:55 (935 KB/s) - '/home/user/slackbuild/slackware_arm_build_kit/build/source/slarm64-current-aarch64-rootfs-20200118.tar.xz' saved [77659024/77659024]

tar: ./dev/tty61: Cannot mknod: Operation not permitted
tar: ./dev/cua13: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl3: Cannot mknod: Operation not permitted
tar: ./dev/hdf24: Cannot mknod: Operation not permitted
tar: ./dev/sda9: Cannot mknod: Operation not permitted
tar: ./dev/edb8: Cannot mknod: Operation not permitted
tar: ./dev/cui32: Cannot mknod: Operation not permitted
tar: ./dev/i2c-3: Cannot mknod: Operation not permitted
tar: ./dev/cui61: Cannot mknod: Operation not permitted
tar: ./dev/ptyrd: Cannot mknod: Operation not permitted
tar: ./dev/fd3u3200: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl45: Cannot mknod: Operation not permitted
tar: ./dev/hdg9: Cannot mknod: Operation not permitted
tar: ./dev/sg6: Cannot mknod: Operation not permitted
tar: ./dev/ttyI36: Cannot mknod: Operation not permitted
tar: ./dev/hds22: Cannot mknod: Operation not permitted
tar: ./dev/pdc14: Cannot mknod: Operation not permitted
tar: ./dev/hdb23: Cannot mknod: Operation not permitted
tar: ./dev/ptyta: Cannot mknod: Operation not permitted
tar: ./dev/profile17: Cannot mknod: Operation not permitted
tar: ./dev/lp1: Cannot mknod: Operation not permitted
tar: ./dev/ippp11: Cannot mknod: Operation not permitted
tar: ./dev/sdg8: Cannot mknod: Operation not permitted
tar: ./dev/isdn55: Cannot mknod: Operation not permitted
tar: ./dev/sde1: Cannot mknod: Operation not permitted
tar: ./dev/ptyd4: Cannot mknod: Operation not permitted
tar: ./dev/isdn56: Cannot mknod: Operation not permitted
tar: ./dev/ttyxb: Cannot mknod: Operation not permitted
tar: ./dev/ptyy0: Cannot mknod: Operation not permitted
tar: ./dev/cui49: Cannot mknod: Operation not permitted
tar: ./dev/nvidia5: Cannot mknod: Operation not permitted
tar: ./dev/cui10: Cannot mknod: Operation not permitted
tar: ./dev/hdi10: Cannot mknod: Operation not permitted
tar: ./dev/pdb8: Cannot mknod: Operation not permitted
tar: ./dev/isdn34: Cannot mknod: Operation not permitted
tar: ./dev/cui47: Cannot mknod: Operation not permitted
tar: ./dev/sgl: Cannot mknod: Operation not permitted
tar: ./dev/fd1u1743: Cannot mknod: Operation not permitted
tar: ./dev/sdg14: Cannot mknod: Operation not permitted
...
tar: ./dev/sndstat: Cannot mknod: Operation not permitted
tar: ./dev/ttys0: Cannot mknod: Operation not permitted
tar: ./dev/tty52: Cannot mknod: Operation not permitted
tar: ./dev/scd11: Cannot mknod: Operation not permitted
tar: ./dev/pdb12: Cannot mknod: Operation not permitted
tar: ./dev/ptyp4: Cannot mknod: Operation not permitted
tar: ./dev/hdq23: Cannot mknod: Operation not permitted
tar: ./dev/ttyS6: Cannot mknod: Operation not permitted
tar: ./dev/profile27: Cannot mknod: Operation not permitted
tar: ./dev/mga_vid: Cannot mknod: Operation not permitted
tar: ./dev/tty49: Cannot mknod: Operation not permitted
tar: ./dev/isdn44: Cannot mknod: Operation not permitted
tar: ./dev/pg2: Cannot mknod: Operation not permitted
tar: ./dev/pdc7: Cannot mknod: Operation not permitted
tar: ./dev/ptyde: Cannot mknod: Operation not permitted
tar: ./dev/npt3: Cannot mknod: Operation not permitted
tar: ./dev/i2c-6: Cannot mknod: Operation not permitted
tar: ./dev/hde14: Cannot mknod: Operation not permitted
tar: ./dev/ttyd7: Cannot mknod: Operation not permitted
tar: ./dev/edb4: Cannot mknod: Operation not permitted
tar: ./dev/mtd8: Cannot mknod: Operation not permitted
tar: ./dev/md8: Cannot mknod: Operation not permitted
tar: ./dev/ptyt8: Cannot mknod: Operation not permitted
tar: ./dev/hdl14: Cannot mknod: Operation not permitted
tar: ./dev/ptype: Cannot mknod: Operation not permitted
tar: ./dev/hdr20: Cannot mknod: Operation not permitted
tar: ./dev/hdm24: Cannot mknod: Operation not permitted
tar: ./dev/ptys5: Cannot mknod: Operation not permitted
tar: ./dev/pdd15: Cannot mknod: Operation not permitted
tar: ./dev/ttyACM2: Cannot mknod: Operation not permitted
tar: ./dev/ttycf: Cannot mknod: Operation not permitted
tar: ./dev/isdn53: Cannot mknod: Operation not permitted
tar: ./dev/mtd13: Cannot mknod: Operation not permitted
tar: ./dev/hdi25: Cannot mknod: Operation not permitted
tar: ./dev/hdl12: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl34: Cannot mknod: Operation not permitted
tar: ./dev/sdb: Cannot mknod: Operation not permitted
tar: ./dev/temperature: Cannot mknod: Operation not permitted
tar: ./dev/vcs4: Cannot mknod: Operation not permitted
tar: ./dev/hdl23: Cannot mknod: Operation not permitted
tar: ./dev/ttyI53: Cannot mknod: Operation not permitted
tar: ./dev/ttyc5: Cannot mknod: Operation not permitted
tar: Exiting with failure status due to previous errors
This is where I am now.

Last edited by wowbaggerHU; 02-18-2020 at 05:10 AM.
 
Old 02-18-2020, 12:06 PM   #36
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
Quote:
Code:
|info| create       kernel packages
rather capacious process.
Quote:
Code:
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/fdtgrep
~/slackbuild/slackware_arm_build_kit-new/build/source/arm-trusted-firmware ~/slackbuild/slackware_arm_build_kit-new/build/source/u-boot-tools
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file plat/rockchip/common/params_setup.c.rej
fixed
Quote:
Code:
2020-02-15 00:33:55 (935 KB/s) - '/home/user/slackbuild/slackware_arm_build_kit/build/source/slarm64-current-aarch64-rootfs-20200118.tar.xz' saved [77659024/77659024]

tar: ./dev/tty61: Cannot mknod: Operation not permitted
tar: ./dev/cua13: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl3: Cannot mknod: Operation not permitted
tar: ./dev/hdf24: Cannot mknod: Operation not permitted
tar: ./dev/sda9: Cannot mknod: Operation not permitted
tar: ./dev/edb8: Cannot mknod: Operation not permitted
tar: ./dev/cui32: Cannot mknod: Operation not permitted
tar: ./dev/i2c-3: Cannot mknod: Operation not permitted
tar: ./dev/cui61: Cannot mknod: Operation not permitted
tar: ./dev/ptyrd: Cannot mknod: Operation not permitted
tar: ./dev/fd3u3200: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl45: Cannot mknod: Operation not permitted
tar: ./dev/hdg9: Cannot mknod: Operation not permitted
tar: ./dev/sg6: Cannot mknod: Operation not permitted
tar: ./dev/ttyI36: Cannot mknod: Operation not permitted
tar: ./dev/hds22: Cannot mknod: Operation not permitted
tar: ./dev/pdc14: Cannot mknod: Operation not permitted
tar: ./dev/hdb23: Cannot mknod: Operation not permitted
tar: ./dev/ptyta: Cannot mknod: Operation not permitted
tar: ./dev/profile17: Cannot mknod: Operation not permitted
tar: ./dev/lp1: Cannot mknod: Operation not permitted
tar: ./dev/ippp11: Cannot mknod: Operation not permitted
tar: ./dev/sdg8: Cannot mknod: Operation not permitted
tar: ./dev/isdn55: Cannot mknod: Operation not permitted
tar: ./dev/sde1: Cannot mknod: Operation not permitted
tar: ./dev/ptyd4: Cannot mknod: Operation not permitted
tar: ./dev/isdn56: Cannot mknod: Operation not permitted
tar: ./dev/ttyxb: Cannot mknod: Operation not permitted
tar: ./dev/ptyy0: Cannot mknod: Operation not permitted
tar: ./dev/cui49: Cannot mknod: Operation not permitted
tar: ./dev/nvidia5: Cannot mknod: Operation not permitted
tar: ./dev/cui10: Cannot mknod: Operation not permitted
tar: ./dev/hdi10: Cannot mknod: Operation not permitted
tar: ./dev/pdb8: Cannot mknod: Operation not permitted
tar: ./dev/isdn34: Cannot mknod: Operation not permitted
tar: ./dev/cui47: Cannot mknod: Operation not permitted
tar: ./dev/sgl: Cannot mknod: Operation not permitted
tar: ./dev/fd1u1743: Cannot mknod: Operation not permitted
tar: ./dev/sdg14: Cannot mknod: Operation not permitted
...
tar: ./dev/sndstat: Cannot mknod: Operation not permitted
tar: ./dev/ttys0: Cannot mknod: Operation not permitted
tar: ./dev/tty52: Cannot mknod: Operation not permitted
tar: ./dev/scd11: Cannot mknod: Operation not permitted
tar: ./dev/pdb12: Cannot mknod: Operation not permitted
tar: ./dev/ptyp4: Cannot mknod: Operation not permitted
tar: ./dev/hdq23: Cannot mknod: Operation not permitted
tar: ./dev/ttyS6: Cannot mknod: Operation not permitted
tar: ./dev/profile27: Cannot mknod: Operation not permitted
tar: ./dev/mga_vid: Cannot mknod: Operation not permitted
tar: ./dev/tty49: Cannot mknod: Operation not permitted
tar: ./dev/isdn44: Cannot mknod: Operation not permitted
tar: ./dev/pg2: Cannot mknod: Operation not permitted
tar: ./dev/pdc7: Cannot mknod: Operation not permitted
tar: ./dev/ptyde: Cannot mknod: Operation not permitted
tar: ./dev/npt3: Cannot mknod: Operation not permitted
tar: ./dev/i2c-6: Cannot mknod: Operation not permitted
tar: ./dev/hde14: Cannot mknod: Operation not permitted
tar: ./dev/ttyd7: Cannot mknod: Operation not permitted
tar: ./dev/edb4: Cannot mknod: Operation not permitted
tar: ./dev/mtd8: Cannot mknod: Operation not permitted
tar: ./dev/md8: Cannot mknod: Operation not permitted
tar: ./dev/ptyt8: Cannot mknod: Operation not permitted
tar: ./dev/hdl14: Cannot mknod: Operation not permitted
tar: ./dev/ptype: Cannot mknod: Operation not permitted
tar: ./dev/hdr20: Cannot mknod: Operation not permitted
tar: ./dev/hdm24: Cannot mknod: Operation not permitted
tar: ./dev/ptys5: Cannot mknod: Operation not permitted
tar: ./dev/pdd15: Cannot mknod: Operation not permitted
tar: ./dev/ttyACM2: Cannot mknod: Operation not permitted
tar: ./dev/ttycf: Cannot mknod: Operation not permitted
tar: ./dev/isdn53: Cannot mknod: Operation not permitted
tar: ./dev/mtd13: Cannot mknod: Operation not permitted
tar: ./dev/hdi25: Cannot mknod: Operation not permitted
tar: ./dev/hdl12: Cannot mknod: Operation not permitted
tar: ./dev/isdnctrl34: Cannot mknod: Operation not permitted
tar: ./dev/sdb: Cannot mknod: Operation not permitted
tar: ./dev/temperature: Cannot mknod: Operation not permitted
tar: ./dev/vcs4: Cannot mknod: Operation not permitted
tar: ./dev/hdl23: Cannot mknod: Operation not permitted
tar: ./dev/ttyI53: Cannot mknod: Operation not permitted
tar: ./dev/ttyc5: Cannot mknod: Operation not permitted
tar: Exiting with failure status due to previous errors
build.sh should be run from root or sudo
 
Old 02-19-2020, 09:00 AM   #37
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
rather capacious process.
Well, I tried again couple of times. As it seems, I have to open another terminal session and "tail -f" the build.log file to see the questions.
What I see in it is the following:

Code:
Image Name:   
Created:      Sat Feb 15 06:55:38 2020
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1290 Bytes = 1.26 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1282 Bytes = 1.25 KiB = 0.00 MiB
  CLEAN   certs
  CLEAN   drivers/firmware/efi/libstub
  CLEAN   drivers/scsi
  CLEAN   drivers/tty/vt
  CLEAN   drivers/video/logo
  CLEAN   kernel
  CLEAN   lib/raid6
  CLEAN   lib
  CLEAN   net/bpfilter
  CLEAN   net/wireless
  CLEAN   usr/include
  CLEAN   usr
  CLEAN   modules.builtin.modinfo
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) [] 
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Build ID Salt (BUILD_SALT) [] 
Kernel compression mode
> 1. Gzip (KERNEL_GZIP) (NEW)
  2. Bzip2 (KERNEL_BZIP2) (NEW)
  3. LZMA (KERNEL_LZMA) (NEW)
  4. XZ (KERNEL_XZ) (NEW)
  5. LZO (KERNEL_LZO) (NEW)
  6. LZ4 (KERNEL_LZ4) (NEW)
choice[1-6?]:
Based on the questions, it seems as if I would be going through an x86_64 (not aarch64!) kernel "oldconfig" with some existing/partial configuration already in place.
I again went ahead and pressed Ctrl+d to go with the defaults. (Hopefully it won't be used anywhere.) But again is this really a necessary step?
Also, do you have any plans about a verbose mode perhaps?

Quote:
Originally Posted by sndwvs View Post
fixed
Thanks!

Quote:
Originally Posted by sndwvs View Post
build.sh should be run from root or sudo
Okay, this was again something I did not know about.


As for my latest attempts:
* on my own branch, I managed compile and build the installer image, however the build of the XFCE image failed:

Code:
|info| download     package xap/ffmpegthumbnailer-2.2.2-aarch64-1.txz
|info| download     package xap/mozilla-firefox-68.5.0esr-aarch64-1.txz
|info| download     package xap/network-manager-applet-1.8.24-aarch64-1.txz
|info| download     package xap/pavucontrol-4.0-aarch64-1.txz
|err | details      /home/user/slackbuild/slackware_arm_build_kit/build/source/build.log
The last part of build.log is:

Code:
--2020-02-15 07:28:23--  http://dl.fail.pp.ua/slackware/slarm64-current/slarm64/xap/pavucontrol-4.0-aarch64-1.txz
Resolving dl.fail.pp.ua (dl.fail.pp.ua)... 193.151.15.132
Connecting to dl.fail.pp.ua (dl.fail.pp.ua)|193.151.15.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 122456 (120K)
Saving to: '/home/user/slackbuild/slackware_arm_build_kit/build/pkg/xfce/x86_64/xap/pavucontrol-4.0-aarch64-1.txz'

     0K .......... .......... .......... .......... .......... 41%  332K 0s
    50K .......... .......... .......... .......... .......... 83%  739K 0s
   100K .......... .........                                  100% 5.19M=0.2s

2020-02-15 07:28:24 (539 KB/s) - '/home/user/slackbuild/slackware_arm_build_kit/build/pkg/xfce/x86_64/xap/pavucontrol-4.0-aarch64-1.txz' saved [122456/122456]

empty download package xfce/Thunar

* as for your latest build kit version, I again managed to move a little bit forward, but the build failed yet again:

Code:
Image Name:
Created:      Sat Feb 15 07:55:08 2020
Image Type:   AArch64 Linux Script (uncompressed)
Data Size:    2634 Bytes = 2.57 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 2626 Bytes = 2.56 KiB = 0.00 MiB
  DTC     arch/arm64/boot/dts/rockchip/rk3328-a1.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-evb-act8846.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-geekbox.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-lion-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-px5-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3368-r88.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-evb.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-ficus.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-firefly.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-inx.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-gru-scarlet-kd.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-captain.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-v.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-neo4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4v2.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-orangepi.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-roc-pc-mezzanine.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rock960.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtb
  DTC     arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dtb
|info| create       kernel packages
|err | details      /home/user/slackbuild/slackware_arm_build_kit-new/build/source/build.log
build.log:
Code:
Image Name:   
Created:      Sat Feb 15 07:55:17 2020
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1290 Bytes = 1.26 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1282 Bytes = 1.25 KiB = 0.00 MiB
  CLEAN   arch/arm64/crypto
  CLEAN   arch/arm64/kernel/vdso
  CLEAN   arch/arm64/kernel
  CLEAN   certs
  CLEAN   drivers/firmware/efi/libstub
  CLEAN   drivers/scsi
  CLEAN   drivers/tty/vt
  CLEAN   drivers/video/logo
  CLEAN   kernel
  CLEAN   lib/raid6
  CLEAN   lib
  CLEAN   net/bpfilter
  CLEAN   net/wireless
  CLEAN   usr/include
  CLEAN   usr
  CLEAN   arch/arm64/boot
  CLEAN   modules.builtin.modinfo
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/dtc/yamltree.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/empty.o
gcc: error: unrecognized command line option '-mlittle-endian'
make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 1
make: *** [Makefile:1112: prepare0] Error 2

Last edited by wowbaggerHU; 02-19-2020 at 09:03 AM.
 
Old 02-19-2020, 10:57 AM   #38
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Since my last reply I tried to build the image again with your latest modifications.
It failed exactly where it did the last time:

Code:
Image Name:   
Created:      Sat Feb 15 10:09:14 2020
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1290 Bytes = 1.26 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1282 Bytes = 1.25 KiB = 0.00 MiB
  CLEAN   arch/arm64/crypto
  CLEAN   arch/arm64/kernel/vdso
  CLEAN   arch/arm64/kernel
  CLEAN   certs
  CLEAN   drivers/firmware/efi/libstub
  CLEAN   drivers/scsi
  CLEAN   drivers/tty/vt
  CLEAN   drivers/video/logo
  CLEAN   kernel
  CLEAN   lib/raid6
  CLEAN   lib
  CLEAN   net/bpfilter
  CLEAN   net/wireless
  CLEAN   usr/include
  CLEAN   usr
  CLEAN   arch/arm64/boot
  CLEAN   modules.builtin.modinfo
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTCC  scripts/dtc/yamltree.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/sortextable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/extract-cert
  HOSTCC  scripts/mod/mk_elfconfig
  CC      scripts/mod/empty.o
gcc: error: unrecognized command line option '-mlittle-endian'
make[1]: *** [scripts/Makefile.build:266: scripts/mod/empty.o] Error 1
make: *** [Makefile:1112: prepare0] Error 2
After investigating a bit, it seems that for some reason this Makefile is not getting the right CC variable at this point.
I edited build/source/linux-rk3399-next-pinebook_pro/arch/arm64/Makefile to include the following line at the beginning:

Code:
$(info 111$(ARCH)111 222$(KARCH)222 333$(CROSS)333 444$(CC)444 555$(PATH)555  EEEEEEEEEEEEEEEEEEEE)
Then, when the build failed I did the following:

Code:
root@slackbuild:/home/user/slackbuild/slackware_arm_build_kit-new# fgrep EEEEE ../slackware_arm_build_kit-new/build/source/build.log                                                                                                       
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE
So it it clearly visible that at some point the CC variable loses its cross-compilation prefix, and exactly the same time the toolchain also changes at from 5.5.0 to 7.2.1 for some reason.

The first time it changes from 5.5.0 to 7.2.1 is right here:

Code:
  HDRINST usr/include/asm/shmbuf.h
  INSTALL /home/user/slackbuild/slackware_arm_build_kit-new/build/pkg/kernel-headers/usr/include
Image Name:   
Created:      Sat Feb 15 11:19:01 2020
Image Type:   ARM Linux Script (uncompressed)
Data Size:    1290 Bytes = 1.26 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 1282 Bytes = 1.25 KiB = 0.00 MiB
111arm64111 222222 333/home/user/slackbuild/slackware_arm_build_kit-new/build/source/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-333 444gcc444 555/bin:/sbin:/usr/bin:/usr/sbin:/home/user/slackbuild/slackware_arm_build_kit-new/build/output/tools/555  EEEEEEEEEEEEEEEEEEEE

Last edited by wowbaggerHU; 02-19-2020 at 11:31 AM.
 
1 members found this post helpful.
Old 02-19-2020, 01:50 PM   #39
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
Quote:
--2020-02-15 07:28:23-- http://dl.fail.pp.ua/slackware/slarm...-aarch64-1.txz
Resolving dl.fail.pp.ua (dl.fail.pp.ua)... 193.151.15.132
Connecting to dl.fail.pp.ua (dl.fail.pp.ua)|193.151.15.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 122456 (120K)
Saving to: '/home/user/slackbuild/slackware_arm_build_kit/build/pkg/xfce/x86_64/xap/pavucontrol-4.0-aarch64-1.txz'

0K .......... .......... .......... .......... .......... 41% 332K 0s
50K .......... .......... .......... .......... .......... 83% 739K 0s
100K .......... ......... 100% 5.19M=0.2s

2020-02-15 07:28:24 (539 KB/s) - '/home/user/slackbuild/slackware_arm_build_kit/build/pkg/xfce/x86_64/xap/pavucontrol-4.0-aarch64-1.txz' saved [122456/122456]

empty download package xfce/Thunar
Thanks,
I fixed it.

The rest is not possible due to the lack of a x86 PC.
You could try to assemble on the device itself.
You need to set test points in compilation.sh.
 
Old 02-20-2020, 08:26 AM   #40
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
I re-tried creating the xfce image on the branch with my local changes. This time it failed at the ffmpeg package:

Code:
empty download package l/ffmpeg
In the meantime I managed to compile the base image with your latest git repo state, I just needed to modify:
- the Makefile of u-boot-tools
- the dtc-version script of u-boot-pinebook_pro

And I still have to determine what was the crucial change I did to
- build_packages.sh
- compilation.sh
that made all the difference.

I will get back to you tomorrow with the list of my changes.

Last edited by wowbaggerHU; 02-20-2020 at 12:11 PM.
 
1 members found this post helpful.
Old 02-21-2020, 04:46 AM   #41
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
Code:
empty download package l/ffmpeg
Upon further investigation I found that this happened when build.sh tried downloading the 'extra' packages, because when the URL was set in configuration.sh the ARCH variable contained x86_64, and that is a non-existent URL.
The ARCH variable is used in a slightly funny way here. When I start build.sh, I have to set it to x86_64 for the cross compiling to work, but then, when the slarm64 packages are downloaded, the packages are saved into the $ARCH directory, which in fact should be aarch64. This is confusing.
And ARCH is used in configuration.sh similarly funnily when creating the extra URL.
I don't know how it could be done right, that would work across all platforms. The best I can do is to work around things, and show you the diffs.
 
1 members found this post helpful.
Old 02-21-2020, 12:16 PM   #42
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
thanks wowbaggerHU,
for the info, indeed when cross compiling it will work incorrectly.

fixed

Last edited by sndwvs; 02-21-2020 at 06:40 PM.
 
Old 02-24-2020, 04:58 AM   #43
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
SUMMARY
=======

So during the weekend I managed to build an xfce-based image too.
The patches necessary are available here: https://gitlab.com/snippets/1944229
They have to be applied on top of commit 239f92df0ed2619d3beb6d92d48d8659e0385c57 of the main slackware_arm_build_kit project.

The kernel doesn't need the old gcc version to compile successfully. It works fine with the new one.

There are two packages that need to be compiled from source in order for the script to work:
- dtc: http://dl.fail.pp.ua/slarm64/slarm64.../source/d/dtc/
- u-boot-tools: http://dl.fail.pp.ua/slarm64/slarm64.../u-boot-tools/


I have also tried using the images built by the script, but unfortunately neither of my xfce image, nor the base image slarm64-current-aarch64-base-rootfs-20200118-5.5.2-pinebook_pro-build-20200207.img.xz from http://dl.fail.pp.ua/slackware/images/pinebook_pro/ does work
I put in the micro SD card, and start the machine but nothing happens, and the screen stays dark too. When I remove the SD card, it will happily boot the installed OS in the following reboot.
 
1 members found this post helpful.
Old 02-24-2020, 10:08 AM   #44
sndwvs
Member
 
Registered: Aug 2014
Posts: 939

Rep: Reputation: Disabled
It would be interesting to understand at what stage everything stops, while it looks like u-boot, or maybe earlier.
 
Old 02-25-2020, 02:47 AM   #45
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 179

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
It would be interesting to understand at what stage everything stops, while it looks like u-boot, or maybe earlier.
Yes, I absolutely agree. However, at the moment I don't have a serial cable that I could use.
I have already ordered one, but it will take a few weeks to arrive. I will keep you updated with any news as things happen.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Destination Linux 131 - Endeavour OS, Deepin, OnlyOffice, Silverblue, Pinebook Pro, Ubuntu Mate, GPD LXer Syndicated Linux News 0 07-25-2019 06:41 AM
LXer: Linux 5.2, Debian 10, Pinebook Pro, Mageia, Whonix, GRUB, Valve, Zorin, Mint | This Week in Linux 73 LXer Syndicated Linux News 0 07-10-2019 06:43 AM
Video : New PINE64 Products. PineBook Pro, PinePhone, PineCam, PineH64 NicoD SBC Linux - Embedded & Single-board computer 2 02-06-2019 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration