Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: lovelypp on March 30, 2023, 08:22:24 PM
-
I download Module.symvers-5.15.10-tinycore.gz file and unzip it using the following cmd:
tar -xvf Module.symvers-5.15.10-tinycore.gz
it reports the following err:
tar: invalid tar magic
thanks!
-
Hi lovelypp
It's not a tar file. Try:
gunzip Module.symvers-5.15.10-tinycore.gz
-
thank you
I unzip it successfully and put it to the Kernal source dir.
but when compile my driver, it reports:
ERROR: modpost: "phys_base" [/mnt/sda3/mydrv/anet/anet.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:134: /mnt/sda3/mydrv/anet/Module.symvers] Error 1
...
-
How did you prepare the kernel source?
-
tar -xf linux-5.15.10-patched.txz
$ cd linux-5.15.10
$ make mrproper
$ cp ../config-5.15.10-tinycore64 .config
$ make menuconfig
$ make prepare
$ make modules_prepare
$ make modules
$ make modules_install
-
Copy the module.symvers file to the kernel source directory, after you have ran the prepares, just before you run make modules.