List Info

Thread: LEAF installment problem




LEAF installment problem
country flaguser name
Austria
2008-03-13 07:21:22
Hi everyone,

For a few days now I've been experimenting with LEAF. But
I'm so stuck 
at the moment, that I've subscribed myself to this list in
the hope 
someone could help me.

What I try to do here, is install LEAF Bering 3.1 on a
compact flash 
card, to use it on a NexGate security appliance.
The configuration of the flash card I do on another simple
linux pc and 
the testing on the NexGate itself..

Firstly I went through all thes steps :
- formatted the flash card (one fat partition (10mb) and one
ext2 partition)
- installed syslinux on the first partition
- put the master boot record in order
- copied the files of the 
image(:Bering-uClibc_3.1_img_bering-uclibc-1680.bin) to the
flash disk
- altered the syslinux.cfg file,   this is in it :     
display syslinux.dpy
      timeout 5
      append reboot=bios
      default linux initrd=initrd.lrp init=/linuxrc
root=/dev/ram0 
boot=/dev/hda1:msdos PKGPATH=/dev/hda1:msdos 
LRP="root,config,etc,modules,iptables,dhcpcd,keyboard,s
horwall,ulogd,dnsmasq,dropbear,mhttpd,openntpd,webconf"


I've put the LRP into the syslinux.cfg, because it gave some
troubles 
reading it out of leaf.cfg..

Now, when I tested it in the NexGate Appliance I got this
output:

*all partitions checked correctly
*no problems found what however, till LINUXRC: Installing -
...
*Everything is being found except these:  "root:
"root(nf!), webconf": 
webconf"(nf!)
*and it ends with these errors
  /linuxrc: source: line 277: can't open
/var/lib/lrpkg/root.dev.own
  Kernel panic: Attemted to kill init!


At the moment I'm really out of ideas what the problem could
be. So for 
everyone who could help me, thanks a lot!

Tom

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
country flaguser name
Germany
2008-03-13 07:38:47
Hi Tom,

> - formatted the flash card (one fat partition (10mb)
and one ext2 partition)
> - installed syslinux on the first partition
> - put the master boot record in order
> - copied the files of the 
> image(:Bering-uClibc_3.1_img_bering-uclibc-1680.bin) to
the flash disk
> - altered the syslinux.cfg file,   this is in it :     
display syslinux.dpy
>       timeout 5
>       append reboot=bios
>       default linux initrd=initrd.lrp init=/linuxrc
root=/dev/ram0 
> boot=/dev/hda1:msdos PKGPATH=/dev/hda1:msdos 
>
LRP="root,config,etc,modules,iptables,dhcpcd,keyboard,s
horwall,ulogd,dnsmasq,dropbear,mhttpd,openntpd,webconf"

Maybe you just forgot to mention it, but you also need to
replace the 
initrd.lrp file (the one from the floppy image will not work
for booting 
off a hd/cf), as mentioned in 
http://leaf.sourceforge.net/doc/buci-ide3.html#id3226784


> Now, when I tested it in the NexGate Appliance I got
this output:
> 
> *all partitions checked correctly
> *no problems found what however, till LINUXRC:
Installing - ...
> *Everything is being found except these:  "root:
"root(nf!), webconf": 
> webconf"(nf!)
> *and it ends with these errors
>   /linuxrc: source: line 277: can't open
/var/lib/lrpkg/root.dev.own
>   Kernel panic: Attemted to kill init!
If the missing proper initrd was not the problem - are you
sure the CF 
is actually hda on your box? If it also has a regular ide
port (for a 
2.5 HD or something like that), it could also be hdb, hdc or
hdd (or 
something else - just check kernel messages)


I hope that helps

Martin


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
country flaguser name
Austria
2008-03-13 07:51:29
Hi Martin,

first of all, thx for the quick reply!

Citeren Martin Hejl <martinhejl.de>:

> Hi Tom,
>
>> - formatted the flash card (one fat partition
(10mb) and one ext2 partition)
>> - installed syslinux on the first partition
>> - put the master boot record in order
>> - copied the files of the
>>
image(:Bering-uClibc_3.1_img_bering-uclibc-1680.bin) to the
flash disk
>> - altered the syslinux.cfg file,   this is in it : 
    display syslinux.dpy
>>       timeout 5
>>       append reboot=bios
>>       default linux initrd=initrd.lrp init=/linuxrc
root=/dev/ram0
>> boot=/dev/hda1:msdos PKGPATH=/dev/hda1:msdos
>>
LRP="root,config,etc,modules,iptables,dhcpcd,keyboard,s
horwall,ulogd,dnsmasq,dropbear,mhttpd,openntpd,webconf"

> Maybe you just forgot to mention it, but you also need
to replace the
> initrd.lrp file (the one from the floppy image will not
work for booting
> off a hd/cf), as mentioned in
> http://leaf.sourceforge.net/doc/buci-ide3.html#id3226784


Indeed, sorry I just forgot to mention it. I replaced it
with the 
initrd_ide.lrp file.

>> Now, when I tested it in the NexGate Appliance I
got this output:
>>
>> *all partitions checked correctly
>> *no problems found what however, till LINUXRC:
Installing - ...
>> *Everything is being found except these: 
"root: "root(nf!), webconf":
>> webconf"(nf!)
>> *and it ends with these errors
>>   /linuxrc: source: line 277: can't open
/var/lib/lrpkg/root.dev.own
>>   Kernel panic: Attemted to kill init!
> If the missing proper initrd was not the problem - are
you sure the CF
> is actually hda on your box? If it also has a regular
ide port (for a
> 2.5 HD or something like that), it could also be hdb,
hdc or hdd (or
> something else - just check kernel messages)

In the kernel messages I recieve this:

hda: attached ide-disk driver.
hda: 508928 sectors (261 MB) w/0KiB Cache, CHS=994/16/32
Partition check:
hda: hda1 hda2
hda: hda1 hda2
hda: hda1 hda2

So I fear this also won't be the problem..
Also all other packages are being read after LINUXRC:
Installing - .. 
So it must be some problem with reading the root I guess ..

Tom


> I hope that helps
>
> Martin
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/

>
>

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
country flaguser name
Austria
2008-03-13 08:41:45
Hi!

This indeed did the trick, thx! So the installing goes
without any 
problem .. A lot of other things happen then, key's being
made and so 
on ..
Here's the last page's output:

Creating action chain dropNotSyn
Applying Policies...
Setting up Masquarading/SNAT...
    ERROR: Unable to determine the routes through interface
"eth1"
Processing /etc/shorewall/stop ...
IP Forwarding Enabled
Processing /etc/shorewall/stopped ...
Terminated
Starting internet superserver: inetd.
Starting openntpd: dispatch_imsg in main: pipe closed
Lost child: child exited
Terminating
openntpd
Starting mini httpd:.
Loading Webconf Plugins:
LWP is undefined - using LRP package list;
hda: hda1 hda2
hda: hda1 hda2
  initrd(nf) root(nf) config(nf) etc(nf) modules(nf)
  iptables(nf) dhcpcd(nf) keyboard shorwall(nf) ulogd(nf)
  dnsmasq dropbear mhttpd(nf) openntpd webconf
  configdb(nf) moddb(nf) - finished
hda: hda1 hda2
Starting periodic command scheduler: cron.

==> and then here it blocks!

What I do have to add, is that I haven't installed any extra
modules 
yet (so not for the ethernetcard, nothing)
But I guess this wouldn't deny me from starting up for a
first time..

Next to how I can solve my current problem, another
question.
For installing the modules. Is it only like making a map
/lib/modules 
and put them inside? There was also something like edit
/etc/modules..
Is it just make this map too and create a files
"modules" where you 
insert the names like this: mod1,mod2,mod3,.. ?

Thx,
Tom

Citeren Martin Hejl <martinhejl.de>:

> Hi again,
>
>> Indeed, sorry I just forgot to mention it. I
replaced it with the
>> initrd_ide.lrp file.
> ok, that's what I thought - but of course, it would
have been the simple
> fix.
>
>> - altered the syslinux.cfg file,   this is in it : 
    display syslinux.dpy
>>       timeout 5
>>       append reboot=bios
>>       default linux initrd=initrd.lrp init=/linuxrc
root=/dev/ram0
>> boot=/dev/hda1:msdos PKGPATH=/dev/hda1:msdos
>>
LRP="root,config,etc,modules,iptables,dhcpcd,keyboard,s
horwall,ulogd,dnsmasq,dropbear,mhttpd,openntpd,webconf"

