VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Kernel slackbuild  (Read 549 times)

black-clover

  • Member
  • *
  • Posts: 87
  • user
Kernel slackbuild
« on: July 28, 2017, 12:14:20 pm »

Hi,

I cloned your kernel SlackBuild i found at:
https://bitbucket.org/VLCore/vl72/src/32ab34de42990e19eb34142e92d8b2cf566fda47/var/vabs/kernel4.4/src?at=master

But after downloading the sources it I get this error:
tar: linux-4.4.76/virt/lib/irqbypass.c: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors

For every file the script tries to open.

I ran the script as a user first and got the error above, I tried to run it as root and it says Command not found.
What am i doing wrong.
Logged

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3482
Re: Kernel slackbuild
« Reply #1 on: July 28, 2017, 12:21:10 pm »

Which command not found? 

You will need to install at the very least requiredbuilder and bc

You should be running it as root.
Can you post the complete error message?

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #2 on: July 28, 2017, 12:22:15 pm »

tar: linux-4.4.76/virt/lib/Makefile: Cannot open: No such file or directory
tar: linux-4.4.76: Cannot mkdir: Permission denied
tar: linux-4.4.76/virt/lib/irqbypass.c: Cannot open: No such file or directory
tar: Exiting with failure status due to previous errors
 
Sorry i didn't paste it right, the error is due to permisssion denied, but I'm running the scritp in the /home/user dir so there shouldn't be any permission problem.
Logged

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #3 on: July 28, 2017, 12:30:08 pm »

I upgraded the whole system last night.
Requiredbuilder is 0.16.5
Bc is 1.06.95

I tried to run the script as root but it says command not found.
The whole message just repeat the same permission issue for every file.

Logged

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3482
Re: Kernel slackbuild
« Reply #4 on: July 28, 2017, 12:40:35 pm »

just to be clear... here are the step by step instructions
Code: [Select]
# you should be in the directory that has the kernel4.4.SlackBuild file
# run this as root
rm -rf ../tmp
sh kernel4.4.SlackBuild 2>&1 |tee build.log
If it fails, post the contents of build.log in a pastebin somewhere and get us the link so I can see what's going on.[/code]

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #5 on: July 28, 2017, 01:03:29 pm »

OK now it ran fine, I guess what I missed was the sh bit in the command as root, just learning, I'm still like a monkey trying to perform brain surgery.
By the way, what would be a good GUI to modify the .config file?
Logged

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #6 on: July 28, 2017, 04:15:58 pm »

Another question the kernel SlackBuild script which config file would use, the /boot/.config or /ver/log/packages/vl... version?
How should I proceed to make the script use my custom .config file?
Logged

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #7 on: July 28, 2017, 05:36:00 pm »

also when I use the comand make menuconfig, whatever dir I'm in it says:
$make: *** No rule to make target 'menuconfig'. Stop. 
I'm using VL-7.2-STD-RC3.
How would I go about modify the config file and have the SlackBuild script use it?
Logged

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #8 on: July 28, 2017, 11:47:26 pm »

Hi,
I finally managed to run the SlackBuild but at the end of the compiling proces I get this error message:

  HOSTCC  usr/gen_init_cpio
  ./scripts/gen_initramfs_list.sh: Cannot open '/usr/share/v86d/initramfs'
usr/Makefile:73: recipe for target 'usr/initramfs_data.cpio.gz' failed
make[1]: *** [usr/initramfs_data.cpio.gz] Error 1
Makefile:961: recipe for target 'usr' failed
make: *** [usr] Error 2
make: *** Waiting for unfinished jobs....
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  CC      init/init_task.o
  CC      init/version.o
  LD      init/mounts.o
  LD      init/built-in.o
vector://home/mac/kernel/src
 
And in fact there is no /usr/share/v86d/initramfs on my distro.
What might that mean?

Logged

black-clover

  • Member
  • *
  • Posts: 87
  • user
Re: Kernel slackbuild
« Reply #9 on: July 28, 2017, 11:54:41 pm »

I guess maybe I figured it out, I guess I must have put something in the custom config file which pointed the script to make the initramfs in that directory. It's a good thing I'm doing this in a test install ahah
Logged