summaryrefslogtreecommitdiffstats
path: root/net/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Use safe_strncpy() instead of copy_filename(). The shell has already removedSascha Hauer2007-09-281-13/+0
| | | | quotes, so we don't need this functionality from copy_filename()
* - putc is now putchar for better standard conformitySascha Hauer2007-09-211-1/+1
| | | | - make printf return int
* Use unsigned char * for mac address. Otherwise (s)printf interpetsSascha Hauer2007-09-111-1/+1
| | | | | parts of the mac address as negative numbers and gives wrong results.
* svn_rev_580Sascha Hauer2007-07-051-1/+1
|
* svn_rev_502Sascha Hauer2007-07-051-1/+1
| | | | complete multiple console support
* svn_rev_481Sascha Hauer2007-07-051-2/+2
| | | | make more char * const, fix compiler warnings
* svn_rev_469Sascha Hauer2007-07-051-4/+5
| | | | | - make some more char * const - dev_add_parameter -> dev_add_param
* svn_rev_405Sascha Hauer2007-07-051-6/+4
| | | | add 0x for hex value in $filesize, remove $fileaddr
* svn_rev_314Sascha Hauer2007-07-051-15/+17
| | | | remove volatile from variables
* svn_rev_279Sascha Hauer2007-07-051-0/+1
| | | | add include
* svn_rev_265Sascha Hauer2007-07-051-1/+1
| | | | reverted last patch
* svn_rev_229Sascha Hauer2007-07-051-1/+1
| | | | remove unused label
* svn_rev_227Sascha Hauer2007-07-051-6/+7
| | | | fix parameter handling
* svn_rev_197Sascha Hauer2007-07-051-0/+28
| | | | add string_to_enet_addr()/enet_addr_to_string()
* svn_rev_148Sascha Hauer2007-07-051-3/+0
| | | | remove global data pointer
* svn_rev_120Sascha Hauer2007-07-051-1/+1
| | | | implement initcalls
* svn_rev_118Sascha Hauer2007-07-051-77/+3
| | | | thousands of things
* svn_rev_108Sascha Hauer2007-07-051-125/+34
| | | | removed ifdefs, moved ping to own file, fix timeout handler
* svn_rev_095Sascha Hauer2007-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | Currently U-Boot uses globally defined eth_* functions. This is horribly unflexible. This patch replaces the global functions with pointers from structs. We could also use CONFIG_NET_MULTI, but this has other implications, though we should merge this some day. Also, U-Boot has no unique way to handle MAC addresses. Each and every board and network driver uses it's own mechanism to set the MAC address. There are several problems which I've for too often. For example everything goes well if we boot from network, but when we boot from flash U-Boot forgets to set the MAC address and the linux network driver has none. This patch adds [gs]et_mac_address to the eth_device struct and handles it as follows: - First try to get a valid MAC address from the EEPROM and set 'ethaddr' accordingly. - If no valid MAC address is found in the EEPROM (or no EEPROM is connected), we set the devices MAC address from 'ethaddr' This is done in eth_initialize which is called on startup for every board.
* svn_rev_033Sascha Hauer2007-07-051-12/+9
| | | | change to clocksource api
* svn_rev_003Sascha Hauer2007-07-051-3/+0
| | | | remove all #if 0 and #if 1
* GCC-4.x fixes: clean up global data pointer initialization for all boards.Wolfgang Denk2006-03-311-5/+2
|
* Fix behaviour if gatewayip is not setWolfgang Denk2006-03-121-1/+3
| | | | Patch by Robin Gilks, 23 Dec 2004
* Add explanation for CDP checksum algorithmWolfgang Denk2005-11-101-1/+4
|
* Add support for multiple PHYs.Marian Balakowicz2005-10-281-2/+2
|
* Cleanup for GCC-4.xWolfgang Denk2005-10-131-2/+5
|
* Add I2C support to TQM8540 and TQM8560 boards (EEPROM, RTC, LM75-DTT).Stefan Roese2005-08-311-1/+1
| | | | | | Removed CFG_CMD_DISPLAY from default commands. Fixed compiler warning in net.c. Patch by Stefan Roese, 31 Aug 2005
* Prepare U-Boot for gcc-4.xWolfgang Denk2005-08-261-1/+2
|
* Minor code cleanupWolfgang Denk2005-08-121-20/+20
|
* Add UPD-Checksum code, fix problem in net.c (return instead of break)Stefan Roese2005-08-121-2/+42
| | | | Patch by Reinhard Arlt, 12 Aug 2005
* README: add explanation about patch policywdenk2005-05-031-5/+5
| | | | net/net.c: fix indentation
* Patch by David Adair, 27 Oct 2004:wdenk2005-04-031-2/+2
| | | | Add missing 440GX SDRAM Controller reset
* * Patch by Richard Klingler, 03 Apr 2005:wdenk2005-04-031-1/+4
| | | | | | | | | Add call to eth_halt() in net/net.c when called functions fail after eth_init() has been called. * Patch by Sam Song, 3 April 2005: - Update README.Netconsole - Update README
* Minor cleanupwdenk2005-04-031-3/+5
|
* * Patch by Masami Komiya, 30 Mar 2005:wdenk2005-04-011-1/+37
| | | | | | | | add SNTP support and expand time server and time offset fields of DHCP support. See doc/README.SNTP * Patch by Steven Scholz, 13 Dec 2004: Fix bug in at91rm920 ethernet driver
* * Some Cleanup.wdenk2005-01-121-0/+1
| | | | | | | | | | | | | | * Patch by Richard Woodruff, 10 Jan 2005: Update support for OMAP2420 (ARM11) and H4 board: o clean up and add new types to H4 memory probe code. o fix to work with internal boot. o added PRCM config III operation. o fix marginal flash timings. o add revison ATAG usage. o enable voltage scaling at power chip. o fix compile error for i2c. * Fix network problem (error when receiving multiple ARP packets)
* * Patch by Philippe Robin, 28 Sept 2004:wdenk2004-10-111-0/+1
| | | | | | | Fix Flash support for Versatile. * Patch by Roger Blofeld, 16 Sep 2004: Fix timeout for DHCP command retry
* Patch by Andreas Engel, 16 Aug 2004:wdenk2004-10-091-1/+1
| | | | parameter type cleanup for NetSetTimeout()
* Add support for console over UDP (compatible to Ingo Molnar'swdenk2004-08-021-0/+22
| | | | netconsole patch under Linux)
* * Patch by John Kerl, 19 Apr 2004:wdenk2004-04-251-2/+2
| | | | | | | | | | | Use U-boot's miiphy.h for PHY register names, rather than introducing a new header file. * Update pci_ids.h from linux-2.4.26 * Patch by Masami Komiya, 19 Apr 2004: Fix problem cause by VLAN function on little endian architecture without VLAN environment
* * Cleanup, minor fixeswdenk2004-04-181-98/+99
| | | | | | | | | * Patch by Rune Torgersen, 16 Apr 2004: LBA48 fixes * Patches by Pantelis Antoniou, 16 Apr 2004: - Fix some compile problems; add "once" functionality for the netretry variable
* Patches by Pantelis Antoniou, 30 Mar 2004:wdenk2004-04-151-37/+555
| | | | add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
* * Patches by Thomas Viehweger, 16 Mar 2004:wdenk2004-03-231-8/+8
| | | | | | | | | - show PCI clock frequency on MPC8260 systems - add FCC_PSMR_RMII flag for HiP7 processors - in do_jffs2_fsload(), take load address from load_addr if not set explicit, update load_addr otherwise - replaced printf by putc/puts when no formatting is needed (smaller code size, faster execution)
* * Patch by Philippe Robin, 09 Mar 2004:wdenk2004-03-141-3/+4
| | | | | | | | | | | | Added ARM Integrator AP, CP and Versatile PB926EJ-S Reference Platform support. * Patch by Masami Komiya, 08 Mar 2004: Don't overwrite server IP address or boot file name when the boot server does not return values * Patch by listmember@orkun.us, 5 Mar 2004: Removed compile time restriction on CFG_I2C_SPEED for DS1338 RTC
* * Patch by Masami Komiy, 22 Feb 2004:wdenk2004-02-241-0/+24
| | | | | | Add support for NFS for file download * Minor code cleanup
* * Patches by Xianghua Xiao, 15 Oct 2003:wdenk2003-10-151-2/+2
| | | | | | | | - Added Motorola CPU 8540/8560 support (cpu/85xx) - Added Motorola MPC8540ADS board support (board/mpc8540ads) - Added Motorola MPC8560ADS board support (board/mpc8560ads) * Minor code cleanup
* * Patch by Sangmoon Kim, 23 Sep 2003:wdenk2003-10-081-0/+28
| | | | | | | | | | | | | | | | | | | | fix pll_pci_to_mem_multiplier table for MPC8245 * Patch by Anders Larsen, 22 Sep 2003: enable timed autoboot on PXA * Patch by David Müller, 22 Sep 2003: - add $(CFLAGS) to "-print-libgcc-filename" so compiler driver returns correct libgcc file path - "latency" reduction of busy-loop waiting to improve "U-Boot" boot time on s3c24x0 systems * Patch by Jon Diekema, 19 Sep 2003: - Add CFG_FAULT_ECHO_LINK_DOWN option to echo the inverted Ethernet link state to the fault LED. - In NetLoop, make the Fault LED reflect the link status. The link status gets updated on entry, and on timeouts.
* - Added CONFIG_BOOTP_DNS2 and CONFIG_BOOTP_SEND_HOSTNAME to CONFIG_BOOTP_MASK.stroese2003-08-281-0/+3
|
* * Make Ethernet autonegotiation on INCA-IP work for all clock rates;wdenk2003-08-171-3/+5
| | | | | | | | | | | | | allow selection of clock frequency as "make" target * Implement memory autosizing code for IceCube boards * Configure network port on INCA-IP for autonegotiation * Fix overflow problem in network timeout code * Patch by Richard Woodruff, 8 Aug 2003: Allow crc32 to be used at address 0x000 (crc32_no_comp, too).
* * Code cleanup:wdenk2003-06-271-25/+25
| | | | | | | | | - remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)