TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Verhindern das "autostart.sh" ausgeführt wird....

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
Lucky B



Joined: 25 Jul 2006
Posts: 35

PostPosted: 08.12.2006, 13:04    Post subject: Verhindern das "autostart.sh" ausgeführt wird.... Reply with quote

Hi,

bei Tests hatte ich versentlich eine autostart.sh, die permanent neu gebootet hat. Deshalb wollte ich das Automatische ausführen der "autostart.sh" verhindern.
In einer Dokumentation hatte ich gefunden das das mit dem bootargument !ssv_autostart funktioniert. (Über u-boot usw.) Allerdings hat der Dil/Net trotz diesem Argument die autostart.sh ausgeführt.

Ich verwende Kernel 2.6 gibt es da vielleicht irgendwelche probleme ?

Inzwischen hab ich den flash über U-Boot gelöscht, aber in Zukunft wäre es nicht schlecht diese möglichkeit zu haben.

Gruß und Danke
Björn
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1519

PostPosted: 08.12.2006, 17:04    Post subject: Autostart-Ausführung ausschalten ... Reply with quote

Hallo Björn.

Das funktioniert, auch mit dem 2.6-Kernel. Mit !ssv_autostart wird die Ausführung der autostart.sh (in /flash/) verhindert. Mit !ssv_autoinit wird die Ausführung der autoinit.sh (in /flash/) verhindert.

Diese Argumente werden von U-Boot übergeben und durch die Skripte in /etc/rc.d/init.d/autostart und /etc/rc.d/init.d/autoinit abgearbeitet. Deshalb erscheint auch weiterhin die Meldung „...Starting autostart“. Das Skript in /flash wird aber nicht ausgeführt!

Hier ein Beispiel mit dem ADNP/9200 (gleicher 2.6 Kernel wie DNP/9200):

Default:

U-Boot 1.1.2 (Sep 12 2006 - 13:14:57)

U-Boot code: 21F00000 -> 21F1666C BSS: -> 21F1AC44
RAM Configuration:
Bank #0: 20000000 64 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
U-Boot> print
bootargs=console=ttyS0,115200 root=/dev/ram
bootdelay=3
baudrate=115200
ipaddr=192.168.0.126
serverip=192.168.0.1
netmask=255.255.255.0
bootfile="img-dnp9200"
ethaddr2=02:80:ad:20:9b:c3
ipaddr2=192.168.1.126
ethaddr=02:80:ad:20:c3:8d
bootcmd=bootm 0x10040000
stdin=serial
stdout=serial
stderr=serial

Environment size: 300/4092 bytes
...

Nach dem Kernel Bootvorgang:

...
Starting httpd
Starting autostart Starting...

dm9000 Ethernet Driver
eth1: Invalid ethernet MAC address. Please set using ifconfig
eth1: dm9000 at c4806000,c480d004 IRQ 101 MAC: 00:00:00:00:00:00
Configuring eth1 with MAC-addr: 02:80:ad:20:9b:c3
Configuring eth1 with IP-addr: 192.168.1.126
eth1: link down

- SSV Embedded Linux - Version 0.62.26-ssv2
emblinux login:
...

Mit folgender Eingabe in U-Boot Autostart abgeschaltet:

U-Boot> setenv bootargs console=ttyS0,115200 root=/dev/ram !ssv_autostart
U-Boot> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash...\done
Protected 1 sectors
U-Boot> print
bootdelay=3
baudrate=115200
ipaddr=192.168.0.126
serverip=192.168.0.1
netmask=255.255.255.0
bootfile="img-dnp9200"
ethaddr2=02:80:ad:20:9b:c3
ipaddr2=192.168.1.126
ethaddr=02:80:ad:20:c3:8d
bootcmd=bootm 0x10040000
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttyS0,115200 root=/dev/ram !ssv_autostart

Nach dem Kernel Bootvorgang:

...
Starting httpd
Starting autostart

- SSV Embedded Linux - Version 0.62.26-ssv2
emblinux login:
...

Voilà!

Gruß

KDW
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015