udhcpc: sendto: Network is down

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After a lot of problems with my ngw100 and no success to boot linux anymore, I decided to buy a JTAGICE mkII. I downloaded the newest version of buildroot and loaded the original firmware from buildroot back to the board. But unfortunately it will not boot. The last line it prints is: "udhcpc: sendto: Network is down". Then it stops and nothing can be done anymore. Here is the code:

U-Boot 1.3.2 (Jun 13 2008 - 01:02:10) 

U-Boot code: 00000000 -> 00010a80  data: 00016a08 -> 0004d0a0
SDRAM: 32 MB at address 0x10000000
Testing SDRAM...OK
malloc: Using memory from 0x11f72000 to 0x11fb2000
DMA: Using memory from 0x11f6e000 to 0x11f72000
Flash:  8 MB at address 0x00000000
DRAM Configuration:
Bank #0: 10000000 32 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   macb0, macb1
Press SPACE to abort autoboot in 1 seconds
### JFFS2 loading 'uImage' to 0x10400000
Scanning JFFS2 FS: ......... done.
find_inode failed for name=uImage
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uImage!
## Booting image at 10400000 ...
Bad Magic Number
Uboot> printenv
bootargs=console=ttyS0 root=/dev/mtdblock1 rootfstype=jffs2
bootcmd=fsload; bootm
bootdelay=1
baudrate=115200
hostname=atngw100
stdin=serial
stdout=serial
stderr=serial
ethact=macb0

Environment size: 182/65532 bytes
Uboot> askenv bootcmd
Please enter 'bootcmd':fsload 0x10400000 /boot/uImage; bootm 0x10400000
Uboot> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
Uboot> boot
### JFFS2 loading '/boot/uImage' to 0x10400000
### JFFS2 load complete: 1126062 bytes loaded to 0x10400000
## Booting image at 10400000 ...
   Image Name:   Linux-2.6.24.3.atmel.3
   Image Type:   AVR32 Linux Kernel Image (gzip compressed)
   Data Size:    1125998 Bytes =  1.1 MB
   Load Address: 10000000
   Entry Point:  90000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel at 90000000 (params at 11f72008)...

Linux version 2.6.24.3.atmel.3 (fwuerri@fwuerri-linux) (gcc version 4.2.2-atmel.1.0.8) #1 Fri Jun 13 01:16:37 CEST 2008
CPU: AT32AP700x chip revision C
CPU: AP7 [01] core revision 0 (AVR32B arch revision 1)
CPU: MMU configuration: Shared TLB
CPU: features: dsp simd ocd perfctr java
CPU: Running at 140.000 MHz
Physical memory:
  10000000-11ffffff
Reserved memory:
  10000000-1015bfa1: Kernel code
  1015bfa2-101e8ecf: Kernel data
Exception vectors start at 90011000
CPU: Paging enabled
Node 0: start_pfn = 0x10000, low = 0x12000
Node 0: mem_map starts at 901eb000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS0 root=/dev/mtdblock1 rootfstype=jffs2
PID hash table entries: 128 (order: 7, 512 bytes)
avr32_comparator: irq 0, 140.000 MHz
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 30524k/30524k available (1323k kernel code, 2244k reserved, 109k data, 68k init)
SLUB: Genslabs=9, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Calibrating delay using timer specific routine.. 281.72 BogoMIPS (lpj=563456)
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
smc smc.0: Atmel Static Memory Controller at 0xfff03400
pdc pdc.0: Atmel Peripheral DMA Controller enabled
at32_eic at32_eic.0: External Interrupt Controller at 0xfff00100, IRQ 19
at32_eic at32_eic.0: Handling 4 external IRQs, starting with IRQ 64
cpufreq: AT32AP CPU frequency driver
dmac0: DesignWare DMA controller at 0xff200000 irq 2
Time: tcb_clksrc clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
atmel_usart.0: ttyS0 at MMIO 0xffe01000 (irq = 7) is a ATMEL_SERIAL
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfff01800 irq 25 (00:00:00:00:00:00)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
MACB_mii_bus: probed
eth1: Atmel MACB at 0xfff01c00 irq 26 (00:00:00:00:00:00)
eth1: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:03, irq=-1)
physmap platform flash device: 00800000 at 00000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0041
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00020000 : "u-boot"
0x00020000-0x007f0000 : "root"
0x007f0000-0x00800000 : "env"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xffe00000 (irq 3)
mtd_dataflash spi0.0: AT45DB642x (8448 KBytes)
atmel_usba_udc atmel_usba_udc.0: MMIO registers at 0xfff03000 mapped at fff03000
atmel_usba_udc atmel_usba_udc.0: FIFO at 0xff300000 mapped at ff300000
at32ap700x_rtc at32ap700x_rtc.0: rtc core: registered at32ap700x_rtc as rtc0
at32ap700x_rtc at32ap700x_rtc.0: Atmel RTC for AT32AP700x at fff00080 irq 21
at32_wdt at32_wdt.0: AT32AP700X WDT at 0xfff000b0, timeout 2 sec (nowayout=0)
mmc_host mmc0: Atmel MCI controller at 0xfff02400 irq 28
Registered led device: sys
Registered led device: a
Registered led device: b
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
at32ap700x_rtc at32ap700x_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 68K (90000000 - 90011000)
Mounting virtual filesystems:
  /proc mounted
  /sys mounted
  /dev mounted
  /dev/pts directory made
  /dev/pts mounted
  /dev/shm directory made
  /config mounted
  /tmp mounted
  /var/run mounted
  /var/log mounted
Setting up mdev: done
Setting hostname: 'ngw.example.net'
Starting syslogd: done
Log messages to syslog: done
Starting klogd: done
Probing modules: 
Starting portmap: done
Mounting local filesystems: JFFS2 error: (234) jffs2_build_inode_pass1: child dir "man" (ino #272) of dir ino #5 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "ja" (ino #275) of dir ino #263 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "tr" (ino #276) of dir ino #263 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "help" (ino #277) of dir ino #275 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "images" (ino #278) of dir ino #275 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "help" (ino #294) of dir ino #292 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "help" (ino #296) of dir ino #293 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "images" (ino #297) of dir ino #293 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "info" (ino #303) of dir ino #298 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "lists" (ino #299) of dir ino #298 appears to be a hard link
JFFS2 error: (234) jffs2_build_inode_pass1: child dir "swat" (ino #259) of dir ino #238 appears to be a hard link
done
Network interfaces: udhcpc (v1.10.2) started
udhcpc: script /usr/share/udhcpc/default.script failed: Exec format error
Sending discover...
udhcpc: sendto: Network is down

I have no idea, what I can do. Can anybody help me?

Frank

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I expect that your ethernet MAC addresses are not set in U-Boot. :arrow:

set ethaddr 00:04:25:xx:yy:zz
set eth1addr 00:04:25:xx:yy:zz+1

The xx:yy:zz is the last part your NGW serialnumber.

... the only thing you cannot unscramble is eggs...