Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-10-03 Thread Bhagyashri Katole
Hi,

The Initrd and Ram disk support in linux kernel along with JFFS2 related
stuff solved the problem related to reboot.

 Sorry Stuart ... for using wrong forum for discussion 

 But It will be very helpful if you have a special forum for OS related
issues  ...

 Thanks for having discussion with me ...

   Regards,
   **
   Bhagyashri Katole
   Project Engineer
   NISG, C-DAC
   Pune,India
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-28 Thread Bill Maas
Hello Bhagyashri,

On Fri, 2007-09-28 at 10:08 +0530, Bhagyashri Katole wrote:
 Hi ,
  
 So the problem seems to lie within the kernel - after all it's the
 kernel that reboots, not Lilo (AFAIK  Lilo can't do that).
 Kernels have bugs too.
 
 
 But , I tried same kernel image to boot my computer, it worked
 fine ... 

Bug here doesn't necessarily mean a programming error. It could be
some deeply nested anomaly in the communication between kernel, chipset
and/or CPU, leading to errors that are very hard to trace, and the
blame might lie with the hardware and not the kernel.

The kernel boot options seem to be passed properly, and you don't get
the OK, booting.. message. If you dig into the docs, you'll probably
find that things go wrong while the kernel tries to relocate itself and
tries to execute the unpacking routines, (I haven't been keeping myself
up to data with the Linux kernel and its boot process, but that's at
least how it used to happen - interesting stuff anyway).

The case I referred to involved a 2.4* kernel running fine on anything
except one particular machine (as: motherboard/CPU combination). Another
[minor] kernel version ran without a problem. The unlucky kernel was
compiled by the RedHat company, by the way. In such a case trying a
different kernel version is a lot quicker and easier than trying to
debug the current one. I personally wouldn't even be bothered to file a
bug report.

So there's the whole story - hope you'll agree that trying to boot from
another kernel is definitely a worthwhile, and relatively easy, option.
If something runs on 1 machine, that's no guarantee that it will run on
another. The proof is in the pudding, or the Soekris box in this case.

Just for clarity and disambiguation: when I wrote about configuring the
system for serial output, I meant setting the appropriate entry
in /etc/inittab:

# Run agetty on COM1/ttyS0
s0:2345:respawn:/sbin/agetty -L -f /etc/issueserial 9600 ttyS0 vt100

That's just an example of course.

[Mmm.. just discovered that my Ubuntu 6.10 doesn't have an inittab anymore.
Yet another well-known standard config file chopped up by those smart
Linux maintainers. Now lives in /etc/event.d/, as a collection of chunks.
Another 10.000 docs or so outdated. Those guys/gals are crazy!;]

Bill

 All jffs2 modules got inserted properly   Not even that I am using
 same kernel image now... 

 You could try fdisk-ing the CF again with the real CHS values the
 Soekris combios sees as args to  fdisk. Still, Lilo would usually
 display as screenful of 0x0N's if it fails to load the kernel 
 
 I will definitely try this option today ...  
 
 Hope I will get an error this time to figure out where I am going
 wrong .. 
 
 Thanks ...
 
 Have a Gr8 day ..
 
 -- 
Regards, 
** 
Bhagyashri Katole
Project Engineer
NISG, C-DAC 
Pune,India 
 
 

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-28 Thread Bill Maas
On Fri, 2007-09-28 at 08:50 +0300, Jussi Peltola wrote:
 Hi,
 On Fri, Sep 28, 2007 at 10:08:10AM +0530, Bhagyashri Katole wrote:
  But , I tried same kernel image to boot my computer, it worked fine ...
  All jffs2 modules got inserted properly   Not even that I am using same
  kernel image now...
 Your computer probably isn't a Soekris - unfortunately not all x86
 CPUs are equal, and a kernel built for a new one may not work on an
 older one because of optimizations using extended instruction set
 features etc.

Of course, I overlooked that option: RedHat has been shipping kernels
optimized for 686 for years. Isn't it about time to publish a FAQ about
trivia like this (disk geometry issues, set OS to serial I/O, no, you
currently can't boot off USB etc..)?

And yes, I know, it's not Soekris' responsability etc., but most people
who buy a Soekris box plan to run an OS on it. Referring [new] Soekris
owners to such a document would at least be a bit friendlier than the
usual search the archives. User base could supply OS-specific details,
hosting and manpower for coordination and maintenance (I could spare a
few hours every now an then..) Where there's a list, there's usually a
FAQ, so why not here.

[expect some heat..]

Bill

 Unfortunately debugging this kind of problem is painful since you only
 get to know the kernel didn't work :)
 
 Regards,
 Jussi Peltola
 ___
 Soekris-tech mailing list
 Soekris-tech@lists.soekris.com
 http://lists.soekris.com/mailman/listinfo/soekris-tech
 

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Jussi Peltola
Hi,

On Thu, Sep 27, 2007 at 11:23:14AM +0530, Bhagyashri Katole wrote:
 /boot/fstab as follows
 
 /dev/mtdblock0  /   jffs2   defaults,rw,noatime,sync0   0
 /dev/hda1   /boot   ext2defaults,rw,sync,noatime1   1
/boot/fstab? What is that? 
And what is /dev/mtdblock0? I didn't know the Soekris boards have
MTDs...
 
 I prepared JFFS2 partition with RootFS ..
What is RootFS? Some kind of utility?
 When Soekris net4521 boots, it does nothing after ...
 
 LILO loading Linux ...
Did you re-run lilo? How is your lilo config?

We need more information to really find out where the problem is, please
explain what you exactly are trying to do and what you have done to get
there.

-- 
Regards,
Jussi Peltola


signature.asc
Description: Digital signature
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Bill Maas
Hello Bhagyashri,

no error messages so Linux is probably getting up and running well. You
probably have configured the boot loader to talk to the appropriate com
port, but this doesn't get passed to the kernel so the kernel output is
sent to nowhere (or at least nowhere you can find it;).

Of course I can't be sure, but I guess you should be looking in that
direction first. Also make sure that your system is configured for
serial output, or you will have a similar problem once the kernel has
booted. I don't think JFFS has anything to do with it, since the kernel
lives inside /boot (?). If Lilo had a problem loading the kernel, it
would display an error message anyway.

Bill

On Thu, 2007-09-27 at 11:23 +0530, Bhagyashri Katole wrote:
 
 Hi ,
   
  I am trying to boot Soekris net4521 using CF with combination of
 EXT2 and JFFS2 filesystems. I made boot partition using LILO boot
 loader and EXT2 filesystem. 
 
 /boot/fstab as follows 
 
 /dev/mtdblock0  /   jffs2   defaults,rw,noatime,sync0
 0
 /dev/hda1   /boot   ext2defaults,rw,sync,noatime1
 1
 
 
 I prepared JFFS2 partition with RootFS .. 
  
 When Soekris net4521 boots, it does nothing after ...
 
 LILO loading Linux ...
 
 Please help me to solve this problem if someone  tried this
 combination before .. 
 
 Thanks in advance,
  
 Bhagyashri Katole 
 Project Engineer,
 NISG,
 C-DAC,Pune 
 
 ___
 Soekris-tech mailing list
 Soekris-tech@lists.soekris.com
 http://lists.soekris.com/mailman/listinfo/soekris-tech

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Tuomo Latto
Bhagyashri Katole wrote:
 Now LILO reboots continuously after msg LILO loading Linux .

Any chance you had the geometry wrong/different when creating
the partitions (since you probably did the installation
on a different computer)?
Or does that even apply to CF?


-- 
Tuomo

... A little inaccuracy sometimes saves tons of explanation

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Tuomo Latto
Bhagyashri Katole wrote:
 Any chance you had the geometry wrong/different when creating
 the partitions (since you probably did the installation
 on a different computer)?
 
  I did not get any error while preparing and mounting JFFS2 partitions on
 different computer ..
  I successfully copied RootFS on 2nd partition ...

Did you try booting off it?
That's the real test.


-- 
Tuomo

... You can lead a horse to water, but if you can get him to
float on his back, you've really got something

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Bhagyashri Katole
Hi ,

So the problem seems to lie within the kernel - after all it's the kernel
that reboots, not Lilo (AFAIK  Lilo can't do that).
Kernels have bugs too.


But , I tried same kernel image to boot my computer, it worked fine ...
All jffs2 modules got inserted properly   Not even that I am using same
kernel image now...

You could try fdisk-ing the CF again with the real CHS values the Soekris
combios sees as args to  fdisk. Still, Lilo would usually display as
screenful of 0x0N's if it fails to load the kernel

I will definitely try this option today ...

Hope I will get an error this time to figure out where I am going wrong ..

Thanks ...

Have a Gr8 day ..

-- 
   Regards,
   **
   Bhagyashri Katole
   Project Engineer
   NISG, C-DAC
   Pune,India
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-27 Thread Jussi Peltola
Hi,
On Fri, Sep 28, 2007 at 10:08:10AM +0530, Bhagyashri Katole wrote:
 But , I tried same kernel image to boot my computer, it worked fine ...
 All jffs2 modules got inserted properly   Not even that I am using same
 kernel image now...
Your computer probably isn't a Soekris - unfortunately not all x86
CPUs are equal, and a kernel built for a new one may not work on an
older one because of optimizations using extended instruction set
features etc.
Unfortunately debugging this kind of problem is painful since you only
get to know the kernel didn't work :)

Regards,
Jussi Peltola
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


[Soekris] Combination of EXT2 JFFS2 (as RootFS) don't boot Soekris net4521

2007-09-26 Thread Bhagyashri Katole
Hi ,

 I am trying to boot Soekris net4521 using CF with combination of EXT2
and JFFS2 filesystems. I made boot partition using LILO boot loader and EXT2
filesystem.

/boot/fstab as follows

/dev/mtdblock0  /   jffs2   defaults,rw,noatime,sync0   0
/dev/hda1   /boot   ext2defaults,rw,sync,noatime1   1


I prepared JFFS2 partition with RootFS ..

When Soekris net4521 boots, it does nothing after ...

LILO loading Linux ...

Please help me to solve this problem if someone  tried this combination
before ..

Thanks in advance,

Bhagyashri Katole
Project Engineer,
NISG,
C-DAC,Pune
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech