ts-7000
[Top] [All Lists]

[ts-7000] Re: "Warning: unable to open an initial console.", 2.6.21 on T

To:
Subject: [ts-7000] Re: "Warning: unable to open an initial console.", 2.6.21 on TS-7250
From: "charliem_1216" <>
Date: Sun, 22 Mar 2009 15:20:16 -0000
--- In  "Robert P. J. Day" <> wrote:
>
> On Sat, 21 Mar 2009, charliem_1216 wrote:
> 
> >
> > Hi Robert --
> >
> > --- In  "Robert P. J. Day" <rpjday@> wrote:
> > >
> > >
> > > here's my situation (on which i've posted on a couple linux kernel
> > > mailing lists but this seems like the appropriate forum so i'll give
> > > it another shot).
> > >
> > > i have a TS-7250, running a long-installed homegrown version of
> > > 2.6.17.10. both kernel and a fairly old (busybox-1.2.1) based root
> > > filesystem are in flash and if i just let the thing boot, it's all
> > > good. (rootfs is in /dev/mtdblock2.)
> > >
> > > i'm trying to upgrade the kernel to the (admittedly unofficial)
> > > 2.6.21-ts kernel source tree, so i downloaded that kernel source and
> > > have tried to configure it as similarly as possible with the config
> > > file used for the older 2.6.17 kernel. (i can pull that config info
> > > out of /proc/config.gz when running that older kernel.)
> >
> > If you have the 2.6.21-ts source tree, you can check out the (almost
> > certainly) working default TS configs at arch/arm/def-configs/ts7*.
> > That would be a good place to start: get a booting system first then
> > start cutting out subsystems you don't want.
> 
>   assuming you really meant arch/arm/configs :-), that's the first
> thing i tried:
> 
>   $ make ts72xx_defconfig
> 
> and i get exactly the same error:
> ...
> yaffs: dev is 32505858 name is "mtdblock2"
> yaffs: passed flags ""
> yaffs: Attempting MTD mount on 31.2, "mtdblock2"
> VFS: Mounted root (yaffs filesystem).
> Freeing init memory: 112K
> Warning: unable to open an initial console.
> Kernel panic - not syncing: No init found.  Try passing init= option
> to kernel.
> 
> rday

Hi Robert --

Not sure what's going on.  Probably the 'unable to open initial console' stems 
from not finding a rootfs, not the other way around.  Above seems to show 
kernel can find a rootfs, but can't find an /sbin/init.

For debugging purposes, can you try one or both of:

* Boot a 2.6.21-ts binary kernel image (downloaded from TS) using your mtd 
rootfs

* Boot your self-compiled 2.6.21-ts kernel image using nfs root.

Possibly your toolchain is being tripped up by some change between 2.6.17 and 
2.6.21 kernel?

Possibly you need a kernel that can read nand-2k blocks?  Can you tell from 
booting 2.6.17 what nand block size is being used?

regards, ......... Charlie

> --
> 
> p.s.  i'm assuming that the above does show me that the root
> filesystem has been mounted properly.
> 
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry:
>     Have classroom, will lecture.
> 
> http://crashcourse.ca                          Waterloo, Ontario, CANADA
> ========================================================================
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU