9
0
Fork 0
Commit Graph

4485 Commits

Author SHA1 Message Date
Sascha Hauer 485890986b add netconsole host script
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 17:37:00 +02:00
Eric Bénard 7a1f70e70a fix command loadb
which was broken after commit c3789cd49b

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 12:37:56 +02:00
Sascha Hauer 334fe1dc8a pca100: use generic default env
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:45 +02:00
Sascha Hauer dc4d0da985 pcm037: use generic default env
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:45 +02:00
Sascha Hauer 4666c09f1c pcm043: use generic default env
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:45 +02:00
Sascha Hauer 3dc4dedb71 pcm038: use generic default env
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:45 +02:00
Sascha Hauer c56830349b add a generic default environment
We have several nearly identical default environments in the tree.
Lets merge them to a single environment and use it on many boards.
This defaultenv is arm centric at the moment due to the use of arm
specific boot commands. This can be improved over time.

changes since last version:

- fix potentially empty variable tests
- be a bit more verbose in boot script
- run a board specific init script (/env/bin/init_board) if it exists

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:44 +02:00
Sascha Hauer e7048e1862 net: use a random mac address if the current device does not have a valid address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:44 +02:00
Sascha Hauer 7867ceb8dc net: implement random_ether_addr
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:44 +02:00
Sascha Hauer 738d70e430 include support for a simple pseudo number generator
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:44 +02:00
Sascha Hauer 600c0e987e Allow to merge default environment from more than one directory
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:40 +02:00
Sascha Hauer 72861584e3 bootu: Allow passing in devices as parameter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:30:38 +02:00
Sascha Hauer 9c827f121a pcm037: Add MMU support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:30:38 +02:00
Sascha Hauer f7c02aea7b Merge branch 'net' into next 2010-06-17 08:29:09 +02:00
Sascha Hauer c5de3fdcce ping: resolv hostnames
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:30 +02:00
Sascha Hauer cd81aa6e3b net: add dns support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:29 +02:00
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 56d0e7f274 errno: add strings for network related error messages
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 c70689d727 network drivers: call net_receive directly instead of NetReceive
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
Ivo Clarysse a81786a053 mx25 3ds: Fix compilation
On barebox-next, I get:

board/freescale-mx25-3-stack/built-in.o: In function `go':
3stack.c:(.flash_header_start+0x0): undefined reference to `_start'
board/freescale-mx25-3-stack/built-in.o: In function `imx25_3ds_fec_init':
3stack.c:(.text.imx25_3ds_fec_init+0x4): undefined reference to `mc34704_get'
3stack.c:(.text.imx25_3ds_fec_init+0x1c): undefined reference to
`mc34704_reg_write'

Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-15 13:00:22 +02:00
Sascha Hauer c21a7fb9f1 arm start.c: Make runtime function address calculation tolerant for more compilers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-13 13:07:12 +02:00
Eric Benard f2fdfe875f Add support for Eukrea CPUIMX35
this modules is based on Freescale's i.MX357 CPU, with 128MB of
mDDR, 256 MB NAND, and ethernet PHY.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 15:57:18 +02:00
Sascha Hauer ce971c2367 arm: use processor specififc functions to turn off MMU
The way it was done before does not work on Cortex processors.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Orjan Friberg <of@flatfrog.com>
Tested-by: Luca Ceresoli <list@lucaceresoli.net>
2010-06-10 14:20:39 +02:00
Eric Bénard fa9153df32 cpuimx25: remove unused define
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:45:07 +02:00
Eric Bénard f0bbbb9aae eukrea_cpuimx25: update defconfig
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:44:46 +02:00
Eric Bénard 5ba33bf2e6 eukrea_cpuimx25: add compressed logo support
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:44:46 +02:00
Baruch Siach c985627227 mx25 3ds: fix memory initialization
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 13:13:03 +02:00
Baruch Siach 1b1fa988ba mx25 3ds: fix fec initialization
The fec network interface initialization depends on the initialization of the
PMIC. Once the MC34704 driver is registered we can enable the PHY power supply,
and go on with the PHY initialization.

While we are at it convert the hard-coded GPIO registers access to the general
GPIO API for shorter and clearer code.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:27 +02:00
Baruch Siach dcdd890e0c mx25 3ds: add support for i2c master and PMIC
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach 514387711f i2c: add driver for the MC34704 PMIC
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach c672f6fcd7 mx25: add support for i2c
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach ca593071ec mx25 3ds: cleanup lowlevel_init code
* remove unused asm/cache-l2x0.h header include
* remove out of place comment
* remove redundant defines

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach e490bd6715 mx25: fix typo in imx25-regs.h
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Baruch Siach c925dcdb37 mx25 3ds: fix build failure
Remove redundant parameters from the imx_nand_load_image() call.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Sascha Hauer f2abce5336 Merge branch 'next' 2010-06-03 13:06:39 +02:00
Sascha Hauer 7f37262ee5 v2010-06.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-02 10:36:28 +02:00
Eric Bénard 043efce517 eukrea_cpuimx27_defconfig: increase MALLOC_SIZE
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-02 10:33:46 +02:00
Eric Bénard e9a966e0ef eukrea_cpuimx25: update env
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:42:35 +02:00
Eric Bénard a95f418c3b eukrea_cpuimx25: fix machine ID
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:42:35 +02:00
Eric Bénard 9404bd294d arm: update mach-types
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:42:35 +02:00