DHCP + DNS-Server --> uboot

Wünsche, Anträge, Fehlermeldungen
GrownGizmo
Neugieriger
Neugieriger
Beiträge: 9
Registriert: Donnerstag 9. Februar 2006, 11:31

DHCP + DNS-Server --> uboot

Beitrag von GrownGizmo »

Hallo,

bezieht die Dbox Ihre Netzwerkeinstellungen per DHCP, so kann man in Neutrino den DNS-Server nicht manuell eintragen.
Mach ja auch sinn, für was verwende ich sonst DHCP.
Allerdings scheint das Uboot die Information über den DNS-Server nicht auszuwerten, oder der Kernel kann mit der Information nichts anfangen.

Mein Server:
- Suse 10.1
- ISC DHCP-Server 3.0.3-21
- dhcpd.conf wie folgt

Code: Alles auswählen

ddns-update-style none;
subnet 192.168.102.0 netmask 255.255.255.0 {
}
host dbox2-2 {
          fixed-address                   192.168.102.102;
          hardware ethernet 00:50:9C:xx:xx:xx;
          allow bootp;
          next-server                     192.168.102.250;
          if exists vendor-class-identifier {
             filename                    "102/kernel-yadd";
             option root-path            "192.168.102.250:/dboxroots/102/dbox";
             option routers               192.168.102.250;
             option domain-name-servers   192.168.134.87;
             option ntp-servers           192.168.102.250;
             option routers               192.168.102.250;
          } else {
             filename                    "102/u-boot";
          }
        }
Ach ja, der Gateway (option routers) wird wie gewünscht gesetzt!

Die Dbox:
- Nokia 2xI Sat Avia500
- YADD vom 2006-08-07

Code: Alles auswählen

version=0200200608070520
creator=dietmarw
imagename=newmake-yadd
homepage=http://www.tuxbox.org
Das Bootlog:

Code: Alles auswählen

Please stand by while rebooting the system.
:root> debug: 
BOOTP/TFTP bootstrap loader (v0.3)
debug: 
debug: Transmitting BOOTP request via broadcast
debug: Got BOOTP reply from Server IP 192.168.102.250, My IP 192.168.102.102
debug: Sending TFTP-request for file 102/u-boot
debug: Got Block #0050
debug: Got Block #0050
debug: Got Block #0100
debug: Got Block #0150
debug: Got Block #0200
will verify ELF image, start= 0x800000, size= 137924
verify sig: 262
boot net: boot file has no valid signature
Branching to 0x40000


U-Boot 1.1.4 (Tuxbox) (Aug  4 2006 - 05:15:10)

CPU:   PPC823ZTnnA at 67.200 MHz: 2 kB I-Cache 1 kB D-Cache
         *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
Board: DBOX2, Nokia, BMon V1.0
       Watchdog enabled
I2C:   ready
DRAM:  32 MB
FLASH:  8 MB
FB:    ready
LCD:   ready
In:    serial
Out:   serial
Err:   serial
Net:   SCC ETHERNET
BOOTP broadcast 1
DHCP client bound to address 192.168.102.102
Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename '102/kernel-yadd'.
Load address: 0x100000
Loading: *Using SCC ETHERNET device
File transfer via NFS from server 192.168.102.250; our IP address is 192.168.102.102
Filename '/dboxroots/102/dbox/var/tuxbox/boot/boot.conf'.
Load address: 0x100000
Loading: *#
done
Bytes transferred = 44 (2c hex)
BOOTP broadcast 1
DHCP client bound to address 192.168.102.102
Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename '102/kernel-yadd'.
Load address: 0x100000
Loading: *Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename 'logo-lcd'.
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
can't find logo
BOOTP broadcast 1
DHCP client bound to address 192.168.102.102
Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename '102/kernel-yadd'.
Load address: 0x100000
Loading: *Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename 'logo-fb'.
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
can't find logo

Options:
  1: console on ttyS0
  2: console on fb0
  3: console on null
Select option (1-3), other keys to stop autoboot:  1  0 
BOOTP broadcast 1
DHCP client bound to address 192.168.102.102
Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename '102/kernel-yadd'.
Load address: 0x100000
Loading: *Using SCC ETHERNET device
TFTP from server 192.168.102.250; our IP address is 192.168.102.102
Filename '102/kernel-yadd'.
Load address: 0x100000
Loading: *#################################################################
[8C #################################################################
[8C ############################
done
Bytes transferred = 804148 (c4534 hex)
...............................................................
Un-Protected 63 sectors
## Booting image at 00100000 ...
   Image Name:   dbox2
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    804084 Bytes = 785.2 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.32-dbox2 (dietmarw@linux) (gcc version 3.4.4) #1 Fr Aug 4 05:16:45 CEST 2006
[94C
On node 0 totalpages: 8192
[26C
zone(0): 8192 pages.
[20C
zone(1): 0 pages.
[17C
zone(2): 0 pages.
[17C
Kernel command line: root=/dev/nfs rw nfsroot=192.168.102.250:/dboxroots/102/dbox ip=192.168.102.102:192.168.102.250:192.168.102.250:255.255.255.0:::off console=ttyS0
[166C
Decrementer Frequency = 252000000/60
[36C
m8xx_wdt: active wdt found (SWTC: 0xFFFF, SWP: 0x1)
[51C
m8xx_wdt: keep-alive trigger installed (PITC: 0x12C0)
[53C
Console: colour dummy device 80x25
[34C
Calibrating delay loop... 66.96 BogoMIPS
[40C
Memory: 30500k available (1364k kernel code, 436k data, 68k init, 0k highmem)
[77C
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
[61C
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
[60C
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
[58C
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
[60C
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
[59C
POSIX conformance testing by UNIFIX
[35C
Linux NET4.0 for Linux 2.4
[26C
Based upon Swansea University Computer Society NET3.039
[55C
Initializing RT netlink socket
[30C
Starting kswapd
[15C
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
[61C
devfs: boot_options: 0x1
[24C
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
[53C
Squashfs 2.2-r2 (released 2005/09/08) (C) 2002-2005 Phillip Lougher
[67C
i2c-core.o: i2c core module version 2.6.1 (20010830)
[52C
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
[66C
CPM UART driver version 0.04
[28C
ttyS0 at 0x0280 is on SMC1 using BRGÿttyS1 at 0x0380 is on SMC2 using BRG2
[74C
pty: 256 Unix98 ptys configured
[31C
eth0: CPM ENET Version 0.2.dbox2 on SCC2, 00:50:9C:xx:xx:xx
[59C
loop: loaded (max 8 devices)
[28C
D-Box 2 flash driver (size->0x800000 mem->0x10000000)
[53C
D-Box 2 flash memory: Found 2 x16 devices at 0x0 in 32-bit bank
[63C
 Intel/Sharp Extended Query Table at 0x0035
[43C
cfi_cmdset_0001: Erase suspend on write enabled
[47C
Creating 6 MTD partitions on "D-Box 2 flash memory":
[52C
0x00000000-0x00020000 : "BR bootloader"
[39C
0x00020000-0x00040000 : "FLFS (U-Boot)"
[39C
0x00040000-0x006a0000 : "root (rootfs)"
[39C
0x006a0000-0x00800000 : "var (jffs2)"
[37C
0x00020000-0x00800000 : "Flash without bootloader"
[50C
0x00000000-0x00800000 : "Complete Flash"
[40C
Linux video capture interface: v1.00
[36C
mice: PS/2 mouse device common for all mice
[43C
NET4: Linux TCP/IP 1.0 for NET4.0
[33C
IP Protocols: ICMP, UDP, TCP
[28C
IP: routing cache hash table of 512 buckets, 4Kbytes
[52C
TCP: Hash tables configured (established 2048 bind 4096)
[56C
IP-Config: Complete:
[20C
      device=eth0, addr=192.168.102.102, mask=255.255.255.0, gw=192.168.102.250,
[80C
     host=192.168.102.102, domain=, nis-domain=(none),
[54C
     bootserver=192.168.102.250, rootserver=192.168.102.250, rootpath=
[70C
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
[51C
Looking up port of RPC 100003/2 on 192.168.102.250
[50C
Looking up port of RPC 100005/1 on 192.168.102.250
[50C
VFS: Mounted root (nfs filesystem).
[35C
Mounted devfs on /dev
[21C
Freeing unused kernel memory: 68k init
[38C
init started:  BusyBox v1.1.3 (2006.08.07-03:17+0000) multi-call mount: Mounting devpts on /dev/pts failed: No such file or directory
Detected STB:
[8CVendor: Nokia
[8CModel: D-BOX2 
[i2c-8xx]: mpc 8xx i2c init
[27C
[i2c-8xx]: adapter: 0
[21C
event: $Id: event.c,v 1.12 2003/09/30 05:45:38 obi Exp $
[56C
$Id: cam.c,v 1.30 2004/01/10 16:36:34 alexw Exp $
[49C
$Id: avia_napi.c,v 1.18 2003/11/24 09:53:01 obi Exp $
[53C
DVB: registering new adapter (C-Cube AViA GTX/eNX with AViA 500/600).
[69C
DVB: registering frontend 0:0 (VES1893)...
[42C
dvb_i2c_bridge: enabled DVB i2c bridge to PowerPC 8xx I2C adapter
[65C
$Id: cam_napi.c,v 1.8 2003/09/30 05:45:34 obi Exp $
[51C
avia_av: $Id: avia_av_core.c,v 1.99 2006/01/08 21:36:22 carjay Exp $
[68C
avia_av_core: Starting avia_av_wdt thread.
[42C
avia_av_event: $Id: avia_av_event.c,v 1.11 2003/10/26 16:32:51 obi Exp $
[72C
avia_av_proc: $Id: avia_av_proc.c,v 1.14 2004/01/21 20:02:29 carjay Exp $
[73C
avia_gt_core: $Id: avia_gt_core.c,v 1.48 2004/12/20 01:01:22 carjay Exp $
[73C
avia_gt_core: autodetecting chip type... GTX
[44C
avia_gt_gtx: $Id: avia_gt_gtx.c,v 1.24 2003/09/30 05:45:35 obi Exp $
[68C
avia_gt_accel: $Id: avia_gt_accel.c,v 1.19 2003/09/30 05:45:35 obi Exp $
[72C
avia_gt_dmx: $Id: avia_gt_dmx.c,v 1.210 2004/06/26 16:08:15 carjay Exp $
[72C
avia_gt_core: masking unhandled irq reg 1 bit 11
[48C
avia_gt_core: masking unhandled irq reg 1 bit 13
[48C
avia_gt_ucode: loaded ucode v0014
[33C
avia_gt_ucode: ucode section filters enabled.
[45C
avia_gt_dmx: warning, misaligned queue 0 (is 0xFD200, size 65536), aligning...
[78C
avia_gt_core: masking unhandled irq reg 0 bit 6
[47C
avia_gt_gv: $Id: avia_gt_gv.c,v 1.39 2004/08/28 16:44:56 carjay Exp $
[69C
avia_gt_gv: set_input_size (width=720, height=576)
[50C
avia_gt_pcm: $Id: avia_gt_pcm.c,v 1.29 2004/01/29 19:38:20 zwen Exp $
[69C
avia_gt_pcm_set_rate(44100)
[27C
avia_gt_capture: $Id: avia_gt_capture.c,v 1.32 2003/09/30 05:45:35 obi Exp $
[76C
avia_gt_pig: $Id: avia_gt_pig.c,v 1.40 2003/09/30 05:45:35 obi Exp $
[68C
avia_gt_vbi: $Id: avia_gt_vbi.c,v 1.26 2003/08/01 17:31:22 obi Exp $
[68C
avia_gt_core: Loaded AViA eNX/GTX driver
[40C
avia_gt_fb: $Id: avia_gt_fb_core.c,v 1.54 2004/03/17 18:42:18 zwen Exp $
[72C
avia_gt_gv: set_input_mode (mode=2)
[35C
avia_gt_gv: set_input_size (width=720, height=576)
[50C
avia_gt_gv: set_input_mode (mode=2)
[35C
avia_gt_gv: set_input_size (width=720, height=576)
[50C
avia_gt_gv: set_input_mode (mode=2)
[35C
avia_gt_gv: set_input_size (width=720, height=576)
[50C
Console: switching to colour frame buffer device 82x32
[54C
avia_gt_fb: fb0: AViA eNX/GTX Framebuffer frame buffer device
[61C
lcd.o: init lcd driver module
[29C
lcd.o: found KS0713/SED153X lcd interface
[41C
avia_gt_lirc: $Id: avia_gt_lirc.c,v 1.14 2003/09/30 05:45:35 obi Exp $
[70C
avia_gt_ir: $Id: avia_gt_ir.c,v 1.30 2003/09/30 05:45:35 obi Exp $
[66C
avia_oss: $Id: avia_gt_oss.c,v 1.26 2004/05/31 22:56:02 carjay Exp $
[68C
avia_gt_pcm_set_rate(44100)
[27C
avia_gt_v4l2: $Id: avia_gt_v4l2.c,v 1.12 2003/09/30 04:54:03 obi Exp $
[70C
avia_av_napi.c: $Id: avia_av_napi.c,v 1.33 2004/03/11 15:30:27 derget Exp $
[75C
avia_gt_napi: $Id: avia_gt_napi.c,v 1.203 2005/01/05 05:49:56 carjay Exp $
[74C
Loading /share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap.gz
[96] Dec 07 20:29:20 Failed reading '/var/etc/dropbear/dropbear_rsa_host_key', disabling RSA
[96] Dec 07 20:29:20 Failed reading '/var/etc/dropbear/dropbear_dss_host_key', disabling DSS
[96] Dec 07 20:29:21 premature exit: No hostkeys available

Please press Enter to activate this console. [LCDFONT] initializing core...
[LCDFONT] adding font /share/fonts/micron.ttf...OK (Micron/Regular)
[LCDFONT] Intializing font cache...
[LCDFONT] FTC_Face_Requester (Micron/Regular)
Thu Jan  1 01:00:00 CET 1970
$Id: sectionsd.cpp,v 1.227 2006/06/08 20:19:32 houdini Exp $
[sectionsd] Caching max 6000 events
[sectionsd] Caching 14 days
[sectionsd] Events are old 60min after their end time
sh: /sbin/rdate: not found
[camd] ca system id: 1702
$Id: zapit.cpp,v 1.389 2006/06/08 20:17:58 houdini Exp $
avia_gt_core: masking unhandled irq reg 0 bit 7
[47C
[getservices] loading motor positions...
[getservices] motor.conf not found.
/tmp/currentservices.xml: No such file or directory
$Id: controld.cpp,v 1.124 2006/06/27 10:21:59 barf Exp $

[controld] Boxtype detected: (1, Nokia D-BOX2)
[controld]: ROUTEVIDEO v1 = 5 a1 = 1 v2 = 1 a2 = 1 v3 = 0 a3 = 1 fblk=1
[nhttpd] Neutrino HTTP-Server starting..
[LCDFONT] initializing core...
[LCDFONT] adding font /share/fonts/micron.ttf...OK (Micron/Regular)
[LCDFONT] adding font /share/fonts/micron_bold.ttf...OK (Micron/Bold)
[LCDFONT] adding font /share/fonts/pakenham.ttf...OK (Pakenham/Regular)
[LCDFONT] Intializing font cache...
[neutrino] frameBuffer Instance created
812k video mem
avia_gt_gv: set_input_mode (mode=2)
[35C
avia_gt_gv: set_input_size (width=720, height=576)
[50C
[neutrino] enable flash
[neutrino] Software update enabled
[deutsch.locale] missing entry:     moviebrowser.edit_book_name_info2
[deutsch.locale] missing entry:     moviebrowser.edit_book_pos_info2
[deutsch.locale] has 2 missing entrys
[lcdd] time-skin not found -> using default...
[lcdd] weekday-skin not found -> using default...
[lcdd] date-skin not found -> using default...
[lcdd] month-skin not found -> using default...
[LCDFONT] initializing core...
[LCDFONT] adding font /share/fonts/12.pcf.gz...OK (Fix12/Regular)
[LCDFONT] adding font /share/fonts/14B.pcf.gz...OK (Fix14/Bold)
[LCDFONT] adding font /share/fonts/15B.pcf.gz...OK (Fix15/Bold)
[LCDFONT] Intializing font cache...
[LCDFONT] FTC_Face_Requester (Fix15/Bold)
[LCDFONT] FTC_Face_Requester (Fix14/Bold)
/dev/input/event1: No such file or directory
[neutrino] menue setup
[basicsocket] send_data: Resource temporarily unavailable
loading locales: scandir: No such file or directory
[neutrino] received 17 sats
[neutrino] registering as event client
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[basicsocket] send_data: Resource temporarily unavailable
[neutrino] initialized everything
[camd] set emm caid 1702 capid 1000
[sectionsd] getUTC: read: Connection timed out
PES, queue 0 normal.
[20C
[camd] set emm caid 1702 capid 1000
sh: /sbin/rdate: not found
[controld] VIDEO_EVENT_SIZE_CHANGED 480x576 (4:3 -> 4:3)
[timeThread] - 12.08.2006 21:11:30, tim: Sat Aug 12 21:11:30 2006
[timeThread] Time set via DVB, going to sleep for 1800 seconds.
Ich behaupte mal ganz frech, dass das uboot beteiligt ist, das es die Option in der Zeile

Code: Alles auswählen

Kernel command line: root=/dev/nfs rw nfsroot=192.168.102.250:/dboxroots/102/dbox ip=192.168.102.102:192.168.102.250:192.168.102.250:255.255.255.0:::off console=ttyS0 
offensichtlich nicht übergibt.

Eine Nutzung von Tux-Wetter wird in einer DHCP-Umgebung erschwert.

danke, ciao
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

du hast recht, aber es gibt keine kernel commandline parameter für dns server da musst du wohl mit resolv.conf leben
GrownGizmo
Neugieriger
Neugieriger
Beiträge: 9
Registriert: Donnerstag 9. Februar 2006, 11:31

Beitrag von GrownGizmo »

Dann sollte aber am Neutrino was angepasst werden.

Möglichkeit a)
Neutrino veranlasst in der Einstellung "DHCP" nochmal einen Request an den DHCP-Server.

Möglichkeit b)
Der Parameter "DNS-Server" wird in der Einstellung "DHCP" nicht ausgegraut.
GrownGizmo
Neugieriger
Neugieriger
Beiträge: 9
Registriert: Donnerstag 9. Februar 2006, 11:31

Beitrag von GrownGizmo »

Na ok,

ich hab grad Neutrino auf manuelle Netzwerkeinstellung zurückgestellt, den DNS-Server gesetzt, und rebootet.

Nach dem Reboot waren die Einstellungen per DHCP vorhanden, wohl durch den Kernel gesetzt. Die Zugehörigen Felder in Neutrino waren leer.

Als ich Neutrino wieder auf setzen der Netzwerkeinstellungen durch DHCP umgestellt habe, hat es sich etwas seltsam beim reboot verhalten. Ich denke mal das Root-over-NFS-Dateisystem war verloren.

Nach dem anschliesenden Reset läufts einwandfrei.

Nun die Fragen:
Kann Neutrino in einem Image vom Flash bei der Einstellung DHCP einen Nameserver via DHCP setzen?
Ist die Einstellung DHCP im Neutrino bei einer YADd in Neutrino ausser Funktion?

ciao