You are not logged in.

#1 2006-01-16 12:59:24

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

2.6.15-archck3: Community PKG + PKGBUILDs

Introduction
As you are all aware, Arch's default kernel has moved to the new initrd system, where you create an "INITial Ram Disk", a file which contains all the modules you need. ArchCK has now moved to a similar system.

Documentation here.
http://wiki.archlinux.org/index.php/Ini … and_ArchCK

Offline

#2 2006-01-16 15:17:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

A few comments:

1. Your kernel PKGBUILD doesn't copy Makefile.cpu over - the following line is needed:

cp arch/i386/Makefile.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/i386/

The very last line of the PKGBUILD refers to Makefile.cpu, but that seems to be incorrect.

2. I'm not clear what's happening with the fallback init ramdisk at the end - the touch and initramfs commands are commented. Is that deliberate i.e. are you planning to do it in the .install file, like the stock kernel?

3. The source field in the mkinitramfs PKGBUILD needs full URLs.

Thanks for all this, iph - I'm looking forward to getting my head around it.

Offline

#3 2006-01-16 15:22:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

OK, ignore #2 - I just saw the .install file.

Offline

#4 2006-01-16 17:31:28

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

As for #1, It's already there.. Look down smile
As for #3, I bet you are expected to download those files into your directory. =/

Offline

#5 2006-01-16 17:34:06

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus wrote:

2.6.15-archck2 is released with fbsplash fixed, CK updates and 2.6.15.1 included.

Your PKGBUILD has basekernel=2.6.15 though.. Are we supposed to change that? (i.e basekernel=2.6.15.1)

Offline

#6 2006-01-16 17:38:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

rizzix wrote:

As for #3, I bet you are expected to download those files into your directory. =/

True - I suppose I'm nitpicking. OTOH, if the URLs are there for downloading, why not put them in the PKGBUILD?

Offline

#7 2006-01-16 17:45:46

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Well if that's the case, wouldn't this fully automate it?

