You are not logged in.

#151 2006-01-24 23:23:55

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

AndyRTR wrote:
cat /boot/grub/menu.lst
...
# (1) ArchLinux CK
title  ArchLinux 32Bit ArchCK [/boot/vmlinuz26archck]
root   (hd0,1)
kernel /boot/vmlinuz26archck root=/dev/hda2 video=vesafb:ywrap,mtrr,1280x1024-32@70 splash=verbose,theme:darch console=tty1 ro
initrd = /boot/initramfs26.img

Are you sure you're supposed to have that = after initrd in your grub config?
I think it's

initrd /boot/initramfs26.img

Offline

#152 2006-01-24 23:52:59

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Removing the = makes no difference :-(

Offline

#153 2006-01-25 00:01:20

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

andy RTR;

I note your grub entry and suggest you look at the kernel install file for the grub detail which uses;

initrd=/boot/initramfs26-2.6.15-archck.img

Have a good day!


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#154 2006-01-25 09:36:07

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

in the suspend2 HOWTO [1] they say:

Initrd/Initramfs's with Suspend2

Using an initrd with Suspend2 is possible. To use this, you MUST edit your linuxrc (or init) script to contain the line
echo > /proc/suspend2/do_resumeBEFORE the script mounts your filesystem. If the line is missing, your system will not resume. If the line comes after mounting file systems, you will most likely suffer from filesystem corruption. You have been warned.

I've looked inside the Initramfs (initrd-${kernel_version}.img) mkinitramfs kernel_version=${kernel_version} created. And can't find that particular line inside the init.  Why is that?! ... the HOWTO warns us that we MUST add it!

To something like this:insmod /lib/jbd.ko > /dev/null 2>&1
insmod /lib/ext3.ko > /dev/null 2>&1
insmod /lib/jfs.ko > /dev/null 2>&1
insmod /lib/reiserfs.ko > /dev/null 2>&1
insmod /lib/xfs.ko > /dev/null 2>&1
echo > /proc/suspend2/do_resume
ROOT_DEV=/dev/root
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
mount -t `/bin/fsck -NT $ROOT_DEV | awk -Ffsck. '{print $2}' | awk '{print $1}'` -n -o ro $ROOT_DEV /new_root
pivot_root /new_root /new_root/initrd
for x in `cat /proc/cmdline`; do
  case "${x}" in
    [0123456Ss])
      init_arg=${x}
    ;;
  esac
done
cd /new_root
exec /bin/busybox chroot . /bin/sh <<- EOF
exec /sbin/init ${init_arg}
EOF
echo "Initial RAMDISK Loading Completed..."
But then again, wouldn't the Initramfs (allways) overwrite the "resume2=swap:/dev/hdxY noresume2" bootparam?
And one would have to resort to having two Initramfs & two boot options in grub (one to resome, one to boot normally)?


:!::?: *Hum*, Is *this what they said about the Initrd/Initramfs just an alternative to the bootparm's, ergo it not beeing present in the init to start with :?::!:

---
1 - http://www.suspend2.net/HOWTO-2.html#ss2.4

Offline

#155 2006-01-25 09:52:05

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

lilsirecho wrote:

andy RTR;

I note your grub entry and suggest you look at the kernel install file for the grub detail which uses;

initrd=/boot/initramfs26-2.6.15-archck.img

Have a good day!

Why not use the small one that I create with "mkinitramfs auto"  :?: I've only marked some drivers for SATA, SCSI, CDRom to remove.

Offline

#156 2006-01-25 10:25:04

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

danalien wrote:

I've looked inside the Initramfs (initrd-${kernel_version}.img) mkinitramfs kernel_version=${kernel_version} created. And can't find that particular line inside the init.  Why is that?! ... the HOWTO warns us that we MUST add it!

Firstly - calm down. Take a deep breath, and count to 10. smile

Secondly - iphitus has already fixed this, as you would know if you had read the rest of this thread. Get the latest version of mkinitramfs, and build a new image - problem solved.

Offline

#157 2006-01-25 14:04:11

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

I fixed that a week ago. But some mirrors just suck. smile

Offline

#158 2006-01-25 17:25:20

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

tomk wrote:

Firstly - calm down. Take a deep breath, and count to 10. smile

...hey, I wasn't 'hysterical', just a tad confused. :-P

tomk wrote:

... as you would know if you had read the rest of this thread.

... cons with forums, ye' need weed thru every last page before ye' find
the answer to ye' one-tiny-questien  :idea: subtly implying tha   wiki wouldn't be a bad think to start :idea:

iphitus wrote:

I fixed that a week ago. But some mirrors just suck. smile

well, I use the one you linked to in the very 1st post. [1]

isn't that your repos? :-)

