Closed fuji246 closed 3 years ago
Check output/debug
folder for the cause.
[ warn ] * [l][c] general-add-dwc3-xhci-usb-trb-quirk.patch [ failed ]
[ warn ] * [l][c] general-bluetooth-add-new-quirk.patch [ failed ]
[ warn ] * [l][c] rk3399-pci-rockchip-support-ep-gpio-undefined-case.patch [ failed ]
Maybe stuff has been upstreamed and backported to 5.10? I had similar patches failing when playing with 5.12
@fuji246 Make sure you are using the latest master Those patches were adjusted a few days ago to account for the kernel changes: https://github.com/armbian/build/commit/a3d29f40826ade6a5e2dea214bac5b4c08de8ea8
I've updated to master right after it failed the first time.
In output/debug/compilation.log
:
== kernel ==
scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
arch/arm64/boot/dts/rockchip/overlay/rockchip-spi-spidev.dts:22.11-27.6: Warning (spi_bus_reg): /fragment@1/__overlay__/spidev: SPI bus unit address format error, expected "0"
arch/arm64/boot/dts/rockchip/overlay/rockchip-spi-spidev.dts:36.11-41.6: Warning (spi_bus_reg): /fragment@2/__overlay__/spidev: SPI bus unit address format error, expected "0"
arch/arm64/boot/dts/rockchip/overlay/rockchip-spi-spidev.dts:50.11-55.6: Warning (spi_bus_reg): /fragment@3/__overlay__/spidev: SPI bus unit address format error, expected "0"
arch/arm64/boot/dts/rockchip/overlay/rockchip-spi-spidev.dts:64.11-69.6: Warning (spi_bus_reg): /fragment@4/__overlay__/spidev: SPI bus unit address format error, expected "0"
drivers/usb/host/xhci-ring.c: In function ‘xhci_queue_bulk_tx’:
drivers/usb/host/xhci-ring.c:3414:23: error: ‘XHCI_TRB_ENT_QUIRK’ undeclared (first use in this function); did you mean ‘XHCI_EP_LIMIT_QUIRK’?
if (xhci->quirks & XHCI_TRB_ENT_QUIRK && en_trb_ent)
^~~~~~~~~~~~~~~~~~
XHCI_EP_LIMIT_QUIRK
drivers/usb/host/xhci-ring.c:3414:23: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [scripts/Makefile.build:279: drivers/usb/host/xhci-ring.o] Error 1
make[2]: *** [scripts/Makefile.build:496: drivers/usb/host] Error 2
make[1]: *** [scripts/Makefile.build:496: drivers/usb] Error 2
make: *** [Makefile:1807: drivers] Error 2
make: *** Waiting for unfinished jobs....
And in patching log:
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/board-rockpro64-fix-emmc.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/board-rockpro64-fix-spi1-flash-speed.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/board-rockpro64-work-led-heartbeat.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-add-dwc3-xhci-usb-trb-quirk.patch
1 out of 2 hunks FAILED -- saving rejects to file drivers/usb/host/xhci.h.rej
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-add-overlay-compilation-support.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-add-overlay-configfs.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-add-xtx-spi-nor-chips.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-bluetooth-add-new-quirk.patch
1 out of 1 hunk FAILED -- saving rejects to file include/net/bluetooth/hci.h.rej
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-btsdio-ignore-uart-devs.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-disable-mtu-validation.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-emmc-hs400es-init-tweak.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-fix-es8316-kernel-panic.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-fix-mmc-signal-voltage-before-reboot.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-increasing_DMA_block_memory_allocation_to_2048.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-possibility-of-disabling-rk808-rtc.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-rkvdec_nv15.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-rockchip-overlays.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-rt5651-add-mclk.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/overlays-00-add-oc-opp-rk3399.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/overlays-01-add-oc-opp-rk3328.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3328-add-dmc-driver.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3328-audio-and-renegade-supplies.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3328-dtsi-mmc-vdec-usb3-tweaks.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3328-fix-mali-node.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-add-sclk-i2sout-src-clock.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-bump-voltages-for-low-opps.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-enable-dwc3-xhci-usb-trb-quirk.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-pci-rockchip-support-ep-gpio-undefined-case.patch
1 out of 1 hunk FAILED -- saving rejects to file drivers/pci/controller/pcie-rockchip.c.rej
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-sd-drive-level-8ma.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/rk3399-unlock-temperature.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/wifi-4003-fix-sha256_state-clashes.patch
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/wifi-4004-fix-cfg80211-for-5.8.patch
I've updated to master right after it failed the first time
This line:
Processing file /home/vagrant/armbian/patch/kernel/rockchip64-current/general-add-dwc3-xhci-usb-trb-quirk.patch
1 out of 2 hunks FAILED -- saving rejects to file drivers/usb/host/xhci.h.rej
convinces me that somehow your build is not using the latest master as the file was renamed/disabled 2 days ago by Igor: https://github.com/armbian/build/commit/3c96df8d2577176cb483591f1a9092b5e90901c8
Please post the result of the command: git rev-parse HEAD
and the command line that you are using to build the image.
vagrant@ubuntu-focal:~/armbian$ git rev-parse HEAD
bf544c21f8778e0b992b835baae9c6ed6b2e2075
I'm wondering should I clean and rebuild, which CLEAN_LEVEL
should I use?
Your git seems to be behind: https://github.com/armbian/build/commit/bf544c21f8778e0b992b835baae9c6ed6b2e2075
If git pull does not do the trick try to start from scratch and clone the whole repo again.
forked a new branch seems fixed the issue, thanks a lot! However as I showed above the commit is bf544c21f8778e0b992b835baae9c6ed6b2e2075
which should be the latest, any thoughts on how to clean the build?
However as I showed above the commit is
bf544c21f8778e0b992b835baae9c6ed6b2e2075
which should be the latest
As @EvilOlaf pointed out in his previous reply it is not the latest commit.
forked a new branch seems fixed the issue, thanks a lot!
If you are building with your own branch then you need to rebase it on master or merge from master from time to time.
If you are building with the forked repository then you should sync it with the upstream from time to time. https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork
Only this way you can get the latest changes.
Closing as it is not a build system issue.
Any thoughts?