Flashen mit Linux (Debian) klappt nicht :( ?

Wie blitze ich ein Bild - Permanent Outgoing Incomes
osmanovic100
Neugieriger
Neugieriger
Beiträge: 17
Registriert: Donnerstag 26. September 2002, 19:58

Flashen mit Linux (Debian) klappt nicht :( ?

Beitrag von osmanovic100 »

Hallo,

ich versuche unter Linux zu flashen aber irgend was stimmt nicht

dhcp3-server, nfs-kernel-server, atftpd, rarpd... ist installiert
so sehen meine einstellungen aus:

/etc/dhcp3/dhcpd.conf

Code: Alles auswählen

subnet 192.168.2.0 netmask 255.255.255.0 {
  }
  host dbox {
    fixed-address 192.168.2.120;
    hardware ethernet 00:50:9c:xx:xx:xx;
    allow bootp;
    server-name "192.168.2.140";
      option root-path "/dbox/dbox2/cdkroot";
      filename "/tftpboot/ppcboot";
    option domain-name-servers 192.168.2.120;
    option routers 192.168.2.120;
  }
(das mid MAC "xx.xx.xx" habe ich extra gemacht ;)

habe auch mit.... >option root-path "/dbox/dbox2/";< ausprobiert, geht auch nicht
/etc/exports

Code: Alles auswählen

# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
/dbox/dbox2/cdkroot  192.168.2.120/24(rw,no_root_squash,async)
habe auch mit >/dbox/dbox2/< und ohne "/24" ausprobiert geht auch nicht

/etc/hosts

Code: Alles auswählen

192.168.2.120 dbox
/etc/hosts.allow

Code: Alles auswählen

in.tftpd: 192.168.2.120
portmap: 192.168.2.120
mountd: 192.168.2.120
/etc/hosts.deny

Code: Alles auswählen

in.tftpd: ALL
portmap: ALL
mountd: ALL
/etc/inetd.conf

Code: Alles auswählen

tftp            dgram   udp     wait    root /usr/sbin/tcpd /usr/sbin/in.tftpd --tftpd-timeout 300 --retry-timeout 5     --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5  /tftpboot

habe dann verteichnis "/dbox/dbox2" ertellt und das
"dbox2.tar" (mit cdkroot und tftpboot u.s.w) dahin entpackt
habe noch eine verzeichnis /tftpboot erstellt und "ppcboot u.s.w" dahin kopiert

wenn ich jetzt alles starte:
/etc/init.d/./dhcp3-server restart
/etc/init.d/./nfs-kernel-server restart
rarpd -e

und als terminal minicom
dann starte die box

minicom:

Code: Alles auswählen

Zdebug: DDF: Calibrating delay loop... debug: DDF: 67.79 BogoMIPS
debug: BMon V1.0  mID 01
debug: feID 7a    gtxID 0b
debug: fpID 5a     dsID 01-93.72.1b.07.00.00-ed
debug: HWrev X5  SWrev 0.81
debug: B/Ex/Fl(MB) 32/00/08
WATCHDOG reset enabled
dbox2:root> debug:
BOOTP/TFTP bootstrap loader (v0.3)
debug:
debug: Transmitting BOOTP request via broadcast
debug: Given up BOOTP/TFTP boot
boot net failed

Flash-FS bootstrap loader (v1.5)

Found Flash-FS superblock version 3.1
Found file /root/platform/nokia-dbox2/kernel/os in Flash-FS
debug: Got Block #0032

will verify ELF image, start= 0x800000, size= 155204
verify sig: 262
Branching to 0x40000


U-Boot 1.1.4 (Tuxbox) (Jun  4 2006 - 19:36:18)

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
Scanning JFFS2 FS: .... done.
FB:    ready
LCD:   ready
In:    serial
Out:   serial
Err:   serial
Net:   SCC ETHERNET

Options:
  1: Console on null
  2: Console on ttyS0
  3: Console on framebuffer
Select option (1-3), other keys to stop autoboot:  0
=>
eine taste gedruckt um abzubrechen and wenn ich "bootp" eingebe:

Code: Alles auswählen

Loading: => bootp
BOOTP broadcast 1
DHCP client bound to address 192.168.2.120
Using SCC ETHERNET device
TFTP from server 192.168.2.140; our IP address is 192.168.2.120
Filename '/tftpboot/ppcboot'.
Load address: 0x100000
Loading: =>
so soll es nicht sein, oder???

/var/log/syslog

Code: Alles auswählen

Jul  2 04:14:41 localhost dhcpd: DHCPDISCOVER from 00:50:9c:1d:0d:86 via eth0
Jul  2 04:14:41 localhost dhcpd: DHCPOFFER on 192.168.2.120 to 00:50:9c:1d:0d:86 via eth0
Jul  2 04:14:41 localhost dhcpd: DHCPREQUEST for 192.168.2.120 (192.168.2.140) from 00:50:9c:1d:0d:86 via eth0
Jul  2 04:14:41 localhost dhcpd: DHCPACK on 192.168.2.120 to 00:50:9c:1d:0d:86 via eth0
wenn ich "rarpboot" eingebe

Code: Alles auswählen

Loading: => rarpboot
RARP broadcast 1
Using SCC ETHERNET device
TFTP from server 192.168.2.140; our IP address is 192.168.2.120
Filename '/tftpboot/ppcboot'.
Load address: 0x100000
Loading: T T T
/var/log/syslog

Code: Alles auswählen

Jul  2 04:17:55 localhost rarpd[11597]: RARP response to  192.168.2.120 on
Jul  2 04:17:55 localhost rarpd[7940]: RARP response to  192.168.2.120 on
Jul  2 04:19:01 localhost rarpd[11597]: RARP response to  192.168.2.120 on
Jul  2 04:19:01 localhost rarpd[7940]: RARP response to  192.168.2.120 on

weil nichts passiert STRG+C für abrechen und dann gebe ich "reset" an:

Code: Alles auswählen

Abort
> reset
 debug: DDF: Calibrating delay loop... debug: DDF: 66.97 BogoMIPS
debug: BMon V1.0  mID 01
debug: feID 7a    gtxID 0b
debug: fpID 5a     dsID 01-93.72.1b.07.00.00-ed
debug: HWrev X5  SWrev 0.81
debug: B/Ex/Fl(MB) 32/00/08
WATCHDOG reset enabled
dbox2:root> debug:
BOOTP/TFTP bootstrap loader (v0.3)
debug:
debug: Transmitting BOOTP request via broadcast
debug: Unknown RFC1048-tag debug: 3 debug: 4 debug: c0 debug: a8 debug: 2 debug: 78 debug:
debug: Unknown RFC1048-tag debug: 6 debug: 4 debug: c0 debug: a8 debug: 2 debug: 78 debug:
debug: Unknown RFC1048-tag debug: 11 debug: 13 debug: 2f debug: 64 debug: 62 debug: 6f debug: 78 debug: 2f debug
debug: Got BOOTP reply from Server IP 192.168.2.140, My IP 192.168.2.120
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug: Sending TFTP-request for file /tftpboot/ppcboot
debug:
TFTP failed, giving up...
boot net failed

Flash-FS bootstrap loader (v1.5)

Found Flash-FS superblock version 3.1
Found file /root/platform/nokia-dbox2/kernel/os in Flash-FS
debug: Got Block #0032

will verify ELF image, start= 0x800000, size= 155204
verify sig: 262
Branching to 0x40000


U-Boot 1.1.4 (Tuxbox) (Jun  4 2006 - 19:36:18)

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
Scanning JFFS2 FS: .... done.
FB:    ready
LCD:   ready
In:    serial
Out:   serial
Err:   serial
Net:   SCC ETHERNET

Options:
  1: Console on null
  2: Console on ttyS0
  3: Console on framebuffer
Select option (1-3), other keys to stop autoboot:  0
=>
Habe keine Firewall installiert...
wenn ich "bdinfo" eingebe:

Code: Alles auswählen

=> bdinfo
memstart    = 0x00000000
memsize     = 0x02000000
flashstart  = 0x10000000
flashsize   = 0x00800000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0xFF000000
bootflags   = 0x00000001
intfreq     = 67.200 MHz
busfreq     = 67.200 MHz
ethaddr     = 00:50:9C:xx:xx:xx
IP addr     = 0.0.0.0
baudrate    =   9600 bps
warum steht da "IP addr = 0.0.0.0"
kann sein das es daran liegt? es muss doch die ip: 192.168.2.120 stehen, oder?

wenn ich "tftpboot" eingebe:

Code: Alles auswählen

=> tftpboot
*** ERROR: `serverip' not set
was kann das problem sein?

ich weiß, es geht einfache über ftp die image datei in /tmp (dbox) ordner kopieren und dann über dbox Menu das image flashen.... mich interessiert aber warum bei "unter Linux image Flashen" nicht geht!

Danke im vorraus für antwort

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

Beitrag von Houdini »

Probier mal das:

Code: Alles auswählen

etc/dhcp3/dhcpd.conf
subnet 192.168.2.0 netmask 255.255.255.0 {
  }
  host dbox {
    fixed-address 192.168.2.120;
    hardware ethernet 00:50:9c:xx:xx:xx;
    allow bootp;
    server-name "192.168.2.140";
    next-server 192.168.2.140;
      option root-path "/dbox/dbox2/cdkroot";
      filename "/tftpboot/ppcboot";
    option domain-name-servers 192.168.2.120;
    option routers 192.168.2.120;
  }
osmanovic100
Neugieriger
Neugieriger
Beiträge: 17
Registriert: Donnerstag 26. September 2002, 19:58

Beitrag von osmanovic100 »

Hallo Haudini,

hane es ausprobiert und es lag nicht daran, sondern an "atftpd" paket :roll:
habe dann "atftpd" deb paket von sarge installiert und jetzt bin ich etwas weiter;

minicom:

Code: Alles auswählen

 BOOTP/TFTP bootstrap loader (v0.3)
debug:
debug: Transmitting BOOTP request via broadcast
debug: Unknown RFC1048-tag debug: 3 debug: 4 debug: c0 debug: a8 debug: 2 debug: 78 debug:
debug: Unknown RFC1048-tag debug: 6 debug: 4 debug: c0 debug: a8 debug: 2 debug: 78 debug:
debug: Unknown RFC1048-tag debug: 11 debug: e debug: 2f debug: 64 debug: 62 debug: 6f debug: 78 debug: 32 deb
debug: Got BOOTP reply from Server IP 192.168.2.140, My IP 192.168.2.120
debug: Sending TFTP-request for file /tftpboot/ppcboot
will verify ELF image, start= 0x800000, size= 224356
verify sig: 262
boot net: boot file has no valid signature
Branching to 0x40000


ppcboot 0.6.4 (Jan 10 2002 - 16:35:20)

Initializing...
  CPU:   PPC823ZTnnA at 67 MHz: 2 kB I-Cache 1 kB D-Cache
         *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
  Board: ### No HW ID - assuming TQM8xxL
  DRAM:  (faked) 32 MB
  Ethernet: 00-50-9c-1d-0d-86
  FLASH:  8 MB
  LCD driver (KS0713) initialized
  No LCD Logo in Flash , trying tftp
BOOTP broadcast 1
TFTP from server 192.168.2.140; our IP address is 192.168.2.120; sending throught gateway 192.168.2.120
Filename '/tftpboot/logo-lcd'.
Load address: 0x130000
Loading: ##
done
  LCD logo at: 0x130000 (0x1FD2864 bytes)
  No FB Logo in Flash , trying tftp
BOOTP broadcast 1
TFTP from server 192.168.2.140; our IP address is 192.168.2.120; sending throught gateway 192.168.2.120
Filename '/tftpboot/logo-fb'.
Load address: 0x120000
Loading: ###
done
  FB logo at: 0x0 (0x1FC0000 bytes)
  AVIA Frambuffer
  Input:  serial
  Output: serial

Images:
 1: cdk
 2: yadd
 3: debian
 4: tiab
 5: flash
Select image (1-5), other keys to stop autoboot:  0
dbox2-ppcboot>
dann gebe ich "bootp"

Code: Alles auswählen

dbox2-ppcboot> bootp
BOOTP broadcast 1
TFTP from server 192.168.2.140; our IP address is 192.168.2.120; sending throught gateway 192.168.2.120
No file name; using '7802A8C0.img'.
No load address; using 0x100000
Loading: #####################################################################################################done

dbox2-ppcboot>
habe das image nach /tftpboot kopiert und auch umbenannt "7802A8C0.img"

jetzt weiß ich echt nicht weiter :(
wie flashe ich es?


Gruss,
Osmanovic
MarcM
Foren-Moderator
Beiträge: 1119
Registriert: Sonntag 9. Juni 2002, 13:28

Beitrag von MarcM »

Hi,

ich weiß nicht obs dir hilft....aber ich flashe mit meinem Debian-Server immer ohne Nullmodem mit der ppcboot von dietmarHs Anleitung > http://www.dietmar-h.net/alt_flash.html

Ich geb ihm einfach die ppcboot und benenne das zu flashende Image in 13.img um und lege es in den selben Pfad wie die ppcboot.

Genaueres kann ich dir aber im Moment nicht sagen...mein Debian-Server ist platt und wartet auf ein neues Mainboard/CPU

Marc
osmanovic100
Neugieriger
Neugieriger
Beiträge: 17
Registriert: Donnerstag 26. September 2002, 19:58

Beitrag von osmanovic100 »

Hallo MarcM,

genau so habe ich es geschafft! :)
es lag an "ppcboot"

habe von hier: http://www.dietmar-h.net/ppcboot
die ppcboot runtrergeladen und nach /tftpboot kopiert, dann noch das image nach /tftpboot kopiert und in 13.img umbennant

und siehe da es geht, Dbox2 Display zeigt "Flashing..."

jetzt habe ich kein grund mehr Windoof zu benutzen
Linux 4ever!

Danke euch allen!

Gruss,
Osmanovic