---
1 - http://iphitus.loudas.com/arch/ck/mkinitramfs/

Offline

#159 2006-01-25 19:33:49

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

http://iphitus.loudas.com/arch/ck/mkinitramfs/PKGBUILD wrote:

pkgrel=2

latest one is 3

grab it from here and kernel from here

If you dont waste your time compiling them, then enable community in ur pacman.conf and then pacman -Sy kernel26archck mkinitramfs

Offline

#160 2006-01-25 19:42:47

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

I agree about a wiki page for archck it would be better for users to have one page of information rather than 12+ to sift through,,,,,

One of the down points of forum serach is it will find the subject but not tell you page(s) its in .....

my2c


Mr Green

Offline

#161 2006-01-25 21:13:46

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

OTOH, I don't think installing and using an archck kernel is a trivial matter, and I always read every scrap of relevant information, even if it's a little inconvenient to find. At the very least, I think anyone on archck should be using the community repo as a matter of course, and doing pacman -Syu at least once a day - that would have  avoided these 'issues' caused by old versions of mkinitramfs, anyway.

Offline

#162 2006-01-25 23:17:35

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Ok, I updated the first post with a collection of information from these threads.

iphitus

Offline

#163 2006-01-26 00:27:36

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 379

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

AndyRTR wrote:
lilsirecho wrote:

andy RTR;

I note your grub entry and suggest you look at the kernel install file for the grub detail which uses;

initrd=/boot/initramfs26-2.6.15-archck.img

Have a good day!

Why not use the small one that I create with "mkinitramfs auto"  :?: I've only marked some drivers for SATA, SCSI, CDRom to remove.

Scheissegal. The name of the img doesn't matter, you just will have to care running

mkinitramfs auto

each time you upgrade your kernel. Except of that, it doesn't matter what you put there.


All your base are belong to us

Offline

#164 2006-01-26 01:10:00

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

_Gandalf_ wrote:

If you dont waste your time compiling them, then enable community in ur pacman.conf and then pacman -Sy kernel26archck mkinitramfs

thanks, but I'd like to :-)  since I'd like to have stuff optimized (-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe) with gcc-3.4.3 instead of the Arch default.  ...heey, I've even done a redundant compilation of gcc-3.4.3 (that is, compiled gcc-3.4.3 with gcc-3.4.3) and then recompiled my base in the sake of l337 0p7!//!z4t!0|| smile

PS. not that that umpft of a milisecond matters in the long run, but because I'm g33ky enough to want to do stuff like *this big_smile

Offline

#165 2006-01-26 01:31:51

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

danalien wrote:
_Gandalf_ wrote:

If you dont waste your time compiling them, then enable community in ur pacman.conf and then pacman -Sy kernel26archck mkinitramfs

thanks, but I'd like to :-)  since I'd like to have stuff optimized (-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe) with gcc-3.4.3 instead of the Arch default.  ...heey, I've even done a redundant compilation of gcc-3.4.3 (that is, compiled gcc-3.4.3 with gcc-3.4.3) and then recompiled my base in the sake of l337 0p7!//!z4t!0|| smile

PS. not that that umpft of a milisecond matters in the long run, but because I'm g33ky enough to want to do stuff like *this big_smile

Sorry, but you are actually wasting your time. The kernel negates all cflags as many cflags can break a kernel build. The only flags that will work are the ones available in the options. If you want to compile the kernel for your processor, change the processor settings in the .config

As for mkinitramfs, have a fun time optimising that, its a shell script.

iphitus

Offline

#166 2006-01-26 01:38:32

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Mr Green wrote:

One of the down points of forum serach is it will find the subject but not tell you page(s) its in .....

Yeah, there is smile

On the search-page [1], to the lefty-downy side, there's an option "Display results as:" ... choose Posts instead of Topics, and it'll spew Posts that best match your search criteria, instead.


---
1 - http://bbs.archlinux.org/search.php

Offline

#167 2006-01-26 02:32:19

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus wrote:

Sorry, but you are actually wasting your time. The kernel negates all cflags as many cflags can break a kernel build. The only flags that will work are the ones available in the options. If you want to compile the kernel for your processor, change the processor settings in the .config

You're quite right, it does that.  But... *wait for it*... but you can bypass it and tweak your optimization :-)

In menuconfig I've chosen 'Athlon/Duron/K7' as my CPU, and then in "arch/i386/Makefile.cpu" edited the "cflags-$(CONFIG_MK7)"-line to

cflags-$(CONFIG_MK7)            += $(call cc-option,-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe, $(align)-functions=4)

And, sure you shouldn't Over-Optimize your kernel. But as I see it, there's Exotic-Optimization [1] which you use with care! ... and then there's Perfectly-Reasonable-Optimization [2] which you should enable if you have the hardware to take advantage of.

