Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-21 Thread Andreas Schwab
Mode as payload of BBL or OpenSBI. What am I expected to see when started with BBL? All I see is the logo, then nothing. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-21 Thread Andreas Schwab
On Jan 21 2019, Anup Patel wrote: > On real board, we generally boot OpenSBI+U-Boot. We will > try and share log of BBL+U-Boot on real board but the log will > look exactly like above. Nothing is seen on the real board. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.d

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-21 Thread Andreas Schwab
On Jan 21 2019, Anup Patel wrote: > There is a fix required in BBL for real board. We have not send > this fix to riscv-pk. Where can I find the patch? Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 &q

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-22 Thread Andreas Schwab
On Jan 21 2019, Anup Patel wrote: > On Mon, Jan 21, 2019 at 10:40 PM Andreas Schwab wrote: >> >> On Jan 21 2019, Anup Patel wrote: >> >> > There is a fix required in BBL for real board. We have not send >> > this fix to riscv-pk. >> >>

Re: [U-Boot] [PATCH v2 0/9] SMP support for RISC-V

2019-03-06 Thread Andreas Schwab
On Mär 06 2019, Anup Patel wrote: > On Wed, Mar 6, 2019 at 5:17 PM Andreas Schwab wrote: >> >> On Mär 06 2019, Anup Patel wrote: >> >> >> -Original Message- >> >> From: Andreas Schwab >> >> Sent: Wednesday, March 6, 2019 4:2

Re: [U-Boot] [PATCH v2 0/9] SMP support for RISC-V

2019-03-06 Thread Andreas Schwab
Apparently sometimes u-boot tries to boot the kernel on heart 0 (the E51 core), which will then fail to start userspace, since that cannot cope with the missing fpu. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7

Re: [U-Boot] [PATCH v2 0/9] SMP support for RISC-V

2019-03-06 Thread Andreas Schwab
On Mär 06 2019, Anup Patel wrote: >> -Original Message- >> From: Andreas Schwab >> Sent: Wednesday, March 6, 2019 4:27 PM >> To: Anup Patel >> Cc: Auer, Lukas ; u-boot@lists.denx.de; >> paul.walms...@sifive.com; ag...@suse.de; a...@brainfault.org; &

Re: [U-Boot] [PATCH v2 0/9] SMP support for RISC-V

2019-03-11 Thread Andreas Schwab
On Mär 08 2019, Anup Patel wrote: > The reset button works fine for me an Atish. I am sure it works fine for lot > of > other folks too. There is no issue with the reset button, only with openSBI. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196

Re: [U-Boot] [PATCH v2 0/9] SMP support for RISC-V

2019-03-07 Thread Andreas Schwab
ons to press the reset button. :-) Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ___ U-Boot mailing list U-Bo

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-13 Thread Andreas Schwab
ard. > > Unfortunately, I was not able to find printed MAC address on Unleashed board. It is derived from the serial number. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now f

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-13 Thread Andreas Schwab
On Feb 13 2019, Alexander Graf wrote: > The DT is supplied via SD card That's not true by default. It is part of the FSBL, I think. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for s

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-12 Thread Andreas Schwab
On Feb 12 2019, Anup Patel wrote: > This is because we don't have place to put U-Boot environment > variables as of now on Unleashed board. This will be solved once > we have SPI driver and SPI_MMC driver for Unleased board. Isn't the MAC part of the initial DT? Andreas. -- Andre

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-12 Thread Andreas Schwab
On Feb 12 2019, Bin Meng wrote: > On Tue, Feb 12, 2019 at 4:34 PM Andreas Schwab wrote: >> >> On Feb 12 2019, Anup Patel wrote: >> >> > This is because we don't have place to put U-Boot environment >> > variables as of now on Unleashed board. This will

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-12 Thread Andreas Schwab
ed mechanism to ensure a unique > MAC address, instead it relies on software to program one to the > hardware before bringing it up. On the Hifive the MAC is part of the initial DT, so there is no need to use a secondary store. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key

Re: [U-Boot] [PATCH v7 00/15] SiFive FU540 Support

2019-02-11 Thread Andreas Schwab
ing random MAC address - 0e:14:15:06:ae:e4 Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-24 Thread Andreas Schwab
On Jan 23 2019, Atish Patra wrote: > or you can try to edit the DT directly and update the FSBL if you are > comfortable with it. I think it would make sense to add the node in the board init function. That way it would work whether or not the FSBL is updated. Andreas. -- Andreas

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-24 Thread Andreas Schwab
On Jan 24 2019, Alexander Graf wrote: > Board_init() is too late. This needs to go into early_board_init_f(). I don't think we can modify the DT that early. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-01-24 Thread Andreas Schwab
On Jan 24 2019, Alexander Graf wrote: > On 24.01.19 14:38, Andreas Schwab wrote: >> On Jan 24 2019, Alexander Graf wrote: >> >>> Board_init() is too late. This needs to go into early_board_init_f(). >> >> I don't think we can modify the DT that early. >

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-04 Thread Andreas Schwab
On Feb 04 2019, Atish Patra wrote: > Probably your cross compilation is not set. Can you try this ? > > export ARCH=riscv > export CROSS_COMPILE= There is no cross compile prefix. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4B

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
und Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
On Feb 05 2019, Anup Patel wrote: > The OpenSBI build is similar to Linux and U-Boot. We expect > CROSS_COMPILE environment variable to be set. Why? That doesn't make sense. > Example, if you cross-compiler I don't have a cross compiler. Andreas. -- Andreas Schwab, SUSE

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
ten/src/riscv/opensbi/build/platform/sifive/fu540/firmware/fw_payload.dep || rm -f /net/hawking/daten/src/riscv/opensbi/build/platform/sifive/fu540/firmware/fw_payload.dep Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-05 Thread Andreas Schwab
On Feb 05 2019, Anup Patel wrote: > Ahh, looks like it is not picking up "CC" set by Makefile. This might > be because you have removed "-R" from MAKEFLAGS. Nope. That fixed it. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8

Re: [U-Boot] [PATCH v2 11/11] riscv: Add SiFive FU540 board support

2019-02-04 Thread Andreas Schwab
On Feb 03 2019, Anup Patel wrote: > Can try with https://github.com/riscv/opensbi.git ? AS-DEPplatform/sifive/fu540/firmware/fw_payload.dep /bin/sh: -g: command not found Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 8

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-07-31 Thread Andreas Schwab
On Jul 30 2019, Sagar Kadam wrote: > I do remember using "git mv" here. git mv is identical to git rm + git add. A git repository has no concept of file renames. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 8

Re: [U-Boot] [PATCH v3 2/2] sifive: fu540: Enable OF_SEPARATE

2019-11-11 Thread Andreas Schwab
fine but it does not have ethernet DT node) Are these notes now obsolete? Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." __

Re: [RESEND PATCH v5 1/6] riscv: Add boot hartid to Device tree

2020-04-20 Thread Andreas Schwab
On Apr 17 2020, Atish Patra wrote: > Linux booting protocol mandates that register "a0" contains the hartid. > However, U-boot can not pass the hartid via a0 during via standard UEFI s/during via/during/ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint

Re: [PATCH] efi_loader: Enable run-time variable support for tee based variables

2021-01-15 Thread Andreas Schwab
oblem really is that RISC-V use -fpic for compiling. If I change that to -fpie, there is no longer a GOT reference. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH] efi_loader: Enable run-time variable support for tee based variables

2021-01-15 Thread Andreas Schwab
ndreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v12 2/8] drivers: clk: add fu740 support

2021-06-15 Thread Andreas Schwab
k", > + .parent_name = "corepll", > + .ops = _fu740_prci_tlclksel_clk_ops, > + }, > + [PRCI_CLK_PCLK] = { > + .name = "pclk", > + .parent_name = "hfpclkpll", > + .ops = _fu740_prci_hfpclkplldiv_clk_ops, > + }, > + [PRCI_CLK_PCIEAUX] { > + .name = "pciaux", Shouldn't that be called "pcieaux"? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH v2 2/2] test: unit test for longjmp

2021-03-24 Thread Andreas Schwab
not arrive here */ > return foo; This is undefined. When modifying a non-volatile auto variable between setjmp and longjmp, there is no requirement that the value is preserved. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF7

Re: [PATCH v2 2/2] test: unit test for longjmp

2021-03-24 Thread Andreas Schwab
; So I guess we have to declare env as volatile in setjmp() in this > version of the patch because it is changed between the setjmp and > longjmp invocations? Yes, I think so, or make it static. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 25

[PATCH] lib: add crc16.o if CONFIG_MMC_SPI_CRC_ON for SPL build

2021-08-17 Thread Andreas Schwab
ifdef CONFIG_SPL_BUILD obj-$(CONFIG_SPL_YMODEM_SUPPORT) += crc16.o obj-$(CONFIG_$(SPL_TPL_)HASH_SUPPORT) += crc16.o +obj-$(CONFIG_MMC_SPI_CRC_ON) += crc16.o obj-y += net_utils.o endif obj-$(CONFIG_ADDR_MAP) += addr_map.o -- 2.33.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key

