Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Building zen from seed issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Tue Feb 22, 2011 8:16 am    Post subject: [solved] Building zen from seed issues Reply with quote

Hello all. I'm unsuccessfully attempting some kernel tweaking. I've already successfully updgraded my kernel to 2.6.37 and applied a bfs and bfq patch. I've heard great reviews on the zen kernel, and am trying the 2.6.37.1 based on a kernel seed by Pappy. I followed both his guides, at http://kernel-seeds.org/settings-01.html and http://kernel-seeds.org/working.html and can't get it to work. When I select the kernel to boot, it throws out the error:

Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)


I've google searched thorougly (and have come to the conclusion that this is the best place to get answers) and have spent the better part of five days trying to get this to work, with no success. Here are some of my specs, please let me know what else I can provide to assist in troubleshooting.

Non working config
http://pastebin.com/bgaRY9pv

Code:
lspci -n
output
http://pastebin.com/bjCbR8pY

Code:
cat /proc/cpuinfo

http://pastebin.com/YKV7xdd7

Code:
sudo lspci -v | grep Kernel
off my current working kernel
http://pastebin.com/vYPG30D6

Thanks in advance.


Last edited by PonsAsinorem on Fri Feb 25, 2011 2:59 am; edited 5 times in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Feb 22, 2011 8:27 am    Post subject: Reply with quote

you should configure CONFIG_SATA_AHCI to be a built-in
currently it is configured as a module

modules are loaded from the file system, which of course cannot be read if the disk controller is not operational

so unless you are running an initramfs which includes these modules, ahci will not be available at boot time.

so change that, rebuild the kernel, move the new kernel over to /boot, updated grub.conf to point at the new kernel if you have changed the file name, and you should be good to go

..or, at least, that will get you past this error, maybe on to new errors!
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Tue Feb 22, 2011 9:46 am    Post subject: Reply with quote

cach0rr0 wrote:
you should configure CONFIG_SATA_AHCI to be a built-in
currently it is configured as a module

modules are loaded from the file system, which of course cannot be read if the disk controller is not operational

so unless you are running an initramfs which includes these modules, ahci will not be available at boot time.

so change that, rebuild the kernel, move the new kernel over to /boot, updated grub.conf to point at the new kernel if you have changed the file name, and you should be good to go

..or, at least, that will get you past this error, maybe on to new errors!


Got me past the VFS error. Thanks a bunch. Onto new errors it is.

Now it gives me:

Code:
EXT3-fs (sda4):  error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda4):  error: couldn't mount because of unsupported optional features (240)

init: ureadahead main process (975) terminated with status 5
udevd[1003]: failed to create queue file: No such file or directory

udevd[1003]: error creating queue file

init: udev main process (1003) terminated with status 1
init: udev main process, ended respawning
init: udevmonitor main process (1006) terminated with status 2
udevadm[1473]: error sending message: connection refused


Then it goes to another screen saying:

Code:
The disk drive for / is not ready or not present


at which point I can get into a maintenance shell. I'm assuming the filesystem errors stem from these option I turned on for maximum compatibility (or so I had hoped). Kind of odd, though, since my system doesn't have any ext2 or 3 partitions, it's ext4. I had them on for my android phone.

CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y

I'll try turning off the security labels and POSIX ACLs for ext2,3,4 and reiser and see what happens.

On a side and very minor note, how come when I compile the kernel, it always puts a + at the end? It didn't do that with my non-zen kernel.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Feb 22, 2011 10:07 am    Post subject: Reply with quote

what's your fstab look like?
possible ext4 isn't a built-in, and that your root fs is ext4? whatever fs type your root file system is, need to have it as a built-in and not a module

contents of /etc/fstab and output of fdisk -l should prove quite useful

far as the + sign at the end of the kernel name, that's a semi-recent zen thing (past 6 months?). I don't remember the explanation for the life of me, it's buried somewhere within one of the old zen-kernel threads, but it's purely cosmetic for whatever that's worth.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Tue Feb 22, 2011 10:21 am    Post subject: Reply with quote

cach0rr0 wrote:
what's your fstab look like?
possible ext4 isn't a built-in, and that your root fs is ext4? whatever fs type your root file system is, need to have it as a built-in and not a module

contents of /etc/fstab and output of fdisk -l should prove quite useful

