Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: lovelypp on March 30, 2023, 08:22:24 PM

Title: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post 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!
Title: Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post by: Rich on March 30, 2023, 08:37:25 PM
Hi lovelypp
It's not a  tar  file. Try:
Code: [Select]
gunzip Module.symvers-5.15.10-tinycore.gz
Title: Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post by: lovelypp on March 30, 2023, 08:44:17 PM
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
...
Title: Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post by: Juanito on March 31, 2023, 02:02:00 AM
How did you prepare the kernel source?
Title: Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post by: lovelypp on April 02, 2023, 06:04:02 PM
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
Title: Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
Post by: Paul_123 on April 03, 2023, 02:45:22 AM
Copy the module.symvers file to the kernel source directory, after you have ran the prepares, just before you run make modules.