WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tar -xvf Module.symvers-5.15.10-tinycore.gz report error  (Read 1887 times)

Offline lovelypp

  • Jr. Member
  • **
  • Posts: 51
tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« on: March 30, 2023, 11: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!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11685
Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« Reply #1 on: March 30, 2023, 11:37:25 PM »
Hi lovelypp
It's not a  tar  file. Try:
Code: [Select]
gunzip Module.symvers-5.15.10-tinycore.gz

Offline lovelypp

  • Jr. Member
  • **
  • Posts: 51
Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« Reply #2 on: March 30, 2023, 11: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
...

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14840
Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« Reply #3 on: March 31, 2023, 05:02:00 AM »
How did you prepare the kernel source?

Offline lovelypp

  • Jr. Member
  • **
  • Posts: 51
Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« Reply #4 on: April 02, 2023, 09: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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1257
Re: tar -xvf Module.symvers-5.15.10-tinycore.gz report error
« Reply #5 on: April 03, 2023, 05: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.