RobertCNelson / armv7-lpae-multiplatform

MIT License
20 stars 7 forks source link

Failing to build kernel for mp157 #6

Closed no111u3 closed 1 year ago

no111u3 commented 1 year ago

Follows the instruction I try to build kernel 5.15.x for stm32mp157d-dk2 and have git clone procedure as failed:

fatal: Resolve operation not in progress, we are not resuming.
/usr/bin/git tree is clean...

After these messages script trying to fetch another variant and it also failed:

Applying: gnss: ubx add MODULE_DEVICE_TABLE(serdev)
Applying: gnss: change of_property_read to device_property_read
dir: drivers/fb_ssd1306
Applying: staging: fbtft: fb_ssd1306 add 96x39 oled support
dir: soc/imx/imx7
Applying: ARM: imx7d-pico-pi.dts: add default stdout-path
Applying: builddeb: Install our dtbs under /boot/dtbs/$version
patch.sh ran successfully
[v5.15.95-armv7-lpae-x34 15dbf2074af9] 5.15.95-armv7-lpae-x34 patchset
make[1]: *** Documentation/Kbuild: Is a directory.  Stop.
make: *** [Makefile:1910: _clean_Documentation] Error 2
RobertCNelson commented 1 year ago

Things look fine... here... Tell me more about your system.. Normal Linux OS or some hyrbid?

voodoo@hestia:~/test$ git clone https://github.com/RobertCNelson/armv7-lpae-multiplatform ./kernelbuildscripts
cd kernelbuildscripts/
Cloning into './kernelbuildscripts'...
remote: Enumerating objects: 33026, done.
remote: Counting objects: 100% (10664/10664), done.
remote: Compressing objects: 100% (3771/3771), done.
remote: Total 33026 (delta 7083), reused 10465 (delta 6887), pack-reused 22362
Receiving objects: 100% (33026/33026), 26.85 MiB | 44.49 MiB/s, done.
Resolving deltas: 100% (22612/22612), done.
voodoo@hestia:~/test/kernelbuildscripts$ git checkout origin/v5.15.x -b tmp
branch 'tmp' set up to track 'origin/v5.15.x'.
Switched to a new branch 'tmp'
voodoo@hestia:~/test/kernelbuildscripts$ ./build_kernel.sh 
+ Detected build host [Debian GNU/Linux 12 (bookworm)]
+ host: [x86_64]
+ git HEAD commit: [ca23f6b310aade3a5ff5c3365da3cabc3b340bea]
-----------------------------
cpio: cpio (GNU cpio) 2.13
lzop: lzop 1.04
'/home/voodoo/test/kernelbuildscripts/system.sh.sample' -> '/home/voodoo/test/kernelbuildscripts/system.sh'
Using Existing Toolchain: gcc_11_arm
-----------------------------
scripts/gcc: Using: arm-linux-gnueabi-gcc (GCC) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------
CROSS_COMPILE=/home/voodoo/dl/gcc/gcc-11.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-
ccache [enabled]
scripts/git: [git version 2.39.2]
-----------------------------
scripts/git: Debug: LINUX_GIT is setup as: [/home/voodoo/linux-src].
scripts/git: [url=git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git]
remote: Enumerating objects: 605, done.
remote: Counting objects: 100% (605/605), done.
remote: Compressing objects: 100% (129/129), done.
remote: Total 1078 (delta 546), reused 495 (delta 476), pack-reused 473
Receiving objects: 100% (1078/1078), 729.96 KiB | 3.51 MiB/s, done.
Resolving deltas: 100% (761/761), completed with 318 local objects.
From git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
   de4664485abb..6a8f57ae2eb0  master        -> origin/master
 * [new branch]                x86-rep-insns -> origin/x86-rep-insns
 * [new tag]                   v6.3-rc7      -> v6.3-rc7