source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$basekernel.tar.bz2 
  http://iphitus.loudas.com/arch/ck/2.6.15/patch-2.6.15-archck2.bz2 
  http://iphitus.loudas.com/arch/ck/pkgbuild/kernel26.install 
  http://iphitus.loudas.com/arch/ck/pkgbuild/config 
  /var/abs/kernels/kernel26/logo_linux_clut224.ppm 
)
source=(http://iphitus.loudas.com/arch/ck/mkinitramfs/mkinitramfs 
 http://iphitus.loudas.com/arch/ck/mkinitramfs/mkinitramfs.conf)

(Now only download the PKGBUILD tongue)

edit: nvm you can't download the install script =/ through source()
      and neither can you refer to a local file using full-path

Offline

#8 2006-01-16 20:34:32

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

rizzix wrote:

Well if that's the case, wouldn't this fully automate it?

source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$basekernel.tar.bz2 
  http://iphitus.loudas.com/arch/ck/2.6.15/patch-2.6.15-archck2.bz2 
  http://iphitus.loudas.com/arch/ck/pkgbuild/kernel26.install 
  http://iphitus.loudas.com/arch/ck/pkgbuild/config 
  /var/abs/kernels/kernel26/logo_linux_clut224.ppm 
)
source=(http://iphitus.loudas.com/arch/ck/mkinitramfs/mkinitramfs 
 http://iphitus.loudas.com/arch/ck/mkinitramfs/mkinitramfs.conf)

(Now only download the PKGBUILD tongue)

edit: nvm you can't download the install script =/ through source()
      and neither can you refer to a local file using full-path

No. it will be in community soon, and the config and other files will be distributed with it in the CVS.

No, basekernel isnt 2.6.15.1, that is included within ArchCK2

I make the initramfs in the install file as you worked out

iphitus

Offline

#9 2006-01-16 20:39:50

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

But what about the line tomk mentioned it

cp arch/i386/Makefile.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/i386/

rizzix said it's there but it's a single line without a CP, personally i started compiling 10 mns ago and i added the above line just in case

Thank you iphitus for all your work big_smile

Offline

#10 2006-01-16 20:48:31

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

apparently it isin't... mb  :oops:

Offline

#11 2006-01-16 22:25:44

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

I don't want to use initramfs, do I need to? ie. If I'm happy with how I've compiled my modules etc and don't want them placed in a ramdisk prior to everything else happening, can I just pretend this doesn't exist and continue on my way?

Offline

#12 2006-01-16 22:44:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Yup - as long as you compile your own, of course. The archck package will have initramfs turned on when it hits [community].

I'm up and running now on 2.6.15-archck2 with no initramfs. I'll probably try it out at some stage, but like you, I don't need it.

Offline

#13 2006-01-17 04:04:27

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Cam: Well, the community package will no longer let you have that. You need to use the ramdisk.

But really... its not that difficult.

The default ramdisk configuration will work for nearly everyone, so the only change is to add the initrd to lilo/grub. A one liner.

The install script automatically runs mkinitramfs for you, so for each new kernel or update, the ramdisk remains at the same path, and your config will still be compatible if you configured it -- no need to change it.

Really, you're just running from something that's a worthwhile change, and allows me to provide more capabilities in ArchCK. It also makes developers life much easier, and your kernel much smaller. You dont realise how many IDE drivers there are, that we are forced to include in an all in one kernel. A lot, and they're wasting your system memory and cache.

But hey, if you dont want initramfs, thats cool. You can always compile your own kernel, the ArchCK patchset itself is unchanged and will work initramfs or no initramfs.

iphitus

Offline

#14 2006-01-17 13:26:44

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

PKGBUILDs are up in the AUR CVS for the latest

http://cvs.archlinux.org/cgi-bin/viewcv … vsroot=AUR

And the packages should appear in community over the coming hours, give mirrors a day or two after that.

ATI drivers have also been updated and uploaded.

iphitus

Offline

#15 2006-01-17 15:16:07

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus,

in your PKGBUILD... at the verry bottom:

# Now generate a fallback init ramdisk
  # NOTE: This backup ramdisk will not work for cryptsetup/raid users, since
  #       we don't have their unique configuration at build-time!
  #touch $startdir/pkg/boot/initramfs26-archck-full.img
  #/sbin/mkinitramfs --skip-config --root-dir=$startdir/pkg full || return 1
  /usr/src/linux-2.6.15-archck/arch/i386/Makefile.cpu

wht's that last line supposed to mean?

Offline

#16 2006-01-17 15:41:07

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

I don't know the big differences between initrd and initramfs, since I use neither of them, but what's the big difference between those and would it be better if the stock archlinux kernel switches over to initramfs also?

Offline

#17 2006-01-17 18:14:41

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Amazing work, iph - nice one.  I knew you'd do me proud.  Can some give me some feedback on how gensplash/fbsplash goes with the initramfs - is performance identical to fbsplash WITHOUT an initramfs?  I guess it is because fbsplash uses a psuedo initramfs anyway wink

Basically I'd like to hear how great it works and whether the initscripts-gensplash pkg needs any changes smile

Offline

#18 2006-01-17 18:38:58

rizzix
Member
Registered: 2005-10-22
Posts: 55

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

the initramfs generated by splash_geninitramfs does not work well.. i used the one provided by iph, i.e mkinitramfs. it worked.

so far everything seems cool.

Offline

#19 2006-01-17 18:40:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

The wiki page on initrd includes details on how to mount and view/edit the contents of an initrd image. Can that be done with an initramfs image?

Offline

#20 2006-01-17 18:48:22

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus wrote:

PKGBUILDs are up in the AUR CVS for the latest

http://cvs.archlinux.org/cgi-bin/viewcv … vsroot=AUR

And the packages should appear in community over the coming hours, give mirrors a day or two after that.

ATI drivers have also been updated and uploaded.

iphitus

You should prefix non-standard variables e.g. basekernel with an underscore - it's the rules...

And with regard to the "wtf is this step for?" it was in the stock kernel config - if it's not there now then i think it's probably safe to drop it smile

Oh, and how the hell do you enable the logo AND fbsplash?

Offline

#21 2006-01-17 19:10:36

archy
Member
Registered: 2006-01-17
Posts: 13

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Is there a reason this has been setup to replace kernel26 when installed?  I refused to replace it and it seemed to install alright, however when I rebooted I got a kernel panic.  Is there something that prevents these two kernels from co-existing?

Offline

#22 2006-01-17 20:05:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

dibblethewrecker wrote:

You should prefix non-standard variables e.g. basekernel with an underscore - it's the rules...

basekernel is now used in the stock PKGBUILD, so I guess that makes it a standard variable. smile

dibblethewrecker wrote:

And with regard to the "wtf is this step for?" it was in the stock kernel config

Still is.

Offline

#23 2006-01-17 20:05:20

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Umm excuse me, but kernel26archck should not replace kernel26:

[proteus@localhost ~]$ sudo pacman -Syu
:: Synchronizing package databases...
:: testing is up to date
:: current is up to date
:: extra is up to date
:: community is up to date
 shadowhand               [################] 100%       5K    12.6K/s  00:00:00
 kdei                     [################] 100%       2K     7.2K/s  00:00:00
:: Replace kernel26 with kernel26archck from "community"? [Y/n] n

No thank you, I'm sorry to say I'm fine with the stock kernel. :?

Offline

#24 2006-01-17 20:12:08

NecroRomancist
Member
Registered: 2005-01-02
Posts: 53

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Is there a reason this has been setup to replace kernel26 when installed? I refused to replace it and it seemed to install alright, however when I rebooted I got a kernel panic. Is there something that prevents these two kernels from co-existing?

From what i could see the file mkinitramfs creates is the same as mkinitrd.To solve that i ran mkinitrd and did mv initrd26.img initrd26_arch.img and ran mkinitramfs and mv initrd26.img initrd26_archck.img.Changed and ran lilo and now it works.
One more thing archck is compiled with gcc 4.1 and so i can't compile the nvidia drivers  sad Can this please be fixed? thanks smile

Offline

#25 2006-01-17 20:38:48

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

awesome guys

I didn´t notice that replacement and said "yes" to replace the kernel26.
Now I can´t boot into stock kernel or archck kernel.

Is there any way to get this fixed?

I was the last year very happy with arch, but the latest changes were always fu***d up

mic

P.S.: sorry fo the hard words, but this is somehow very very crappy.

Offline

Board footer

Powered by FluxBB