Compiling and Updating Linux Kernel

Hi everyone,
currently im doing compiling Linux Kernel, im following this step Compiling& updating Kernel but i have fa some error which is :
linux$ make ARCH=riscv olddefconfig
LEX scripts/kconfig/lexer.lex.c
/bin/sh: 1: flex: not found
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make: *** [Makefile:616: olddefconfig] Error 2
anyone know how to fix this problem , thank in advance.

I’d recomend reading this chapter first:
Install Packages (rvspace.org)
If it still misses flex then you need to install it just like before.
apt install flex
And do this for anything that is missing. In order to do stuff you have to have the tools installed first.

2 Likes

Step 1. indicated all the packages to install including flex.

More broadly:
https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official

apt-get install build-essential
apt-get build-dep linux
apt-get source linux

between the build-essential and the build-dep, it will definitely fetch whatever you need to build.

4 Likes

i already the step and another error come out:

~/linux$ make ARCH=riscv -j$(nproc) bindeb-pkg
sh ./scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -b -nc -uc
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 5.15.0-1
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by user <user@starfive>
dpkg-buildpackage: info: host architecture riscv64
 dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: bc
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 3
make: *** [Makefile:1576: bindeb-pkg] Error 2

anyone know how to fix this problem, thank in advance

sudo apt-get build-dep linux
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list

how to fix this problem? thank you in advance.

What’re the contents of your /etc/apt/sources.list?

Sounds like apt has no idea where to get packages.

1 Like
deb https://snapshot.debian.org/archive/debian-ports/20221225T084846Z unstable >

what is this can anyone explain ? and how to fix.

Ahhhh… you’re telling it to fetch the source for package “linux”, but you have no deb-src sources configured.

I don’t think you need the apt-get source linux – you don’t want a source DEB. You’ve got your own sources.

After apt install build-essential, what does your make ARCH=riscv -j$(nproc) bindeb-pkg look like?

Incidentally, here’s how I build:
nohup make INSTALL_MOD_STRIP=1 -j5 bindeb-pkg &

Stripping the modules is not advised if you’re planning to do any kernel debugging. But if you’re not, it saves a chunk of disk space and a TON of time. Each time the system rebuilds its initrd there’s much less data to compress.

apt-get install build-essential linux-source bc kmod cpio flex libncurses5-dev libelf-dev libssl-dev dwarves bison git :white_check_mark:
git clone GitHub - starfive-tech/linux :white_check_mark:
cd linux/ :white_check_mark:
cp arch/riscv/configs/starfive_visionfive2_defconfig .config :white_check_mark:
make ARCH=riscv olddefconfig :white_check_mark:

make ARCH=riscv -j$(nproc) bindeb-pkg:
 dpkg-genbuildinfo --build=binary -O../linux-upstream_5.15.0-1_riscv64.buildinfo
 dpkg-genchanges --build=binary -O../linux-upstream_5.15.0-1_riscv64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

How to fix this problem?

I’m deeply sorry, I misled when I mentioned the apt-get source linux. That was a broad stroke about how it’s usually done on intel x86_64 for building the kernel for Debian Linux. scottfk is entirely right. You don’t need the apt-get source linux because you’re using the starfive github sources for the kernel(aka linux). Yeah when starfive’s sources are entirely merged with the linux mainline, fetching the sources using “apt-get source linux” will be possible, but not yet unfortunately.

2 Likes

I’m not seeing the problem… When I do a make bindeb-pkg, I get the same informational output as you’re seeing. But I also get working kernel DEBs.

Are there errors being spit out as well? Can you copy/paste the contents of your shell from build (make bindeb-pkg) through to exit and return to prompt?

1 Like
sh ./scripts/package/mkdebian
dpkg-buildpackage -r"fakeroot -u" -a$(cat debian/arch)  -b -nc -uc
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 5.15.0-7
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by root <root@starfive>
dpkg-buildpackage: info: host architecture riscv64
 dpkg-source --before-build .
 debian/rules binary
make KERNELRELEASE=5.15.0 ARCH=riscv 	KBUILD_BUILD_VERSION=7 -f ./Makefile
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  CC [M]  drivers/net/wireless/eswin/ecrnx_msg_tx.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_msg_rx.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_utils.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_cmds.o
drivers/net/wireless/eswin/ecrnx_msg_rx.c: In function ‘ecrnx_rx_remain_on_channel_exp_ind’:
drivers/net/wireless/eswin/ecrnx_msg_rx.c:412:5: warning: "CONFIG_ECRNX_P2P" is not defined, evaluates to 0 [-Wundef]
  412 | #if CONFIG_ECRNX_P2P
      |     ^~~~~~~~~~~~~~~~
drivers/net/wireless/eswin/ecrnx_msg_rx.c: In function ‘ecrnx_rx_handle_msg’:
drivers/net/wireless/eswin/ecrnx_msg_rx.c:1582:29: warning: the comparison will always evaluate as ‘true’ for the address of ‘cmd_mgr’ will never be NULL [-Waddress]
 1582 |     if(!ecrnx_hw || !msg || !(&ecrnx_hw->cmd_mgr))
      |                             ^
In file included from drivers/net/wireless/eswin/ecrnx_msg_rx.c:12:
/home/user/linux/drivers/net/wireless/eswin/fullmac/ecrnx_defs.h:595:26: note: ‘cmd_mgr’ declared here
  595 |     struct ecrnx_cmd_mgr cmd_mgr;
      |                          ^~~~~~~
  CC [M]  drivers/net/wireless/eswin/ecrnx_cfgfile.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_strs.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_txq.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_mod_params.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_platform.o
  CC [M]  drivers/net/wireless/eswin/ipc_host.o
  CC [M]  drivers/net/wireless/eswin/hal_desc.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_iwpriv.o
  CC [M]  drivers/net/wireless/eswin/fw_head_check.o
  CC [M]  drivers/net/wireless/eswin/slave_log_buf.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_tdls.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_mesh.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_main.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_rx.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_tx.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_calibration_data.o
  CC [M]  drivers/net/wireless/eswin/usb/usb.o
drivers/net/wireless/eswin/fullmac/ecrnx_main.c: In function ‘ecrnx_cfg80211_add_station’:
drivers/net/wireless/eswin/fullmac/ecrnx_main.c:1848:54: warning: the comparison will always evaluate as ‘true’ for the address of ‘mac_addr’ will never be NULL [-Waddress]
 1848 |                 if((!is_multicast_sta(sta->sta_idx)) && (sta->mac_addr)) {
      |                                                      ^~
In file included from drivers/net/wireless/eswin/fullmac/ecrnx_main.c:20:
drivers/net/wireless/eswin/fullmac/ecrnx_defs.h:411:8: note: ‘mac_addr’ declared here
  411 |     u8 mac_addr[ETH_ALEN];
      |        ^~~~~~~~
drivers/net/wireless/eswin/fullmac/ecrnx_main.c: In function ‘ecrnx_cfg80211_tdls_mgmt’:
drivers/net/wireless/eswin/fullmac/ecrnx_main.c:3172:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
 3172 |         if ((status_code == 0) &&
      |            ^
drivers/net/wireless/eswin/fullmac/ecrnx_main.c:3179:5: note: here
 3179 |     case WLAN_TDLS_SETUP_REQUEST:
      |     ^~~~
  CC [M]  drivers/net/wireless/eswin/usb/ecrnx_usb.o
  CC [M]  drivers/net/wireless/eswin/usb/core.o
  CC [M]  drivers/net/wireless/eswin/usb/fw.o
  CC [M]  drivers/net/wireless/eswin/eswin_port/eswin_utils.o
  CC [M]  drivers/net/wireless/eswin/fullmac/ecrnx_amt.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_radar.o
  CC [M]  drivers/net/wireless/eswin/ecrnx_debug.o
In file included from ./include/linux/kernel.h:5,
                 from ./include/linux/interrupt.h:6,
                 from /home/user/linux/drivers/net/wireless/eswin/fullmac/ecrnx_defs.h:16,
                 from drivers/net/wireless/eswin/ecrnx_debug.c:14:
./include/linux/stdarg.h:6: warning: "va_start" redefined
    6 | #define va_start(v, l)  __builtin_va_start(v, l)
      | 
In file included from drivers/net/wireless/eswin/ecrnx_debug.c:12:
/usr/lib/gcc/riscv64-linux-gnu/12/include/stdarg.h:47: note: this is the location of the previous definition
   47 | #define va_start(v,l)   __builtin_va_start(v,l)
      | 
./include/linux/stdarg.h:8: warning: "va_arg" redefined
    8 | #define va_arg(v, T)    __builtin_va_arg(v, T)
      | 
/usr/lib/gcc/riscv64-linux-gnu/12/include/stdarg.h:49: note: this is the location of the previous definition
   49 | #define va_arg(v,l)     __builtin_va_arg(v,l)
      | 
./include/linux/stdarg.h:9: warning: "va_copy" redefined
    9 | #define va_copy(d, s)   __builtin_va_copy(d, s)
      | 
/usr/lib/gcc/riscv64-linux-gnu/12/include/stdarg.h:52: note: this is the location of the previous definition
   52 | #define va_copy(d,s)    __builtin_va_copy(d,s)
      | 
  LD [M]  drivers/net/wireless/eswin/wlan_ecr6600u_usb.o
  GEN     .version
  CHK     include/generated/compile.h
  LD      vmlinux.o
  MODPOST vmlinux.symvers
  MODINFO modules.builtin.modinfo
  GEN     modules.builtin
  LD      .tmp_vmlinux.kallsyms1
  KSYMS   .tmp_vmlinux.kallsyms1.S
  AS      .tmp_vmlinux.kallsyms1.S
  LD      .tmp_vmlinux.kallsyms2
  KSYMS   .tmp_vmlinux.kallsyms2.S
  AS      .tmp_vmlinux.kallsyms2.S
  LD      vmlinux
  SORTTAB vmlinux
  SYSMAP  System.map
  OBJCOPY arch/riscv/boot/Image
  MODPOST modules-only.symvers
  GZIP    arch/riscv/boot/Image.gz
  GEN     Module.symvers
  LD [M]  drivers/net/wireless/eswin/wlan_ecr6600u_usb.ko
  Kernel: arch/riscv/boot/Image.gz is ready
make KERNELRELEASE=5.15.0 ARCH=riscv 	KBUILD_BUILD_VERSION=7 -f ./Makefile intdeb-pkg
sh ./scripts/package/builddeb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/sifive/hifive-unleashed-a00.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/sifive/hifive-unmatched-a00.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/vf2-overlay/vf2-overlay-uart3-i2c.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-can.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-fpga.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-sdio.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-can-pdm-pwmdac.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-dvp-rgb2hdmi.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-spi.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-pcie-i2s-sd.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-uart4-emmc.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-uart5-pwm.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-i2s-ac108.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/evb-overlay/jh7110-evb-overlay-rgb2hdmi.dtbo
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-spi-uart2.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-uart1-rgb2hdmi.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-uart4-emmc-spdif.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-uart5-pwm-i2c-tdm.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-evb-usbdevice.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2-A10.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2-A11.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2-wm8960.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2-sof-wm8960.dtb
  INSTALL debian/linux-image/usr/lib/linux-image-5.15.0/starfive/jh7110-visionfive-v2-ac108.dtb
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/crypto/md4.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/crypto/md5.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/crypto/tcrypt.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/bluetooth/aic_btusb/aic_btusb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/bluetooth/btintel.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/bluetooth/btusb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/mailbox/starfive_mailbox-test.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/md/dm-mod.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/a8293.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/af9033.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ascot2e.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/atbm8830.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/au8522_common.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/au8522_decoder.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/au8522_dig.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/bcm3510.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx22700.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx22702.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24110.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24113.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24116.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24117.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24120.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cx24123.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cxd2099.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cxd2820r.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib0070.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cxd2841er.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/cxd2880/cxd2880.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib0090.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib3000mb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib3000mc.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib7000m.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib7000p.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib8000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dib9000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dibx000_common.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/drx39xyj/drx39xyj.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/drxd.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/drxk.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ds3000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/dvb-pll.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ec100.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/helene.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/horus3a.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/isl6405.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/isl6421.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/isl6423.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/itd1000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ix2505v.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/l64781.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lg2160.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lgdt3305.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lgdt330x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lgs8gl5.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lgs8gxx.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lnbh25.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lnbh29.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lnbp21.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/lnbp22.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/m88rs2000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mb86a16.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mb86a20s.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mn88443x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mn88472.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mn88473.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mt312.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mt352.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mxl5xx.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/mxl692.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/nxt200x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/nxt6000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/or51132.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/or51211.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/s5h1409.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/s5h1411.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/s5h1420.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/s5h1432.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/s921.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/si2165.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/si21xx.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/sp2.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/sp887x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stb0899.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stb6000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0288.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stb6100.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0297.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0299.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0367.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0900.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv090x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv0910.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv6110.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv6110x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/stv6111.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tc90522.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda10021.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda10023.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda10048.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda1004x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda10071.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda10086.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda18271c2dd.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda665x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda8083.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda8261.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tda826x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ts2020.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/tua6100.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ves1820.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/ves1x93.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/zd1301_demod.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/zl10036.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/zl10039.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/dvb-frontends/zl10353.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/platform/chips-media/wave5/wave5.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/spi/cxd2880-spi.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/e4000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/fc0011.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/fc0012.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/fc0013.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/fc2580.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/it913x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/m88rs6000t.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mc44s803.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/max2165.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/msi001.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mt2060.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mt2063.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mt20xx.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mt2131.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mt2266.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mxl301rf.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mxl5005s.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/mxl5007t.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/qm1d1b0004.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/qm1d1c0042.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/qt1010.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/r820t.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/si2157.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda18218.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda18212.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda18250.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda18271.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda827x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda8290.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tda9887.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tea5761.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tea5767.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tua9001.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tuner-types.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tuner-simple.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/tuner-xc2028.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/xc4000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/tuners/xc5000.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/media/v4l2-core/v4l2-mem2mem.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/net/wireless/aic8800/aic8800_fdrv/aic8800_fdrv.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/net/wireless/aic8800/aic_load_fw/aic_load_fw.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/net/wireless/eswin/wlan_ecr6600u_usb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/misc/ezusb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/aircable.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ark3116.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/belkin_sa.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ch341.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/cp210x.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/cyberjack.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/cypress_m8.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/digi_acceleport.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/empeg.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/f81232.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ftdi_sio.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/garmin_gps.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/io_edgeport.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/io_ti.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ipaq.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ipw.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ir-usb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/iuu_phoenix.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/keyspan.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/keyspan_pda.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/kl5kusb105.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/kobil_sct.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/mct_u232.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/metro-usb.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/mos7720.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/navman.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/mos7840.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/omninet.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/opticon.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/oti6858.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/pl2303.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/qcaux.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/qcserial.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/safe_serial.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/sierra.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/spcp8x5.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ssu100.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/symbolserial.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/ti_usb_3410_5052.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/usb_debug.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/usb_wwan.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/usbserial.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/visor.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/whiteheat.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/wishbone-serial.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/drivers/usb/serial/xsens_mt.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/cifs/cifs.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/efivarfs/efivarfs.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/ksmbd/ksmbd.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/nfs/blocklayout/blocklayoutdriver.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/nls/nls_utf8.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/smbfs_common/cifs_arc4.ko
  INSTALL debian/linux-image/lib/modules/5.15.0/kernel/fs/smbfs_common/cifs_md4.ko
  DEPMOD  debian/linux-image/lib/modules/5.15.0
dpkg-deb: building package 'linux-headers-5.15.0' in '../linux-headers-5.15.0_5.15.0-7_riscv64.deb'.
  INSTALL debian/linux-libc-dev/usr/include
dpkg-deb: building package 'linux-libc-dev' in '../linux-libc-dev_5.15.0-7_riscv64.deb'.
dpkg-deb: building package 'linux-image-5.15.0' in '../linux-image-5.15.0_5.15.0-7_riscv64.deb'.
 dpkg-genbuildinfo --build=binary -O../linux-upstream_5.15.0-7_riscv64.buildinfo
 dpkg-genchanges --build=binary -O../linux-upstream_5.15.0-7_riscv64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

hope someone can solve this

Looks like you got a clean build and 3 DEB packages created. What problem are you seeing?

1 Like

here:

dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

what is this mean, can you explain? (sorry im new here)
I still get error for next part:

~/linux$ dpkg -i *.deb
dpkg: error: requested operation requires superuser privilege

What is it you are trying to accomplish? I don’t mean to sound rude, but you are clearly out of your depth.

All of the output you have seen can be understood by reading it carefully and thinking it through in the context of building a packaged kernel. Your questions indicate you are neither reading nor understanding the context.

The last lines you quoted indicate that you have built binary-only packages. You did not include source code.

The final line indicates that you are trying to install packages without proper privileges (usually root). It also indicates that you lack fundamental Linux skills.

3 Likes