On 24.03.21 14:24, Anatoly Pugachev wrote:
On Wed, Mar 24, 2021 at 4:19 PM Frank Scheiner <frank.schei...@web.de> wrote:
On 24.03.21 14:16, John Paul Adrian Glaubitz wrote:
On 3/24/21 2:09 PM, Frank Scheiner wrote:> Kernel sources are not available on 
the T1000.

If need be, where do they need to exist and how should the directory be
named - `/usr/src/[...]`?

Try installing "linux-source" and the "-dbg" package for your Debian kernel.

But don't I need the source for the kernel at 028abd92? I figured, I
need the sources in `/usr/src/linux-source-5.9.0-rc1+` because
"5.9.0-rc1+" is the version the corresponding modules are installed -
could that be correct?


i'm using gdb from kernel sources directory (from which kernel is
installed), like:

$ uname -a
Linux ttip 5.12.0-rc4 #203 SMP Wed Mar 24 15:50:29 MSK 2021 sparc64 GNU/Linux
$ cd linux-2.6
linux-2.6$ git describe
linux-2.6$ gdb -q vmlinux
Reading symbols from vmlinux...
(gdb) l *(sys_mount+0x114/0x1e0)
0x6dd7c0 is in __se_sys_mount (fs/namespace.c:3431).
3426            /* ... and return the root of (sub)tree on it */
3427            return path.dentry;
3428    }
3429    EXPORT_SYMBOL(mount_subtree);
3431    SYSCALL_DEFINE5(mount, char __user *, dev_name, char __user *, dir_name,
3432                    char __user *, type, unsigned long, flags,
void __user *, data)
3433    {
3434            int ret;
3435            char *kernel_type;

Ok, will try that approach. I'm currently `tar`ing the kernel sources
@028abd92 on the cross-compiling host and will move them over to the T1000.


Reply via email to