Re: [PATCH v2 2/6] lib: Drop SHA512_ALGO in lieu of SHA512

2021-09-09 Thread Andreas Schwab
/lib/efi_loader/Kconfig > @@ -323,7 +323,7 @@ config EFI_TCG2_PROTOCOL > depends on TPM_V2 > select SHA1 > select SHA256 > - select SHA512_ALGO > + select SHA512 > select SHA384 > select SHA512 > select HASH Likewise. Andreas. -- Andreas S

[PATCH] lib: add crc16.o if CONFIG_MMC_SPI_CRC_ON for SPL build

2021-08-09 Thread Andreas Schwab
side effect of adding crc16.o. Signed-off-by: Andreas Schwab --- configs/sifive_unleashed_defconfig | 1 - configs/sifive_unmatched_defconfig | 1 - lib/Makefile | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/sifive_unleashed_defconfig b/configs

Re: [PATCH v5 10/11] ram: starfive: Read memory size information from EEPROM

2023-10-10 Thread Andreas Schwab
apacity size information is read from > EEPROM. Does that acutally work? I see that read_eeprom fails in SPL. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v2 1/3] riscv: implement __ashldi3, __lshrdi3

2022-10-04 Thread Andreas Schwab
On Okt 01 2022, Heinrich Schuchardt wrote: > On 32bit RISC-V calls to __ashrdi3 and __lshrdi3 are generated. > These functions are normally provided by glibc but U-Boot is freestanding They are defined by libgcc, not glibc. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key finge

Re: [PATCH v2 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-01-24 Thread Andreas Schwab
us fails to load U-Boot proper. U-Boot SPL 2023.01-00735-gc8fc99adce (Jan 24 2023 - 15:11:27 +0100) DDR version: dc2e84f0. Trying to boot from MMC2 spl: partition error SPL: failed to boot from all boot devices -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1

Re: [PATCH v2 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-01-23 Thread Andreas Schwab
the name the kernel is using. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v4 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-03-23 Thread Andreas Schwab
On Mär 22 2023, yanhong wang wrote: > On 2023/3/21 21:51, Andreas Schwab wrote: >> On Mär 21 2023, yanhong wang wrote: >> >>> Except for CONFIG_DEFAULT_DEVICE_TREE and CONFIG_DEFAULT_FDT_FILE, >>> 1.2a and 1.3b versions use the same config. >>> >>

Re: [PATCH v4 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-03-21 Thread Andreas Schwab
-starfive-visionfive-2-v1.2a.dtb" > > Is it necessary to separate the configs for 1.2a and 1.3b as separate > defconfig files? It makes a difference for when ethernet support is added. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-05-02 Thread Andreas Schwab
ind any of them. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-05-02 Thread Andreas Schwab
he kernel is the authority in providing it. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."

Re: [PATCH v4 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-03-20 Thread Andreas Schwab
On Mär 16 2023, Yanhong Wang wrote: > This is the initial basic config for StarFive VisionFive v2 board. It > includes consol, Norflash, sdio, ddr etc. Are you also planning to add a config for the 1.2a version? -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-13 Thread Andreas Schwab
On Feb 13 2023, Qu Wenruo wrote: > On 2023/2/13 00:20, Andreas Schwab wrote: >> When I print ce->size in __btrfs_map_block, it is almost always >> 1073741824, which looks bogus. >> > Can you provide the image of that filesystem? How do I do that? -- Andreas Schwab

Re: [PATCH] fs: btrfs: limit the mapped length to the original length

2023-02-13 Thread Andreas Schwab
} else { > *length = ce->size - offset; > } > + *length = min_t(u64, *length, orig_len); > > if (!multi_ret) > goto out; I can confirm that this fixes the issue. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
n 0 ms > => md5sum 0 0x2 > md5 for ... 0001 ==> d48858312a922db7eb86377f638dbc9f > ^^^ Above md5sum also matches. > > Reported-by: Sam Winchenbach > Signed-off-by: Qu Wenruo This breaks btrfs on the HiFive Unmatched. => pci enum PCIE-0: Link up (Gen

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
: btrfs_map_block: cur_len=479928320; ret=0 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2023-02-12 Thread Andreas Schwab
When I print ce->size in __btrfs_map_block, it is almost always 1073741824, which looks bogus. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."