Giter Site home page Giter Site logo

rockchip-bsp's People

Contributors

akgnah avatar brian541 avatar jack-ma avatar radxastephen avatar stepheninvamrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rockchip-bsp's Issues

Rock5b Board Config Cross compile No such file or directory

I'm trying to build a custom kernel with the ISCSI_TCP module.

After adding the following two lines

CONFIG_ISCSI_TCP=m
CONFIG_SCSI_LOWLEVEL=m

to arch/arm64/configs/rockchip_linux_defconfig, I ran ./build/mk-kernel.sh rk3588-rock-5b from the /root directory in my rockchip-radxa container.

The build failed almost right away with the following output

root@e066090830d4:~# ./build/mk-kernel.sh rk3588-rock-5b
 Building kernel for rk3588-rock-5b board!
4.4.194
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  CHK     include/generated/utsrelease.h
aarch64-none-linux-gnu-gcc:No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:277: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
aarch64-none-linux-gnu-gcc:No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 2
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/bounds.s
  CHK     include/generated/timeconst.h
aarch64-none-linux-gnu-gcc:No such file or directory
Is your PATH set correctly?
Kbuild:19: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:1096: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
Makefile:579: recipe for target 'scripts' failed
make: *** [scripts] Error 2
 MAKE KERNEL IMAGE FAILED.

Looking into it, I realized that the board_configs.sh had this config for the rock5b

export CROSS_COMPILE=aarch64-none-linux-gnu-

I couldn't any executables starting with aarch64-none in my path, but replacing it's config with the equivalent from the rock3a at least didn't fail immediately

export CROSS_COMPILE=aarch64-linux-gnu-

Enable g_ether module in kernel

No issue section on the kernel so apols but have to post here.

Compiling Aarch64 Base for a 64bit server

sudo modprobe g_ether

Module g_ether not found in /lib/modules

Also any chance Radxa could provide a 64bit Deb image non desktop as it would be really good to get any Raxda apt updates?

u-boot merge failed

Running latest git, I run

./bps u-boot later

it fails with the following:

Packaging U-Boot with Rockchip Miniloader
Using rkbin rk3399_ddr_800MHz_v1.20.bin
Image Type:   Rockchip RK33 (SD/MMC) boot image
Init Data Size: 73728 bytes
Image Type:   Rockchip RK33 (SPI) boot image
Init Data Size: 73728 bytes
Using rkminiloader rk3399_miniloader_v1.19.bin
~/Projects/development/stellarmate/bsp/.src/rkbin ~/Projects/development/stellarmate/bsp

 load addr is 0x200000!
pack input /home/jasem/Projects/development/stellarmate/bsp/.src/u-boot/u-boot-dtb.bin 
pack file size: 924480 
crc = 0xbe367e29
pack /home/jasem/Projects/development/stellarmate/bsp/.src/u-boot/uboot.img success! 
out:trust.img
E: [mergetrust] filter_elf tools/rk_tools/bin/rk33/rk3399_bl31_v1.35.elf file failed
merge failed!

CM3 RPI CM4 IO BOARD: make image failed

Hi guys, so i followed all the steps provided by the readme and this tutorial LINK but i cannot build the kernel. I checked the errors over the internet but i couldn't solve the problem.
I run the PART 2 in a new ubuntu VM and when trying to build the kernel with sudo (sudo ./build/mk-kernel.sh rk3566-radxa-cm3-raspcm4io) i get this:

drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_mlme.c: In function 'rtw_drv_scan_by_self':
drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_mlme.c:3127:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rtw_mlme.c:3127
 3127 |                 else
      |                 ^~~~
drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_mlme.c:3130:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 3130 |                         goto exit;
      |                         ^~~~
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_cmd.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_vht.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_debug.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_io.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_pwrctrl.o
make[5]: *** [scripts/Makefile.build:333: drivers/net/wireless/rockchip_wlan/rtl8188fu/core/rtw_mlme.o] Error 1
make[5]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_ioctl_query.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_ioctl_set.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_ieee80211.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme_ext.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mi.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_security.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_wlan_util.o
drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme.c: In function 'rtw_drv_scan_by_self':
drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme.c:3127:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rtw_mlme.c:3127
 3127 |                 else
      |                 ^~~~
drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme.c:3130:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 3130 |                         goto exit;
      |                         ^~~~
