9
0
Fork 0
Commit Graph

7252 Commits

Author SHA1 Message Date
gregory hermant b765777478 Add documentation for the calao boards
Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-29 09:13:48 +02:00
Eric Bénard 5d41f53642 stringlist: fix division by zero
len is checked instead of num so when num is zero, we get a
division by zero a few lines later

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-29 09:12:34 +02:00
Jean-Christophe PLAGNIOL-VILLARD 9812795873 arm: do not enable the previous bootz command
as we now support via bootm

on ixp4xx we still need it so keep it so far.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-28 09:51:31 +02:00
Antony Pavlov 0d6aa9a82b commands/digest: don't print checksum for non-existing files
This fixes the case:

  barebox:/ md5sum non-existing-file
  non-existing-file: No such file or directory
  00000000000000000000000000000000  non-existing-file     0x00000000 ... 0xffffffffffffffff
  barebox:/

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-28 08:48:46 +02:00
Sascha Hauer 3f96b4938c bootm: uImage initrd fix support
Fix multiple issues:
  - arm: loadaddr hardcode to 0x0 if valid
  - uncompress the ramdisk (U-Boot do not do so)
  - image_sdram_flush: wrong start address when expending the resource
  - bootm: load the initrd to ram where this is done at arch level
 
 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iQIcBAABAgAGBQJQKKQ2AAoJEOrjwV5ZMRf2jRUP/Rds7GxtSahRyFWivgay2mxV
 QIlT196El44RAc/DCHxZAdg1lAirBteBMUEX4NGPO3sDxsXiaZK2hg8ac9j6BXkS
 GY0r+K183jFwwFg3WwZoeEwPo9z/zxUzm4d50HmMafBSBI1XnLTdJ9iV4Ejj6iaa
 dirHm9PZTvTKyS1ojWR1WYKeobSYUJpouWxGyzWINOIpZWx8t9+natqTVYY1pOiy
 N6sSLq/j0tlfDWWHoo4H++Oh3y4npIj+UHYNdmz8ZuMjrO5vxjGlKVtauNBB9eUb
 n+XRahsNp9BQveXPbRgwQChGCPbNGyc1xg1zyu3uD6DUeKC/+OvACZJSCJBNCOYS
 LjN7PIS23hvqSkWTiAJpt+RdVdos3A9CPjQWfh4KWCQRWTZfHeHVGfWXMJL2YAEw
 twyX5JHRs1EcNCay2Raqj67O81V1OowVq5/qL8cuIV3eDQy1KcjMd10A6s/qJ9zV
 aEc/qXKrh7pMoY4MJDebVP7nkXCXgxj6g43ByYjIcMT4fJlao621LinzyAvhpiEW
 aLdjIojTROCIUQbTY1O8L2YV7GpMurkaS4koV/t3rpJIO1TuZ3jck4jxXCfDfLDv
 TD/+fB8F+Usoh7UUZ6RSKEgB3ZTCMor4DVnYbQxktyuNiRKeuAkzBWKuXnswAoMN
 Jl2WPqgxv90ftJT0TMek
 =th8z
 -----END PGP SIGNATURE-----

Merge tag 'bootm_fix' of git://git.jcrosoft.org/barebox

bootm: uImage initrd fix support

Fix multiple issues:
 - arm: loadaddr hardcode to 0x0 if valid
 - uncompress the ramdisk (U-Boot do not do so)
 - image_sdram_flush: wrong start address when expending the resource
 - bootm: load the initrd to ram where this is done at arch level

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-08-13 20:37:53 +02:00
Jean-Christophe PLAGNIOL-VILLARD d9cefaed51 uimage_laod: fix ramdisk support
ramdisk U-Boot expect to ignore the compression type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-08-13 14:48:16 +08:00
Jean-Christophe PLAGNIOL-VILLARD 3120585df8 uimage_sdram_flush: fix resource start
The start is the start of the previous resource nor the size of it.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-08-13 14:48:15 +08:00
Jean-Christophe PLAGNIOL-VILLARD 73918efe1a bootm: do not load the initrd in the common code
This need to be handled by the arch bootm as the address can be invalid and
provided at arch level.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-08-13 14:48:13 +08:00
Jean-Christophe PLAGNIOL-VILLARD 5bc3870d67 arm/bootm: fix initrd_start init
initrd_start need to be init to data->initrd_address and updated only if the
addr is invalid.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2012-08-13 14:48:12 +08:00
Antony Pavlov 58713d3274 commands: memset: fix help message
memset has no '-s' option so remove related help string.
Also this patch makes the command's description more clear.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-09 08:44:38 +02:00
Sascha Hauer 21ea2ad830 glob: fix GLOB_SORT
The arguments to collated_compare are actually pointers to
pointers to char, not pointers to char.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-03 08:29:38 +02:00
Sascha Hauer 3af8c180cb qsort: Fix wrong check
The check for overflow accidently was exactly the opposite.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-03 08:28:18 +02:00
Eric Bénard 6efca01b82 eukrea_cpuimx35: fix USB host
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-02 11:01:18 +02:00
Juergen Beisert 10bfdcc175 serial Samsung: add the S3C64xx requirements
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-01 17:51:45 +02:00
Sascha Hauer eebc8e41a0 Merge branch 'for-next/ubi' 2012-08-01 17:50:22 +02:00
Sascha Hauer 7b1afaeaeb Merge branch 'for-next/tqma53' 2012-08-01 17:50:22 +02:00
Sascha Hauer a934d16a2a Merge branch 'for-next/samsung'
Conflicts:
	arch/arm/Makefile
	arch/arm/mach-samsung/Makefile
	arch/arm/mach-samsung/include/mach/s5pcxx-iomap.h
2012-08-01 17:50:18 +02:00
Sascha Hauer 33838de7a2 Merge branch 'for-next/sabrelite'
Conflicts:
	arch/arm/Makefile
2012-08-01 17:50:05 +02:00
Sascha Hauer 2935411dea Merge branch 'for-next/reset-source' 2012-08-01 17:49:27 +02:00
Sascha Hauer 88107f6e12 Merge branch 'for-next/randconfig' 2012-08-01 17:49:27 +02:00
Sascha Hauer ae98200133 Merge branch 'for-next/pcm038' 2012-08-01 17:49:27 +02:00
Sascha Hauer b1a4e722c3 Merge branch 'for-next/onfi' 2012-08-01 17:49:27 +02:00
Sascha Hauer 7db4b8a16a Merge branch 'for-next/omap' 2012-08-01 17:49:27 +02:00
Sascha Hauer fd0543ca25 Merge branch 'for-next/mkublheader' 2012-08-01 17:49:27 +02:00
Sascha Hauer 9204bf87d6 Merge branch 'for-next/misc' 2012-08-01 17:49:27 +02:00
Sascha Hauer a8dbc3f762 Merge branch 'for-next/mips' 2012-08-01 17:49:27 +02:00
Sascha Hauer b9a5de3605 Merge branch 'for-next/m25p80' 2012-08-01 17:49:27 +02:00
Sascha Hauer 14977019fc Merge branch 'for-next/imx-misc' 2012-08-01 17:49:27 +02:00
Sascha Hauer 24e9538b9c Merge branch 'for-next/imx-keypad' 2012-08-01 17:49:27 +02:00
Sascha Hauer f56247dbda Merge branch 'for-next/i2c' 2012-08-01 17:49:27 +02:00
Sascha Hauer 2b3bf599b3 Merge branch 'for-next/friendlyarm' 2012-08-01 17:49:27 +02:00
Sascha Hauer 6bd25d7528 Merge branch 'for-next/depend' 2012-08-01 17:49:27 +02:00
Sascha Hauer bff2e86495 Merge branch 'for-next/defenv-2' 2012-08-01 17:49:27 +02:00
Sascha Hauer e986897cd0 Merge branch 'for-next/compressed-prepare' 2012-08-01 17:49:27 +02:00
Sascha Hauer 363a134369 Merge branch 'for-next/cfa-10036' 2012-08-01 17:49:27 +02:00
Sascha Hauer 80fb825db2 Release v2012.08.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-01 08:59:32 +02:00
Sascha Hauer 239fa8cc9b mem md: make md -s /dev/something work again
Since

|commit d22b85a203
|Author: Sascha Hauer <s.hauer@pengutronix.de>
|Date:   Wed Jul 4 23:41:13 2012 +0200
|
|    mem md: bail out without arguments
|
|    Without arguments the 'md' command defaults to show address 0 which
|    likely results in a NULL pointer exception, so only three keystrokes
|    are necessary to crash barebox. Show usage instead if 'md' is invoked
|    without arguments, so that it at least requires an address to be given
|    to crash barebox. This increases the stability of barebox by 66%. Hurray!

barebox does not crash any longer when a plain 'md' without additional arguments
is exectuted. However, doing a 'md -s /dev/nor0' was a standard usecase which now
does not work anymore.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-08-01 08:36:39 +02:00
Sascha Hauer bdb8494e85 ubi: align ubi writes to LEB size
Otherwise incomplete LEBs are not written.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 21:44:19 +02:00
Sascha Hauer 44ca597927 ubi: cdev->write has to return the bytes read, not 0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 21:44:12 +02:00
Sascha Hauer f854b2370e ARM i.MX: Add defconfig for Freescale i.MX6 Sabre Lite board
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 20:00:04 +02:00
Sascha Hauer e58ca031f6 ARM i.MX: Add support for the Freescale i.MX6 sabrelite board
This adds support for the Freescale i.MX6 sabrelite board with:

- FEC
- SD2/3
- SPI flash

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 19:59:58 +02:00
Sascha Hauer e3040756e6 ARM i.MX: Add support for internal serial boot mode
This mode is needed for bootstrapping a board via USB serial.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 19:59:54 +02:00
Sascha Hauer 5f78112920 SPI i.MX: Add support for i.MX6
The i.MX5 does not have a valid function to get the spi clock. This
patch introduces a function for i.MX6, and moves the bogus spi clock
speed to the speed-imx5*.c. Not nice, but preserves the current status
quo for i.MX5

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 19:59:50 +02:00
Sascha Hauer 8895e7512e nor m25p80: implement fast read
The fast read command is needed for spi speeds > 25MHz, so use it for
higher speeds.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 16:31:17 +02:00
Sascha Hauer 85bdbb1c52 nor m25p80: optimize erase
The driver currently erases blocks in 4kb chunks if 4kb support is
available. This patch uses bigger blocks for suitable areas to speed
up erasing areas.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 15:53:11 +02:00
Sascha Hauer 048d4b8158 nor m25p80: align start and end to erase blocks
The erase command normally makes sure that the selected area is erased,
therefore align the parameters to eraseblock boundaries.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 15:52:10 +02:00
Sascha Hauer e401f1dad2 nor m25p80: refactor chip erase
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 15:51:51 +02:00
Sascha Hauer 066fba5736 nor m25p80: remove unused variables
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 15:51:51 +02:00
Sascha Hauer 348da750c2 nor m25p80: remove progression bar
Drivers should not print a progression bar.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-31 15:51:32 +02:00
Marc Reilly d136e780f4 i2c: add platform_data for i2c_board_info
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-07-30 11:41:03 +02:00