> seems like you're missing the "LEAFCFG"
setting (which might explain why
> specifying the packages in leaf.cfg didn't work).
>
> Then, I don't know where the "boot" setting
comes from (I don't have
> that on any of my boxes).
>
> For a standard "boot from CF" setup, your
syslinux.cfg should look like
> this:
>
> timeout 5
> append reboot=bios
> default linux initrd=initrd.lrp init=/linuxrc rw
root=/dev/ram0 
> LEAFCFG=/dev/hda1:msdos
>
> and your leaf.cfg like this:
> (I left out all the comments for the sake of keeping
things short):
>
>
LRP="root,config,etc,modules,iptables,dhcpcd,keyboard,s
horwall,ulogd,
> dnsmasq,dropbear,mhttpd,openntpd,webconf"
> PKGPATH="/dev/hda1:msdos"
> syst_size=6M
> log_size=2M
>
> Maybe that helps - if not, what kind of trouble was
specifying the lrps
> in leaf.cfg give you? Maybe that will help tracking
down what's wrong.
>
> Martin
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/

>
>



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
country flaguser name
Austria
2008-03-13 09:16:50
Hi Martin,

You've allready proven to be a great help today!

Citeren Martin Hejl <martinhejl.de>:

> Hi Tom,
>
>> hda: hda1 hda2
>>   initrd(nf) root(nf) config(nf) etc(nf)
modules(nf)
>>   iptables(nf) dhcpcd(nf) keyboard shorwall(nf)
ulogd(nf)
>>   dnsmasq dropbear mhttpd(nf) openntpd webconf
>>   configdb(nf) moddb(nf) - finished
>> hda: hda1 hda2
>> Starting periodic command scheduler: cron.
> cron should be the last thing that's started, before
the login prompt is
> displayed. Might you, by any chance be using the
configdb.lrp for a
> system with a serial console (that would mean you
renamed configdb.ser
> to congfigds.lrp on the boot media)?
> The sysliux.cfg you posted is for a system with a
"real" keyboard and
> display, but the that symptom is exactly what happens
when there is no
> tty defined in /etc/inittab - which would be the case,
if you renamed
> configdb.ser to configdb.lrp on the boot media).
>
> In short, if you have a real keyborad and display
attached to your box,
> make sure you have no "configdb.lrp" lying
around on the boot media (yet
> - it will re-appear, as soon as you change something on
the box and then
> save the config).


I indeed made the mistake of changing the configdb.ser to
configdb.lrp..

2 more questions about the login prompt..
- I get there, but the keyboard isn't working .. It's a ps2
connection 
inside the NexGate on which I connect a keyboard .. Still
need some 
drivers for that or that isn't the problem?
- Further, what is the login and password also? maybe?
There's probably 
some standard login when you start the system?

>
>> What I do have to add, is that I haven't installed
any extra modules yet
>> (so not for the ethernetcard, nothing)
> you'll need the modules for the NIC for sure (put them
into /lib/modules
> if they're not already in the default moddb package and
then back up
> moddb) and declare them in /etc/modules (and then save
the config).
>
>> Next to how I can solve my current problem, another
question.
>> For installing the modules. Is it only like making
a map /lib/modules
>> and put them inside? There was also something like
edit /etc/modules..
>> Is it just make this map too and create a files
"modules" where you
>> insert the names like this: mod1,mod2,mod3,.. ?
> I don't know what a "map" might be regarding
/lib/modules - /lib/modules
> is a directory, that the module files reside in.
>
> Regarding what to do with /etc/modules - just open it
in a text editor -
> there should be plenty of helpful comments in that
file.
>
> The usual procedure is
> * copy xxx.o to /lib/modules
> * add "xxx" to /etc/modules
> * save moddb (start lrcfg and the hit "m")
> * save config (start lrcfg and hit "s")


My mistake, "map" is a bad translation of
directory from me.. But the 
"problem" is, there aren't any pre-made
directories or a pre-made 
modules-file .. So I fear I also miss those helpfull
comments..
Where do I get them? Because they weren't in the image..


Tom
and thx btw for all the help till now!


>
> Martin
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/

>
>



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
country flaguser name
Austria
2008-03-13 10:15:49
My comprehension is now a little bit further .. The
lib/modules and so 
on, I'll find in the lrp package .. How can I open and
modify these?

Tom


Citeren Martin Hejl <martinhejl.de>:

