All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] kernel boot problem
@ 2012-02-06 15:04 Sagaert Johan
  2012-02-07 14:29 ` Thomas De Schampheleire
  0 siblings, 1 reply; 5+ messages in thread
From: Sagaert Johan @ 2012-02-06 15:04 UTC (permalink / raw)
  To: buildroot

Hi
 
I receive this on the console when my system boots:

When i build the same kernel (same version ,same patches and same kernel config )
With 2011.11 : panic !
With 2010.02 : ok 

Kernel 2.6.31.9 ,build with gcc 4.5.3 

Any idea (both are build in OABI but EABI yields same problem)?

snip
.... 
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 < sda5 > sda2
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:5.
Freeing init memory: 112K
BUG: Bad page state in process init  pfn:204b6
page:c04086c0 flags:00000400 count:1 mapcount:0 mapping:(null) index:0
[<c002a748>] (unwind_backtrace+0x0/0xd0) from [<c006b5fc>] (bad_page+0x104/0x138)
[<c006b5fc>] (bad_page+0x104/0x138) from [<c006d1c4>] (get_page_from_freelist+0x344/0x470)
[<c006d1c4>] (get_page_from_freelist+0x344/0x470) from [<c006d3d8>] (__alloc_pages_nodemask+0xe8/0x518)
[<c006d3d8>] (__alloc_pages_nodemask+0xe8/0x518) from [<c006fa08>] (__do_page_cache_readahead+0x114/0x260)[<c006fa08>]
(__do_page_cache_readahead+0x114/0x260) from [<c006fdbc>] (ra_submit+0x20/0x24)
[<c006fdbc>] (ra_submit+0x20/0x24) from [<c0067e8c>] (filemap_fault+0x1f0/0x434)
 
[<c0067e8c>] (filemap_fault+0x1f0/0x434) from [<c007a128>] (__do_fault+0x50/0x404)
 
This is from the one build in 2010.02 and is OK

Snip
...
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 < sda5 > sda2
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:5.
Freeing init memory: 120K
init started: BusyBox v1.15.3 (2010-04-30 12:24:59 CEST)
UBIFS error (pid 348): ubifs_get_sb: cannot open "ubi0:data", error -19
starting pid 352, tty '': '/etc/init.d/rcS'
Populating /dev using udev: done
Starting portmap: done
Initializing random number generator... done.
Starting network...
ifconfig: SIOCGIFFLAGS: No such device
Starting dropbear sshd: OK
Starting inetd : OK
sucses 0 adding beeper0
doing timer start
Major =251
sucses 0 adding oled0
OLED: Loaded
....
 


Sagaert Johan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] kernel boot problem
  2012-02-06 15:04 [Buildroot] kernel boot problem Sagaert Johan
@ 2012-02-07 14:29 ` Thomas De Schampheleire
  2012-02-07 17:29   ` Arnout Vandecappelle
  2012-02-07 19:49   ` [Buildroot] kernel boot problem related to GCC ? Sagaert Johan
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2012-02-07 14:29 UTC (permalink / raw)
  To: buildroot

Hi,

On Mon, Feb 6, 2012 at 4:04 PM, Sagaert Johan <sagaert.johan@skynet.be> wrote:
> Hi
>
> I receive this on the console when my system boots:
>
> When i build the same kernel (same version ,same patches and same kernel config )
> With 2011.11 : panic !
> With 2010.02 : ok
>
> Kernel 2.6.31.9 ,build with gcc 4.5.3
>
> Any idea (both are build in OABI but EABI yields same problem)?
>
> snip
> ....
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> ?sda: sda1 < sda5 > sda2
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> sd 0:0:0:0: [sda] Attached SCSI removable disk
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem) on device 8:5.
> Freeing init memory: 112K
> BUG: Bad page state in process init ?pfn:204b6
> page:c04086c0 flags:00000400 count:1 mapcount:0 mapping:(null) index:0
> [<c002a748>] (unwind_backtrace+0x0/0xd0) from [<c006b5fc>] (bad_page+0x104/0x138)
> [<c006b5fc>] (bad_page+0x104/0x138) from [<c006d1c4>] (get_page_from_freelist+0x344/0x470)
> [<c006d1c4>] (get_page_from_freelist+0x344/0x470) from [<c006d3d8>] (__alloc_pages_nodemask+0xe8/0x518)
> [<c006d3d8>] (__alloc_pages_nodemask+0xe8/0x518) from [<c006fa08>] (__do_page_cache_readahead+0x114/0x260)[<c006fa08>]
> (__do_page_cache_readahead+0x114/0x260) from [<c006fdbc>] (ra_submit+0x20/0x24)
> [<c006fdbc>] (ra_submit+0x20/0x24) from [<c0067e8c>] (filemap_fault+0x1f0/0x434)
>
> [<c0067e8c>] (filemap_fault+0x1f0/0x434) from [<c007a128>] (__do_fault+0x50/0x404)
>
> This is from the one build in 2010.02 and is OK
>
> Snip
> ...
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> ?sda: sda1 < sda5 > sda2
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> sd 0:0:0:0: [sda] Attached SCSI removable disk
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem) on device 8:5.
> Freeing init memory: 120K
> init started: BusyBox v1.15.3 (2010-04-30 12:24:59 CEST)
> UBIFS error (pid 348): ubifs_get_sb: cannot open "ubi0:data", error -19
> starting pid 352, tty '': '/etc/init.d/rcS'
> Populating /dev using udev: done
> Starting portmap: done
> Initializing random number generator... done.
> Starting network...
> ifconfig: SIOCGIFFLAGS: No such device
> Starting dropbear sshd: OK
> Starting inetd : OK
> sucses 0 adding beeper0
> doing timer start
> Major =251
> sucses 0 adding oled0
> OLED: Loaded
> ....
>
>

Can you compare the versions of other packages used between both
buildroot versions?
For example, busybox probably changed version. Can you try stepping back that ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] kernel boot problem
  2012-02-07 14:29 ` Thomas De Schampheleire
@ 2012-02-07 17:29   ` Arnout Vandecappelle
  2012-02-07 23:21     ` Sagaert Johan
  2012-02-07 19:49   ` [Buildroot] kernel boot problem related to GCC ? Sagaert Johan
  1 sibling, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2012-02-07 17:29 UTC (permalink / raw)
  To: buildroot

On Tuesday 07 February 2012 15:29:52 Thomas De Schampheleire wrote:
> Can you compare the versions of other packages used between both
> buildroot versions?
> For example, busybox probably changed version. Can you try stepping back that ?

 Since the panic happens before init starts, busybox is the only package 
whose version is relevant...

 However, the /init thing was added to the skeleton since 2010.02; that
may make a difference.  Johan, do you have /init on your target?  Is it
different between the two versions?

 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] kernel boot problem related to GCC  ?
  2012-02-07 14:29 ` Thomas De Schampheleire
  2012-02-07 17:29   ` Arnout Vandecappelle
@ 2012-02-07 19:49   ` Sagaert Johan
  1 sibling, 0 replies; 5+ messages in thread
From: Sagaert Johan @ 2012-02-07 19:49 UTC (permalink / raw)
  To: buildroot


Hi Thomas 

This is wat i tried :
Rootfs build in 2010.2 with kernel build with 2011.11 : fails
Rootfs build in 2011.11 with kernel build with 2010.02 : boots

So this showed that the boot problem is not in the generated rootfs.
(in fact i also tried other busybox version with the same result )

What i found in the build directory of the kernel was a file called .missing-syscalls.d, don't know if this has something to do with
it or not.

After finding no solution i ported all my patches i used on the 2.6.31.9 kernel to the 2.6.36.1 kernel and this works fine.

I have been building and building ...and i found out that building in 2011.11 with gcc 4.5.3 fails, using gcc 4.3.6 is OK !
Strange ...i think it might something to do with the ABI..
Gone try to do a build with gcc 4.4.x just out of curiosity.

Johan


-----Oorspronkelijk bericht-----
Van: patrickdepinguin at gmail.com [mailto:patrickdepinguin at gmail.com] Namens Thomas De Schampheleire
Verzonden: dinsdag 7 februari 2012 15:30
Aan: Sagaert Johan
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] kernel boot problem

Hi,

On Mon, Feb 6, 2012 at 4:04 PM, Sagaert Johan <sagaert.johan@skynet.be> wrote:
> Hi
>
> I receive this on the console when my system boots:
>
> When i build the same kernel (same version ,same patches and same 
> kernel config ) With 2011.11 : panic !
> With 2010.02 : ok
>
> Kernel 2.6.31.9 ,build with gcc 4.5.3
>
> Any idea (both are build in OABI but EABI yields same problem)?
>
> snip
> ....
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> ?sda: sda1 < sda5 > sda2
> sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: 
> [sda] Attached SCSI removable disk EXT2-fs warning: mounting unchecked 
> fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem) on device 8:5.
> Freeing init memory: 112K
> BUG: Bad page state in process init ?pfn:204b6 page:c04086c0 
> flags:00000400 count:1 mapcount:0 mapping:(null) index:0 [<c002a748>] 
> (unwind_backtrace+0x0/0xd0) from [<c006b5fc>] (bad_page+0x104/0x138) 
> [<c006b5fc>] (bad_page+0x104/0x138) from [<c006d1c4>] 
> (get_page_from_freelist+0x344/0x470)
> [<c006d1c4>] (get_page_from_freelist+0x344/0x470) from [<c006d3d8>] 
> (__alloc_pages_nodemask+0xe8/0x518)
> [<c006d3d8>] (__alloc_pages_nodemask+0xe8/0x518) from [<c006fa08>] 
> (__do_page_cache_readahead+0x114/0x260)[<c006fa08>]
> (__do_page_cache_readahead+0x114/0x260) from [<c006fdbc>] 
> (ra_submit+0x20/0x24) [<c006fdbc>] (ra_submit+0x20/0x24) from 
> [<c0067e8c>] (filemap_fault+0x1f0/0x434)
>
> [<c0067e8c>] (filemap_fault+0x1f0/0x434) from [<c007a128>] 
> (__do_fault+0x50/0x404)
>
> This is from the one build in 2010.02 and is OK
>
> Snip
> ...
> sd 0:0:0:0: [sda] Assuming drive cache: write through
> ?sda: sda1 < sda5 > sda2
> sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: 
> [sda] Attached SCSI removable disk EXT2-fs warning: mounting unchecked 
> fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem) on device 8:5.
> Freeing init memory: 120K
> init started: BusyBox v1.15.3 (2010-04-30 12:24:59 CEST) UBIFS error 
> (pid 348): ubifs_get_sb: cannot open "ubi0:data", error -19 starting 
> pid 352, tty '': '/etc/init.d/rcS'
> Populating /dev using udev: done
> Starting portmap: done
> Initializing random number generator... done.
> Starting network...
> ifconfig: SIOCGIFFLAGS: No such device Starting dropbear sshd: OK 
> Starting inetd : OK sucses 0 adding beeper0 doing timer start Major 
> =251 sucses 0 adding oled0
> OLED: Loaded
> ....
>
>

Can you compare the versions of other packages used between both
buildroot versions?
For example, busybox probably changed version. Can you try stepping back that ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] kernel boot problem
  2012-02-07 17:29   ` Arnout Vandecappelle
