|
环境:uClinux—2.6.2
dhcpcd-1.3.22-pl1(最新的好像是1.3.22-pl4版)
交叉编译器:bfin-elf-gcc
开发板:blackfin的BF561系列
问题:编译没有问题,可以生成dhcpcd可执行文件,运行后串口打印如下:
./dhcpcd&
/mnt/data/etc/dhcpc> Jan 28 22:54:15 dhcpcd[45]: $$$$$$dhcpReboot:
Jan 28 22:54:15 dhcpcd[45]: DHCPInit!
000: 82 ea 01 10 00 01 00 00 00 00 00 00 20 46 48 45 ............ FHE
010: 4d 45 49 43 41 43 41 43 41 43 41 43 41 43 41 43 MEICACACACACACAC
020: 41 43 41 43 41 43 41 43 41 43 41 43 41 00 ACACACACACACA.
000: 82 ea 01 10 00 01 00 00 00 00 00 00 20 46 48 45 ............ FHE
010: 4d 45 49 43 41 43 41 43 41 43 41 43 41 43 41 43 MEICACACACACACAC
020: 41 43 41 43 41 43 41 43 41 43 41 43 41 00 ACACACACACACA.
000: 82 ea 01 10 00 01 00 00 00 00 00 00 20 46 48 45 ............ FHE
010: 4d 45 49 43 41 43 41 43 41 43 41 43 41 43 41 43 MEICACACACACACAC
020: 41 43 41 43 41 43 41 43 41 43 41 43 41 00 ACACACACACACA.
000: 11 0e 82 eb ac 10 44 21 00 8a 00 a7 00 00 20 45 ......D!...... E
010: 49 46 46 45 48 46 46 45 42 45 4f 46 43 45 50 45 IFFEHFFEBEOFCEPE
020: 4f 45 48 43 41 43 41 43 41 43 41 43 41 41 41 00 OEHCACACACACAAA.
030: 20 46 48 45 50 46 43 45 4c 45 48 46 43 45 50 46 FHEPFCELEHFCEPF
040: 46 46 41 43 41 43 41 43 41 43 41 43 41 43 41 42 FFACACACACACACAB
050: 4e 00 ff 53 4d 42 25 00 00 00 00 00 00 00 00 00 N..SMB%.........
060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
070: 00 00 11 00 00 0d 00 00 00 00 00 00 00 00 00 e8 ................
080: 03 00 00 00 00 00 00 00 00 0d 00 56 00 03 00 01 ...........V....
090: 00 01 00 02 00 1e 00 5c 4d 41 49 4c 53 4c 4f 54 .......\MAILSLOT
0a0: 5c 42 52 4f 57 53 45 00 02 00 48 55 47 55 41 4e \BROWSE...HUGUAN
0b0: 52 R
000: 02 01 06 00 0d 0f aa 76 00 0a 00 00 00 00 00 00 .......v........
010: ac 10 44 fc ac 10 44 6e 00 00 00 00 26 51 20 92 ..D...Dn....&Q .
020: 0b 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .1..............
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0e0: 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc
0f0: 35 01 02 36 04 ac 10 44 6e 33 04 00 00 a8 c0 01 5..6...Dn3......
100: 04 ff ff ff 00 03 04 ac 10 44 fe 06 04 ac 10 35 .........D.....5
110: 02 0f 0a 64 6f 6d 61 69 6e 2e 6f 72 67 28 0a 64 ...domain.org(.d
120: 6f 6d 61 69 6e 2e 6f 72 omain.or
Jan 28 22:54:43 dhcpcd[45]: dhcpMessageType = 2
Jan 28 22:54:43 dhcpcd[45]: parseDhcpMsgRecv error msg = 2
000: 02 01 06 00 0d 0f aa 76 00 0a 00 00 00 00 00 00 .......v........
010: ac 10 44 fc ac 10 44 6e 00 00 00 00 26 51 20 92 ..D...Dn....&Q .
020: 0b 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .1..............
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
0a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...........>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.....
0b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0e0: 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc
0f0: 35 01 02 36 04 ac 10 44 6e 33 04 00 00 a8 c0 01 5..6...Dn3......
100: 04 ff ff ff 00 03 04 ac 10 44 fe 06 04 ac 10 35 .........D.....5
110: 02 0f 0a 64 6f 6d 61 69 6e 2e 6f 72 67 28 0a 64 ...domain.org(.d
120: 6f 6d 61 69 6e 2e 6f 72 omain.or
Jan 28 22:54:44 dhcpcd[45]: dhcpMessageType = 2
Jan 28 22:54:44 dhcpcd[45]: parseDhcpMsgRecv error msg = 2
broadcasting DHCP_REQUEST for 172.16.68.252
000: 02 01 06 00 0d 0f aa 76 00 0a 00 00 00 00 00 00 .......v........
010: ac 10 44 fc ac 10 44 6e 00 00 00 00 26 51 20 92 ..D...Dn....&Q .
020: 0b 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .1..............
030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0e0: 00 00 00 00 00 00 00 00 00 00 00 00 63 82 53 63 ............c.Sc
0f0: 35 01 05 36 04 ac 10 44 6e 33 04 00 00 a8 c0 01 5..6...Dn3......
100: 04 ff ff ff 00 03 04 ac 10 44 fe 06 04 ac 10 35 .........D.....5
110: 02 0f 0a 64 6f 6d 61 69 6e 2e 6f 72 67 28 0a 64 ...domain.org(.d
120: 6f 6d 61 69 6e 2e 6f 72 omain.or
Jan 28 22:54:44 dhcpcd[45]: dhcpMessageType = 5
Jan 28 22:54:44 dhcpcd[45]: parseDhcpMsgRecv error msg = 5
Jan 28 22:54:44 dhcpcd[45]: dhcpConfig!
Jan 28 22:54:44 dhcpcd[45]: excute on change, prm = new!
Jan 28 22:54:44 dhcpcd[45]: terminating on signal 4
Jan 28 22:54:44 dhcpcd[45]: dhcpstop!
Jan 28 22:54:44 dhcpcd[45]: excute on change, prm = down!
sh 38: Child 45 died
得到了 (broadcasting DHCP_REQUEST for 172.16.68.252) 这个ip地址,但是dhcpcd却退出了。ping也 可以ping通172.16.68.252这个ip。
不知道有没有哪位遇到过这样的问题,给小弟指点哈阿! |
|