Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Problem when replacing Init


  • Subject: Re: lug-bg: Problem when replacing Init
  • From: long@xxxxxx (Alexander Popov)
  • Date: Fri, 21 Sep 2001 18:12:31 +0300



Thanks na wsichi... no se oprawih... sorry i za zakysnenieto - skysah se da
rebootwam tezi dwa dena :))

Znachi w init/main.c replacenah /sbin/init s edin shell script kojto kato
#!/bin/sh polzwa ash - toj e naj malkoto koeto namerih

problema mi beshe w JDK - prosto ne mu stiga pamet...

 IBM J9, cvm, Jeode i nqkolko drugi VM si raboti kato pich - ideqta e towa
da se puska na industrialni kontroleri ili embedded platki s malko RAM.

Kogato smenih init sys moq script (server.sh) w obshti linii se nalozhi samo
da si inicializiram proc fs-to i eth0 - s taka napraweni neshta se spestqwat
blizo 2MB RAM!!! koeto za sistema s 8MB si e dosta...

Izbegnah slaganeto na ldconfig i ld.so.conf s LD_LIBRARY_PATH - okaza se che
towa si raboti perfektno...
Realno problemi s ENV nqmashe - prosto lipsata na /proc, /var i /tmp mi bqha
grizhata - ama ot kyde tolkowa akyl.... :))))

----- Original Message -----
From: "Angel Valkov" <whitefang@xxxxxx>
To: <lug-bg@xxxxxxxxxxxxxxxxxx>
Sent: Monday, September 17, 2001 1:03 AM
Subject: Re: lug-bg: Problem when replacing Init

> On Sunday 16 September 2001 14:08, you wrote:
> > selibum,
> >
> > na kratko choweka iska da si smeni init programata s druga programa. No
> > za syjalenie(ili za shtastie ? ) sreshta trudnosti.
> > Towa koeto ti opiswash e normalnata rabota na edna linux sistema. Towa
> > koeto toj iska da naprawi e Linux kernel v/u kojto direktno da raboti
> > java vm. a ne prez init, etc.
> >
> > Sasho:
> > Ne razbrah w momenta kak setwash promenliwite e environmenta? kakwa
> > programa puskash wmesto init?
> >
> > BR,
> > Boyan
> Ami zna4i naj-byrziq i lesen na4in ( no i naj-grubiq )
> e da "hard-code"- promenite v environment-a i programata koiato startira
> v /usr/src/linux/init/main.c
>
> vyv funciata init();
>
> /*
> * We try each of these until one succeeds.
> *
> * The Bourne shell can be used instead of init if we are
> * trying to recover a really broken machine.
> */
>
> if (execute_command)
> execve(execute_command,argv_init,envp_init);
> execve("/sbin/init",argv_init,envp_init);
> execve("/etc/init",argv_init,envp_init);
> execve("/bin/init",argv_init,envp_init);
> execve("/bin/sh",argv_init,envp_init);
> panic("No init found.  Try passing init= option to kernel.");
>
> Po priemlivo reshenie e da si drasne nabyrzo edno mini-init4e na C
> koeto da mu ustanoviata pravilno ENV. i startira java "vyprosnata
programa"
> Po skoro startira to4no tazi VM koiato mu triabva za negovata platforma.
> primerno /path/to/jdk/bin/i386/native_threads/java
> Ustanoviavaneto na ENV-to ne move da go izbegne sys "stock" JDK.
>
===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
Zagora

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.