SiFive FU540 Support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest posting 4/40 of 15 patches 0 repliesNew
- v7 posting 3/40 of 15 patches 0 repliesSuperseded
- v7 posting 2/40 of 15 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 posting 1/4 | 2 of 15 patches | 0 replies | Superseded |
Patches in v7 posting 4/4 No applies recorded yet
None of the 15 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.
Cover letter [U-Boot] [PATCH v7 00/15] SiFive FU540 Support
Quoted 91 lines · Kevin Hilman
Quoted 60 lines · Atish Patra
Quoted 59 lines · Kevin Hilman
Quoted 39 lines · Atish Patra
Quoted 38 lines · Kevin Hilman
Palmer, Anup,
Quoted 34 lines · Palmer Dabbelt
Quoted 19 lines · bmeng.cn at gmail.com
Quoted 18 lines · Kevin Hilman
Quoted 15 lines · Kevin Hilman
Hi Anup,
Quoted 10 lines · Anup Patel
This patchset adds SiFive Freedom Unleashed (FU540) support to RISC-V U-Boot.
The patches are based upon latest U-Boot source tree
(git://git.denx.de/u-boot.git) at commit iddbe70c7d4e3d5c705a98d82952e05a591efd0683All drivers namely: SiFive PRCI, SiFive Serial, and Cadance MACB Ethernet work fine on actual SiFive Unleashed board and QEMU
sifive_umachine.Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I tested u-boot networking (DHCP, TFTP) on my desk with a gigE switch and it worked fine. Then, I moved it to a lab with a 100Mb switch, and DHCP doesn't work anymore.
And to be clear, neither does TFTP if setting static ipaddr/netmask/gatewayip etc.
Sound to me a bug of the GEM driver on SiFive FU540 board.
It looks to me like u-boot is missing a driver for the GEM clockmux in the FU540. This is necessary to switch between the clock for 1G operation and 100M operation. Without this you'll just get whatever clock was set up by the previous boot stage (or even worse, reset).
Quoted 6 lines
Quoted 3 lines
Anyone know if this is fixed in u-boot yet? I've yet to try the latest mainline u-boot, but will if if it's expected to work.
I have not seen a GEM driver for FU540 board. So I guess it is not fixed it. Is it a blocker for setting up kernelCI for RISC-V ?
Not really, that's only one of the remaining issue. For now, I have connected it to a gigE switch, so u-boot networking is working.
But, the bigger blocker for kernelCI right now is not having out-of-the-box mainline support. Mainline is still missing a serial driver, and a handful of
Kconfigoptions in the default defconfig to make things boot[1].If I use the 'v5.1-rc4_unleashed' from your github, along with my kconfig fragment[1], things are working well.
Quoted 8 lines
Quoted 3 lines
But in order to automate this for kernelCI, we need all of that upstream.
Yeah. I agree. We need upstream drivers sooner than later. I believe SiFive Team (Paul & co) are working on this.
He recently sent updated version of driver patches to the linux-riscv mailing list.
Yes, I'm trying to test all of those (hence our other discussion on the DT thread)
Quoted 16 lines
Quoted 15 lines
[1] This is the config fragment I'm adding to the default defconfig in mainline. I'm not exactly sure which ones are absolutely need for basic boot.
CONFIG_SERIAL_SIFIVE=yCONFIG_SERIAL_SIFIVE_CONSOLE=yCONFIG_SIFIVE_PLIC=yCONFIG_SPI=yCONFIG_SPI_SIFIVE=yCONFIG_GPIOLIB=yCONFIG_GPIO_SIFIVE=yCONFIG_PWM_SIFIVE=yCONFIG_CLK_U54_PRCI=yCONFIG_CLK_GEMGXL_MGMT=y
Quoted 6 lines
Quoted 3 lines
My working config has enabled all of the above except
CONFIG_PWM_SIFIVE. I have not played around the config that much to find out absolute minimum config. So this may not be the answer you are looking for :).At least for kernelCI, we'll need to figure that out and get it upstream if we want to boot test these.
Oh, and one other u-boot question.
Any reason you didn't enable booti support in riscv u-boot? That would allow you to boot the Image (or Image.gz) directly, instead of the need to create a special image with u-boot header (uImage)
Kevin