> Hi Tom,
>
>> hda: hda1 hda2
>>   initrd(nf) root(nf) config(nf) etc(nf)
modules(nf)
>>   iptables(nf) dhcpcd(nf) keyboard shorwall(nf)
ulogd(nf)
>>   dnsmasq dropbear mhttpd(nf) openntpd webconf
>>   configdb(nf) moddb(nf) - finished
>> hda: hda1 hda2
>> Starting periodic command scheduler: cron.
> cron should be the last thing that's started, before
the login prompt is
> displayed. Might you, by any chance be using the
configdb.lrp for a
> system with a serial console (that would mean you
renamed configdb.ser
> to congfigds.lrp on the boot media)?
> The sysliux.cfg you posted is for a system with a
"real" keyboard and
> display, but the that symptom is exactly what happens
when there is no
> tty defined in /etc/inittab - which would be the case,
if you renamed
> configdb.ser to configdb.lrp on the boot media).
>
> In short, if you have a real keyborad and display
attached to your box,
> make sure you have no "configdb.lrp" lying
around on the boot media (yet
> - it will re-appear, as soon as you change something on
the box and then
> save the config).
>
>> What I do have to add, is that I haven't installed
any extra modules yet
>> (so not for the ethernetcard, nothing)
> you'll need the modules for the NIC for sure (put them
into /lib/modules
> if they're not already in the default moddb package and
then back up
> moddb) and declare them in /etc/modules (and then save
the config).
>
>> Next to how I can solve my current problem, another
question.
>> For installing the modules. Is it only like making
a map /lib/modules
>> and put them inside? There was also something like
edit /etc/modules..
>> Is it just make this map too and create a files
"modules" where you
>> insert the names like this: mod1,mod2,mod3,.. ?
> I don't know what a "map" might be regarding
/lib/modules - /lib/modules
> is a directory, that the module files reside in.
>
> Regarding what to do with /etc/modules - just open it
in a text editor -
> there should be plenty of helpful comments in that
file.
>
> The usual procedure is
> * copy xxx.o to /lib/modules
> * add "xxx" to /etc/modules
> * save moddb (start lrcfg and the hit "m")
> * save config (start lrcfg and hit "s")
>
> Martin
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/

>
>



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


Re: LEAF installment problem
user name
2008-03-13 10:30:31
I used this reference
http://www.telltronics.org/software/Bering/BeringCros
s.html
to modify initrd.lrp and boot from my usb flash memory.
I hope this help you

 Fabricio Vargas A.
 



-----Mensaje original-----
De: Tom Hendrickx <tom.hendrickxstudent.khleuven.be>
Para: Martin Hejl <martinhejl.de>
Cc: leaf-userlists.sourceforge.net
Asunto: Re: [leaf-user] LEAF installment problem
Fecha: Thu, 13 Mar 2008 16:15:49 +0100


My comprehension is now a little bit further .. The
lib/modules and so 
on, I'll find in the lrp package .. How can I open and
modify these?

Tom


Citeren Martin Hejl <martinhejl.de>:

> Hi Tom,
>
>> hda: hda1 hda2
>>   initrd(nf) root(nf) config(nf) etc(nf)
modules(nf)
>>   iptables(nf) dhcpcd(nf) keyboard shorwall(nf)
ulogd(nf)
>>   dnsmasq dropbear mhttpd(nf) openntpd webconf
>>   configdb(nf) moddb(nf) - finished
>> hda: hda1 hda2
>> Starting periodic command scheduler: cron.
> cron should be the last thing that's started, before
the login prompt is
> displayed. Might you, by any chance be using the
configdb.lrp for a
> system with a serial console (that would mean you
renamed configdb.ser
> to congfigds.lrp on the boot media)?
> The sysliux.cfg you posted is for a system with a
"real" keyboard and
> display, but the that symptom is exactly what happens
when there is no
> tty defined in /etc/inittab - which would be the case,
if you renamed
> configdb.ser to configdb.lrp on the boot media).
>
> In short, if you have a real keyborad and display
attached to your box,
> make sure you have no "configdb.lrp" lying
around on the boot media (yet
> - it will re-appear, as soon as you change something on
the box and then
> save the config).
>
>> What I do have to add, is that I haven't installed
any extra modules yet
>> (so not for the ethernetcard, nothing)
> you'll need the modules for the NIC for sure (put them
into /lib/modules
> if they're not already in the default moddb package and
then back up
> moddb) and declare them in /etc/modules (and then save
the config).
>
>> Next to how I can solve my current problem, another
question.
>> For installing the modules. Is it only like making
a map /lib/modules
>> and put them inside? There was also something like
edit /etc/modules..
>> Is it just make this map too and create a files
"modules" where you
>> insert the names like this: mod1,mod2,mod3,.. ?
> I don't know what a "map" might be regarding
/lib/modules - /lib/modules
> is a directory, that the module files reside in.
>
> Regarding what to do with /etc/modules - just open it
in a text editor -
> there should be plenty of helpful comments in that
file.
>
> The usual procedure is
> * copy xxx.o to /lib/modules
> * add "xxx" to /etc/modules
> * save moddb (start lrcfg and the hit "m")
> * save config (start lrcfg and hit "s")
>
> Martin
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
------------------------------------------------------------
------------
> leaf-user mailing list: leaf-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user

> Support Request -- http://leaf-project.org/

>
>



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------
------------
leaf-user mailing list: leaf-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user

Support Request -- http://leaf-project.org/


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )