For compatibility put a inline on lstat for stat until we have the symlink
support.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
If a second bootstream was used, there was a sanity check which was not
only wrong (using erasesize instead of writesize) but also superfluous
(we got the block from an existing cdev, so it must be in the flash
range). Simply remove it to make bcb work as expected.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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>
else when we do "erase /dev/m25p0.rootfs; reset", the board
will never reboot as the flash is busy to finish the erase
command.
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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>
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>
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>
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>
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>
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>
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>