-----------------------------
Cloning into '/home/voodoo/test/kernelbuildscripts/KERNEL'...
done.
Updating files: 100% (79616/79616), done.
fatal: Resolve operation not in progress, we are not resuming.
/usr/bin/git tree is clean...
[master 2b39a03e6bd8] empty cleanup commit
HEAD is now at 2b39a03e6bd8 empty cleanup commit
Already on 'master'
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
log: [/usr/bin/git pull --no-rebase --no-edit]
Already up to date.
Updating files: 100% (47238/47238), done.
Switched to a new branch 'v5.15.95-armv7-lpae-x34'
v5.15.95
Starting patch.sh
dir: aufs
Applying: merge: aufs-kbuild
Applying: merge: aufs-base
Applying: merge: aufs-mmap
Applying: merge: aufs-standalone
Applying: merge: aufs
Applying: merge: aufs-rt
dir: wpanusb
Applying: merge: wpanusb: https://git.beagleboard.org/beagleconnect/linux/wpanusb
Applying: Add WPANUSB driver
dir: bcfserial
Applying: merge: bcfserial: https://git.beagleboard.org/beagleconnect/linux/bcfserial.git
Applying: Add BCFSERIAL driver
dir: wireless_regdb
Applying: Add wireless-regdb regulatory database file
dir: drivers/ti/firmware
Applying: Add AM335x CM3 Power Managment Firmware
dir: soc/ti/beagleboard_dtbs
Applying: Add BeagleBoard.org Device Tree Changes
dir: soc/stm32_dtbs
Applying: Add stm32 Device Tree Changes
dir: backports/uio
Applying: backports: uio: from: linux.git
dir: drivers/ti/uio
Applying: uio-pruss: cleanups and pruss v2 (pru-icss) support
Applying: add compatible-strings to uio_pdrv_genirq
dir: backports/it66121
Applying: backports: it66121: from: linux.git
dir: RPi
Applying: Overlays: Port RPi Overlay building
dir: drivers/ar1021_i2c
Applying: ar1021_i2c: invert/swap and offset options
dir: drivers/spi
Applying: NFM: spi: spidev: allow use of spidev in DT
dir: drivers/ti/serial
Applying: quiet: 8250_omap.c use pr_info over pr_err
Applying: Revert "Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again""
dir: drivers/ti/tsc
Applying: ti_am335x_tsc.c driver
Applying: ti_am335x_tsc: correct formula code to calculate pressure; fix touchscreen jitter problem
dir: drivers/ti/gpio
Applying: gpio-of-helper
Applying: bone-pinmux-helper
Applying: hack: gpiolib: yes we have drivers stomping on each other, we need to find a better way to share gpio...
Applying: v5.7-rc2: bone-pinmux-helper: Replace PTR_RET with PTR_ERR_OR_ZERO
Applying: gpio-of-helper.c: espect the status property of individual gpios
dir: drivers/serdev
Applying: serdev: Add serdev_device_id
Applying: file2alias: Support for serdev devices
Applying: serdev: add of_ helper to get serdev controller
Applying: gnss: ubx add MODULE_DEVICE_TABLE(serdev)
Applying: gnss: change of_property_read to device_property_read
dir: drivers/fb_ssd1306
Applying: staging: fbtft: fb_ssd1306 add 96x39 oled support
dir: soc/imx/imx7
Applying: ARM: imx7d-pico-pi.dts: add default stdout-path
Applying: builddeb: Install our dtbs under /boot/dtbs/$version
patch.sh ran successfully
[v5.15.95-armv7-lpae-x34 e4da0e208b24] 5.15.95-armv7-lpae-x34 patchset
  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/menu.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
#
# configuration written to .config
#
'.config' -> '/home/voodoo/test/kernelbuildscripts/patches/ref_multi_v7_defconfig'
'/home/voodoo/test/kernelbuildscripts/patches/defconfig' -> '.config'
#
# No change to .config
#
  UPD     scripts/kconfig/mconf-cfg
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTLD  scripts/kconfig/mconf

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

'.config' -> '/home/voodoo/test/kernelbuildscripts/patches/defconfig'
-----------------------------
make -j24 ARCH=arm LOCALVERSION=-armv7-lpae-x34 CROSS_COMPILE="ccache /home/voodoo/dl/gcc/gcc-11.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-"  zImage modules
-----------------------------
  SYNC    include/config/auto.conf.cmd
no111u3 commented 1 year ago

I'm sorry, I found this is my os issue (host on Mac OS)