That's btw what sort of PR-Opt I did with my kernel, as my Athlon-XP supports all of those modes.

(if I've OverKill'd it a bit, it might be that I used -O3 - but since it only turns on '-finline-functions, -fweb and -frename-registers' over -O2 in gcc-3.4.3. It's not too too E-Opt i my mind smile)

iphitus wrote:

As for mkinitramfs, have a fun time optimising that, its a shell script.

*hehe*
... I could try to make it a few lines shorter & what-not smile

----
1 - eg: -fforce-addr -maccumulate-outgoing-args -fprefetch-loop-arrays -momit-leaf-frame-pointer -fno-PIC ... etc
2 - eg: -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -pipe ...

Offline

#168 2006-01-26 02:57:12

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus wrote:

Ok, I updated the first post with a collection of information from these threads.

maybe add the 'klibc' PKGBUILD too? As it's not in the archlinux cvs  of AUR-root, and newbie-archck's might not know where it' is to start with smile

Offline

#169 2006-01-26 10:38:44

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

danalien wrote:
iphitus wrote:

Ok, I updated the first post with a collection of information from these threads.

maybe add the 'klibc' PKGBUILD too? As it's not in the archlinux cvs  of AUR-root, and newbie-archck's might not know where it' is to start with smile

Its not needed - yet -.


danalien. Sigh smile

Offline

#170 2006-01-26 11:45:59

zolookas
Member
Registered: 2005-06-03
Posts: 44

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

danalien wrote:
_Gandalf_ wrote:

If you dont waste your time compiling them, then enable community in ur pacman.conf and then pacman -Sy kernel26archck mkinitramfs

thanks, but I'd like to :-)  since I'd like to have stuff optimized (-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe) with gcc-3.4.3 instead of the Arch default.  ...heey, I've even done a redundant compilation of gcc-3.4.3 (that is, compiled gcc-3.4.3 with gcc-3.4.3) and then recompiled my base in the sake of l337 0p7!//!z4t!0|| smile

PS. not that that umpft of a milisecond matters in the long run, but because I'm g33ky enough to want to do stuff like *this big_smile

If you want to compile everything yourself maybe you should try gentoo  wink

Offline

#171 2006-01-26 12:42:33

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

iphitus wrote:
danalien wrote:
iphitus wrote:

Ok, I updated the first post with a collection of information from these threads.

maybe add the 'klibc' PKGBUILD too? As it's not in the archlinux cvs  of AUR-root, and newbie-archck's might not know where it' is to start with smile

Its not needed - yet -.

I find that comment odd.

As,

pkgname=mkinitramfs
pkgver=1.1
pkgrel=3
depends=('bash' 'mkinitrd' 'gensplashutils')

and,

pkgname=gensplashutils
pkgver=1.1.9.10
pkgrel=2
depends=('libjpeg' 'libpng' 'freetype2' 'kbd' 'miscsplashutils')
makedepends=('klibc')

of all of the deps I hilighted, klibc was the only one that took a bit of digging to find a PKGBUILD for smile

zolookas wrote:

If you want to compile everything yourself maybe you should try gentoo  wink

you're not the first one to hint that smile - But I like how arch is setup, it's simple and straight forward. And I promised myself, that the next step would be to go LinuxFromScratch smile

Offline

#172 2006-01-26 15:41:29

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

klibc is hardly hard to find - gensplash is my project and klibc is in my personal repo, I'd add it to [community] if I had access ATM, tho smile

Offline

#173 2006-01-26 18:38:21

danalien
Member
From: Earth
Registered: 2006-01-24
Posts: 18

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

dibblethewrecker wrote:

klibc is hardly hard to find

did I say 'hard? :-) I recall 'took a bit of digging to find'

dibblethewrecker wrote:

gensplash is my project and klibc is in my personal repo,

mmm ... btw, version 1.1.1 is out tongue

Offline

#174 2006-01-26 21:06:41

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

Hm... probably not show-stopping, but:

$ pacman -Si kernel26archck
Repository        : community
Name              : kernel26archck
Version           : 2.6.15.archck2-4
...
Provides          : kernel26 

Is there a reason the community package is providing kernel26?  I suppose it could be useful for some stuff that builds kernel modules at install-time, but anything pre-packaged to work with kernel26 will have the wrong paths for the archck kernel, wouldn't they?

Offline

#175 2006-01-26 21:33:29

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

Re: 2.6.15-archck3: Community PKG + PKGBUILDs

it provides it, so that people who dont want kernel26, and only install kernel26archck, dont have problems with things that depend on kernel26.

Offline

Board footer

Powered by FluxBB