The labels nmi_vector, trap_vector and handle_reset in start.S are not
used for RISC-V. Remove them.
While we are here, also remove the code from the beginning of start.S,
which stores the contents of a2 to memory. Only registers a0 and a1
contain information from the previous boot stage. There is
Replace the barrier functions in arch/riscv/include/asm/io.h with those
defined in barrier.h, which is imported from Linux. This version is
modified to remove the include statement of asm-generic/barrier.h, which
is not available in u-boot or required.
Signed-off-by: Lukas Auer
---
Checkpatch rep
Store the hart ID and device tree passed by the prior boot stage (in a0
and a1) in registers s0 and s1. Replace one use of s1 in start.S to
avoid overwriting it.
The device tree is also stored in memory to make it available to u-boot
with the configuration CONFIG_OF_PRIOR_STAGE.
Signed-off-by: Lu
Print the address of the u-boot device tree.
Signed-off-by: Lukas Auer
---
cmd/bdinfo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 60b438766d..a9692f7662 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -430,6 +430,8 @@ int do_bdinfo(cmd_tbl_t *cmdtp,
The mstatus CSR includes WPRI (writes preserve values, reads ignore
values) fields and must therefore not be set to zero without preserving
these fields. It is not apparent why mstatus is set to zero here since
it is not required for u-boot to run. Remove it.
This instruction and others encode zer
Signed-off-by: Lukas Auer
---
include/dm/ofnode.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index 2fc9fa39a3..a7b8609cf4 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -216,6 +216,16 @@ static inline int ofnode_read_s
QEMU provides a device tree, which is passed to u-boot using register
a1. We are now able to directly select the device tree with the
configuration CONFIG_OF_PRIOR_STAGE. Replace the hard-coded address in
qemu-riscv with it.
Signed-off-by: Lukas Auer
---
board/emulation/qemu-riscv/qemu-riscv.c
RISC-V has two code models, medium low (medlow) and medium any (medany).
Medlow limits addressable memory to a single 2 GiB range between the
absolute addresses -2 GiB and +2 GiB. Medany limits addressable memory
to any single 2 GiB address range.
By default, medlow is selected on 32-bit systems an
QEMU embeds the location of the kernel image in the device tree. Store
this address in the environment as variable kernel_start and use it in
CONFIG_BOOTCOMMAND to boot the kernel.
Signed-off-by: Lukas Auer
---
board/emulation/qemu-riscv/Kconfig | 1 +
board/emulation/qemu-riscv/qemu-risc
Start.S uses both tabs and spaces after instructions. Fix this by only
using tabs after instructions.
Signed-off-by: Lukas Auer
---
arch/riscv/cpu/start.S | 322 -
1 file changed, 161 insertions(+), 161 deletions(-)
diff --git a/arch/riscv/cpu/start.S b/
CONFIG_INIT_CRITICAL is deprecated and not used for RISC-V. Remove it.
Signed-off-by: Lukas Auer
---
arch/riscv/cpu/start.S | 11 ---
1 file changed, 11 deletions(-)
diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S
index 88b4aaa1c0..f375a9316e 100644
--- a/arch/riscv/cpu/st
Undefined exception codes currently lead to an out-of-bounds array
access. Prevent this by treating undefined exception codes as
"reserved".
Signed-off-by: Lukas Auer
---
arch/riscv/lib/interrupts.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/lib/inter
Hang on unhandled exceptions to prevent execution in a faulty state.
Signed-off-by: Lukas Auer
---
arch/riscv/lib/interrupts.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/riscv/lib/interrupts.c b/arch/riscv/lib/interrupts.c
index 32d0598750..3b74b76c70 100644
--- a/arch/riscv/lib
Only the first four exception codes are defined. Add the missing
exception codes from the definition in RISC-V Privileged Architecture
Version 1.10.
Signed-off-by: Lukas Auer
---
arch/riscv/lib/interrupts.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/arch/r
The RISC-V arch incorrectly uses 32-bit instead of 64-bit variables in
several places. Fix this.
In addition, BITS_PER_LONG is set to 64 on RV64I systems.
Signed-off-by: Lukas Auer
---
arch/riscv/include/asm/io.h | 6 +++---
arch/riscv/include/asm/posix_types.h | 6 +++---
arch/riscv
Implement the functions invalidate_icache_range() and
invalidate_icache_all().
RISC-V does not have instructions for explicit cache-control. The
functions in this patch are implemented with the memory ordering
instruction for synchronizing the instruction and data streams. This may
be implemented
Support booting Linux (as payload of BBL) from FIT images. For this, the
default CONFIG_SYS_BOOTM_LEN is increased to 16 MB, and the environment
variables fdt_high and initrd_high are set to mark the device tree and
initrd as in-place.
Signed-off-by: Lukas Auer
---
configs/qemu-riscv32_defconfi
The machine trap-vector base address (mtvec) must be aligned on a 4-byte
boundary. Add the necessary align directive to trap_entry.
This patch also removes the global directive for trap_entry, which is
not required.
Signed-off-by: Lukas Auer
---
arch/riscv/cpu/start.S | 2 +-
1 file changed, 1
The bootm implementation of RISC-V diverges from that of other
architectures. Update it to match the implementation of other
architectures. The ARM implementation is used as a reference.
This adds the following features and changes to RISC-V.
* Add support for the BOOTM_STATE_OS_FAKE_GO command
*
Enable the -fdata-sections compiler option for RISC-V. Buildman reports
the binary size decrease from this as 8365.3 bytes.
Signed-off-by: Lukas Auer
---
arch/riscv/config.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk
index
Move the target selection into a separate file (Kconfig.board) to avoid
clutter once we support more boards.
Signed-off-by: Lukas Auer
---
arch/riscv/Kconfig | 17 ++---
arch/riscv/Kconfig.board | 14 ++
2 files changed, 16 insertions(+), 15 deletions(-)
create mo
Signed-off-by: Lukas Auer
---
arch/riscv/lib/bootm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c
index a7a9fb921b..bc1d4b2864 100644
--- a/arch/riscv/lib/bootm.c
+++ b/arch/riscv/lib/bootm.c
@@ -38,6 +38,7 @@ int do_bootm_linux(int flag, in
Add Kconfig entries for the C (compressed instructions) and A (atomic
instructions) ISA extensions. Only the C ISA extension is selectable.
This matches the configuration in Linux.
The Kconfig entries are not used yet. A follow-up patch will select the
appropriate compiler flags based on the Kconf
RISC-V u-boot reimplements the generic io functions from
asm-generic/io.h. Remove the redundant implementation and include the
generic io.h instead.
Signed-off-by: Lukas Auer
---
arch/riscv/include/asm/io.h | 31 +++
1 file changed, 3 insertions(+), 28 deletions(-)
Use the new Kconfig entries to construct the ISA string for the -march
compiler flag. The -mabi compiler flag is selected based on the base
integer instruction set.
With this change, the C (compressed instructions) ISA extension is now
enabled for all boards with CONFIG_RISCV_ISA_C set. Buildman r
CONFIG_PHYS_64BIT should be enabled on RV64I systems. Select it.
Signed-off-by: Lukas Auer
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 7c76b4d664..b81e0d990a 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@
Signed-off-by: Lukas Auer
---
dts/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dts/Makefile b/dts/Makefile
index 9a9a3d5c98..cd6e9a968e 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -61,4 +61,4 @@ dtbs: $(obj)/dt.dtb $(obj)/dt-spl.dtb
clean-files := dt.dtb.S dt
RISC-V defines the base integer instruction sets as RV32I and RV64I.
Rename CPU_RISCV_32 and CPU_RISCV_64 to ARCH_RV32I and ARCH_64I to match
this convention.
Signed-off-by: Lukas Auer
---
arch/riscv/Kconfig | 16
arch/riscv/lib/setjmp.S | 2 +-
configs/ax
Ignore all device tree binaries in arch/riscv/dts.
Signed-off-by: Lukas Auer
---
arch/riscv/dts/.gitignore | 1 +
1 file changed, 1 insertion(+)
create mode 100644 arch/riscv/dts/.gitignore
diff --git a/arch/riscv/dts/.gitignore b/arch/riscv/dts/.gitignore
new file mode 100644
index 0
Ignore tools/prelink-riscv.
Signed-off-by: Lukas Auer
---
tools/.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/.gitignore b/tools/.gitignore
index c8cdaef90c..e5ede22842 100644
--- a/tools/.gitignore
+++ b/tools/.gitignore
@@ -24,6 +24,7 @@
/mksunxiboot
/mxsboot
/ncb
+/
This patch series includes general fixes and cleanup for RISC-V. It also
adds support for booting Linux on qemu-riscv. At the moment, only
single-core systems are supported. Support for multi-core systems will
be added with a future patch series.
To boot Linux on qemu-riscv, Linux must be compile
From: Christoph Niedermaier
If the function gpr_init is used in a common MX6 spl
implementation we have to ensure that it is only called for
suitable cpu types, otherwise it breaks hardware parts like
enet1, can1, can2, etc.
Signed-off-by: Christoph Niedermaier
---
arch/arm/mach-imx/mx6/soc.c
On Fri, Oct 19, 2018 at 12:29:10PM +0200, Marek Vasut wrote:
> The following changes since commit e3beca3a2fe172ca707a0e70310f9f7ebd3b3f0f:
>
> Merge tag 'signed-efi-2018.11' of git://github.com/agraf/u-boot
> (2018-10-17 07:20:52 -0400)
>
> are available in the Git repository at:
>
> git:/
On 10/19/2018 04:12 PM, Tom Rini wrote:
> On Fri, Oct 19, 2018 at 12:29:43PM +0200, Marek Vasut wrote:
>
>> The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d:
>>
>> Merge tag 'arc-more-updates-for-2018.11-rc2-2' of
>> git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0
On Fri, Oct 19, 2018 at 12:29:43PM +0200, Marek Vasut wrote:
> The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d:
>
> Merge tag 'arc-more-updates-for-2018.11-rc2-2' of
> git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0400)
>
> are available in the Git repository a
On 19.10.18 14:48, Marek Vasut wrote:
> On 10/19/2018 02:47 PM, Alexander Graf wrote:
>>
>>
>> On 19.10.18 14:45, Marek Vasut wrote:
>>> On 10/19/2018 02:43 PM, Alexander Graf wrote:
The USB storage driver does not compile when CONFIG_BLK is set,
but DM_USB is not set, as we're missing
Hello all,
I am new to u-boot and have played around by compiling for ARM and running
with qemu (as found in may tutorials). However, the default configuration
also includes network boot and I would like to reduce the configuration to
the bare minimum.
I tried removing all networking support and
From: Jiri Valek
Currently the badblock skipping fails. SPL loader fails to boot from NAND.
End up on message "SPL: failed to boot from all boot devices"
Signed-off-by: Jiri Valek
---
drivers/mtd/nand/raw/mxs_nand_spl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/raw/
On 10/19/2018 02:47 PM, Alexander Graf wrote:
>
>
> On 19.10.18 14:45, Marek Vasut wrote:
>> On 10/19/2018 02:43 PM, Alexander Graf wrote:
>>> The USB storage driver does not compile when CONFIG_BLK is set,
>>> but DM_USB is not set, as we're missing the DM device links for
>>> CONFIG_BLK enabled
On 19.10.18 14:45, Marek Vasut wrote:
> On 10/19/2018 02:43 PM, Alexander Graf wrote:
>> The USB storage driver does not compile when CONFIG_BLK is set,
>> but DM_USB is not set, as we're missing the DM device links for
>> CONFIG_BLK enabled code paths.
>>
>> So far it looks like nobody fell into
On 10/19/2018 02:43 PM, Alexander Graf wrote:
> The USB storage driver does not compile when CONFIG_BLK is set,
> but DM_USB is not set, as we're missing the DM device links for
> CONFIG_BLK enabled code paths.
>
> So far it looks like nobody fell into this trap, because no board
> enabled CONFIG_
The USB storage driver does not compile when CONFIG_BLK is set,
but DM_USB is not set, as we're missing the DM device links for
CONFIG_BLK enabled code paths.
So far it looks like nobody fell into this trap, because no board
enabled CONFIG_BLK and CONFIG_USB_STORAGE while not enabling
CONFIG_DM_US
On Thu, Oct 18, 2018 at 09:27:49PM -0600, Simon Glass wrote:
> Hi,
>
> On 17 October 2018 at 11:14, Stephen Warren wrote:
> > On 10/16/18 8:33 PM, Bin Meng wrote:
> >>
> >> On Wed, Oct 17, 2018 at 7:01 AM Bin Meng wrote:
> >>>
> >>>
> >>> Hi Stephen,
> >>>
> >>> On Wed, Oct 17, 2018 at 12:27 AM
The following changes since commit e3beca3a2fe172ca707a0e70310f9f7ebd3b3f0f:
Merge tag 'signed-efi-2018.11' of git://github.com/agraf/u-boot
(2018-10-17 07:20:52 -0400)
are available in the Git repository at:
git://git.denx.de/u-boot-sh.git master
for you to fetch changes up to bd6debbc9409
The following changes since commit 6e7a186dc5d50f563e224e9ae7be70defff7ee0d:
Merge tag 'arc-more-updates-for-2018.11-rc2-2' of
git://git.denx.de/u-boot-arc (2018-10-15 07:20:07 -0400)
are available in the Git repository at:
git://git.denx.de/u-boot-socfpga.git master
for you to fetch change
Hi,
On Fri, Oct 19, 2018 at 4:55 PM AKASHI Takahiro
wrote:
>
> Define a missing CONFIG_SYS_SOC and move some CONFIG_SYS_* to a more
> canonical place (i.e. under board).
>
> Signed-off-by: AKASHI Takahiro
> ---
> arch/arm/Kconfig | 1 +
> arch/arm/mach-qemu/Kconfig | 18 +
Dear Alexander,
In message <118460556.a0Y5euKZZ7@ada> you wrote:
>
> > 864 /*
> > 865 * Keywords recognized.
> > 866 */
> > 867 static const struct token keywords[] = {
> > 868 {"menu", T_MENU},
> > 869 {"title", T_TITLE},
> > 870 {"timeout", T_TIMEOUT},
> > 871
Hello Wolfgang,
thanks for your interest in this topic. I think you misunderstood my question,
I will elaborate on that. You might skip over the technical details and read
my questions in the end of this mail.
Am Freitag, 19. Oktober 2018, 11:10:48 CEST schrieb Wolfgang Denk:
> > As you might g
Dear Alexander,
In message <18120382.ptJS9iqsuP@ada> you wrote:
>
> Okay first the content of /boot/extlinux/extlinux.conf from the root
> filesystem, which does not work (of course without additional linebreaks from
> my mail client):
Thanks.
> As you might guess, I use ptxdist for building t
Define a missing CONFIG_SYS_SOC and move some CONFIG_SYS_* to a more
canonical place (i.e. under board).
Signed-off-by: AKASHI Takahiro
---
arch/arm/Kconfig | 1 +
arch/arm/mach-qemu/Kconfig | 18 ++
board/emulation/qemu-arm/Kconfig | 9 +
3 files
On 19.10.18 10:32, AKASHI Takahiro wrote:
> On Fri, Oct 19, 2018 at 09:31:14AM +0200, Alexander Graf wrote:
>>
>>
>> On 19.10.18 09:20, AKASHI Takahiro wrote:
>>> On Thu, Oct 18, 2018 at 09:31:57AM +0200, Alexander Graf wrote:
On 18.10.18 04:07, AKASHI Takahiro wrote:
> On Tue,
On 19.10.18 10:41, AKASHI, Takahiro wrote:
> On Thu, Oct 18, 2018 at 11:23:42PM +0200, Heinrich Schuchardt wrote:
>> Hello Alex,
>>
>> in branch efi-next Kconfig has a recursive dependency:
>>
>> $ make qemu_arm64_defconfig
>> drivers/usb/Kconfig:1:error: recursive dependency detected!
>> drivers
On Thu, Oct 18, 2018 at 11:23:42PM +0200, Heinrich Schuchardt wrote:
> Hello Alex,
>
> in branch efi-next Kconfig has a recursive dependency:
>
> $ make qemu_arm64_defconfig
> drivers/usb/Kconfig:1:error: recursive dependency detected!
> drivers/usb/Kconfig:1: symbol USB is selected by DISTRO_DE
On Fri, Oct 19, 2018 at 09:31:14AM +0200, Alexander Graf wrote:
>
>
> On 19.10.18 09:20, AKASHI Takahiro wrote:
> > On Thu, Oct 18, 2018 at 09:31:57AM +0200, Alexander Graf wrote:
> >>
> >>
> >> On 18.10.18 04:07, AKASHI Takahiro wrote:
> >>> On Tue, Oct 16, 2018 at 03:15:13PM +0200, Alexander Gr
Hello,
Am Freitag, 19. Oktober 2018, 08:53:15 CEST schrieb Wolfgang Denk:
> In message <2092760.TlMJupW03t@ada> you wrote:
> > I played with the extlinux.conf format snippets from the U-Boot docs.
> > Upstream extlinux docs are not really helpful, especially not for options
> > regarding dtb>
> >
On Fri, Oct 19, 2018 at 09:46:51AM +0200, Alexander Graf wrote:
>
>
> On 19.10.18 08:33, AKASHI Takahiro wrote:
> > On Thu, Oct 18, 2018 at 09:25:04AM +0200, Alexander Graf wrote:
> >>
> >>
> >> On 18.10.18 00:25, Tuomas Tynkkynen wrote:
> >>> Hi Alexander,
> >>>
> >>> On Tue, 16 Oct 2018 15:04:2
On 19.10.18 08:33, AKASHI Takahiro wrote:
> On Thu, Oct 18, 2018 at 09:25:04AM +0200, Alexander Graf wrote:
>>
>>
>> On 18.10.18 00:25, Tuomas Tynkkynen wrote:
>>> Hi Alexander,
>>>
>>> On Tue, 16 Oct 2018 15:04:26 +0200
>>> Alexander Graf wrote:
>>>
>>> ...
>
>> Glancing at cmd/pxe.c
On 10/19/2018 05:25 AM, Simon Glass wrote:
> Hi Fabrice,
>
> On 11 October 2018 at 10:00, Fabrice Gasnier wrote:
>> Enhance adc info command to report also the channel mask.
>>
>> Signed-off-by: Fabrice Gasnier
>> ---
>>
>> cmd/adc.c | 6 +-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
On 19.10.18 09:20, AKASHI Takahiro wrote:
> On Thu, Oct 18, 2018 at 09:31:57AM +0200, Alexander Graf wrote:
>>
>>
>> On 18.10.18 04:07, AKASHI Takahiro wrote:
>>> On Tue, Oct 16, 2018 at 03:15:13PM +0200, Alexander Graf wrote:
On 12.10.18 07:07, AKASHI Takahiro wrote:
> The cur
On 19.10.18 05:25, Simon Glass wrote:
> Hi Alex,
>
> On 16 October 2018 at 06:55, Alexander Graf wrote:
>>
>>
>> On 15.10.18 16:17, Simon Glass wrote:
>>> At present this code casts addresses to pointers so cannot be used with
>>> sandbox. Update it to use mapmem instead.
>>>
>>> Signed-off-by:
On Thu, Oct 18, 2018 at 09:31:57AM +0200, Alexander Graf wrote:
>
>
> On 18.10.18 04:07, AKASHI Takahiro wrote:
> > On Tue, Oct 16, 2018 at 03:15:13PM +0200, Alexander Graf wrote:
> >>
> >>
> >> On 12.10.18 07:07, AKASHI Takahiro wrote:
> >>> The current scenario for default UEFI booting, scan_de
61 matches
Mail list logo