From: Oleksij Rempel
most ar9331 boards are almost identical. Remove as match duplicate code
as possible.
Signed-off-by: Oleksij Rempel
---
arch/mips/boards/tplink-mr3020/lowlevel.S | 29 +--
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git
From: Oleksij Rempel
At least some ath79 SoC have build in 32K RAM. It allow us to use
lowlevel portion of barebox to bootstrap the system by using JTAG
debugger (For example OpenOCD).
Since ath79 has no reliable way to stop the CPU execution before
reading SPI Flash, this can cause different
From: Oleksij Rempel
most ar9331 boards are almost identical. Remove as match duplicate code
as possible.
Signed-off-by: Oleksij Rempel
---
arch/mips/boards/black-swift/lowlevel.S | 29 +
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git
changes v2 20190123:
- squash bootstrap helper patches to one patch
- rename helper macro
- Add more comments
Oleksij Rempel (3):
MIPS: tplink-mr3020: use ar9331_pbl_generic_start
MIPS: black-swift: use ar9331_pbl_generic_start
MIPS: ath79: add spi and sram bootstrap helpers
On 64-bit platfoms /dev/mem should have the size of 2^64 bytes, not
2^63 which would result from using S64_MAX. This also has a side
effect of setting "size" in FILE to FILE_SIZE_STREAM, disabling a
number of codepaths that are not applicable to /dev/mem anyway (see
__read() and __write()).
On 64-bit platforms /dev/mem exceeds the size supported by loff_t and
needs special treatment within the rest of FS API. Specifically
lseek() needs to be modified to make sure it does the right thing.
Prievious attempt at fixing this issue by using IS_ERR_VALUE()
e10efc5080 ("fs: fix memory
There doesn't seem to be any good reason for all of the memory
commands (md, mw, etc.) to rely on a shared pre-allocated buffer
anymore. So, to simplify things, drop the shared buffer and adjust all
of the utilites to allocate needed memory.
Signed-off-by: Andrey Smirnov
---
commands/md.c |
On 32-bit systems, cheking for IS_ERR_VALUE(pos) is not
correct. Expanding that code we get (loff_t cast is added for clarity):
(loff_t)pos >= (unsigned long)-MAX_ERRNO
given that loff_t is a 64-bit signed value, any perfectly valid seek
offset that is greater than 0xc000 will result in
Calculate new position before validtiy check in lseek() to simplify
code a bit as well as make following commit simpler. This should be
harmless thing to do, since we don't actually use calculated value
unless it passes the validity check.
Signed-off-by: Andrey Smirnov
---
fs/fs.c | 8
Everyone:
This series is a result of my attempt to fix a regression in lseek()
on 32-bit platforms. The regression manifested in lseek() unable to
seek past ~4GiB mark caused and was caused by usage of IS_ERR_VALUE()
(see commit messages for more detailed explanation). My goal was to
both get rid
With all other code gone from commands/mem.c, move it into
driver/misc, where it fits better. While at it, expose it directly via
a Kconfig options instead of relying on CONFIG_COMPILE_MEMORY
Signed-off-by: Andrey Smirnov
---
commands/Kconfig | 17 --
commands/Makefile | 1 -
As a first step of de-cluttering /dev/mem related code, move
mem_parse_options() out of commands/mem.c into lib/misc.c where it
seem to fit better. With this change we no longer explicitly turn this
code off using CONFIG_COMPILE_MEMORY and instead rely on LTO to get
rid of it when it's not being
On Tue, Jan 22, 2019 at 9:07 AM Vivien Didelot wrote:
>
> Hi Sascha,
>
> On Tue, 22 Jan 2019 08:40:03 +0100, Sascha Hauer
> wrote:
> > On Mon, Jan 21, 2019 at 12:53:04PM -0500, Vivien Didelot wrote:
> > > VF610 Dev Rev B and VF610 Dev Rev C boot from SD card attached to
> > > SDHCI1, and CFU1,
The patch fixes the following compiler's warning:
In file included from include/common.h:33:0,
from arch/arm/mach-zynq/zynq.c:18:
arch/arm/include/asm/io.h:4:0: warning: "IO_SPACE_LIMIT" redefined
#define IO_SPACE_LIMIT 0
In file included from
arch/arm/mach-zynq/zynq.c:17:0:
On Tue, Jan 22, 2019 at 12:07:02PM -0500, Vivien Didelot wrote:
> Hi Sascha,
>
> On Tue, 22 Jan 2019 08:40:03 +0100, Sascha Hauer
> wrote:
> > On Mon, Jan 21, 2019 at 12:53:04PM -0500, Vivien Didelot wrote:
> > > VF610 Dev Rev B and VF610 Dev Rev C boot from SD card attached to
> > > SDHCI1,
Hi Sascha,
On Tue, 22 Jan 2019 08:40:03 +0100, Sascha Hauer wrote:
> On Mon, Jan 21, 2019 at 12:53:04PM -0500, Vivien Didelot wrote:
> > VF610 Dev Rev B and VF610 Dev Rev C boot from SD card attached to
> > SDHCI1, and CFU1, SPU3 and SCU4 boot from eMMC attached to SDHCI2.
> >
> > Since
How can I get an output of a shell command in hush shell?
Backticks and $() cannot do not work :(
--
Yours sincerely,
Seraphim Dolbilov
___
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
On Tue, Jan 22, 2019 at 05:07:23PM +0300, Seraphim Dolbilov wrote:
> Hi, Sascha
>
> 22.01.2019, 09:33, "Sascha Hauer" :
> > This only works when you want to add something to the environment for
> > all boards. When you only want to change the environment for a single
> > board then
Hi, Sascha
22.01.2019, 09:33, "Sascha Hauer" :
> This only works when you want to add something to the environment for
> all boards. When you only want to change the environment for a single
> board then defaultenv_append_directory() is the right choice.
Thanks, did so! However, environment is
Hello,
On Tue, Jan 22, 2019 at 09:10:40AM +0100, Scherer, Thorsten wrote:
> i spent some time trying to understand the usage of imd_used etc.
>
> In another reply I stated:
>
> 'I misread the documenation on IMD as "of_compatible and model will be
> figured out and put into the proper location
Hello,
i spent some time trying to understand the usage of imd_used etc.
In another reply I stated:
'I misread the documenation on IMD as "of_compatible and model will be
figured out and put into the proper location by barebox".'
I am not so sure, if that is really the case.
As far as i
On Tue, Jan 22, 2019 at 01:25:10AM +0900, Masahiro Yamada wrote:
> Not synced completely.
>
> Just cherry-picking low-hanging fruits.
>
> 0b35786d77ba kbuild: call make once for all targets when O=.. is used
> 5e54d5e5fbc1 kbuild: kill EXTRA_ARFLAGS
> 836caba77c29 kbuild: kill backward
22 matches
Mail list logo