Jump to content

Recommended Posts

Posted

Hello,

 

compiling Kernel 5.4.40 (setting in lib.config with KERNELBRANCH=tag:'5.4.40') under Vagrand  with RT-Patch "patch-5.4.40-rt24.patch"  putting in " ~/build/userpatches/kernel/rockchip64-current/ "for RockPro64 fails.

 

........

[ o.k. ] * [l][c] general-rt5651-add-mclk.patch 
[ o.k. ] * [l][c] mp8859-kbuild-makefile.patch 
[ o.k. ] * [c] patch-5.4.40-rt24.patch 
[ o.k. ] * [l][c] rk3328-add-dmc-driver.patch 
[ o.k. ] * [l][c] rk3328-audio-and-renegade-supplies.patch 
[ o.k. ] * [l][c] rk3328-clean-up-codec-gpio-SD.patch 
[ o.k. ] * [l][c] rk3328-fix-wrong-mmc-shift.patch 
[ o.k. ] * [l][c] rk3399-add-sclk-i2sout-src-clock.patch 
[ o.k. ] * [l][c] rk3399-adjust-txpbl-for-mtu-1500.patch 
[ o.k. ] * [l][c] rk3399-sd-drive-level-8ma.patch 
[ o.k. ] * [l][c] rockpi4-0005-arm64-dts-enable-es8316-audio.patch 
[ o.k. ] * [l][c] timekeeping32-tweaks-for-5.0.y.patch 
[ o.k. ] * [l][c] unlock-temperature.patch 
[ .... ] Compressing sources for the linux-source package 

 

.....

 

The following compiling process stopped with:

 

......

  CC      security/inode.o
  CC      security/lsm_audit.o
  CC      security/device_cgroup.o
  CC      kernel/configs.o
  AR      security/built-in.a
  AR      kernel/built-in.a
  CC [M]  kernel/kheaders.o
[ error ] ERROR in function compile_kernel [ compilation.sh:378 ]
[ error ] Kernel was not built [ @host ]

[ o.k. ] Process terminated 

 

Any idea what goes wrong ?
 

Martin

 

 

 

Posted
1 hour ago, Igor said:

nano output/debug/compilation.log

... and see what went wrong.

These are the last lines of compilation.log:

 

......

 

    == kernel ==

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"
arch/arm64/boot/dts/rockchip/rk3328.dtsi:344.5-15: Warning (reg_format): /syscon@ff100000/pd_gpu@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3328-evb.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-evb.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-evb.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328.dtsi:344.5-15: Warning (reg_format): /syscon@ff100000/pd_gpu@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev00.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328.dtsi:344.5-15: Warning (reg_format): /syscon@ff100000/pd_gpu@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev20.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev20.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev20.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328.dtsi:344.5-15: Warning (reg_format): /syscon@ff100000/pd_gpu@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-rock64.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328.dtsi:344.5-15: Warning (reg_format): /syscon@ff100000/pd_gpu@1:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
fs/aufs/i_op.c: In function ‘au_pin_hdir_set_owner’:
fs/aufs/i_op.c:636:45: error: ‘struct rw_semaphore’ has no member named ‘owner’
  atomic_long_set(&p->hdir->hi_inode->i_rwsem.owner, (long)task);
                                             ^
make[2]: *** [fs/aufs/i_op.o] Error 1
make[1]: *** [fs/aufs] Error 2
make: *** [fs] Error 2
make: *** Waiting for unfinished jobs....
 

Posted
42 minutes ago, Martin W. said:

These are the last lines of compilation.log


This log is for you, not for me.

Posted
2 hours ago, Martin W. said:

fs/aufs/i_op.c: In function ‘au_pin_hdir_set_owner’:
fs/aufs/i_op.c:636:45: error: ‘struct rw_semaphore’ has no member named ‘owner’

You can try to compile with "AUFS=no" ...

Posted (edited)

Okay, I disabled aufs, and now it compiles.

 

Thank you for the support. 

 

Very strange, what has aufs filesystem with RT to do 🤔

Edited by Martin W.
Posted
22 hours ago, Martin W. said:

Very strange, what has aufs filesystem with RT to do

Nothing special, but maybe ‘struct rw_semaphore’ has changed across kernel versions and ‘owner’ has been removed.

To get AUFS working, maybe it require a fix to RT patches to match that change.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines