Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 3.0.6 won't boot on a Soekris Net4801 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Tue Nov 15, 2011 7:58 pm    Post subject: kernel 3.0.6 won't boot on a Soekris Net4801 [SOLVED] Reply with quote

Hi,

Fresh install, got the following during boot:
Code:

[    7.583935] enabling scx200 high-res timer (1 MHz +0 ppm)
[    7.700805] usbcore: registered new interface driver usbhid
[    7.767659] usbhid: USB HID core driver
[    7.821970] Netfilter messages via NETLINK v0.30.
[    7.879032] nf_conntrack version 0.5.0 (3900 buckets, 15600 max)
[    7.959375] ctnetlink v0.93: registering with nfnetlink.
[    8.035430] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.100189] TCP cubic registered
[    8.138941] Initializing XFRM netlink socket
[    8.206311] NET: Registered protocol family 10
[    8.293965] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.360353] IPv6 over IPv4 tunneling driver
[    8.427333] NET: Registered protocol family 17
[    8.481235] Registering the dns_resolver key type
[    8.545774] registered taskstats version 1
[    8.598092]   Magic number: 3:963:750
[    8.642174] ata_link link1: hash matches
[    8.689248]  link1: hash matches
[    8.728074] tty ttyS1: hash matches
[    8.772590] md: Waiting for all devices to be available before autodetect
[    8.854055] md: If you don't use raid, use raid=noautodetect
[    8.928285] md: Autodetecting RAID arrays.
[    8.977519] md: Scanned 0 and added 0 devices.
[    9.030868] md: autorun ...
[    9.064371] md: ... autorun DONE.
[    9.108319] EXT3-fs (sda3): error: couldn't mount because of unsupported optional features (240)
[    9.215356] EXT2-fs (sda3): error: couldn't mount because of unsupported optional features (240)
[    9.378443] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    9.470460] VFS: Mounted root (ext4 filesystem) readonly on device 8:3.
[    9.550188] Freeing unused kernel memory: 396k freed
[    9.615951] Write protecting the kernel text: 6180k
[    9.675041] Write protecting the kernel read-only data: 1940k
[    9.784725] init used greatest stack depth: 6244 bytes left
[    9.851732] Kernel panic - not syncing: Attempted to kill init!
[    9.922815] Pid: 1, comm: init Not tainted 3.0.6-gentoo #5
[    9.988558] Call Trace:
[   10.018070]  [<c15ff47a>] ? printk+0x18/0x1a
[   10.069313]  [<c15ff377>] panic+0x57/0x142
[   10.118490]  [<c102e25c>] do_exit+0x71c/0x720
[   10.170835]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.225287]  [<c102e44d>] do_group_exit+0x2d/0x70
[   10.281756]  [<c103b164>] get_signal_to_deliver+0x1b4/0x400
[   10.348618]  [<c10b476f>] ? __do_fault+0x2ef/0x3e0
[   10.406152]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.460583]  [<c1002078>] do_signal+0x68/0x890
[   10.513936]  [<c1002fb6>] ? do_invalid_op+0x86/0xa0
[   10.572502]  [<c160128e>] ? work_notifysig+0x13/0x25
[   10.632069]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.686435]  [<c1002a7d>] do_notify_resume+0x4d/0x60
[   10.746038]  [<c160128e>] work_notifysig+0x13/0x25
[   10.803533]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.857952]  [<c1600073>] ? schedule_timeout+0xd3/0x1f0
[   11.157796] Clocksource tsc unstable (delta = -133614967 ns)
[   11.365732] ohci_hcd 0000:00:13.0: auto-stop root hub


Ext2/3/4 are enabled in the kernel, I've been searching for a while now why kernel doesn't sync...

Any idea is much appreciated.

Thank you.
_________________
Powered by Gentoo Linux since 2003


Last edited by mamac on Tue Nov 22, 2011 10:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Nov 15, 2011 11:06 pm    Post subject: Reply with quote

try recompiling kernel with menuconfig edited to:
Quote:
File systems --->
< > Second extended fs support
< > Ext3 journalling file system support
<*> The Extended 4 (ext4) filesystem
[*] Use ext4 for ext2/ext3 file systems (NEW)
[*] Ext4 extended attributes (NEW)
[ ] Ext4 POSIX Access Control Lists (NEW)
[ ] Ext4 Security Labels (NEW)
[ ] EXT4 debugging support (NEW)
for additional measure add
Code:
rootfstype=ext4
to the kernel line in grub.conf
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Wed Nov 16, 2011 6:37 am    Post subject: Reply with quote

Thanks for quick answer.

I got rid of ext error messages but still kernel panic:
Code:


[    7.159311] scx200_wdt: timer margin 60 seconds
[    7.227347] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
[    7.332646] cpuidle: using governor ladder
[    7.382398] cpuidle: using governor menu
[    7.429514] EFI Variables Facility v0.08 2004-May-17
[    7.489176] enabling scx200 high-res timer (1 MHz +0 ppm)
[    7.606438] usbcore: registered new interface driver usbhid
[    7.673303] usbhid: USB HID core driver
[    7.727529] Netfilter messages via NETLINK v0.30.
[    7.784598] nf_conntrack version 0.5.0 (3903 buckets, 15612 max)
[    7.865052] ctnetlink v0.93: registering with nfnetlink.
[    7.941389] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.006208] TCP cubic registered
[    8.044998] Initializing XFRM netlink socket
[    8.112584] NET: Registered protocol family 10
[    8.200385] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.266647] IPv6 over IPv4 tunneling driver
[    8.333691] NET: Registered protocol family 17
[    8.387461] Registering the dns_resolver key type
[    8.451702] registered taskstats version 1
[    8.504089]   Magic number: 3:4:572
[    8.549156] md: Waiting for all devices to be available before autodetect
[    8.630579] md: If you don't use raid, use raid=noautodetect
[    8.704992] md: Autodetecting RAID arrays.
[    8.754246] md: Scanned 0 and added 0 devices.
[    8.807559] md: autorun ...
[    8.841047] md: ... autorun DONE.
[    8.939764] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    9.031813] VFS: Mounted root (ext4 filesystem) readonly on device 8:3.
[    9.111721] Freeing unused kernel memory: 396k freed
[    9.177507] Write protecting the kernel text: 6016k
[    9.236674] Write protecting the kernel read-only data: 1908k
[    9.347102] init used greatest stack depth: 6244 bytes left
[    9.414178] Kernel panic - not syncing: Attempted to kill init!
[    9.485276] Pid: 1, comm: init Not tainted 3.0.6-gentoo #6
[    9.551036] Call Trace:
[    9.580532]  [<c15d6f5a>] ? printk+0x18/0x1a
[    9.631823]  [<c15d6e57>] panic+0x57/0x142
[    9.681003]  [<c102e25c>] do_exit+0x71c/0x720
[    9.733350]  [<c1002f30>] ? do_bounds+0x80/0x80
[    9.787824]  [<c102e44d>] do_group_exit+0x2d/0x70
[    9.844303]  [<c103b164>] get_signal_to_deliver+0x1b4/0x400
[    9.911183]  [<c10b476f>] ? __do_fault+0x2ef/0x3e0
[    9.968732]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.023214]  [<c1002078>] do_signal+0x68/0x890
[   10.076545]  [<c1002fb6>] ? do_invalid_op+0x86/0xa0
[   10.135112]  [<c15d8d6e>] ? work_notifysig+0x13/0x25
[   10.194695]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.249093]  [<c1002a7d>] do_notify_resume+0x4d/0x60
[   10.308689]  [<c15d8d6e>] work_notifysig+0x13/0x25
[   10.366210]  [<c1002f30>] ? do_bounds+0x80/0x80
[   10.420649]  [<c15d0073>] ? tg3_init_one+0x13aa/0x14b5
[   10.716545] Clocksource tsc unstable (delta = -137717055 ns)
[   11.172514] ohci_hcd 0000:00:13.0: auto-stop root hub

Could it be around ATA/PATA drivers?
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Nov 16, 2011 2:15 pm    Post subject: Reply with quote

What do you have in /etc/fstab?
boot cd enter the chroot, run
Code:
emerge pciutils wgetpaste
wgetpaste /usr/src/linux/.config
lspci -k | wgetpaste
rc-update show | wgetpaste
ls -l /dev
post the url's returned, lets take a look

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 may be of interest
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Wed Nov 16, 2011 7:49 pm    Post subject: Reply with quote

.config : http://paste.pocoo.org/show/508855/
I can't do lspci since there's no cd drive, can't boot usb, I would have to PXE boot but I found an lspci:
Code:

0000:00:00.0 Host bridge: Cyrix Corporation PCI Master
0000:00:06.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
0000:00:07.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
0000:00:08.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
0000:00:12.0 ISA bridge: National Semiconductor Corporation SC1100 Bridge
0000:00:12.1 Bridge: National Semiconductor Corporation SC1100 SMI
0000:00:12.2 IDE interface: National Semiconductor Corporation SCx200 IDE (rev 01)
0000:00:12.5 Bridge: National Semiconductor Corporation SC1100 XBus
0000:00:13.0 USB Controller: Compaq Computer Corporation ZFMicro Chipset USB (rev 08)

rc-update: http://paste.pocoo.org/show/508857/
ls /dev (not sure it's relevant since it was not booted from cd, I only mounted / to have access to dev): http://paste.pocoo.org/show/508859/
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Wed Nov 16, 2011 8:40 pm    Post subject: Reply with quote

And complete boot sequence: http://paste.pocoo.org/show/508895/
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Nov 16, 2011 9:08 pm    Post subject: Reply with quote

If the ls -l /dev is in fact that of the new gentoo install, the problem may be apparent.
https://forums.gentoo.org/viewtopic-t-880149-start-0.html may not reflect how you acquired the problem but is good directions for repairs.
I would simplify the disk drivers to:
Quote:
--- Serial ATA and Parallel ATA drivers
[ ] Verbose ATA error reporting
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
*** Controllers with non-SFF native interface ***
< > AHCI SATA support
< > Platform AHCI SATA support
< > Initio 162x SATA support
< > ACard AHCI variant (ATP 8620)
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
*** SFF controllers with custom DMA interface ***
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA SX4 support (Experimental)
[*] ATA BMDMA support
*** SATA SFF controllers with BMDMA ***
< > Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support
< > NVIDIA SATA support
< > Promise SATA TX2/TX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ServerWorks Frodo / Apple K2 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
*** PATA SFF controllers with BMDMA ***
< > ALi PATA support
< > AMD/NVidia PATA support
< > ARASAN CompactFlash PATA Controller Support
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > ARTOP/Acard ATP867X PATA support
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support
< > CS5536 PATA support
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support
< > HPT 371N/372N/302N PATA support
< > HPT 343/363 PATA support
< > IT8213 PATA support (Experimental)
< > IT8211/2 PATA support
<*> JMicron PATA support
< > Marvell PATA support via legacy mode
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support
< > Nat Semi NS87415 PATA support
< > Intel PATA old PIIX support
< > OPTI FireStar PATA support (Very Experimental)
< > Promise PATA 2027x support
< > Older Promise PATA controller support
< > RADISYS 82600 PATA support (Experimental)
< > RDC PATA support
<*> SC1200 PATA support
< > Intel SCH PATA support
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support
< > Toshiba Piccolo support (Experimental)
< > Compaq Triflex PATA support
< > VIA PATA support
< > Winbond SL82C105 PATA support
*** PIO-only SFF controllers ***
< > CMD640 PCI PATA support (Experimental)
< > Intel PATA MPIIX support
< > Nat Semi NS87410 PATA support
< > OPTI621/6215 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
*** Generic fallback / legacy drivers ***
< > ACPI firmware driver for PATA
< > Generic ATA support
< > Legacy ISA PATA support (Experimental)
but the extras should not be a problem.

Curious, what did you install from if no cd no flash drive? is there another (seller's) linux installed ?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Wed Nov 16, 2011 9:50 pm    Post subject: Reply with quote

I've been through the post re stage3 bug but it seems /dev is correct in my case.

Re device drivers/ATA PATA, the boot sequence shows that sda1/2/3 are detected and sda3 is mounted as ext4, which is correct, so I don't think the issue is related to disk.

I'll review the output of lspci and check if all drivers are set in kernel, there must be something missing here...

The installation is done by plugin the disk to my laptop with usb/ide interface.

Thanks
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Nov 17, 2011 2:30 am    Post subject: Reply with quote

agree with you on both points
what is the content of /etc/fstab?
Code:
wgetpaste /etc/fstab
post url
try recompiling kernel with menuconfig changed to include:
Quote:
Device Drivers --->
Generic Driver Options --->
(/sbin/hotplug) path to uevent helper
[*] Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs
[*] Select only drivers that don't need compile-time external firmware
[*] Prevent firmware from being built
-*- Userspace firmware loading support
[ ] Include in-kernel firmware blobs in kernel binary
() External firmware blobs to build into the kernel binary
[ ] Driver Core verbose debug messages
[ ] Managed device resources verbose debug messages

Add ro to the kernel line in grub.conf
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Nov 17, 2011 6:45 am    Post subject: Reply with quote

Sorry forgot about fstab: http://paste.pocoo.org/show/509088/

Recompiled kernel and added ro, still not booting: http://paste.pocoo.org/show/509089/
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Nov 17, 2011 7:44 am    Post subject: Reply with quote

what size is the hard drive?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Nov 17, 2011 7:54 am    Post subject: Reply with quote

20gb
I'm considering booting the Gentoo live iso via PXE to be able to run lspci and maybe genkernel because I'm running out of idea.
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Nov 17, 2011 3:07 pm    Post subject: Reply with quote

another theory; instead of ro try rw on grub.conf kernel line

At the critical point:
My boot sequence (from dmesg):

1.821474] VFS: Mounted root (reiserfs filesystem) readonly on device 8:2.
[ 1.827956] devtmpfs: mounted
[ 1.828069] Freeing unused kernel memory: 452k freed
[ 2.871706] cat used greatest stack depth: 4112 bytes left
[ 3.081468] init-early.sh used greatest stack depth: 3880 bytes left
[ 4.931717] uname used greatest stack depth: 3776 bytes left
[ 5.102920] udevadm used greatest stack depth: 3112 bytes left
[ 6.379784] udev[1105]: starting version 164

in my console:
[ 2.871706] cat used greatest stack depth: 4112 bytes left
[ 3.081468] init-early.sh used greatest stack depth: 3880 bytes left

OpenRC 0.9.4 is starting up Gentoo Linux (x86_64)

* Mounting /proc ...

Your boot sequence:
8.601270] VFS: Mounted root (ext4 filesystem) readonly on device 8:3.
[ 8.739581] devtmpfs: mounted
[ 8.776466] Freeing unused kernel memory: 448k freed
[ 8.842699] Write protecting the kernel text: 5116k
[ 8.901806] Write protecting the kernel read-only data: 1468k
[ 9.075570] init used greatest stack depth: 6244 bytes left
[ 9.142737] Kernel panic - not syncing: Attempted to kill init!

init-early.sh is at /lib64/rc/sh/init-early.sh for me
is it at /lib32/rc/sh/init-early.sh for you?

do you have /sbin/init, /etc/init, /bin/init, and /bin/sh and are they executable?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Sat Nov 19, 2011 9:04 am    Post subject: Reply with quote

Everything seems to be there, at least I have the same search result on my laptop.
Code:

(chroot) bussy2 / # ls -l /lib/rc/sh/init-early.sh
-rwxr-xr-x 1 root root 1114 Nov  2 01:59 /lib/rc/sh/init-early.sh
(chroot) bussy2 / # ls -l /sbin/init
-rwxr-xr-x 1 root root 35040 Nov  1 21:35 /sbin/init
(chroot) bussy2 / # ls -l /etc/init
ls: cannot access /etc/init: No such file or directory
(chroot) bussy2 / # ls -l /bin/init
ls: cannot access /bin/init: No such file or directory
(chroot) bussy2 / # ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov  8 20:13 /bin/sh -> bash

Will try rw on kernel line, what's the reason for trying this?
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Nov 19, 2011 3:13 pm    Post subject: Reply with quote

rw and ro were cited as solutions for similar symptoms at various times in various threads. If rw is as unsuccessful as ro was suggest using neither in grub.conf.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sat Nov 19, 2011 6:03 pm    Post subject: Reply with quote

What is the output of cat -n /etc/inittab ; /sbin/init --help? You might want to run that second one as an unprivileged user. The point is to see whether the init binary can be started properly, not to get any particular output from it. Running it as an unprivileged user will prevent it from causing problems with the live environment.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Sun Nov 20, 2011 10:41 am    Post subject: Reply with quote

Droped an email to gentoo-embedded list, they told me I should use i486 instead of i686.
I will try that and come back.

Thanks.
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Tue Nov 22, 2011 10:53 pm    Post subject: Reply with quote

Reinstalled system using stage3 i486, system boots.
With i686 /sbin/init uses instructions the SC1100 doesn't recognize.
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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