9
0
Fork 0
Commit Graph

400 Commits

Author SHA1 Message Date
Sascha Hauer 232b46996c add netconsole support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:29 +02:00
Sascha Hauer c3789cd49b rework device parameters
Change device parameters so that the memory management is in generic
code. This also removes the need of storing statically initialized
parameters as they are stored in a struct list_head for each device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer 57e1fc33bd net: remove old network stack
All network commands now use the new stack, so remove the old one.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer 663a6269f2 net: consider rarp support as outdated. Remove it
It is disabled in all defconfigs and probably broken for longer.
Remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer c31ea55e92 implement nfs using new network stack
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:24 +02:00
Sascha Hauer 98ff00b6d2 implement ping using new network stack
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:24 +02:00
Sascha Hauer 17f1f5b3b7 implement tftp using new network stack
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:21 +02:00
Sascha Hauer 870e64993b implement dhcp using new network stack
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:17 +02:00
Sascha Hauer 799c00c589 remove unused sntp.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:17 +02:00
Sascha Hauer 97070487fa net: Implement a new network stack
The old network stack has some bad limitations:

- network commands are required to call NetLoop() which only returns when
  the network layer wants to. Instead we now use a net_poll() function which
  returns after handling one packet (or immediately if no packet is
  available).
- There can be only one packet handler which makes it impossible to handle
  multiple connections
- CamelCaseMakesItHardToRead

The new network stack is implemented as a parallel universe. Currently all
commands still use the old stack. They are converted in subsequent patches.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:16 +02:00
Sascha Hauer 994f95c073 net: remove need for eth_halt/eth_open
We used to eth_open/eth_halt the network devices during NetLoopInit
which is called whenever the user enters a network command.
Change this behaviour so that the current network device gets opened
when making it the current one.
With this change it's always possible to send packages and we are able
to implement a new network stack in the next step.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:16 +02:00
Jan Weitzel 0a28ada177 tftp return value
tftp returns transfered bytes on success and 1 in error case. Bad for
scripting. Change to 0 on success

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-04-14 10:13:07 +02:00
Sascha Hauer 42f4ca1c85 put only once used function inline
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 8f0d0f25ed replace ET_DEBUG with pr_debug
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 922bb41a47 remove typedef cmd_tbl_t and replace it with struct command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer 88351d2e4b Move tftp/nfs specific code to net/*
This adds a few bytes of binary space but is done to put
the code where it belongs to.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer 426de4405c remove unused NETCONSOLE stuff
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:31 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
This has been done with the following script:

find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
	-e 's/u2boot/barebox/g' \
	-e 's/U2Boot/barebox/g' \
	-e 's/U-boot V2/barebox/g' \
	-e 's/u-boot v2/barebox/g' \
	-e 's/U-Boot V2/barebox/g' \
	-e 's/U-Boot-v2/barebox/g' \
	-e 's/U_BOOT/BAREBOX/g' \
	-e 's/UBOOT/BAREBOX/g' \
	-e 's/uboot/barebox/g' \
	-e 's/u-boot/barebox/g' \
	-e 's/u_boot/barebox/g' \
	-e 's/U-Boot/barebox/g' \
	-e 's/U-boot/barebox/g' \
	-e 's/U-BOOT/barebox/g'

find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
	xargs -0 -r rename 's/u[-_]?boot/barebox/'

It needs some manual fixup following in the next patch

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Sascha Hauer 420a3173f0 commands: remove maxargs
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer 87e01f28cc commands: return COMMAND_ERROR_USAGE
instead of calling u_boot_cmd_usage in each command to safe
space.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer 2dc2132f0e remove global variable BootFile
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer d78105a55b nfs: allow only serverip
Do not allow to pass serverip via commandline.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer ac50a05caf pass filename to nfs and tftp start functions
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer 1d3d2c6369 nfs: no default filename, we always have a filename
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer c229f67efb ping: shorten usage info
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer 3701ed81ec ping: do not return -1 in command
Also, print usage if not enough arguments given.

Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer feb58df760 tftp: use debug macro
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer e225e4fcdd tftp: coding style
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:51 +02:00
Sascha Hauer ef2787ab26 tftp: reorder to get rid of static function declarations
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:36 +02:00
Sascha Hauer 4aedcf8531 tftp: remove never reached state STATE_BAD_MAGIC
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:18:49 +02:00
Sascha Hauer 8aab890453 tftp: remove never reached state STATE_TOO_LARGE
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:17:47 +02:00
Sascha Hauer 8cef3301f8 tftp: remove volatile from variables
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:15:35 +02:00
Sascha Hauer e8b856dc03 remove unused code
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:10:39 +02:00
Sascha Hauer fdc9bd236e tftp: consolidate different puts to printf
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:10:09 +02:00
Sascha Hauer 3830d35bc6 tftp: remove unnecessary gateway information
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 09:07:41 +02:00
Sascha Hauer a5f301fb7a remove unused variable NetBootFileSize
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:54:57 +02:00
Sascha Hauer 551d088687 tftp: remove default filename. We always have a filename given
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:49:45 +02:00
Sascha Hauer e2c2954654 make locally used funtion static
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-17 08:38:59 +02:00
Sascha Hauer 146f9b6e5b remove sntp support. Has been broken for long enough
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:19:28 +02:00
Sascha Hauer 4ad31ee437 do not abuse the received packet to send back another packet
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer 6289b5a51d net: remove unnecessary if
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer faa61661cf only the ping code is interested in the ping ip
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer 5619409df6 net: remove dead code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer 4d0670f227 net: cleanup header file
move contents of bootp.h to .c file and remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:15 +02:00
Sascha Hauer 87048e4a66 rename bootp.c to dhcp.c 2009-10-13 11:02:15 +02:00
Sascha Hauer 211f9b336a net: refactor dhcp support
Remove bootp support. It has been broken for longer and
is implemented in an ifdef desert.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 11:02:08 +02:00
Sascha Hauer cf1a0b21c3 ping.c: refactor
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:41 +02:00
Sascha Hauer a3a5927110 net: remove switch/case in NetLoop()
Instead of having a big switch/case for every protocol, do
the right things in the individual functions before callong
NetLoop().

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:40 +02:00
Sascha Hauer 8fe37b4e2e bootp: remove unnecessary counter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:40 +02:00
Sascha Hauer f787f8fbf7 net: check prerequisites in NetLoopIinit()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:57:40 +02:00
Sascha Hauer c227c646e3 return is not a function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:54:14 +02:00
Sascha Hauer 9296260a78 net: split NetLoop in NetLoop and NetLoopInit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:49:21 +02:00
Sascha Hauer 3487f1ee8e net: remove unused state NETLOOP_RESTART
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:48:56 +02:00
Sascha Hauer 5e29712041 net: remove NetStartAgain()
Do not let the network stack restart itself

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:48:32 +02:00
Sascha Hauer eedb766979 tftp: do not call NetStartAgain()
When we are in the middle of transferring a file it does
not make sense to restart the transfer because we may
transfer directly to flash in which case we would have
to erase the flash prior to attempting again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-13 10:47:12 +02:00
Sascha Hauer 2f8df2a003 add a device_d to ethernet devices
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer bac65c6cde net: Get rid of DEVICE_TYPE_ETHER usage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
Sascha Hauer 2230eea29b net: add eth_unregister function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer f9dccf98a3 eth.c: Fix return values
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:16:13 +02:00
Sascha Hauer 53488058e6 allow changing of network device
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:13:19 +02:00
fredo 56d80fe843 remove unused variable
Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
2008-12-18 14:20:08 +01:00
Sascha Hauer 20ec9ba02d Ethernet: write MAC address to hardware when it's changed
Instead of writing the MAC address into the hardware on device open time
write it to the hardware when the user changes the parameter. This
way a user can change the MAC address in the hardware without actually
using the device. This helps Linux Network drivers which expect a valid
MAC address on startup.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-30 10:48:40 +02:00
Sascha Hauer ae3f56c84a nfs: fix calling of string_to_ip()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-30 10:46:24 +02:00
Sascha Hauer 3ef59a5467 fix 62e2cd0a68
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-21 16:23:02 +02:00
Sascha Hauer 62e2cd0a68 net: remove redundant assignment
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:56:19 +02:00
Sascha Hauer 17ba93e7a0 net: initialize Net* variables unconditionally, not in a big switch/case
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:52:31 +02:00
Sascha Hauer 51b4de421e eth: check for valid parameters for ethaddr, ipaddr, ...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer c0d02ffc3d Fix string_to_ip
Use a pointer to an ip address instead of the return value in string_to_ip
and use the return value for error indication only. 0.0.0.0 can be a valid
ip address

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:47 +02:00
Sascha Hauer e3f268d52d net: Coding style changes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 12:30:13 +02:00
Sascha Hauer 59f72431f4 Add missing call to eth_halt()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-14 08:43:01 +02:00
Sascha Hauer dabec3a7a1 Merge branch 'master' of git://www.denx.de/git/u-boot-v2 2008-06-02 16:13:14 +02:00
Sascha Hauer 9bf7a4f97f [net] cleanups:
- remove cdp support
 - replace CONFIG_BOOTP_MASK with #ifdef CONFIG_...
2008-04-07 11:37:25 +02:00
Sascha Hauer 566e0d93ce tftp.c: use sprintf instead of several strcpy functions 2008-03-31 21:54:37 +02:00
Sascha Hauer 51965dca86 remove cdp support. Probably not working anymore anyway. 2008-03-31 21:53:13 +02:00
Sascha Hauer 80e05021c7 ping.c: remove volatile from variables 2008-03-31 21:52:09 +02:00
Sascha Hauer 612e256be2 make nfs work 2008-03-31 21:51:29 +02:00
Sascha Hauer 88da79df25 fix typo and indention 2008-03-21 21:25:15 +01:00
Sascha Hauer 20f3ac6e51 remove unnessecary include 2008-03-14 13:02:12 +01:00
Juergen Beisert 2cb737d95d using a consistent ipaddr parameter all over the place
Signed-off-by: Juergen Beisert <jbe@octopus.labnet.pengutronix.de>
2007-11-08 17:06:48 +01:00
sascha 2db56b3031 When printing error messages about network parameters print
the network device id with it.
2007-10-18 12:06:50 +02:00
sascha 3c37202662 check if there is an ethernet device set in NetLoop 2007-10-18 11:25:13 +02:00
sascha a9791f69f7 rename mac parameter to ethaddr 2007-10-18 11:20:15 +02:00
sascha 1b272d80f1 change functions containing 'mac' or 'enet' in its name to 'ethaddr'.
change the parameter name for ethernet devices to 'ethaddr' aswell.
2007-10-18 11:17:16 +02:00
Sascha Hauer 90f72b1520 remove unneeded colatile from variable 2007-10-11 21:54:33 +02:00
Sascha Hauer 06657e6da7 fix compiler warning 2007-10-08 00:57:46 +02:00
Sascha Hauer 6b7fdcb970 Use safe_strncpy() instead of copy_filename(). The shell has already removed
quotes, so we don't need this functionality from copy_filename()
2007-09-28 10:47:19 +02:00
Sascha Hauer 326e4bddc3 print_size() -> size_human_readable()
return a pointer to a human readable string rather than printingit directly
2007-09-26 15:23:46 +02:00
Sascha Hauer d4ba2f9001 move dirname() and basename() to lib/libgen.c and add header file 2007-09-24 16:57:12 +02:00
Sascha Hauer 3cbc5c5c12 remove u-boot command paramter flag 2007-09-24 12:31:08 +02:00
Sascha Hauer 0dd68e795e - putc is now putchar for better standard conformity
- make printf return int
2007-09-21 09:09:06 +02:00
Sascha Hauer 70a338bc27 Use unsigned char * for mac address. Otherwise (s)printf interpets
parts of the mac address as negative numbers and gives wrong
results.
2007-09-11 10:20:16 +02:00
Sascha Hauer b1e843987a remove debug printf 2007-07-11 16:34:15 +02:00
Sascha Hauer 98432d3925 svn_rev_683
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer e304e16056 svn_rev_580 2007-07-05 18:02:07 +02:00
Sascha Hauer 9ccd3234cd svn_rev_556
unify help string style
2007-07-05 18:02:04 +02:00
Sascha Hauer 571c47bdc0 svn_rev_555
menu formatting
2007-07-05 18:02:04 +02:00
Sascha Hauer 7dde818528 svn_rev_519
set enet addr
2007-07-05 18:02:01 +02:00
Sascha Hauer fa668fe184 svn_rev_502
complete multiple console support
2007-07-05 18:01:59 +02:00
Sascha Hauer fe2d505d4d svn_rev_481
make more char * const, fix compiler warnings
2007-07-05 18:01:58 +02:00
Sascha Hauer 7baa6289fe svn_rev_469
- make some more char * const
- dev_add_parameter -> dev_add_param
2007-07-05 18:01:56 +02:00
Sascha Hauer d5a108ece3 svn_rev_462
- Add help texts for many commands.
- Let the linker sort the command table.
- Add support for multiple argmuments in several commands
  (mkdir, rmdir, rm, cat)
2007-07-05 18:01:55 +02:00
Sascha Hauer be8b9a1abb svn_rev_440
what a silly bug of mine. Chances were good we generated a negative
port number causing tftp to fail
2007-07-05 18:01:54 +02:00
Sascha Hauer e694adc6a4 svn_rev_420
- do more POSIX:
  - use DIR instead of struct dirent
  - use (struct dirent)->d_name instead of (struct dirent)->name
- switch to a new layout for U_BOOT_CMD:
  - use C99 initializers to be able to add more fields to the
    command struct
  - add aliases for commands (needed mainly for help -> ? and test -> [
  - This is not done for all commands yet, but the compiler will tell you ;)
2007-07-05 18:01:52 +02:00
Sascha Hauer aa3f43b9f5 svn_rev_408
store_block can fail
2007-07-05 18:01:51 +02:00
Sascha Hauer e6a048eb57 svn_rev_405
add 0x for hex value in $filesize, remove $fileaddr
2007-07-05 18:01:50 +02:00
Sascha Hauer 887700a5e3 svn_rev_394
do not use global parameter set for all ethernet devices, this was broken
2007-07-05 18:01:50 +02:00
Sascha Hauer 3b76ed1021 svn_rev_370
fixups for last commit
2007-07-05 18:01:48 +02:00
Sascha Hauer 46743ea28f svn_rev_369
include asm-generic in errno.h instead of all other files
2007-07-05 18:01:47 +02:00
Sascha Hauer e0c82e0270 svn_rev_346 2007-07-05 18:01:45 +02:00
Sascha Hauer 4de169907f svn_rev_345 2007-07-05 18:01:45 +02:00
Sascha Hauer 1843dc8389 svn_rev_329
remove volatile
2007-07-05 18:01:44 +02:00
Sascha Hauer b4906bc00f svn_rev_323
priv -> type_data, remove volatile
2007-07-05 18:01:43 +02:00
Sascha Hauer 36d28cc44d svn_rev_314
remove volatile from variables
2007-07-05 18:01:42 +02:00
Sascha Hauer f1871033f1 svn_rev_279
add include
2007-07-05 18:01:39 +02:00
Sascha Hauer 112ada667b svn_rev_270
WIP FS support
2007-07-05 18:01:38 +02:00
Sascha Hauer cf7a56fc78 svn_rev_268
WIP
2007-07-05 18:01:38 +02:00
Sascha Hauer ad89ab9122 svn_rev_265
reverted last patch
2007-07-05 18:01:38 +02:00
Sascha Hauer 225b192272 svn_rev_260
add set function for enetaddr
2007-07-05 18:01:37 +02:00
Sascha Hauer b5abad1213 svn_rev_229
remove unused label
2007-07-05 18:01:35 +02:00
Sascha Hauer 8dcc816ba9 svn_rev_227
fix parameter handling
2007-07-05 18:01:34 +02:00
Sascha Hauer b78d1fafea svn_rev_223
add missing include
2007-07-05 18:01:34 +02:00
Sascha Hauer 4227970a25 svn_rev_211
memcpy -> write
2007-07-05 18:01:33 +02:00
Sascha Hauer 259fbf0a54 svn_rev_197
add string_to_enet_addr()/enet_addr_to_string()
2007-07-05 18:01:32 +02:00
Sascha Hauer 69eab860c2 svn_rev_196
WIP
2007-07-05 18:01:31 +02:00
Sascha Hauer aabb4586a4 svn_rev_148
remove global data pointer
2007-07-05 18:01:27 +02:00
Sascha Hauer 64705cc469 svn_rev_144
fix seconds since boot
2007-07-05 18:01:27 +02:00
Sascha Hauer a0b0cfc5ed svn_rev_121
implement device parameters
2007-07-05 18:01:25 +02:00
Sascha Hauer 55ebf67d3e svn_rev_120
implement initcalls
2007-07-05 18:01:24 +02:00
Sascha Hauer 658cc34395 svn_rev_118
thousands of things
2007-07-05 18:01:24 +02:00
Sascha Hauer abfbbad1eb svn_rev_109
do not know anymore
2007-07-05 18:01:23 +02:00
Sascha Hauer 11a0b5a0dd svn_rev_108
removed ifdefs, moved ping to own file, fix timeout handler
2007-07-05 18:01:23 +02:00
Sascha Hauer d9e1707c0d svn_rev_101 2007-07-05 18:01:23 +02:00
Sascha Hauer f6508e1c4b svn_rev_095
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.
2007-07-05 18:01:22 +02:00
Sascha Hauer b3cecec441 svn_rev_092
generic/remove_autoload.diff
2007-07-05 18:01:22 +02:00
Sascha Hauer e8c0cebedc svn_rev_035
no modulo for 64bit
2007-07-05 18:01:15 +02:00
Sascha Hauer 363266d818 svn_rev_033
change to clocksource api
2007-07-05 18:01:15 +02:00
Sascha Hauer d2bf9bf488 svn_rev_025
remove get_tbclk from architectures other than powerpc
2007-07-05 18:01:15 +02:00
Sascha Hauer c3bb685cd8 svn_rev_020
update Makefiles to kbuild
2007-07-05 18:01:14 +02:00
Sascha Hauer 162484b83c svn_rev_003
remove all #if 0 and #if 1
2007-07-05 18:01:13 +02:00
Wolfgang Denk ab07b6c221 Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.git 2006-11-30 02:01:32 +01:00
Stefan Roese 1eac2a7141 [PATCH] Add support for Prodrive P3M750 & P3M7448 (P3Mx) boards
This patch adds support for the Prodrive P3M750 (PPC750 & MV64460)
and the P3M7448 (MPC7448 & MV64460) PMC modules. Both modules are
quite similar and share the same board directory "prodrive/p3mx"
and the same config file "p3mx.h".

Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-29 16:14:05 +01:00
Dave Liu 7737d5c658 mpc83xx: add QE ethernet support
this patch adds support for the QUICC Engine based UCC gigabit ethernet device.
2006-11-03 19:42:21 -06:00
Jon Loeliger f7b190d312 Merge branch 'master' of http://www.denx.de/git/u-boot 2006-10-12 11:29:33 -05:00
Wolfgang Denk c668670391 Minor code cleanup. 2006-10-12 00:01:08 +02:00
Jon Loeliger daaba9859b Merge branch 'master' of http://www.denx.de/git/u-boot 2006-10-10 17:21:42 -05:00
Wolfgang Denk d82718fed0 Make bootp implementation RFC3046 compliant
Patch by Joakim Larsson, 27 Jun 2006
2006-10-09 01:26:14 +02:00
Wolfgang Denk 2b208f5308 Move "ar" flags to config.mk to allow for silent "make -s"
Based on patch by Mike Frysinger, 20 Jun 2006
2006-10-09 01:02:05 +02:00
Jon Loeliger afa98843e4 Merge branch 'master' of http://www.denx.de/git/u-boot
Conflicts:

	board/stxxtc/Makefile
2006-09-19 08:51:24 -05:00
Marian Balakowicz f93286397e Add support for a saving build objects in a separate directory.
Modifications are based on the linux kernel approach and
support two use cases:

  1) Add O= to the make command line
  'make O=/tmp/build all'

  2) Set environement variable BUILD_DIR to point to the desired location
  'export BUILD_DIR=/tmp/build'
  'make'

The second approach can also be used with a MAKEALL script
'export BUILD_DIR=/tmp/build'
'./MAKEALL'

Command line 'O=' setting overrides BUILD_DIR environent variable.

When none of the above methods is used the local build is performed and
the object files are placed in the source directory.
2006-09-01 19:49:50 +02:00
Jon Loeliger 4b7576fb80 Merge branch 'master' of http://www.denx.de/git/u-boot 2006-08-22 10:17:59 -05:00
Wolfgang Denk ddd5d9daf0 Fix typo.
Patch by Andreas Engel, 28 Nov 2005
2006-08-14 22:43:13 +02:00
Jon Loeliger 72ed528a94 Merge branch 'master' of http://www.denx.de/git/u-boot 2006-06-07 08:49:38 -05:00
Wolfgang Denk ba94a1bba3 * Update Intel IXP4xx support
- Add IXP4xx NPE ethernet MAC support
- Add support for Intel IXDPG425 board
- Add support for Prodrive PDNB3 board
- Add IRQ support
Patch by Stefan Roese, 23 May 2006

[This patch does not include cpu/ixp/npe/IxNpeMicrocode.c which still
 sufferes from licensing issues. Blame Intel.]
2006-05-30 15:56:48 +02:00
Jon Loeliger debb7354d1 Initial support for MPC8641 HPCN board. 2006-04-26 17:58:56 -05:00
Wolfgang Denk d87080b721 GCC-4.x fixes: clean up global data pointer initialization for all boards. 2006-03-31 18:32:53 +02:00
Wolfgang Denk 3b2e4fd9b0 Add support for the DHCP vendor optional bootfile (#67).
Ignores the vendor TFTP server name option (#66).
Patch by Murray Jensen, 30 Jun 2005
2006-03-12 18:26:46 +01:00
Wolfgang Denk d509b81210 Fix behaviour if gatewayip is not set
Patch by Robin Gilks, 23 Dec 2004
2006-03-12 01:13:30 +01:00
Wolfgang Denk 4a86d779ff Merge with /home/sr/git/u-boot 2005-12-01 01:38:13 +01:00
Marian Balakowicz d9785c14bf Fix miiphy global data initialization (problem on 4xx boards when no
ethaddr is assigned). Initialization moved from miiphy_register() to
eth_initialize().

Based on initial patch for 4xx platform by Matthias Fuchs.
2005-11-30 18:06:04 +01:00
Stefan Roese d96f41e016 Add support for TQM8541/8555 boards, TQM85xx support reworked:
- Support for TQM8541/8555 boards added.
- Complete rework of TQM8540/8560 support.
- Common TQM85xx code now supports all current TQM85xx platforms
  (TQM8540/8541/8555/8560).
- DDR SDRAM size detection added.
- CAS latency default values can be overwritten by setting "serial#"
  to e.g. "ABC0001 casl=25" -> CAS latency 2.5 will be used.
  If problems are detected with this non default CAS latency,
  the defualt values will be used instead.
- FLASH size detection added.
- Moved FCC ethernet driver initialization behind TSEC driver init
  -> TSEC is first device.

Patch by Stefan Roese, 30 Nov 2005
2005-11-30 13:06:40 +01:00
Wolfgang Denk 3ada834e30 Add explanation for CDP checksum algorithm 2005-11-10 20:59:46 +01:00
Marian Balakowicz 63ff004c4f Add support for multiple PHYs. 2005-10-28 22:30:33 +02:00
Wolfgang Denk 84bd92bdda Merge with /home/m8/git/u-boot 2005-10-15 18:23:43 +02:00
Wolfgang Denk 77ddac9480 Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
Marian Balakowicz e6f2e90233 Added support for TQM834x boards. 2005-10-11 19:09:42 +02:00
Wolfgang Denk 7521af1c7d Add support for AP1000 board.
Patch by James MacAulay, 07 Oct 2005
2005-10-09 01:04:33 +02:00
Wolfgang Denk a188b5854f Fix typo in eth.c
Patch by Ara Avanesyan, 24 Feb 2005
2005-09-25 17:05:57 +02:00
Wolfgang Denk 28cb937584 Update for TFTP using a fixed UDP port
Use the approved environment variable names. Added "tftpdstp" to
allow ports other than 69 per Tolunay Orkun's recommendation.
Patch by Jerry Van Baren, 12 Jan 2005
2005-09-24 23:25:46 +02:00
Wolfgang Denk ecb0ccd9c2 Allow to force TFTP to use a fixed UDP port
(Add a configuration option CONFIG_TFTP_PORT and optional env variable tftpport)
Patch by Jerry Van Baren, 10 Jan 2005
2005-09-24 22:37:32 +02:00
Stefan Roese 9d2a873bdf Add I2C support to TQM8540 and TQM8560 boards (EEPROM, RTC, LM75-DTT).
Removed CFG_CMD_DISPLAY from default commands.
Fixed compiler warning in net.c.
Patch by Stefan Roese, 31 Aug 2005
2005-08-31 12:55:50 +02:00
Wolfgang Denk 7bc5ee0785 Prepare U-Boot for gcc-4.x 2005-08-26 01:36:03 +02:00
Stefan Roese d6c61aabc4 Merged 405gp_enet.c and 440gx_enet.c to generic 4xx_enet.c
now handling all 4xx cpu's.
Patch by Stefan Roese, 16 Aug 2005
2005-08-16 18:18:00 +02:00
Wolfgang Denk b2f508075c Minor code cleanup 2005-08-12 23:43:12 +02:00
Stefan Roese 8534bf9ac0 Add UPD-Checksum code, fix problem in net.c (return instead of break)
Patch by Reinhard Arlt, 12 Aug 2005
2005-08-12 20:06:52 +02:00
Wolfgang Denk 23a7a32d41 Fix return code of NFS command
Patch by Hiroshi Ito, 11 Dec 2004
2005-08-06 01:11:12 +02:00
Wolfgang Denk cbf9c11728 Merge with /home/wd/git/u-boot/master 2005-08-05 11:22:28 +02:00
Wolfgang Denk c43352ccfa Fix endianess problem in TFTP / NFS default filenames
Patch by Hiroshi Ito, 06 Dec 2004
2005-08-04 01:09:44 +02:00
Eran Liberty f046ccd15c * Patch by Eran Liberty
Add support for the Freescale MPC8349ADS board.
2005-07-28 10:08:46 -05:00
Jon Loeliger d9b94f28a4 * Patch by Jon Loeliger, 2005-05-05
Implemented support for MPC8548CDS board.
  Added DDR II support based on SPD values for MPC85xx boards.
  This roll-up patch also includes bugfies for the previously
  published patches:
    DDRII CPO, pre eTSEC, 8548 LBIU, Andy's TSEC, eTSEC 3&4 I/O
2005-07-25 14:05:07 -05:00
wdenk 7680c140af Add PCI support for Sorcery board.
Code cleanup (especially Sorcery / Alaska / Yukon serial driver).
2005-05-16 15:23:22 +00:00
wdenk 90dc67049d README: add explanation about patch policy
net/net.c: fix indentation
2005-05-03 14:12:25 +00:00
wdenk 6315349202 Patch by David Adair, 27 Oct 2004:
Add missing 440GX SDRAM Controller reset
2005-04-03 20:55:38 +00:00
wdenk b1bf6f2c9b * Patch by Richard Klingler, 03 Apr 2005:
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
2005-04-03 14:52:59 +00:00
wdenk 59acc296d9 Minor cleanup 2005-04-03 14:18:51 +00:00
wdenk 414eec35e3 Fix problems with SNTP support;
enable SNTP support in some boards.
2005-04-02 22:37:54 +00:00
wdenk ea287debe1 * Patch by Masami Komiya, 30 Mar 2005:
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
2005-04-01 00:25:43 +00:00
wdenk 289f932c5f * Some Cleanup.
* 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)
2005-01-12 00:15:14 +00:00
stroese 946c2185dd CPCI750 board support added 2004-12-16 17:49:38 +00:00
wdenk 983fda8391 Patch by TsiChung Liew, 23 Sep 2004:
- add support for MPC8220 CPU
- Add support for Alaska and Yukon boards
2004-10-28 00:09:35 +00:00
wdenk d407bf52b5 * Patch by Philippe Robin, 28 Sept 2004:
Fix Flash support for Versatile.

* Patch by Roger Blofeld, 16 Sep 2004:
  Fix timeout for DHCP command retry
2004-10-11 22:51:13 +00:00
wdenk 3e01d75ff2 Patch by Andreas Engel, 16 Aug 2004:
parameter type cleanup for NetSetTimeout()
2004-10-09 21:56:21 +00:00
wdenk a5725fabc0 * Patch by Ganapathi C, 04 Aug 2004:
Fix NFS timeout issue
2004-09-28 21:51:42 +00:00
wdenk 68ceb29e71 Add support for console over UDP (compatible to Ingo Molnar's
netconsole patch under Linux)
2004-08-02 21:11:11 +00:00
wdenk 0ac6f8b749 Patch by Jon Loeliger, 17 June 2004:
Completion of the 8540ADS/8560ADS updates:
Fix some PCI and Rapid I/O memory maps,
Initialize both TSEC 1 and 2,
Initialize SDRAM
Update MAINTAINER for 85xx boards and README.mpc85xxads
2004-07-09 23:27:13 +00:00
wdenk e94d2cd9d1 * Fix "cls" command when used with splash screen
* Increase NFS download timeout (now 1 min - 10 sec is to short for a
  slow download of a big image)
2004-06-30 22:59:18 +00:00
wdenk baac607c13 Change init sequence for multiple network interfaces: initialize
on-chip interfaces before external cards.
2004-05-08 20:33:20 +00:00
wdenk b9711de102 * Patch by John Kerl, 19 Apr 2004:
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
2004-04-25 13:18:40 +00:00
wdenk a8bd82de46 * Patch by Sangmoon Kim, 12 Apr 2004:
Update max RAM size for debris board

* Patch by Travis Sawyer, 08 Apr 2004:
  Add TLB entry for second DIMM slot on ocotea

* Patch by Masami Komiya, 08 Apr 2004:
  add RTL8169 network driver
2004-04-18 22:03:42 +00:00
wdenk 6e5923851e * Cleanup, minor fixes
* 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
2004-04-18 17:39:38 +00:00
wdenk a3d991bd0d Patches by Pantelis Antoniou, 30 Mar 2004:
add networking support for VLANs (802.1q), and CDP (Cisco Discovery Protocol)
2004-04-15 21:48:45 +00:00