far as the + sign at the end of the kernel name, that's a semi-recent zen thing (past 6 months?). I don't remember the explanation for the life of me, it's buried somewhere within one of the old zen-kernel threads, but it's purely cosmetic for whatever that's worth.

My partition is ext4, and I have it enabled in my config.

CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y

$ cat /etc/fstab
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda4 during installation
# Commented out by Dropbox
# UUID=6831194d-192e-46a0-90a2-7c8585e4a1a4 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda3 during installation
UUID=11697620-5889-4623-b10c-cdbc65f3102c none            swap    sw              0       0
UUID=6831194d-192e-46a0-90a2-7c8585e4a1a4 / ext4 errors=remount-ro,user_xattr 0 1

and

$ sudo fdisk -l
Code:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
4 heads, 44 sectors/track, 2220011 cylinders
Units = cylinders of 176 * 512 = 90112 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x31c655aa

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              12      116376    10240000   1c  Hidden W95 FAT32 (LBA)
/dev/sda2   *      116376     1226380    97680384    7  HPFS/NTFS
/dev/sda3         1226380     1340021    10000384   82  Linux swap / Solaris
/dev/sda4         1340021     2220009    77438976   83  Linux
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Tue Feb 22, 2011 10:56 am    Post subject: Reply with quote

PonsAsinorem wrote:

CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT2_FS_XIP=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y

I'll try turning off the security labels and POSIX ACLs for ext2,3,4 and reiser and see what happens.


Alright, tried turning that extra stuff off and it's still a no-go. Back to google for the time being

File System part of config
http://pastebin.com/CPn2n09y
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54330
Location: 56N 3W

PostPosted: Tue Feb 22, 2011 6:31 pm    Post subject: Reply with quote

PonsAsinorem,

Code:
EXT3-fs (sda4):  error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda4):  error: couldn't mount because of unsupported optional features (240)

Hints that your fs is actually EXT4. You have ext4 built in so its something more subtle than that.

Its not related to /etc/fstab as that can't be read until root is mounted - and its clearly not go that far.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Wed Feb 23, 2011 1:57 am    Post subject: Reply with quote

Progress is being made, slowly but surely. I added
Code:
rootfstype=ext4

into the kernel command line, getting rid of the ext2/3 fs error, but the:

Code:
init: ureadahead main process (975) terminated with status 5
udevd[1003]: failed to create queue file: No such file or directory

udevd[1003]: error creating queue file

init: udev main process (1003) terminated with status 1
init: udev main process, ended respawning
init: udevmonitor main process (1006) terminated with status 2
udevadm[1473]: error sending message: connection refused


still remains.



Edit: Per googling, I threw in
Code:
dev /dev tmpfs rw 0 0
at the very end of /etc/fstab which took away the previous errors, and gave me a few different ones.

Now I'm getting
Code:
init: ureadahead main process (976) terminated with status 5
init: ureadahead-other main process (907) terminated with status 4
then it goes to the splash screen, then

*STARTDISTCC is set to false in /etc/default/distcc
*/usr/bin/distccd not starting
speech-dispatcher disabled: edit /etc/default/speech-dispatcher
*Starting the Winbind daemon winbind OK
*Starting bluetooth OK
*PulseAudio configured for per-user sessions
saned disabled: edit /etc/default/saned
*Enabling additional executable binary formats binfmt-support OK
*Checking battery state... OK

At this point it hangs. But, I can get into the recovery kernel shell, or fail-safe graphic mode (possibly a gpu/video driver?). Also, I thought it odd that it's starting bluetooth, since (not having bluetooth on my laptop) I did not add it to the kernel.

EDIT Apparently status 4/5 is normal

Searching some more....


Solved. Missing proper gpu drivers. Thanks cach0rr0 and NeddySeagoon for pointing me in the right direction.


Last edited by PonsAsinorem on Wed Feb 23, 2011 7:18 am; edited 1 time in total
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Wed Feb 23, 2011 7:17 am    Post subject: Reply with quote

Sorry I missed things. Are you up and running yet?

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Wed Feb 23, 2011 7:34 am    Post subject: Reply with quote

pappy_mcfae wrote:
Sorry I missed things. Are you up and running yet?

Cheers,
Pappy


For the most part. I can get into the actual system now, which is what I started this thread for. Just having a few graphic problems. It disabled my current graphic driver, and when I try to remove, reinstall, switch, etc the proprietary drivers, it gives me the error: SystemError: installArchives() failed

I can obviously tell it doesn't work. I lost the smooth animations and it won't let me re enable them.

Also, it hangs on shutdown and I have to do a hard power down.

Edit: I'm getting there, I think. Tried using synaptic package manner and it gave me the error:
E: nvidia-173: subprocess installed post-installation script returned error exit status 10

Google will find an answer, if someone here doesn't beat me to it.

Edit Edit: While taking a break while my new kernel compiles to try and fix video, I apparently don't have sound. Hmm. Makes watching movies boring. And wireless doesn't show up. Add wireless to the list. Apparently getting it booted was the easy task.


Last edited by PonsAsinorem on Wed Feb 23, 2011 8:27 am; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Feb 23, 2011 8:22 am    Post subject: Reply with quote

can you post the output of emerge --info ?

not sure what sort of system this is, but it certainly does not look like Gentoo.

-fstab does not at all resemble anything gentoo shows as a default, nor in its docs (the gentoo default fstab and docs do not use UUID's, though it can, and by default the gentoo fstab has shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 )
-the paths (e.g. /etc/default ) are not something gentoo uses
-synaptic is not a package manager for gentoo
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Wed Feb 23, 2011 8:33 am    Post subject: Reply with quote

cach0rr0 wrote:
not sure what sort of system this is, but it certainly does not look like Gentoo.


My bad. Probably should have mentioned I'm running Linux Mint 10.10. Kind of forgot which forum I was in since I just had the this thread bookmarked. Just that this forum is the only one that I could find detailed help with Pappy's kernel seeds. FWIW, you've helped me troubleshoot into booting up at least.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Wed Feb 23, 2011 6:51 pm    Post subject: Reply with quote

I am glad I could be of help, even to non-Gentoo users...even if I wasn't really of help.

As far as your kernel, I'll take a look when I'm done checking my rather full email box.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Wed Feb 23, 2011 7:00 pm    Post subject: Reply with quote

pappy_mcfae wrote:
I am glad I could be of help, even to non-Gentoo users...even if I wasn't really of help.

As far as your kernel, I'll take a look when I'm done checking my rather full email box.

Cheers,
Pappy


You were of help, even if not directly on getting it booted. After all, it was your kernel seed that got me started tinkering, and your site was invaluable. But you can't cover every base on the site, not without it being ridiculously huge.

Current config
http://pastebin.com/rNNUyHyX

It now boots, but [strike]I can't get the proprietary graphic drivers installed[/strike], the sound doesn't work, [strike]and neither does wireless (wifi isn't too much of an issue since my connection is wired, but just for future reference)[/strike]. The only two issues remaining (that I'm aware of, at least, lol). The graphic driver error might have been because they were already installed, but for a different kernel. Going to remove them completely, then boot up the zen kernel and try to reinstall the driver.

Edit: Just sound doesn't work.


Last edited by PonsAsinorem on Thu Feb 24, 2011 8:34 am; edited 2 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54330
Location: 56N 3W

PostPosted: Wed Feb 23, 2011 8:46 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.

As its not a Gentoo issue.

Unsupported Software does not mean we won't help - its to prenver other readers looking for help thinking its a solution to a Gentoo issue.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Wed Feb 23, 2011 9:17 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Moved from Kernel & Hardware to Unsupported Software.

As its not a Gentoo issue.

Unsupported Software does not mean we won't help - its to prenver other readers looking for help thinking its a solution to a Gentoo issue.


Appreciate it, sorry for the confusion.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Feb 23, 2011 9:24 pm    Post subject: Reply with quote

PonsAsinorem wrote:
cach0rr0 wrote:
not sure what sort of system this is, but it certainly does not look like Gentoo.


My bad. Probably should have mentioned I'm running Linux Mint 10.10. Kind of forgot which forum I was in since I just had the this thread bookmarked. Just that this forum is the only one that I could find detailed help with Pappy's kernel seeds. FWIW, you've helped me troubleshoot into booting up at least.


no worries, i just started piecing things together like "what the hell? what has he done to his gentoo system? ive never seen this beforeOH, ok, it's not gentoo"

the kernel piece of this is about the only thing that's going to be distro-agnostic.The distros like Mint and Ubuntu tend to be so blackboxed/customized/whateveryouwanttocallit, they end up having their own way of doing things. Fortunately, there are plenty of folks here who tinker with multiple distros (unfortunately, I'm not one of them! well, not ubuntu/mint anyway, gentoo/arch/centos, sure)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum