I'll take a closer look at what else I deleted from that script by
accident when I switched to using iproute2 syntax. Probably, better
than "ifconfig" there would be "ip link up" or something too.
C
On Aug 7, 2006, at 8:19 AM, Addison "Nik" Martin wrote:
> That partially worked, eth0 now gets an ip address from my dhcp
> server,
> but cannot resolve names. Its broadcast address is also set to
> 0.0.0.0.
> Should I file a mantis bug report?
>
> Nik
>
>
> On Fri, 2006-08-04 at 22:34 -0600, Chris Dollar wrote:
>> Hi Nik,
>>
>> I just flashed r1070 and had the same issue with my netcf. I
>> fixed it
>> by editing /usr/share/udhcpc/default.script to read:
>> ...
>> case "$1" in
>> deconfig)
>> /sbin/ifconfig $interface 0.0.0.0
>> ip route flush dev $interface
>> ip addr flush dev $interface
>> ;;
>> ...
>> The line I added is the /sbin/ifconfig... one. Thats line was in the
>> script a few revisions back in svn but it was removed.
>>
>> Craig, I commited that change to the udhcp default.script with r1072
>> in the cdollar branch if you want it.
>>
>> Chris
>>
>> On 8/4/06, Addison Nik Martin <nmartin@...> wrote:
>>> I needed to fold in some libraries into my buildroot, so I
>>> decided to
>>> fetch that latest, which is at 1069. Now, when my gumstix connex-
>>> xm _
>>> netcf boots, I get this:
>>>
>>> ++++DMESG Output+++
>>>
>>> Linux version 2.6.17gum (nmartin@...) (gcc version 3.4.5) #1
>>> Thu Aug
>>> 3 17:53:20 CDT 2006
>>> CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE)
>>> Machine: The Gumstix Platform
>>> Memory policy: ECC disabled, Data cache writeback
>>> Memory clock: 99.53MHz (*27)
>>> Run Mode clock: 398.13MHz (*4)
>>> Turbo Mode clock: 398.13MHz (*1.0, inactive)
>>> CPU0: D VIVT undefined 5 cache
>>> CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
>>> CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
>>> Built 1 zonelists
>>> Kernel command line: console=ttyS0,115200n8 root=1f01
>>> rootfstype=jffs2
>>> reboot=cold,hard
>>> PID hash table entries: 512 (order: 9, 2048 bytes)
>>> Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
>>> Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
>>> Memory: 64MB = 64MB total
>>> Memory: 63360KB available (1220K code, 247K data, 56K init)
>>> Mount-cache hash table entries: 512
>>> CPU: Testing write buffer coherency: ok
>>> NET: Registered protocol family 16
>>> NET: Registered protocol family 2
>>> IP route cache hash table entries: 512 (order: -1, 2048 bytes)
>>> TCP established hash table entries: 2048 (order: 1, 8192 bytes)
>>> TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
>>> TCP: Hash tables configured (established 2048 bind 1024)
>>> TCP reno registered
>>> JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
>>> Initializing Cryptographic API
>>> io scheduler noop registered (default)
>>> pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART
>>> pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART
>>> pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART
>>> pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART
>>> Probing Gumstix Flash ROM at physical address 0x00000000 (16-bit
>>> bankwidth)
>>> Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank
>>> Intel/Sharp Extended Query Table at 0x0031
>>> Using buffer write method
>>> cfi_cmdset_0001: Erase suspend on write enabled
>>> Using static partitions on Gumstix Flash ROM
>>> Creating 2 MTD partitions on "Gumstix Flash ROM":
>>> 0x00000000-0x00040000 : "Bootloader"
>>> 0x00040000-0x01000000 : "RootFS"
>>> TCP bic registered
>>> VFS: Mounted root (jffs2 filesystem).
>>> Freeing init memory: 56K
>>> NET: Registered protocol family 1
>>> Initializing random number generator... done.
>>> Starting network...
>>> udhcpc (v0.9.9-pre) started
>>> Dec 31 18:00:22 udhcpc[138]: udhcpc (v0.9.9-pre) started
>>> smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@...>
>>> eth0: SMC91C11xFD (rev 2) at c4851300 IRQ 59 DMA 8 [nowait]
>>> eth0: Ethernet addr: 0a:00:fc:42:2c:d1
>>> Nothing to flush.
>>> NET: Registered protocol family 17
>>> udhcpc (v0.9.9-pre) started
>>> Dec 31 18:00:33 udhcpc[178]: udhcpc (v0.9.9-pre) started
>>> pxa2xx_udc: version 4-May-2005
>>> usb0: Ethernet Gadget, version: May Day 2005
>>> usb0: using pxa2xx_udc, OUT ep2out-bulk IN ep1in-bulk STATUS
>>> ep6in-bulk
>>> usb0: MAC 0a:00:fc:42:2c:e1
>>> usb0: HOST MAC 0a:00:fc:42:2c:e2
>>> usb0: RNDIS ready
>>> Nothing to flush.
>>> Starting Rendezvous:
>>> Starting dropbear sshd: OK
>>> Starting httpd...
>>>
>>> ====this is my S60rclocal=====
>>> Set (GPIO,out,clear) via /proc/gpio/GPIO71
>>> Set (GPIO,out,set) via /proc/gpio/GPIO71
>>> Set (GPIO,in,clear) via /proc/gpio/GPIO66
>>> Set (GPIO,in,clear) via /proc/gpio/GPIO67
>>> Set (GPIO,in,clear) via /proc/gpio/GPIO68
>>> Set (GPIO,in,clear) via /proc/gpio/GPIO69
>>> Set (GPIO,in,clear) via /proc/gpio/GPIO70
>>> Looking for host 0.us.pool.ntp.org and service ntp
>>> Error : Name or service not known
>>> 31 Dec 18:00:44 ntpdate[233]: can't find host 0.us.pool.ntp.org
>>>
>>> 31 Dec 18:00:44 ntpdate[233]: no servers can be used, exiting
>>>
>>>
>>>
>>> Welcome to the Gumstix Linux Distribution!
>>>
>>> gumstix login:
>>>
>>>
>>> Then if I do an ifconfig:
>>> # ifconfig
>>> lo Link encap:Local Loopback
>>> inet addr:127.0.0.1 Mask:255.0.0.0
>>> UP LOOPBACK RUNNING MTU:16436 Metric:1
>>> RX packets:11 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:0
>>> RX bytes:3785 (3.6 KiB) TX bytes:3785 (3.6 KiB)
>>>
>>> usb0 is all I see. I can then do an ifconfig eth0 up:
>>> # ifconfig eth0 up
>>> eth0: link down
>>> # eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
>>>
>>> then ifup -a:
>>> ifup -a
>>> udhcpc (v0.9.9-pre) started
>>> Nothing to flush.
>>> Stopping Rendezvous: stopped /usr/sbin/mDNSResponder (pid 206).
>>>
>>> Starting Rendezvous:
>>> ip: RTNETLINK answers: File exists
>>> udhcpc (v0.9.9-pre) started
>>>
>>> then, ifconfig shows:
>>> # ifconfig
>>> eth0 Link encap:Ethernet HWaddr 0A:00:FC:42:2C:D1
>>> inet addr:172.31.30.157 Bcast:0.0.0.0 Mask:255.255.254.0
>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>>> RX packets:25 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:1000
>>> RX bytes:2424 (2.3 KiB) TX bytes:3733 (3.6 KiB)
>>> Interrupt:59 Base address:0x1300 DMA chan:8
>>>
>>> lo Link encap:Local Loopback
>>> inet addr:127.0.0.1 Mask:255.0.0.0
>>> UP LOOPBACK RUNNING MTU:16436 Metric:1
>>> RX packets:12 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:0
>>> RX bytes:4068 (3.9 KiB) TX bytes:4068 (3.9 KiB)
>>>
>>> #
>>>
>>>
>>> Any ideas why it may not be coming up on kernel boot?
>>>
>>> Nik
>>>
>>>
>>>
>>> --------------------------------------------------------------------
>>> -----
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys -- and
>>> earn cash
>>> http://www.techsay.com/default.php?
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>
>>> _______________________________________________
>>> gumstix-users mailing list
>>> gumstix-users@...
>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>
>>>
>>>
>>>
> --
>
> Addison "Nik" Martin
> Lead Software Engineer
> Radiance Technologies, Inc.
> 251.445.0045 x105
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________
> _________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
|