TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
DHCP Client
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> ADNP/1520
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 18.01.2007, 16:30    Post subject: DHCP Client Reply with quote

Hallo *

Wie ich in diesem Forum in Erfahrung gebracht habe, ist per default ein DHCP Client auf dem ADNP1520 installiert. Ich vergebe immer fixe Netzwerkdaten .. ist somit die DHCP Fähigkeit deaktiviert, oder werden falls hostseitig ein DHCP Server verwendet wird andere Netzwerkdaten bezogen!?
Da wir unsere Dil/Nets in 3 verschiedenen Netzen verwenden (2 davon mit DHCP Servern, eines nicht Rolling Eyes ) wäre es sehr praktisch in dem nicht DHCP fähigem Netz die eingetragene IP zu verwenden und in den anderen beiden Netzen sich jeweils die IPs zuweisen zu lassen. Geht das, bzw. wie!?

Vielen Dank,
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 23.01.2007, 12:58    Post subject: DHCP für den ADNP/1520 Reply with quote

Hallo.

Von uns gibt es verschiedene Linux-Varianten für den ADNP/1520. Einige unterstützen standardmäßig DHCP, andere nicht. Welches Linux benutzen Sie?

Gruß

KDW
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 23.01.2007, 13:17    Post subject: Reply with quote

Hallo!

Linux version 2.4.17, SSV20021206 (gcc version 2.95.2 ...)

Gruß
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 23.01.2007, 22:56    Post subject: DHCP … Reply with quote

Hallo Marco.

Teste bitte mal die Konfiguration /DNPX/DOSSSD/PRECFG5 von der ADNP/1520 Starter Kit CD-ROM. Diese Variante basiert auf einem Kernel 2.4.20.

In diesem ADNP/1520 ist standardmäßig ein DHCP Client aktiv. Der versucht in der Bootphase eine IP-Adresse von einem Server zu beziehen. Wenn das nicht klappt, wird die manuell eingestellt IP-Adressse benutzt.

Gruß

Klaus
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 26.01.2007, 12:57    Post subject: Reply with quote

Hallo Klaus,

Danke für den INPUT.. jetzt funktionierts!
Eine Frage hab ich aber noch bezüglich des Hostnamens. Dieser scheint nämlich PC seitig nicht auf. Gibt es da eine Möglichkeit dies zu ändern?

Gruß,
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 30.01.2007, 07:53    Post subject: DHCP … Reply with quote

Hallo Marco.

Was genau meinst du in diesem Zusammenhang mit dem Hostnamen?

Gruß

KDW
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 30.01.2007, 09:17    Post subject: Reply with quote

Hallo Klaus!

Der DHCP Server welcher bei uns läuft bekommt vom ADNP keinen Hostnamen zugewiesen.
Standartmässig konfiguriere ich alle ADNP's mit Hostnamen (ipaddree -h [Wort gesperrt]).
Und eben dieser Hostname scheint dann nicht auf. Gibt es da eine Möglichkeit diesen für das Server Program sichtbar zu machen? Die anderen Linux Clients welche wir in diesem Netz betreiben übermitteln ihren Hostnamen korrekt.

Gruß
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 01.02.2007, 17:04    Post subject: DHCP Hostname ... Reply with quote

Hallo Marco.

Der „dhcpd“ im ADNP/1520-Linux kennt den Parameter „-h <hostname>". Siehe hierzu auch http://www.die.net/doc/linux/man/man8/dhcpcd.8.html ). Dann wird auch der Hostname an den DHCP-Server übermittelt.

Hilft das weiter?

Gruß

KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 07.02.2007, 16:02    Post subject: DHCP mit Hostname ... Reply with quote

Hallo Macro.

Mein Kollege M. Hasewinkel hat ein Beispiel entwickelt. Es erfordert lediglich eine Datei /flash/autoinit.sh mit dem folgenden Inhalt:

#!/bin/sh

#save DHCP client
mv /sbin/dhcpcd /sbin/dhcpcd-orig

#create new DHCP client script
cat > /sbin/dhcpcd << EOF
#!/bin/sh
#interface: eth0 - timeout: 10 sec - hostname: emblinux
/sbin/dhcpcd-orig -h emblinux -t 10 eth0
exit 0
EOF

#make script executable
chmod 755 /sbin/dhcpcd


Diese Datei wird bei jedem Bootvorgang ausgeführt und sorgt dafür, dass der DHCPD mit dem Hostnamen „emblinux“ gestartet wird.

Gruß

KDW
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 23.03.2007, 11:41    Post subject: Reply with quote

Hallo Klaus,

Vielen Dank, klappt alles wunderbar.
Ein Problem hab ich aber leider bezüglich NVM Bereich (/mnt...) bei diesem PRECFG5 Image. Ich kann zwar eine Verzeichnisstruktur basierend auf /mnt anlegen, aber nach einem reboot is alles wieder verschwunden Sad . Gibts da noch eine Konfiguration die ich vornehmen muss ??

Vielen Dank,
Marco
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 23.03.2007, 14:25    Post subject: Reply with quote

Noch ein Zusatz zu meinem vorigem Posting!

Folgende Fehlermeldungen sind beim Bootvorgang zu sehen:

MINIX-fs warning: remounting unchecked fs, running fsck is recommended.
und dann gehts los:
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x004cb324: 0x3931 instead
...
...
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006a0024: 0x4620 instead

Further such events for this erase block will not be printed

JFFS2: Erase block at 0x006a0000 is not formatted. It will be erased

Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes

mount: wrong fs type, bad option, bad superblock on /dev/mtdblock7,

or too many mounted file systems
Init...

Gruß
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 28.03.2007, 13:17    Post subject: Ein Problem hab ich aber leider bezüglich NVM Bereich ... Reply with quote

Hallo Marco.

Der Flash-Bereich des ADNP/1520 ist im Verzeichnis /flash zu finden. Alle anderen Verzeichnisse sind auf der RAM-Disk abgebildet. Darum ist nach dem Reboot wieder alles verschwunden.

Nur der Inhalt von /flash bleibt auch nach dem Reboot erhalten.

Gruß

KDW
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 28.03.2007, 13:22    Post subject: Folgende Fehlermeldungen sind beim Bootvorgang zu sehen ... Reply with quote

Hallo Marco.

Das hört sich an, als wäre die Flash-Disk beschädigt. Bitte Dateien sichern und neu „Formatieren“. Siehe auch http://www.dilnetpc.com/mHT1520B-11.pdf

Gruß

KDW
Back to top
View user's profile Send private message
marco76



Joined: 18 Jan 2007
Posts: 10
Location: Graz

PostPosted: 28.03.2007, 13:28    Post subject: Reply with quote

Hallo Klaus!

Kann das vielleicht daran liegen, dass wir zuvor oder bessergesagt zur Zeit, ein Image verwenden welches den EEPROM Bereich unter /mnt angelegt hat, und ich diese neue Image ohne jegliches "Format C:" Wink auf den ADNP1520 gespielt habe?!

Gruß
Marco
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 28.03.2007, 16:10    Post subject: Flash ... Reply with quote

Hallo Marco.

Das könnte in der Tat sein. Ein Flash sollte vor der Nutzung durch ein JFFS immer entsprechend formatiert werden.

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 >>> ADNP/1520 All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
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 GmbH

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

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015