From d84a3f30d08998975a6c743369768255cd0410e6 Mon Sep 17 00:00:00 2001 From: zyy Date: Mon, 1 Dec 2025 17:18:14 +0800 Subject: [PATCH 1/4] build deb image on ubuntu21.04(or later) --- scripts/package/builddeb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 0b31f4f1f92cf..7351c056c294a 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -31,7 +31,8 @@ create_package() { # Create the package dpkg-gencontrol -p$pname -P"$pdir" - dpkg --build "$pdir" .. + #dpkg --build "$pdir" .. + dpkg-deb -b -Zxz "$pdir" .. } version=$KERNELRELEASE From 8d732eb5c47e2b2813e63be725fdb50fa29a6271 Mon Sep 17 00:00:00 2001 From: zyy Date: Sun, 1 Feb 2026 11:14:42 +0800 Subject: [PATCH 2/4] add kgdb support --- arch/arm/configs/npi_v7_defconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/npi_v7_defconfig b/arch/arm/configs/npi_v7_defconfig index cd3b8f6972cd2..971ab10546895 100644 --- a/arch/arm/configs/npi_v7_defconfig +++ b/arch/arm/configs/npi_v7_defconfig @@ -5442,7 +5442,7 @@ CONFIG_DYNAMIC_DEBUG=y # # Compile-time checks and compiler options # -# CONFIG_DEBUG_INFO is not set +CONFIG_DEBUG_INFO=y CONFIG_ENABLE_MUST_CHECK=y CONFIG_FRAME_WARN=1024 # CONFIG_STRIP_ASM_SYMS is not set @@ -5580,7 +5580,8 @@ CONFIG_RUNTIME_TESTING_MENU=y # CONFIG_BUG_ON_DATA_CORRUPTION is not set # CONFIG_SAMPLES is not set CONFIG_HAVE_ARCH_KGDB=y -# CONFIG_KGDB is not set +CONFIG_KGDB=y +CONFIG_KGDB_SERIAL_CONSOLE=y # CONFIG_UBSAN is not set CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y # CONFIG_STRICT_DEVMEM is not set From 9b81e62b39194f1937b795643f6048426296c71f Mon Sep 17 00:00:00 2001 From: zyy Date: Sun, 1 Feb 2026 11:15:19 +0800 Subject: [PATCH 3/4] make deb change --- make_deb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_deb.sh b/make_deb.sh index 64c1ce4d14a20..d1b2414242175 100755 --- a/make_deb.sh +++ b/make_deb.sh @@ -1,13 +1,13 @@ deb_distro=bionic DISTRO=stable -build_opts="-j 16" +build_opts="-j 8" build_opts="${build_opts} O=build_image/build" build_opts="${build_opts} ARCH=arm" build_opts="${build_opts} KBUILD_DEBARCH=${DEBARCH}" build_opts="${build_opts} LOCALVERSION=-imx6" build_opts="${build_opts} KDEB_CHANGELOG_DIST=${deb_distro}" build_opts="${build_opts} KDEB_PKGVERSION=1.$(date +%g%m)${DISTRO}" -build_opts="${build_opts} CROSS_COMPILE=arm-linux-gnueabihf-" +build_opts="${build_opts} CROSS_COMPILE=/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-" build_opts="${build_opts} KDEB_SOURCENAME=linux-upstream" make ${build_opts} npi_v7_defconfig make ${build_opts} From a8f5a06f8165ab6ca599e00453dcba24df81241c Mon Sep 17 00:00:00 2001 From: zyy Date: Sun, 1 Feb 2026 11:15:49 +0800 Subject: [PATCH 4/4] dtc error to make run ok --- scripts/dtc/dtc-lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l index 615b7ec6588f1..a26c7636c704f 100644 --- a/scripts/dtc/dtc-lexer.l +++ b/scripts/dtc/dtc-lexer.l @@ -38,7 +38,7 @@ LINECOMMENT "//".*\n #include "srcpos.h" #include "dtc-parser.tab.h" -YYLTYPE yylloc; +extern YYLTYPE yylloc; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */