9
0
Fork 0
Commit Graph

11437 Commits

Author SHA1 Message Date
Harald Welte 9bd8556fcf sysmocom-odu: We have a 24C02 EEPROM at 0x50
... and not the eeprom of the phyCORE AM335x reference platform.
2014-12-19 05:10:26 +01:00
Holger Hans Peter Freyther 03773b8729 odu: Send a LLDP frame on boot
We need to wait some time between activating the ethernet and
being able to send the first frame. I have not investigated why
that is the case.

Fixes: SYS#488
2014-11-20 21:31:22 +01:00
Holger Hans Peter Freyther 65cd4bea41 net: Initial frame to be able to send LLDP frames from barebox
Fixes: SYS#488
2014-11-20 21:08:16 +01:00
Holger Hans Peter Freyther 1a06d18910 odu: Enable a login timeout and set a password
The default password is "odu-stop" in this case. The trailing
whitespace is copied from a barebox copy.

Fixes: SYS#487
2014-11-20 19:58:22 +01:00
Holger Hans Peter Freyther 84eef9382b misc: Save it as defconfig and enable the "login"/"passwd" command
We want to be able to force a token to enable the cli. This is
to avoid accidental interupts of the boot process.

Fixes: SYS#487
2014-11-20 19:42:19 +01:00
Holger Hans Peter Freyther 85e580bc59 misc: Rename config to show up during make help
Fix the config name so we can save the config and apply it
easily. The meta-sysmocom-bsp file needs to be updated when
the SRCREV is increased.
2014-11-20 19:39:17 +01:00
Holger Hans Peter Freyther de2b004a25 pcm051: Our units only have 256 MB of RAM modify the code 2014-07-15 18:42:15 +02:00
Holger Hans Peter Freyther 7e009ab9ac pcm051: The SoM has a variable amount of flash and less than configured
Deal with systems that only have 128 mb of nand flash. Let the
bootloader grow the partition to the end of the nand.

Signed-off-by: Holger Hans Peter Freyther <hfreyther@sysmocom.de>
2014-07-15 18:15:30 +02:00
Teresa Gámez 79a975077c ARM: am335x Phytec phyCORE: Enable ethernet
With an update of the am33xx.dtsi (commit 9313920df6) the mdio and mac
nodes are not enabled on default any more. Enable them explicit
in the board dts now.

Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
2014-07-14 11:27:27 +02:00
Holger Hans Peter Freyther 21ddb3c528 pcm051: Add config files as used by the ODU device 2014-07-11 17:55:55 +02:00
Holger Hans Peter Freyther b6676d7db0 pcm051: Load a oftree if it exists
For forward compability with later kernels and device tree check
if there is a dtb inside the rootfs and use it.
2014-07-11 17:06:40 +02:00
Holger Hans Peter Freyther 492a4be72d pcm051: Horrible hacks to get our old kernel to boot
init/mtdparts-nand is not read so let's set the cmdline like this
and add a backup boot in case the ubifs is failing.
2014-07-11 15:58:52 +02:00
Holger Hans Peter Freyther c7b3d21c96 pcm051: Call the built-in kernel backup_kernel
For our main system we will boot the kernel that is inside the
rootfs but if that is failing we will load the other kernel.
2014-07-11 14:18:00 +02:00
Holger Hans Peter Freyther a6f894835c pcm051/omap: Hack and make bch8 mean HW_ROMCODE here
Changing the arch/arm/dts/am335x-phytec-phycore.dts would be
another option but that would break loading a mainline kernel.
The idea/patch is coming from Jan.
2014-07-11 14:17:17 +02:00
Sascha Hauer 9d7b0ba957 Revert "ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDS"
The assumption that OMAP_BUILD_IFT is unused for multi board support
is wrong. It is indeed used, so revert the patch.

This reverts commit d1ec6fb0c9.
2014-07-11 07:38:12 +02:00
Teresa Gámez 9794ccaa8e PCM051: Update RAM timings
Updated timings for new MT41J256M16HA15EIT RAM.
Timings are backward compatible to the MT41J256M8HX15E RAMs

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 14:11:28 +02:00
Wadim Egorov 50c081e093 barebox: common: added new filetypes
- Added omap CH image header recognition
  * filetype_ch_image
  * filetype_ch_image_be

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 14:11:23 +02:00
Antony Pavlov 00e5e81a1d Documentation: add uemd mb7707 barebox mini-howto
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 07:33:27 +02:00
Antony Pavlov 4e14a43797 pci: pci_alloc_bus(): use xzalloc() instead of kzalloc()
Also drop redundant xzalloc() result check
as xzalloc() does not return in case of memory allocation error.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 07:32:30 +02:00
Zahari Doychev 433135c85c drivers/mtd: fix NULL pointer dereference in partition lock/unlock
Some mtd device does not support lock and unlock functions. Adding this check
avoids crashing when mtd_part_lock/unlock are called for such devices.

Signed-off-by: Zahari Doychev <zahari.doychev@linux.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 07:31:01 +02:00
Sascha Hauer 3f4e7adae9 Fix crc32 compile error
This fixes a compile error introduced with:

| commit 37f47a2a8c
| Author: Robert P. J. Day <rpjday@crashcourse.ca>
| Date:   Mon Jul 7 05:36:33 2014 -0400
|
|     crc32: Proper name of command is "crc32".
|
|     Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-08 10:53:14 +02:00
Sascha Hauer deef1e80f3 Do not use macros in command help
The help texts are parsed by sphinx which cannot handle macros, so
replace them with their values.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-08 07:52:36 +02:00
Robert P. J. Day 37f47a2a8c crc32: Proper name of command is "crc32".
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-08 07:45:45 +02:00
Sascha Hauer d1ec6fb0c9 ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDS
The MLO/SPI image options have no effect with OMAP_MULTI_BOARDS
enabled, so do not show them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 14:15:02 +02:00
Robert P. J. Day 600d312707 at91mux: Fix both help info and Kconfig info.
Correct options are, in fact, -p and -b.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 10:02:11 +02:00
Robert P. J. Day 01d3c9a5ed Clean up Kconfig and source for a couple device tree commands.
Correct options listings for a couple device tree-related commands.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 08:32:55 +02:00
Robert P. J. Day 24adc2b69d bootm.c: "-o" option should refer to "DTB", not "DTS"
Fix option explanation, and a couple grammar fixes.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 08:29:34 +02:00
Antony Pavlov 3b02705ad2 rtc.h: drop unused U-Boot stuff; fix whitespace
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 08:21:46 +02:00
Sascha Hauer 8f184314dd kconfig: Fix compiler warning
gcc-4.9 is too silly to recognize that *jump cannot be used
uninitialized and issues a warning. Explicitly initialize
*jump to avoid the warning.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-05 13:33:25 +02:00
Sascha Hauer 874b8ac790 Merge branch 'for-next/net' 2014-07-04 17:27:11 +02:00
Sascha Hauer efa4d684d8 Merge branch 'for-next/misc'
Conflicts:
	arch/arm/boards/chumby_falconwing/falconwing.c
	arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c
	arch/x86/mach-x86.dox
	scripts/setupmbr/setupmbr.c
2014-07-04 17:27:06 +02:00
Sascha Hauer 45d593bc5e Merge branch 'for-next/mips' 2014-07-04 17:26:05 +02:00
Sascha Hauer 6724928c69 Merge branch 'for-next/marvell'
Conflicts:
	arch/arm/boards/Makefile
	arch/arm/dts/Makefile
2014-07-04 17:26:02 +02:00
Sascha Hauer 8da9a22b52 Merge branch 'for-next/imx' 2014-07-04 17:19:41 +02:00
Sascha Hauer ca7a800c1f Merge branch 'for-next/dts' 2014-07-04 17:19:41 +02:00
Sascha Hauer ce1b0d4ae3 Merge branch 'for-next/doc' 2014-07-04 17:19:40 +02:00
Sascha Hauer d9e2694a65 Merge branch 'for-next/clps711x' 2014-07-04 17:19:40 +02:00
Sascha Hauer 06b5693bdc Merge branch 'for-next/arm-versatile' 2014-07-04 17:19:40 +02:00
Sascha Hauer 9bcf0bcc06 Merge branch 'for-next/arm-errata'
Conflicts:
	arch/arm/boards/phytec-phyflex-imx6/lowlevel.c
2014-07-04 17:19:38 +02:00
Sascha Hauer 9af0ac86c9 Release v2014.07.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 16:58:13 +02:00
Sascha Hauer d44edfe4f9 ARM: i.MX6 Phytec phyFLEX: Add watchdog reset workaround
phyFLEX boards beginning with 1362.2 have a workaround for this
i.MX6 bug:

ERR006282 ROM code uses nonreset PFDs to generate clocks, which may
lead to random boot failures

On these boards the SD4_DAT3 pin os connected to the CMIC. The CMIC
will reset the board after 10s when the pin isn't toggled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:44:38 +02:00
Antony Pavlov 988ecf4269 MIPS: qemu-malta_defconfig: enable PCI & network stuff
qemu usage:

  # ifconfig br0:1 172.20.0.1
  # qemu-system-mips -nodefaults -nographic -M malta -m 256 \
    -serial stdio -monitor null \
    -bios ./barebox-flash-image \
    -net nic,vlan=0,model=rtl8139 \
    -net tap,vlan=0,script=net_br0.sh

  ...

  barebox:/ eth0.ipaddr=172.20.0.2
  barebox:/ eth0.serverip=172.20.0.1
  barebox:/ ping 172.20.0.1
  phy0: Link is up - 100/Full
  host 172.20.0.1 is alive
  barebox:/

Sample net_br0.sh (for connecting to br0 interface, so you can
connect barebox to your real network):

  #!/bin/sh

  brctl addif br0 $1
  ifconfig $1 up

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:36:16 +02:00
Antony Pavlov 657f7eac3f MIPS: add PCI support for GT64120-based Malta board
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:36:16 +02:00
Antony Pavlov a7c925bf03 net: add RealTek RTL-8139 PCI Ethernet driver
This driver is based on Linux 2.6.39 8139too driver.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Antony Pavlov 7a9bfaadab commands: add 'lspci' command
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Antony Pavlov 7420866543 PCI: initial commit
used shorten version of linux-2.6.39 pci_ids.h

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Antony Pavlov eb062ecbdf MIPS: add dma_alloc_coherent()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Antony Pavlov e829b7c0c8 linux/ioport.h: include missed <linux/list.h>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Robert P. J. Day 0ad478b4c2 splash.c: Add that .png files are suitable as splash images.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:34:10 +02:00
Robert P. J. Day b7d2e23fe2 Documentation: usb chapter of user manual
A number of minor fixes, and including the help output from the
"dfu-util" command for the benefit of the reader.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:33:28 +02:00