LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-05-2010, 05:29 PM   #271
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16

Currently running LLS ...
Quote:
Originally Posted by linus72 View Post
which lls did you use?
6.3
Quote:
why didnt lls work, what did it stop on?
stopped on lacking of aufs.ko which was configured as a module though. Error disappeared after configuring squashfs as module.
 
Old 11-05-2010, 05:41 PM   #272
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
so, did the kernel you made make a livecd ??
 
Old 11-05-2010, 06:51 PM   #273
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
so, did the kernel you made make a livecd ??
I made a live-stick. But booting fails:
Code:
VFS: Cannot open root device "ram0" or unknown block(0,0)
Please append a correct "root=" boot option;
Kernel panic
 
Old 11-05-2010, 07:13 PM   #274
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Mmmm
never seen that error before...

but, eureka! I got the patches to work and have compiled a new 2.6.36 live kernel!
you know lq_asking, I use the MiniSC to test new kernels because it only takes like 20min to make the live media
http://multidistro.com/NFLUXNEW/SQ4/slack.html

however, your working from a ARCH system, so you must compile a kernel for it
here's what I did lq_asking

get the 2.6.36 kernel source
http://www.kernel.org/

get these aufs2 and squashfs-lzma patches
aufs2
http://cvs.pld-linux.org/cgi-bin/cvs...e=text%2Fplain
squashfs-lzma
http://cvs.pld-linux.org/cgi-bin/cvs...e=text%2Fplain

patch the kernel
if symlink "linux" to linux-2.6.36
cd linux
patch -p1 < ../kernel-aufs2.patch
patch -p1 < ../kernel-squashfs-lzma.patch

then, I used this config for mine
http://multidistro.com/Kernels/2.6.36/config
so, rename that .config and put it in the source then do make menuconfig
you know
it has aufs2/squashfs set as M
also, your LLS should be able to do aufs2/squashfs as either M or inbuilt to kernel
if in doubt use the LLS in the MiniSC

you need to make a PKGBUILD if you want to make the kernel source compiled into a installable pkg
is that what you want to do?
like kernel26-lqx?
yours could be kernel26-lq_asking
lol
and you can submit it to the AUR too
 
Old 11-05-2010, 07:47 PM   #275
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
Perhaps I should change all over to your slackware based versions ..
 
Old 11-05-2010, 07:57 PM   #276
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
lol
why?
I am making a new PKGBUILD and tarball for 2.6.36 above for AUR now
https://aur.archlinux.org/packages.php?ID=41875

so, it's going from 2.6.35.7-smp (slackware kernel source) to
2.6.36 vanilla kernel source
compiling it now using the latest nFlxuOS ARCH version

the slackware versions are nice huh?
you cant compile anything with the mini's though, you gotta use the big version
so, you can wait till morning for the new AUR pkg for 2.6.36?
 
Old 11-05-2010, 08:54 PM   #277
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
errr...
there's one "bug" with the new aufs2 I think (aufs2.1)
you know when using "changes=" persistent parameter you can give a path to wherever you want the persistent changes to be?
like "changes=/nFluxOS_AT11/"
if you use that parameter (saving to a folder on partition) on a fat32 usb it will rudely umount the changes folders due to fat32 not being posixvl compliant
anyway, if you use the slxsave.xfs created by persistent wizard everythings OK
even if the slxsave.xfs is on a fat32 usb
so, just dont save changes to a folder on fat32 usb, use the slxsave.xfs, or save to a folder on ext2/ext3/ext4/xfs, etc partition, like "changes=/mysave/" or "changes=/sda1/mychanges/"

this bug should be fixed soon....
 
Old 11-06-2010, 09:26 AM   #278
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
Code:
[root@archiso boot]# ls -l . /etc/mkinitcpio.d
.:
insgesamt 6968
drwxr-xr-x 2 root root      31 12. Jul 20:50 grub
drwxr-xr-x 2 root root      34  4. Jul 21:40 memtest86+
-rw-r--r-- 1 root root 2252875  6. Nov 14:33 System.map
-rw-r--r-- 1 root root 4877088  6. Nov 14:33 vmlinuz

/etc/mkinitcpio.d:
insgesamt 6
-rw-r--r-- 1 root root  834 11. Jul 12:02 example.preset
-rw-r--r-- 1 root root   47 21. Aug 00:18 kernel26.kver
-rw-r--r-- 1 arch users 493  6. Nov 14:40 kernel26-livecd.preset
-rw-r--r-- 1 root root  464 21. Aug 00:18 kernel26.preset
[root@archiso boot]# mkinitcpio -p kernel26
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.35-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.35-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS
[root@archiso boot]# ls -l /lib/modules
insgesamt 4
drwxr-xr-x 5 root root  440 25. Aug 17:11 2.6.35-ARCH
drwxr-xr-x 3 root root 4096  6. Nov 14:33 2.6.36-smp-live
[root@archiso boot]# ls -l
insgesamt 16532
drwxr-xr-x 2 root root      31 12. Jul 20:50 grub
-rw-r--r-- 1 root root 8185151  6. Nov 14:58 kernel26-fallback.img
-rw-r--r-- 1 root root 1605017  6. Nov 14:57 kernel26.img
drwxr-xr-x 2 root root      34  4. Jul 21:40 memtest86+
-rw-r--r-- 1 root root 2252875  6. Nov 14:33 System.map
-rw-r--r-- 1 root root 4877088  6. Nov 14:33 vmlinuz
I have directly built and installed the kernel successfully with your patches and config.

But - mkinitcpio ran through successfully only with a "-p kernel26"-argument.

But that argument seemingly refers to the wrong module-directory: 2.6.35-ARCH. So the generated *.img's cannot be correct.

I don't know how to get a correct kernel preset for creating the initrds.

Last edited by lq_asking; 11-06-2010 at 09:28 AM.
 
Old 11-06-2010, 09:39 AM   #279
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
uh it should have installed a kernel26-livecd

do "mkinitcpio -p kernel26-livecd"
 
Old 11-06-2010, 11:18 AM   #280
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
hey lq_asking
look what I just found
http://enialis.net/~jrd/salix/kernel...486-1cp-alpha/

should work with the lls found in the mini's or reg nFluxOS slackware

you could make a PKGBUILD for it for ARCH or maybe I will
or are you gonna switch to Slackware lol?
 
Old 11-06-2010, 04:30 PM   #281
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
Quote:
Originally Posted by linus72 View Post
uh it should have installed a kernel26-livecd

do "mkinitcpio -p kernel26-livecd"
Everything fails with different kernel26-presets or isn't correct (please see my previous post why).

Note: the kernel I'm booting is the ARCHLIVE 2.6.35-kernel. It uses the "2.6.35-ARCH"-modules branch. But I need modules from the "2.6.36-smp-live" -branch for creating the image. So the only thing that made sense for me (but I really don't know) was this:
Code:
[root@archiso boot]# mkinitcpio -g kernel26-livecd.img -k 2.6.36-smp-live
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating image 'kernel26-livecd.img'...SUCCESS
But of course a fallback-image is not created in this way.
 
Old 11-07-2010, 06:13 AM   #282
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Mmm..I dont know
why do you have other kernels installed?

anyway, in making a newer AUR pkg kernel26-livecd I made a pkg to test and you can install it or just use the config, etc
http://multidistro.com/Kernels/2.6.3...686.pkg.tar.xz

and it works good too
just do "pacman -U pkgname"
you know

also, look, SalixOS now has a Slackware live kernel and linux-live for it
http://enialis.net/~jrd/salix/kernel...486-1cp-alpha/

http://enialis.net/~jrd/salix/linux-live/

http://enialis.net/~jrd/salix/squashfs-tools/

I gotta finish the kernel26-livecd for submission to AUR
anyway, so are you gonna switch to Slackware or stay with ARCH?
 
Old 11-08-2010, 12:31 PM   #283
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
Quote:
Originally Posted by lq_asking View Post
Everything fails with different kernel26-presets or isn't correct (please see my previous post why).

Note: the kernel I'm booting is the ARCHLIVE 2.6.35-kernel. It uses the "2.6.35-ARCH"-modules branch. But I need modules from the "2.6.36-smp-live" -branch for creating the image.
Comment: I use the original Archiso-live 20100825 Release and always boot its original kernel. It uses his kernel-modules branch '/lib/modules/2.6.35-ARCH'.
Quote:
So the only thing that made sense for me (but I really don't know) was this:
Code:
[root@archiso boot]# mkinitcpio -g kernel26-livecd.img -k 2.6.36-smp-live
...
:: Generating image 'kernel26-livecd.img'...SUCCESS
But of course a fallback-image is not created in this way.
It is this command I was looking for for the fallback-image:
Quote:
Code:
[root@archiso boot]# mkinitcpio -g kernel26-livecd.img -k 2.6.36-smp-live -S autodetect
But I don't follow up that matter any more without a working kernel26.preset.
 
Old 11-08-2010, 01:31 PM   #284
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
do you have a kernel26-livecd.preset & kernel26-livecd.kver in /etc/mkinitcpio.d ??

what are you gonna do?
does it work or not?
 
Old 11-18-2010, 02:53 AM   #285
lq_asking
Member
 
Registered: May 2010
Location: Berlin
Posts: 82

Rep: Reputation: 16
@linus72
I looked for why I didn't succeed on remastering a LiveCD with LLS 6.3.
Quote:
Originally Posted by linus72 View Post
lol
why?
I am making a new PKGBUILD and tarball for 2.6.36 above for AUR now
https://aur.archlinux.org/packages.php?ID=41875

so, it's going from 2.6.35.7-smp (slackware kernel source) to
2.6.36 vanilla kernel source
compiling it now using the latest nFlxuOS ARCH version
... I was remastering in an ArchIso-Live environment, using Godane's ARCHISO-LIVE 20100825, but not using his Archiso-Live build scripts.

I found this:

https://github.com/godane/archiso-live/

Quote:
You should have
mkinitcpio installed anyway but my mkinitcpio is custom made for Archiso-Live.
You will have to do a force install of sqlzma package from my local repo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux-oriented Intro Programming book? Munchkinguy Programming 8 10-16-2007 02:56 AM
LXer: Announcing Foresight Linux 0.9.9 LXer Syndicated Linux News 0 12-18-2006 02:21 AM
LXer: Announcing Foresight Linux 0.9.8.3 LXer Syndicated Linux News 0 10-30-2006 07:21 AM
LXer: Mobile audio editing powered by Linux, thanks to Trinity DAW LXer Syndicated Linux News 0 07-12-2006 12:03 AM
Announcing Slackware Linux 9.0! jeremy Slackware 1 03-20-2003 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration