Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Upcoming Webinar: µModule Solution for Intelligent Motion Control

    Precision feedback combined with advanced sensing, control, and seamless connectivity make up the building blocks for intelligent motion control. ADI offers...

    Places

    • ADI Education Home
    • ADI Webinars
    • GMSL U
    • StudentZone (Analog Dialogue)
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Upcoming Webinar: Simplify High-Accuracy Instrumentation Design with Latest Precision Data Converters
    • Upcoming Webinar - Design High Performance Power Systems with Ultralow Noise Technology
    • Upcoming Webinar: µModule Solution for Intelligent Motion Control
    • Accelerating Embedded System Development with CodeFusion Studio™︎
    • Power Industrial PC Solutions for Robust Intelligent Edge Computing
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ285 about analog voltmeter expertise

      1. Quote of the week: " If you think nobody cares if you're alive, try missing a few loan payments " - unknown Source: Wikimedia 2. New quiz...

    View All

    What's Brewing

      Read the Safety in Layers: Why a Hybrid Approach Works Blog and Test Your Knowledge

      Think you understand ISO 26262 Compliance ? Test your knowledge with our quick quiz , based on the blog " Safety in Layers: Why a Hybrid Approach Works...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Can AI Unlock the Future for Condition-Based Monitoring at the Edge?

    In an era when equipment and energy costs are rising, industries are under increasing pressure to optimize their operations and reduce expenses. One effective...

     

    What Makes Field Bus Communication Unique

    Field bus communication protocols are widely used across industries due to their simplicity, reliability, and adaptability. These protocols enable seamless...

    Latest Blogs

    • An Interesting Power Supply Monitoring Example from a Functional Safety Standard
    • Breaking the Barriers – Why Buildings Need DAS for Cellular Connectivity: Part 1
    • Safety in Layers: Why a Hybrid Approach Works
    • What Are the 3 Essential RF Modulation Techniques You Need to Know?
    • How Does Functional Safety Drive Automotive Innovation?
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Internet of Things (IoT)
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Security Solutions
    • Sensor Interfaces
    • SmartMesh
  • Partners

    Partner Forums

    • Boston Engineering
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.

    Partner Libraries

    • Calian, Advanced Technologies Library
    • Clockworks Signal Processing Library
    • Colorado Engineering Inc. (DBA CAES AT&E) Library
    • Epiq Solutions Library
    • Fidus Library
    • VadaTech Library
    • Vanteon Library
    • X-Microwave Library
EngineerZone
EngineerZone
Linux Bug Archive
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Linux Bug Archive
  • Processors and DSP
  • Software and Development Tools
  • Linux Distribution for Blackfin
  • Linux Bug Archive
  • Cancel
Linux Bug Archive
Documents [#3996] dhcpcd not stable on BF548-EZKIT
  • Q&A
  • Documents
  • Members
  • Tags
  • More
  • Cancel
  • +Documents
  • +ad1836: FAQ
  • +ad1938: FAQ
  • +ad1939: FAQ
  • +AD5280: FAQ
  • +ad73311: FAQ
  • +adau1361: FAQ
  • +adau1371: FAQ
  • +adau1373: FAQ
  • +adau1761: FAQ
  • +adp5588-gpio: FAQ
  • +adv7393: FAQ
  • +ADXL34x: FAQ
  • +bf518-ezbrd: FAQ
  • +bf518: FAQ
  • +bf51x: FAQ
  • +bf526-ezbrd: FAQ
  • +bf527-ezkit: FAQ
  • +bf533-stamp/ezkit: FAQ
  • +bf533: FAQ
  • +bf538-ezkit: FAQ
  • +bf548-ezkit: FAQ
  • +BF54x: FAQ
  • +bf561-ezkit: FAQ
  • +bf5xx: FAQ
  • +bfin-mac driver: FAQ
  • +bfin-uclinux-gdb: FAQ
  • +bfin_can.c: FAQ
  • +Blackfin: FAQ
  • +bluetooth: FAQ
  • +Build kernel: FAQ
  • +Build: FAQ
  • +cfcard test: FAQ
  • [#6170] section mismatches in cifs code(2010)
  • [#6173] linphone testing problem(2010)
  • [#6190] BF561-EZKIT SMP kernel can not wake up by uart(2010)
  • [#6194] libxenomai.so.0 can't be found in xenomai kernel with fdpic mode(2010)
  • [#6207] Build error in CTS/RTS testing on board BF548-EZKIT(2010)
  • [#6251] pread/pwrite arent decoded correctly by strace(2010)
  • [#6253] strace build failed in trunk with outdated toolchain (missing asm/cachectl.h)(2010)
  • [#6255] Busybox inetd crashes/rsh noconnet/ssh(2010)
  • [#6265] libpng build fails due to not finding zlib(2010)
  • [#6271] "nand unlock" is an unsupported command in u-boot update in nand flash(2010)
  • [#6272] After update u-boot in spi flash, BF548-EZKIT can not boot from spi flash(2010)
  • +gadget fs bulk: FAQ
  • +gadget zero bulk: FAQ
  • +gadget zero control: FAQ
  • +Kernel xip: FAQ
  • +ltp test: FAQ
  • +microwin test: FAQ
  • +MPU kernel: FAQ
  • +Sl811-hcd.c USB: FAQ
  • +SPORT channel: FAQ
  • +trunk head kernel: FAQ
  • +usb otg driver: FAQ
  • +zlib: FAQ
  • +Illegal i2c: FAQ
  • +isp1362-hcd: FAQ
  • +Kernel: FAQ
  • +KGDBOE: FAQ
  • [#4646] Varittronix LCD driver mixes blue and Red
  • +serial driver: FAQ
  • +sigma firmware: FAQ
  • +spi transaction: FAQ
  • +strace FAQ
  • [#4787] [ltp] LTP test case shmctl01 failed in trunk for ltp-full-20081130
  • +tiff-4.0.0beta4: FAQ
  • [#5264] ping packet size test will fail for gadget ethernet test with DMA mode
  • +USBHOST: FAQ
  • +USB_EP_NI7_RXINTERVAL: FAQ
  • [#5257] Build usb gadget driver with DMA mode will fail
  • [#4708] Blackfin irda build fails for bf533-stamp
  • [#4735] unaligned accesses in qt webkit
  • [#5168] build cpufrequtils into fdpic format has error
  • [#5321] modprobe i2c lcd on bf533 stamp wait long time
  • [#4922] unwanted sound comes up after g_audio module is installed on BF548 and BF527
  • [#5176] app cpufrequtils in Blackfin app programs fails to build in FDPIC
  • [#5237] musb driver is broken after linux-2.6.30 update
  • [#5255] ping target board sometimes get wrong data byte for gadget ethernet pio mode
  • [#5336] canbus and ppifcd drivers can not be built on BF538-EZKIT
  • [#6614] Kernel panic frequently when test sdio mmc on bf518-ezbrd(2011)
  • +SPI driver: FAQ
  • [#4714] the first time to build mtd-utils will fail in trunk
  • [#5524] drivers/video/bfin_adv7393fb.c build fails in 2.6.31 due to old i2c usage
  • [#5525] drivers/video/bf537-lq035.c build fails in 2.6.31 due to old i2c usage
  • [#5399] no sound when record in board and listen in PC for linphone test of ad1836 on bf533-stamp
  • [#5458] Drivers Serial:bfin_5xx:ttyBFx fails to generate resume from standby
  • [#4647] build samba fails on trunk now for redefinition in fcntl.h
  • [#5526] ip0x board has broken UART defines after resource reorganization
  • [#5527] drivers/media/video/blackfin/blackfin_cam.c build fails in 2.6.31 due to old i2c usage
  • [#5352] bfin_sport.c setup 2D DMA
  • [#5528] fs/binfmt_elf_fdpic.c build fails when CONFIG_ELF_CORE is enabled in 2.6.31
  • [#5464] isram_write() seems to be busted
  • [#5376] mmap05 sometimes can not pass when MPU
  • [#5534] run aplay/arecord will make system panic after kernel upgraded to 2.6.31
  • [#5361] Microwin (nanox) failed on trunk using AD7897 touch screen
  • [#5544] Sport uart TX stop waiting loop is too long to block RX interrupt in PIO mode when do duplex communication
  • [#5363] spi mmc is not supported in bf533-stamp
  • [#5550] fail to flash ubifs.img to nand
  • [#5470] build xenomai fails for no switchbench
  • [#5437] mathtest fails to compile
  • [#5551] SPI message lost when bus locked
  • [#5370] alsa tool fails to work after wake up from mem in bf537-stamp with ad1836 (can't resolve symbol)
  • [#5561] [ltp ]Kernel dump info when run ltp test cases access02, chown03, fchmod06, fchown03, fchown04
  • [#5377] amixer fail to run on ad1836 audio driver on BF537-STAMP
  • [#5475] build mkfs.ubifs on trunk head fails
  • [#5562] [ltp]some ltp test case is broken for getipckey and getcwd
  • [#5487] build usb.c fail in testsuites/usbdev/ test at asm/swab.h
  • [#5489] t2/t4 failed in gadget zero bulk test with dma mode
  • [#5567] build nand for bf537 fails on trunk
  • [#5494] Run tftlcd test case in bf548-ezkit, kernel crashed at the end
  • [#4879] traps test case 21 exception 0x3f: l1_instruction_access would make kernel panic on bf533 stamp
  • [#5568] Framebuffer DMA Error!!
  • [#5515] 4 more trap cases fails on bf533
  • [#5379] run scratchpad case sometimes would fail
  • [#5519] pushing Blackfin serial resources to boards broke many boards
  • [#5389] build pictureflow fails at branch head
  • [#5531] Usb SL811 failed on uclinux2009r1-rc6 on bf532 board.
  • [#5523] Blackfin MUSB build fails after update to 2.6.31
  • [#5391] For ad1836 and ad1981b, sometimes sound shakes at the end
  • [#5404] build kernel with 0x2000 as BOOT_LOAD address sometimes would fails at build-busybox-1.13.4
  • [#5469] CPU hardly idles anymore in svn trunk
  • [#5695] Build bf537-stamp fails at ad73322 for the latest trunk
  • [#5702] build xenomai into fdpic format fails for no libnative.so
  • [#5427] ircp failed on bf533-stamp
  • [#5708] Kernel can not boot up when spimmc driver is interrupt drivern in PIO mode
  • [#5711] gfortran case default_format_1.exe fails on 09r1 kernel but pass on trunk head
  • [#5712] I2C client drivers using dev_pm_ops fail to receive suspend/resume callbacks
  • [#5715] libpcap fails to compile in trunk
  • [#5589] STLport build fails
  • [#5724] SPORT driver crash on reload
  • [#5449] bfin_sdh doesn't save and restore peripheral context upon resume
  • [#5580] GPIO pin not reserved for CTS function on SPORT-UART driver
  • [#5521] trunk head build fails at ipc/shm.c
  • [#5636] generic gpio works on bf533 in the opposite way
  • [#5637] Kernel crashed when arecord and aplay on bf537-stamp with SoC I2S audio
  • [#5647] SPI driver bus_unlock() does not schedule postponed SPI messages
  • [#5683] build nand fails for format error
  • [#5689] while two or multi spi devices use gpio cs, spi setup will fail
  • [#5558] bfin mac multi-cast sending fails to work
  • [#5816] PREEMPT_RT: cyclic test stalls in some test mode
  • [#5824] some kernel modules fail to link due to losing strcpy in trunk head
  • [#5707] error in user/procps/Makefile
  • [#5841] [ltp] ltp test case shmctl01/semctl01 can not execute
  • [#5605] Build bf537-stamp fail at bf5xx-i2s.c in latest trunk
  • [#5614] With latest toolchain in trunk, fail to build some apps and libs at fork
  • [#5625] Build microwin app fails in trunk with 4.3 toolchain
  • [#5626] Build lib mad fail at option "-fforce-mem" with gcc 4.3
  • [#5722] bfin_sport_spi broken by cs_gpio changes
  • [#5627] fail to control gpio used by led and button through /sys/class/gpio/
  • [#5927] PR bit other than RAF bit in EMAC OPMODE register should be set for promisuous mode in bfin_mac driver
  • [#5727] build e2fsprogs-1.41.12 fail sometimes because of compiling order
  • [#5631] Build lib confuse failed with gcc 4.3 toolchain
  • [#5759] fix build for pwlib
  • [#5651] Build lirc failed at missing files
  • [#5931] Trying to compile CAN4LINUX for BF537-STAMP board but compilation is failing
  • [#5656] Build iproute2 fails at trunk for dlfcn.h when built as FLAT
  • [#5743] sound/soc/blackfin/bf5xx-ad1938.c build fails after 2.6.32 upgrade
  • [#5801] No interrupt occurs when reconnect gadget device in OTG mode.
  • [#5657] [ltp] ltp test case mount03/umount03 fail with error of "No such device"
  • [#5808] mmc configuration error in make config
  • [#5804] bf531: ethernet not working when switching to 2009R1
  • [#5810] initial sp is given wrong value and INIT_TASK_DATA is not linked into data
  • [#6335] Build xip failed in fdpic format when xenomai is enabled
  • [#7224] undifined variable x25_address in ./user/net-tools/lib/x25_src.c
  • [#5598] bluez-utils has parallel build issues with parser.h
  • [#5668] Fail to build app bluez-utils
  • [#7251] Blackfin SPI driver doesn't handle repeated changes in CPOL, CPHA and LSBF correctly
  • [#5767] In 09r1.1 branch, all ltp test cases show stack overflow in bf561 SMP kernel
  • [#5684] touching keypad on bf548 will make system dead and restart
  • [#7287] Can not build usb.c with libaio
  • [#5687] SPI read/write be wrong after suspend to memory and resume
  • [#7315] [ltp] ltp test case getrusage04 from ltp-full-20120903 fails in trunk
  • [#7328] Fail to compile pthread_test after toolchain update
  • [#5876] Repeating rsh/rcp causes error "poll: protocol failure in circuit setup"
  • [#7329] Fail to compile netperf after toolchain update
  • [#7333] Test dll fails to run after toolchain update
  • [#5741] adau1371 and adau1761 fail to build after 2.6.32 upgrade
  • [#7337] [ltp] ltp test case mount02 fails in ltp-full-20120903
  • [#7338] [ltp] ltp test case mount03 fails in ltp-full-20120903
  • [#5821] Fail to build pngview on regression machines with suse 10.2
  • [#5900] hardware single stepping in userspace does not handle syscalls correctly
  • [#5659] [ltp] ltp test case eventfd01 fail
  • [#7339] [ltp] can not apply patch of lchown02 in ltp-full-20101031 to ltp-full-20120903
  • [#7343] [ltp] LTP test case chdir04 fails in ltp-full-20120903
  • [#7396] build netperf fails for undefined reference to `___CPU_ZERO'
  • [#7483] bfin_sport driver does not work well in TDM DMA mode
  • [#7506] Dropbear does not build
  • [#5757] drop USER_SQUASHFS_MKSQUASHFS7Z as squashfs 4.0 does not support 7z anymore
  • [#5758] fix build for libopenh323
  • [#5833] trap test running on the second core of bf561 has serveral fails
  • [#5755] romfs target fails for lib/pwlib
  • [#5760] fix asterisk build
  • [#5756] romfs target fails for lib/libopenh323
  • [#5877] SPI transmit cs_change flag not properly handled
  • [#5939] bfin-can fails to build after linux-2.6.33 upgrade
  • [#5879] GPIO controlled slave request may fail when bfin_spi_setup() gets executed twice
  • [#5774] [ltp]ltp test case will be killed by oom-killer on bf533-ezkit in 09r1 branch occasionally
  • [#5894] BF527 uImage Flashing issue(Copy to Flash... Flash not Erased)
  • [#5941] links fails in trunk due to using fork()
  • [#5942] build usb host fail when remove anomaly 456 for BF526-EZBRD
  • [#7250] On bfin ppi test, it fails to quit from slave when send "q" from master
  • [#7379] Fail to build alsa lib in latest trunk with upgraded toolchain
  • [#5792] enc28j60 spi net fails to ping with host on trunk head kernel
  • [#4436] BF527-EZKIT unable to receive large files over UART in DMA mode
  • [#4764] Kernel prints warning when booting from jffs2 rootfs in nor flash on bf548-ezkit
  • [#5903] Impossible to work properly with two or more SPI slave devices using spi_bfin5xx driver.
  • [#6386] build iproute2 may fail at ifstat.c sometimes in latest trunk(2010)
  • [#6331] There is error in adau1371 audio testing on bf527-ezkit(2010)
  • [#5933] BF561-EZKIT SMP kernel can not wake up from standby mode by uart interrupt
  • [#4713] dmacopy tries to test L2 on BF537
  • [#6564] dmacopy test on bf561-ezkit failed at sram_alloc in L1(2011)
  • [#4997] ppitest fails for bfin_ppi driver on bf537
  • [#5940] lynx fails in trunk due to using fork()
  • [#4104] Format usbdisk failed with mke2fs in trunk
  • [#6578] iccutils build fails at scalar.c(2011)
  • [#3883] ftp server crash after connetion or chdir with MidnightCommander4.6.1
  • [#4697] kernel crash on bf533-stamp/bf533-ezkit after config IP for ethernet port
  • [#4050] xip test case failed in BF548-EZKIT
  • [#3991] mmc_spi not working out of the box.
  • [#3996] dhcpcd not stable on BF548-EZKIT
  • [#5136] Linphone: Can't hear each other and "Data access misaligned address violation"
  • [#5214] trunk applications don't build with trunk toolchain due to missing fork()
  • [#4055] top (busybox) crashs
  • [#5162] Linphone: Data access misaligned address
  • [#4992] bfin_sdh fails to build for BF514/BF516
  • [#5570] reboot on bf527-ezkit with nand and ubifs enabled fails
  • [#4955] 548 SDH: netperf, iperf triggers libertas error
  • [#5522] Lib DirectFB-1.4.0 crashes when run DirectFB demo on SVN trunk
  • [#3882] copy file function cp, after few times consume all memory
  • [#4773] BF527 usb-ide hard disk error

[#3996] dhcpcd not stable on BF548-EZKIT

[#3996] dhcpcd not stable on BF548-EZKIT

Submitted By: Yi Li

Open Date

2008-03-30 22:36:33    

Priority:

Medium High     Assignee:

Sonic Zhang

Status:

Open     Fixed In Release:

N/A

Found In Release:

N/A     Release:

2008r1

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

App binary format:

N/A     

Summary: dhcpcd not stable on BF548-EZKIT

Details:

BF548-EZKIT LITE Rev 1.3

"dhcpcd" cannot get IP address easily

root:/> dhcpcd &                                                               

749                                                                            

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175                 

eth0: SMSC911x MAC Address: 00:e0:22:fe:b7:4f                                  

eth0: link down                                                                

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1                                

                                                                               

root:/> ifconfig                                                               

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B7:4F                        

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1        

          RX packets:4 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:1000                                         

                    Interrupt:175                                              

                                                                               

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:0 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:0                                            

                                                                                <Wait about 1 min. cannot find "dhcpcd" using "ps" >                                                                               

root:/> 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:0 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:0

<invoke dhcpcd again and get ip addr >

root:/> dhcpcd &                                                               

757                                                                            

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175                 

eth0: SMSC911x MAC Address: 00:e0:22:fe:b7:4f                                  

eth0: link down                                                                

                                                                               

root:/> ifconeth0: link up, 100Mbps, full-duplex, lpa 0x45E1                   

fig                                                                            

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B7:4F                        

          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1                  

          RX packets:68 errors:0 dropped:0 overruns:0 frame:0                  

          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:1000                                         

                    Interrupt:175                                              

                                                                               

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:0 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:0                                            

                                                                               

root:/> ifconfig                                                               

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B7:4F                        

          inet addr:10.99.22.79  Bcast:10.99.22.255  Mask:255.255.255.0        

          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1                  

          RX packets:79 errors:0 dropped:0 overruns:0 frame:0                  

          TX packets:9 errors:6 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:1000                                         

                    Interrupt:175                                              

                                                                               

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:0 errors:0 dropped:0 overruns:0 frame:0                   

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                 

          collisions:0 txqueuelen:0  

Follow-ups

--- Yi Li                                                    2008-06-19 04:13:56

tested again on BF548, with revision:

uclinux-dist: Revision: 6701

linux: Revision: 4856

Still fails.

--- Yi Li                                                    2008-06-19 06:17:29

I've also run dhcpcd on BF561, using the branch. dhcpcd works well on BF561.

--- Sonic Zhang                                              2008-06-19 23:28:12

Michael,

Could you take a look at this bug. The dhcpd problem can only be observed on

bf548-ezkit with SMSC921x ethernet driver. The same dhcpd works well with other

blackfin onboard EMAC driver and SMC9111 ethernet driver.

--- Michael Hennerich                                        2008-06-20 04:39:28

I tried this several times on 2008R1 and trunk - I get always an IP address the

first attempt. Sorry I can't debug something that doesn't fail on my side...

See below.

-Michael

root:/> 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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/> dhcpcd &

243

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: SMSC911x MAC Address: 00:e0:22:fe:b8:44

eth0: link down

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B8:44

          inet addr:10.44.2.122  Bcast:10.44.2.255  Mask:255.255.255.0

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:9 errors:0 dropped:0 overruns:0 frame:0

          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:175

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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/> version

kernel:    Linux release 2.6.22.19-ADI-2008R1-svn4871, build #1797 Fri Jun 20

10:33:08 CEST 2008

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-6801, build #447 Fri Jun 20 10:31:59 CEST 2008

root:/>

-------------------------------------------------------------------------------------------------

root:/> 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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/> dhcpcd &

293

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: link down

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B8:44

          inet addr:10.44.2.123  Bcast:10.44.2.255  Mask:255.255.255.0

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:14 errors:0 dropped:0 overruns:0 frame:0

          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:175

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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/> version

kernel:    Linux release 2.6.24.7-ADI-2008R2-pre-svn4857, build #6505 Fri Jun

20 10:15:18 CEST 2008

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-6800, build #2230 Fri Jun 20 10:14:35 CEST 2008

root:/>

--- Yi Li                                                    2008-06-23 03:10:48

I tried to used the released uImage for BF548-ezkit

(  download.analog.com/27516/frsrelease/4/2/3/4234/uImage-bf548-ezkit-2008R1-RC8).

Still cannot get IP address easily. And I tried on two boards, both fail.

Maybe this is related with dhcp server?

--- Michael Hennerich                                        2008-06-23 03:55:41

What is your u-boot version?

Maybe my u-boot inits the Ethernet MAC differently?

I tried the uImage you pointed at. Works withoit problems on my side.

See below.

>Maybe this is related with dhcp server?

If it's not related to u-boot then it must be related to your dhcp server.

-Michael

root:/> dhcpcd &

227

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: SMSC911x MAC Address: 00:e0:22:fe:b8:44

eth0: link down

root:/> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B8:44

          inet addr:10.44.2.129  Bcast:10.44.2.255  Mask:255.255.255.0

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:6 errors:0 dropped:0 overruns:0 frame:0

          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:175

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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/> version

kernel:    Linux release 2.6.22.18-ADI-2008R1-svn, build #15 Tue Mar 18

16:51:56 CST 2008

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release 2008R1, build #5 Tue Mar 18 16:50:23 CST 2008

root:/>

--- Yi Li                                                    2008-06-24 00:17:37

Here is my u-boot version:

U-Boot 1.1.6-svn1227 (ADI-2008R2-pre) (Jun 17 2008 - 12:09:00)                

                                                                              

CPU:   ADSP bf548-0.0 (Detected Rev: 0.1)                                     

Board: ADI BF548 EZ-Kit board                                                 

       Support:   blackfin.uclinux.org/                                  

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz                           

RAM:   64 MB                                                                  

Flash: 16 MB                                                                  

In:    serial                                                                 

Out:   serial                                                                 

Err:   serial                                                                 

NAND:  256 MiB                                                                

Net:   LAN9x18 (0x118a0000) detected at 0x24000000                            

MAC:   00:E0:22:FE:B8:3D                                                      

Hit any key to stop autoboot:  0                                             

I think Robin may also see this issue, in the doc:

  docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf548_media_demonstration#load_the_filesystem_onto_the_hard_drive

It says:

"

#

Get an IP number (yeah, do it again)

root:/> dhcpcd &

240

root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: SMSC911x MAC Address: 00:e0:22:fe:b9:38

eth0: link down

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

You will have to hit return twice after it runs to get the next root:~>

prompt.

#

Note that you may need to wait 5 - 10 seconds in between running the last

command, and the next - as it may take a few seconds for the dhcp server on the

network to respond to the BF548 EZKit.

#

Check the network settings were set properly. You will get something that looks

like:

root:/> ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B9:38

          inet addr:10.64.204.139  Bcast:10.64.204.255  Mask:255.255.255.0

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:286 errors:0 dropped:1673 overruns:0 frame:0

          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:175

or:

root:/> ifconfig eth0

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B9:38

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:1

Where the difference between success and failure is the inet addr that is

returned. The first case (success) has one, and the second case (failure) does

not. If it does not have one try repeating things (yeah, I know - this is a bug,

and we are looking into it):

   1.

      root:/> killall dhcpcd

   2.

      root:/> dhcpcd &

      240

      root:/> eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

      eth0: SMSC911x MAC Address: 00:e0:22:fe:b9:38

      eth0: link down

      eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

      You will have to hit return twice after it runs to get the next

root:~> prompt.

   3.

      Note that you may need to wait 5 - 10 seconds in between running the last

command, and the next - as it may take a few seconds for the dhcp server on the

network to respond to the BF548 EZKit.

   4.

      Check the network settings. You will get something that looks like:

      root:/> ifconfig eth0

      If you have success (as defined above) continue to the next step, if you

do not get an inet addr address, try again (starting with the killall dhcpcd

step. This seems only to be a problem on 1/2 duplex networks, and like I said -

we are looking into it. If there is a problem (and there normally is not), it

typically only takes a second try and it works.

"

--- Michael Hennerich                                        2008-06-25 05:33:59

As I said I can't debug something that always works for me.

Can you provide me an strace?

root:/> strace dhcpcd &                                                

                                                                               

                   

-Michael

--- Yi Li                                                    2008-06-25 07:07:46

please see attached file dhcpcd.txt.

Sonic:

Maybe this bug should be assigned to someone in Shanghai (it can be reproduced

in Shanghai office).

--- Michael Hennerich                                        2008-06-25 11:09:59

This is pointless.

I tried almost the entire day to hunt ghosts, trying to recreate an issue that

doesn’t exist over here.

Please debug this on your site.

Things that help a lot are:

1) Start syslogd

2) Start dhcpcd with the debug flag set.

root:/>

root:/> syslogd

root:/> dhcpcd -d &

245

root:/> cat /var/log/messages

Jan  1 00:14:50 blackfin syslog.info syslogd started: BusyBox v1.4.1

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: broadcasting DHCP_DISCOVER

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: broadcastAddr option is

missing in DHCP server response. Assuming 10.44.2.255

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: broadcasting second

DHCP_DISCOVER

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: DHCP_OFFER received from

(10.44.2.17)

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: broadcasting DHCP_REQUEST

(dhcpRequest) for 10.44.2.144

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: DHCP_ACK received from

(10.44.2.17)

Jan  1 00:15:01 blackfin local0.debug dhcpcd[245]: dhcpcd: your IP address =

10.44.2.144

root:/> ifconfig

eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:B8:44

          inet addr:10.44.2.144  Bcast:10.44.2.255  Mask:255.255.255.0

          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:77 errors:0 dropped:0 overruns:0 frame:0

          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

                    Interrupt:175

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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

root:/>

I compared your system trace and mine.

Your select system call (peekfd) times out.

I receive an answer in time. (try to increase the timeout)

Your trace:

open("/etc/dhcpc/dhcpcd-eth0.cache", O_RDONLY) = -1 ENOENT (No such

file or directory)

ioctl(3, SIOCGIFADDR, {ifr_name="eth0", ???}) = -1 EADDRNOTAVAIL

(Cannot assign requested address)

uname({sys="Linux", node="blackfin", ...}) = 0

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@k\314\0"...,

590, 0) = 590

gettimeofday({27596, 690666}, NULL)     = 0

pselect6(4, [3], NULL, NULL, {2, 11827000}eth0: link up, 100Mbps, full-duplex,

lpa 0x45E1

, 0) = 0 (Timeout)

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@k\315\0"...,

590, 0) = 590

gettimeofday({27598, 703899}, NULL)     = 0

pselect6(4, [3], NULL, NULL, {4, 19378000}, 0) = 0 (Timeout)

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@k\316\0"...,

590, 0) = 590

gettimeofday({27602, 723902}, NULL)     = 0

pselect6(4, [3], NULL, NULL, {8, 4009000}, 0) = 1 (in [3], left {7,

304000000})

My trace:

open("/etc/dhcpc/dhcpcd-eth0.cache", O_RDONLY) = -1 ENOENT (No such

file or directory)

ioctl(3, SIOCGIFADDR, {ifr_name="eth0", ???}) = -1 EADDRNOTAVAIL

(Cannot assign requested address)

uname({sys="Linux", node="blackfin", ...}) = 0

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@\346\207"...,

590, 0) = 590

gettimeofday({2026563207, 258822}, NULL) = 0

pselect6(4, [3], NULL, NULL, {2, 92853000}eth0: link up, 100Mbps, full-duplex,

lpa 0x45E1

, 0) = 0 (Timeout)

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@\346\210"...,

590, 0) = 590

gettimeofday({2026563209, 352711}, NULL) = 0

pselect6(4, [3], NULL, NULL, {4, 143710000}, 0) = 1 (in [3], left {4,

143710000})

recv(3, "\377\377\377\377\377\377\0\30\2139|\250\10\0E\0\1K:\206"...,

1514, 0) = 345

gettimeofday({2026563209, 353959}, NULL) = 0

send(3, "\377\377\377\377\377\377\0\0\0\0\0\0\10\0E\0\2@\346\211"...,

590, 0) = 590

I attached my trace to this bug as well.

Sonic,

Please reassign.

-Michael

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

dhcpcd.txt    text/plain    25315    Yi Li

strace_dhcpcd_works.txt    text/plain    9419    Michael Hennerich

Attachments:
strace_dhcpcd_works.txt.zip
dhcpcd.txt.zip
  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Sign Up Now
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2024 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue

Get the Latest News

Stay up to date with our latest news and articles about Analog Devices' products, design tools, trainings, and events.

Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings
沪ICP备09046653号-1

©2024 Analog Devices, Inc. All Rights Reserved