@ 2012-02-07 23:21     ` Sagaert Johan
  0 siblings, 0 replies; 5+ messages in thread
From: Sagaert Johan @ 2012-02-07 23:21 UTC (permalink / raw)
  To: buildroot

 
Hi 

Ok, i used the same rootfs, so i the rootfs seems ok.(i did not recompile the rootfs, just used the kernel build in buildroot
2011.11)
This shows to me that the rootfs is ok.

If you saw my other post, i dound out when uning gcc 4.53 in buildroot 2011.11 the kernel fails to boot, but with gcc 4.3.6 in
buildroot 2011.11 no problem booting.
So i did a run against gcc 4.4.6  and this one is ok too.
Strange anyway..


-----Oorspronkelijk bericht-----
Van: Arnout Vandecappelle [mailto:arnout at mind.be] 
Verzonden: dinsdag 7 februari 2012 18:29
Aan: buildroot at busybox.net
CC: Thomas De Schampheleire; Sagaert Johan
Onderwerp: Re: [Buildroot] kernel boot problem

On Tuesday 07 February 2012 15:29:52 Thomas De Schampheleire wrote:
> Can you compare the versions of other packages used between both 
> buildroot versions?
> For example, busybox probably changed version. Can you try stepping back that ?

 Since the panic happens before init starts, busybox is the only package whose version is relevant...

 However, the /init thing was added to the skeleton since 2010.02; that may make a difference.  Johan, do you have /init on your
target?  Is it different between the two versions?

 Regards,
 Arnout




-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-07 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-06 15:04 [Buildroot] kernel boot problem Sagaert Johan
2012-02-07 14:29 ` Thomas De Schampheleire
2012-02-07 17:29   ` Arnout Vandecappelle
2012-02-07 23:21     ` Sagaert Johan
2012-02-07 19:49   ` [Buildroot] kernel boot problem related to GCC ? Sagaert Johan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.