make[4]: *** [scripts/Makefile.build:637: drivers/net/wireless/rockchip_wlan/rtl8188fu] Error 2
make[4]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_vht.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_debug.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_pwrctrl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_rf.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_io.o
make[5]: *** [scripts/Makefile.build:333: drivers/net/wireless/rockchip_wlan/rtl8188eu/core/rtw_mlme.o] Error 1
make[5]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_ioctl_query.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_ioctl_set.o
  CC [M]  drivers/net/dummy.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_ieee80211.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme_ext.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mi.o
  CC [M]  drivers/net/eql.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_wlan_util.o
drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme.c: In function 'rtw_drv_scan_by_self':
drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme.c:3139:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning:rtw_mlme.c:3139
 3139 |                 else
      |                 ^~~~
drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme.c:3142:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
 3142 |                         goto exit;
      |                         ^~~~
make[4]: *** [scripts/Makefile.build:637: drivers/net/wireless/rockchip_wlan/rtl8188eu] Error 2
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_vht.o
  CC [M]  drivers/net/ifb.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_pwrctrl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_rf.o
make[5]: *** [scripts/Makefile.build:333: drivers/net/wireless/rockchip_wlan/rtl8822ce/core/rtw_mlme.o] Error 1
make[5]: *** Waiting for unfinished jobs....
  CC [M]  drivers/net/macvlan.o
  CC [M]  drivers/net/macvtap.o
  CC [M]  drivers/net/netconsole.o
  CC [M]  drivers/net/tun.o
  CC [M]  drivers/net/tap.o
  CC [M]  drivers/net/veth.o
  CC [M]  drivers/net/vxlan.o
  CC [M]  drivers/net/geneve.o
  CC [M]  drivers/net/nlmon.o
  CC [M]  drivers/net/vrf.o
make[4]: *** [scripts/Makefile.build:637: drivers/net/wireless/rockchip_wlan/rtl8822ce] Error 2
make[3]: *** [scripts/Makefile.build:637: drivers/net/wireless/rockchip_wlan] Error 2
make[2]: *** [scripts/Makefile.build:637: drivers/net/wireless] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:637: drivers/net] Error 2
make: *** [Makefile:1195: drivers] Error 2
 MAKE KERNEL IMAGE FAILED.

So I tried to start again and do it with docker (PART 1). But when i run ./build/mk-uboot.sh rk3566-radxa-cm3-raspcm4io
i get the following error:

  CC      arch/arm/mach-rockchip/fit.o
arch/arm/mach-rockchip/fit.c: In function ‘fit_image_init_resource’:
arch/arm/mach-rockchip/fit.c:460:8: error: ‘rsce’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  ret = resource_create_ram_list(dev_desc, (void *)rsce);
        ^
cc1: all warnings being treated as errors
scripts/Makefile.build:280: recipe for target 'arch/arm/mach-rockchip/fit.o' failed
make[1]: *** [arch/arm/mach-rockchip/fit.o] Error 1
Makefile:1305: recipe for target 'arch/arm/mach-rockchip' failed
make: *** [arch/arm/mach-rockchip] Error 2
 MAKE UBOOT IMAGE FAILED.

Thanks in advance

Unable to package u-boot natively on Rock Pi 4

I would like to be able to package u-boot directly on my Rock Pi 4 instead of having to use a x86_64 linux machine. I'm currently able to run both "firmwareMerger" and "resource_tool", using usermode qemu emulation, as they are compiled static:
$ uname -a
Linux rockpi4 5.3.8-gentoo #3 SMP PREEMPT Tue Nov 5 11:17:18 EST 2019 aarch64 GNU/Linux
$ file firmwareMerger
firmwareMerger: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, with debug_info, not stripped
$ ./firmwareMerger

----------------FirmwareMerger v1.3--------------------
Packing: -P <config file> <saving dir>
UnPacking: -U <firmware> <output dir> [offcheck]
-------------------------------------------------------
Unfortunately, the other tools are all dynamic and are looking for shared libraries that are not present. I can kind of work around the problem by chrooting to a complete x86_64 linux but it's not as convenient as running the executables directly.
Would it be possible to provide statically compiled tools (or, alternatively, the source code) so it is possible to do development on the Rock Pi 4 natively, without an x86_64 Linux computer?

sudo udo: lb: command not found

Hi, tried out the build process. Get this error

Command: RELEASE=stretch TARGET=desktop ARCH=${ARCH} ./mk-base-debian.sh
sudo: lb: command not found

missing module br_netfilter

Hello, I have a problem with module: br_netfilter, when I execute modprobe br_netfilter I get: modprobe: FATAL: Module br_netfilter not found in directory /lib/modules/4.19.193-31-rockchip-g044735a22a0e. I use rock3a and Ubuntu 20.04.4 LTS.

I like to use with docker swarm, any suggestion??

Thanks

waveshare35b-v2 如何旋转

/boot/hw_intfc.conf 文件中 支持 waveshare35b-v2 显示. 但是可以旋转吗? 比如添加旋转参数

intfc:dtoverlay=spi1-waveshare35b-v2:rotate=2 去旋转180度显示 ??

或者 有 spi1-waveshare35b-v2.dts 文件吗 ? 我自己去旋转 .

Build command "# ./build/mk-uboot.sh rockpi4c " fails

I followed Part 2 of this documentation (non docker method) to build u-boot for rockpi4c and the build fails.

https://github.com/radxa/rockchip-bsp

Here are the details of my Ubuntu-VM:

uname -a

Linux ubuntu20-vm 5.8.0-53-generic #60~20.04.1-Ubuntu SMP Thu May 6 09:52:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

more /etc/*release

::::::::::::::
/etc/lsb-release
::::::::::::::
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"
::::::::::::::
/etc/os-release
::::::::::::::
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Installed all the required tools:

apt-get install gcc-aarch64-linux-gnu device-tree-compiler libncurses5 libncurses5-dev build-essential libssl-dev mtools bc python dosfstools

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
bc is already the newest version (1.07.1-2build1).
device-tree-compiler is already the newest version (1.5.1-1).
dosfstools is already the newest version (4.1-2).
gcc-aarch64-linux-gnu is already the newest version (4:9.3.0-1ubuntu2).
libncurses5-dev is already the newest version (6.2-0ubuntu2).
mtools is already the newest version (4.0.24-1).
libncurses5 is already the newest version (6.2-0ubuntu2).
python-is-python2 is already the newest version (2.7.17-4).
build-essential is already the newest version (12.8ubuntu1.1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

And here are commands I entered :

git clone --recursive https://github.com/radxa/rockchip-bsp.git

cd rockchip-bsp

./build/mk-uboot.sh rockpi4c

Building U-boot for rockpi4c board!
Using rock-pi-4c-rk3399_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
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
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/kconfig/zconf.tab.c:2468:
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());
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from scripts/kconfig/zconf.tab.c:82:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 4097
36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf

configuration written to .config

scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
CFG spl/u-boot.cfg
GEN spl/include/autoconf.mk
CFG tpl/u-boot.cfg
GEN tpl/include/autoconf.mk
CHK include/config/uboot.release
UPD include/config/uboot.release
CHK include/generated/version_autogenerated.h
UPD include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CC lib/asm-offsets.s
CHK include/generated/generic-asm-offsets.h
UPD include/generated/generic-asm-offsets.h
CC arch/arm/lib/asm-offsets.s
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
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
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
HOSTCC scripts/dtc/dtc-lexer.lex.o
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTCC tools/gen_eth_addr
HOSTCC tools/gen_ethaddr_crc.o
WRAP tools/lib/crc8.c
HOSTCC tools/lib/crc8.o
HOSTLD tools/gen_ethaddr_crc
HOSTCC tools/mkenvimage.o
HOSTCC tools/os_support.o
WRAP tools/lib/crc32.c
HOSTCC tools/lib/crc32.o
HOSTLD tools/mkenvimage
HOSTCC tools/aisimage.o
HOSTCC tools/atmelimage.o
WRAP tools/common/bootm.c
HOSTCC tools/common/bootm.o
HOSTCC tools/default_image.o
WRAP tools/lib/fdtdec_common.c
HOSTCC tools/lib/fdtdec_common.o
WRAP tools/lib/fdtdec.c
HOSTCC tools/lib/fdtdec.o
HOSTCC tools/fit_common.o
HOSTCC tools/fit_image.o
WRAP tools/common/image-fit.c
HOSTCC tools/common/image-fit.o
HOSTCC tools/image-host.o
WRAP tools/common/image.c
HOSTCC tools/common/image.o
HOSTCC tools/imagetool.o
HOSTCC tools/imximage.o
HOSTCC tools/kwbimage.o
WRAP tools/lib/md5.c
HOSTCC tools/lib/md5.o
HOSTCC tools/lpc32xximage.o
HOSTCC tools/mxsimage.o
HOSTCC tools/omapimage.o
HOSTCC tools/pblimage.o
HOSTCC tools/pbl_crc32.o
HOSTCC tools/vybridimage.o
WRAP tools/lib/rc4.c
HOSTCC tools/lib/rc4.o
HOSTCC tools/rkcommon.o
HOSTCC tools/rkimage.o
HOSTCC tools/rknand.o
HOSTCC tools/rksd.o
HOSTCC tools/rkspi.o
HOSTCC tools/socfpgaimage.o
WRAP tools/lib/sha1.c
HOSTCC tools/lib/sha1.o
WRAP tools/lib/sha256.c
HOSTCC tools/lib/sha256.o
WRAP tools/common/hash.c
HOSTCC tools/common/hash.o
HOSTCC tools/ublimage.o
HOSTCC tools/zynqimage.o
HOSTCC tools/zynqmpimage.o
HOSTCC tools/libfdt/fdt.o
HOSTCC tools/libfdt/fdt_wip.o
HOSTCC tools/libfdt/fdt_sw.o
HOSTCC tools/libfdt/fdt_rw.o
HOSTCC tools/libfdt/fdt_strerror.o
HOSTCC tools/libfdt/fdt_empty_tree.o
HOSTCC tools/libfdt/fdt_addresses.o
HOSTCC tools/libfdt/fdt_overlay.o
WRAP tools/lib/libfdt/fdt_ro.c
HOSTCC tools/lib/libfdt/fdt_ro.o
WRAP tools/lib/libfdt/fdt_region.c
HOSTCC tools/lib/libfdt/fdt_region.o
HOSTCC tools/gpimage.o
HOSTCC tools/gpimage-common.o
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
HOSTCC tools/rockchip/boot_merger.o
tools/rockchip/boot_merger.c: In function ‘initOpts’:
tools/rockchip/boot_merger.c:479:14: warning: ‘_loader_v’ directive output may be truncated writing 9 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
479 | "%s_loader_v%d.%02d.%d%02d.bin", gOpts.chip, v0, v1, v2, v3);
| ^~~~~~~~~
In file included from /usr/include/stdio.h:867,
from ././include/compiler.h:25,
from :
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 22 and 315 bytes into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/rockchip/boot_merger.c: In function ‘main’:
tools/rockchip/boot_merger.c:884:11: warning: array subscript 20 is outside array bounds of ‘char[20]’ [-Warray-bounds]
884 | str[len] = 0;
| ~~~~~~~~~^~~
tools/rockchip/boot_merger.c:922:7: note: while referencing ‘name’
922 | char name[MAX_NAME_LEN];
| ^~~~
HOSTCC tools/rockchip/sha2.o
HOSTLD tools/boot_merger
HOSTCC tools/rockchip/trust_merger.o
HOSTLD tools/trust_merger
HOSTCC tools/rockchip/loaderimage.o
HOSTCC tools/rockchip/sha.o
HOSTCC tools/rockchip/crc32_rk.o
HOSTLD tools/loaderimage
HOSTCC tools/rockchip/resource_tool.o
HOSTLD tools/resource_tool
HOSTCC tools/rockchip/checksum.o
HOSTLD tools/checksum
HOSTCC tools/proftool
HOSTCC tools/relocate-rela
HOSTCC tools/fdtgrep.o
HOSTLD tools/fdtgrep
LD arch/arm/cpu/built-in.o
CC arch/arm/cpu/armv8/cpu.o
CC arch/arm/cpu/armv8/generic_timer.o
CC arch/arm/cpu/armv8/cache_v8.o
AS arch/arm/cpu/armv8/exceptions.o
AS arch/arm/cpu/armv8/cache.o
AS arch/arm/cpu/armv8/tlb.o
AS arch/arm/cpu/armv8/transition.o
CC arch/arm/cpu/armv8/fwcall.o
CC arch/arm/cpu/armv8/cpu-dt.o
CC arch/arm/cpu/armv8/../armv7/suspend.o
AS arch/arm/cpu/armv8/sleep.o
AS arch/arm/cpu/armv8/smccc-call.o
LD arch/arm/cpu/armv8/built-in.o
AS arch/arm/cpu/armv8/start.o
AS arch/arm/lib/crt0_64.o
AS arch/arm/lib/setjmp_aarch64.o
AS arch/arm/lib/relocate_64.o
CC arch/arm/lib/bootm-fdt.o
CC arch/arm/lib/bootm.o
CC arch/arm/lib/zimage.o
CC arch/arm/lib/sections.o
CC arch/arm/lib/stack.o
AS arch/arm/lib/gic_64.o
CC arch/arm/lib/interrupts_64.o
CC arch/arm/lib/stacktrace_64.o
CC arch/arm/lib/cache.o
CC arch/arm/lib/psci-dt.o
LD arch/arm/lib/built-in.o
AR arch/arm/lib/lib.a
CC arch/arm/mach-rockchip/boot_mode.o
CC arch/arm/mach-rockchip/board.o
CC arch/arm/mach-rockchip/chip_info.o
CC arch/arm/mach-rockchip/iomem.o
CC arch/arm/mach-rockchip/rockchip_smccc.o
CC arch/arm/mach-rockchip/vendor.o
CC arch/arm/mach-rockchip/resource_img.o
CC arch/arm/mach-rockchip/param.o
CC arch/arm/mach-rockchip/sdram_common.o
CC arch/arm/mach-rockchip/rk3399/clk_rk3399.o
CC arch/arm/mach-rockchip/rk3399/rk3399.o
CC arch/arm/mach-rockchip/rk3399/syscon_rk3399.o
LD arch/arm/mach-rockchip/rk3399/built-in.o
CC arch/arm/mach-rockchip/rk_atags.o
LD arch/arm/mach-rockchip/built-in.o
CC board/rockchip/evb_rk3399/evb-rk3399.o
LD board/rockchip/evb_rk3399/built-in.o
CC cmd/boot.o
CC cmd/bootm.o
CC cmd/help.o
CC cmd/version.o
CC cmd/blk_common.o
CC cmd/source.o
CC cmd/bdinfo.o
CC cmd/boot_android.o
CC cmd/bootrkp.o
CC cmd/bootz.o
CC cmd/booti.o
CC cmd/cache.o
CC cmd/console.o
CC cmd/dtimg.o
CC cmd/echo.o
CC cmd/exit.o
CC cmd/ext4.o
CC cmd/ext2.o
CC cmd/fat.o
CC cmd/fdt.o
CC cmd/fs.o
CC cmd/load.o
CC cmd/mem.o
CC cmd/mii.o
CC cmd/mdio.o
CC cmd/mmc.o
CC cmd/net.o
CC cmd/part.o
CC cmd/pci.o
CC cmd/pcmcia.o
CC cmd/pxe.o
CC cmd/pxe_utility.o
CC cmd/nvme.o
CC cmd/rockusb.o
CC cmd/test.o
CC cmd/usb.o
CC cmd/disk.o
CC cmd/fastboot.o
CC cmd/gpt.o
CC cmd/optee.o
CC cmd/nvedit.o
LD cmd/built-in.o
CC common/init/board_init.o
LD common/init/built-in.o
CC common/main.o
CC common/exports.o
CC common/hash.o
CC common/cli_hush.o
CC common/autoboot.o
CC common/board_f.o
CC common/board_r.o
CC common/board_info.o
CC common/bootm.o
CC common/bootm_os.o
CC common/fdt_support.o
CC common/miiphyutil.o
CC common/usb.o
CC common/usb_hub.o
CC common/usb_storage.o
CC common/iomux.o
CC common/edid.o
CC common/splash.o
CC common/menu.o
CC common/cli_readline.o
CC common/cli_simple.o
CC common/bouncebuf.o
CC common/console.o
CC common/dlmalloc.o
CC common/malloc_simple.o
CC common/image.o
CC common/image-android.o
CC common/android_bootloader.o
CC common/image-fdt.o
CC common/image-fit.o
CC common/memsize.o
CC common/stdio.o
CC common/image-android-dt.o
CC common/boot_rkimg.o
CC common/image-sparse.o
CC common/fb_mmc.o
CC common/fb_common.o
CC common/cli.o
CC common/command.o
CC common/s_record.o
CC common/xyzModem.o
CC common/write_keybox.o
CC common/keymaster.o
CC common/attestation_key.o
LD common/built-in.o
CC disk/part.o
CC disk/part_dos.o
CC disk/part_efi.o
disk/part_efi.c: In function ‘gpt_verify_partitions’:
disk/part_efi.c:858:49: error: taking address of packed member of ‘struct _gpt_entry’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
858 | gpt_convert_efi_name_to_char(efi_str, gpt_e[i].partition_name,
| ~~~~~~~~^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: disk/part_efi.o] Error 1
make[1]: *** [Makefile:1289: disk] Error 2
make: *** [Makefile:461: __build_one_by_one] Error 2
MAKE UBOOT IMAGE FAILED.

sudo modprobe does not work

I try setup can device on rk3399-rock-pi-4b. When device turned on I got a few errors:

  1. folder /boot empty
  2. lsmod show empty list
  3. sudo modprobe can could not open moddep file '/lib/modules/.../modules.dep.bin'
    How to fix the errors and manage DTS overlays?

Can't build rockpi 4c

Hi
as described to build rockpi 4c w/o docker (also not work) so I use 'part two' that's not work:
root@bitpower-tux:~/projects/rockchip-bsp# ./build/mk-kernel.sh rockpi4c
Building kernel for rockpi4c board!
4.4.154
Using rockchip_linux_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf

configuration written to .config

scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
WRAP arch/arm64/include/generated/asm/bug.h
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/checksum.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/current.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
CHK include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/ftrace.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctl.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/pci-bridge.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/pci.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/topology.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/unaligned.h
HOSTCC scripts/basic/bin2c
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/xor.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
HOSTCC scripts/dtc/dtc.o
CC scripts/mod/empty.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/selinux/genheaders/genheaders
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/dtc/fstree.o
In file included from scripts/mod/devicetable-offsets.c:2:0:
include/linux/mod_devicetable.h:320:48: error: ‘BITS_PER_LONG’ undeclared here (not in a function); did you mean ‘__BITS_PER_LONG’?
kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
^~~~~~~~~~~~~
_BITS_PER_LONG
In file included from scripts/mod/devicetable-offsets.c:1:0:
scripts/mod/devicetable-offsets.c: In function ‘main’:
scripts/mod/devicetable-offsets.c:6:32: error: implicit declaration of function ‘offsetof’ [-Werror=implicit-function-declaration]
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:11:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, match_flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:11:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, match_flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:12:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, idVendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:13:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, idProduct);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:14:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bcdDevice_lo);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:15:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bcdDevice_hi);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:16:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bDeviceClass);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:17:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bDeviceSubClass);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:18:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bDeviceProtocol);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:19:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bInterfaceClass);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:20:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bInterfaceSubClass);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:21:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bInterfaceProtocol);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:22:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(usb_device_id, bInterfaceNumber);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:25:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hid_device_id, bus);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:26:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hid_device_id, group);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:27:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hid_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:28:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hid_device_id, product);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:31:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ieee1394_device_id, match_flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:32:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ieee1394_device_id, vendor_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:33:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ieee1394_device_id, model_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:34:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ieee1394_device_id, specifier_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:35:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ieee1394_device_id, version);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:38:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:39:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, device);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:40:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, subvendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:41:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, subdevice);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:42:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, class);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:43:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pci_device_id, class_mask);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:46:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ccw_device_id, match_flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:47:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ccw_device_id, cu_type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:48:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ccw_device_id, cu_model);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:49:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ccw_device_id, dev_type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:50:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ccw_device_id, dev_model);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:53:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ap_device_id, dev_type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:56:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(css_device_id, type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:59:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(serio_device_id, type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:60:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(serio_device_id, proto);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:61:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(serio_device_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:62:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(serio_device_id, extra);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:65:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(acpi_device_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:66:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(acpi_device_id, cls);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:67:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(acpi_device_id, cls_msk);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:70:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pnp_device_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:73:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pnp_card_device_id, devs);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:76:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, match_flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:77:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, manf_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:78:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, card_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:79:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, func_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:80:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, function);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:81:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, device_no);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:82:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(pcmcia_device_id, prod_id_hash);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:85:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(of_device_id, name);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:86:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(of_device_id, type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:87:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(of_device_id, compatible);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:90:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(vio_device_id, type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:91:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(vio_device_id, compat);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:94:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, flags);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:95:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, bustype);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:96:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:97:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, product);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:98:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, version);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:99:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, evbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:100:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, keybit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:101:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, relbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:102:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, absbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:103:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, mscbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:104:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, ledbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:105:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, sndbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:106:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, ffbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:107:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(input_device_id, swbit);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:110:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(eisa_device_id, sig);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:113:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(parisc_device_id, hw_type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:114:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(parisc_device_id, hversion);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:115:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(parisc_device_id, hversion_rev);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:116:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(parisc_device_id, sversion);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:119:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(sdio_device_id, class);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:120:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(sdio_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:121:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(sdio_device_id, device);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:124:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ssb_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:125:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ssb_device_id, coreid);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:126:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ssb_device_id, revision);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:129:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(bcma_device_id, manuf);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:130:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(bcma_device_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:131:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(bcma_device_id, rev);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:132:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(bcma_device_id, class);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:135:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(virtio_device_id, device);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:136:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(virtio_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:139:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hv_vmbus_device_id, guid);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:142:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(i2c_device_id, name);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:145:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(spi_device_id, name);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:148:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(dmi_system_id, matches);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:151:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(platform_device_id, name);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:154:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mdio_device_id, phy_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:155:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mdio_device_id, phy_id_mask);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:158:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(zorro_device_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:161:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(isapnp_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:162:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(isapnp_device_id, function);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:165:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ipack_device_id, format);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:166:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ipack_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:167:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ipack_device_id, device);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:170:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(amba_id, id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:171:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(amba_id, mask);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:174:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mips_cdmm_device_id, type);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:177:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(x86_cpu_id, feature);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:178:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(x86_cpu_id, family);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:179:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(x86_cpu_id, model);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:180:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(x86_cpu_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:183:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(cpu_feature, feature);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:186:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mei_cl_device_id, name);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:187:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mei_cl_device_id, uuid);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:188:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(mei_cl_device_id, version);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:191:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(rio_device_id, did);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:192:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(rio_device_id, vid);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:193:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(rio_device_id, asm_did);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:194:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(rio_device_id, asm_vid);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:197:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ulpi_device_id, vendor);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:198:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(ulpi_device_id, product);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:201:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hda_device_id, vendor_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid####field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:202:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hda_device_id, rev_id);
^~~~~~~~~~~
scripts/mod/devicetable-offsets.c:6:41: error: expected expression before ‘struct’
DEFINE(OFF
##devid##_##field, offsetof(struct devid, field))
^
scripts/mod/devicetable-offsets.c:203:2: note: in expansion of macro ‘DEVID_FIELD’
DEVID_FIELD(hda_device_id, api_version);
^~~~~~~~~~~
cc1: some warnings being treated as errors
HOSTCC scripts/kallsyms
scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
scripts/Makefile.build:484: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/dtc/checks.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
Makefile:584: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Auf noch nicht beendete Prozesse wird gewartet …
UPD include/config/kernel.release
MAKE KERNEL IMAGE FAILED.

Build kernel failed

I run “./build/mk-kernel.sh rk3568-rock-3-a” but here are some bugs.

Building kernel for rk3568-rock-3-a board!
4.19.193
scripts/kconfig/conf --syncconfig Kconfig
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: compilation: invalid number
./scripts/gcc-version.sh: 第 30 行:printf: terminated.: invalid number
init/Kconfig:17: syntax error
init/Kconfig:16: invalid option
make[2]: *** [scripts/kconfig/Makefile:69:syncconfig] errors 1
make[1]: *** [Makefile:578:syncconfig] errors 2
make: *** [Makefile:683:include/config/auto.conf.cmd] errors 2
make: *** [include/config/auto.conf.cmd] is deleting the file “include/config/tristate.conf”
MAKE KERNEL IMAGE FAILED.
much thanks for your help

Can't build image for rockpie

I want to build image for ROCK Pi e, but have this error:
root@36d78b245aaf:~# ./build/mk-uboot.sh rockpie
Building U-boot for rockpie board!
Using rock-pi-e-rk3328_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf


*** Can't find default configuration "arch/../configs/rock-pi-e-rk3328_defconfig"!


scripts/kconfig/Makefile:121: recipe for target 'rock-pi-e-rk3328_defconfig' failed
make[2]: *** [rock-pi-e-rk3328_defconfig] Error 1
Makefile:479: recipe for target 'rock-pi-e-rk3328_defconfig' failed
make[1]: *** [rock-pi-e-rk3328_defconfig] Error 2
Makefile:461: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2
MAKE UBOOT IMAGE FAILED.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.