Commit Graph

17 Commits

Author SHA1 Message Date
Justin Hammond
650490e644 Fix VisionFive 2 boot and Add Star64 Board
Several issues with the current visionfive 2 support:
* JH7110 Support is only in OpenSBI Master branch, (upcoming 1.3 release).  So pin OpenSBI Revision to the commit that adds JH7110 Support otherwise reset etc does not work
* There are two variants of VisionFive2 and Star64 - 4Gb and 8Gb. StarFive's u-boot reads the eeprom on board to determine what variant you have, and modifies the loaded FDT it passes to the kernel with the correct Memory. Current U-boot scripts in meta-riscv do not do this, and thus all boards end up with the default 4Gb configuration. I've updated this for Star64, but needs testing on VF2

* Some of the addresses used in uboot for kernel/initramfs or fdt were different from upstream. Aligned the addresses with upstream StarFive.

As both Star64 and VisionFive2 are based on the same SOC, i've changed the machine configuration so we have a JH7110 SOC and VisionFive2 and Star64 inherit from this. Where appropriate in the recipies, I've changed to jh7110 instead of visionfive2

Finally, as the Star64 has different kernel/u-boot configs/dts files, i've pointed those at my repos for now, and will be upstreaming (assuming Starfive accept star64 related PRs). Once upstreamed, I'll submit a new PR here.

This also lays the groundwork for the new PineTab-V from pine64 which is due to be shipped in May.

Signed-Off-By: Justin Hammond <justin@dynam.ac>
2023-04-18 17:01:54 -07:00
Andreas Cord-Landwehr
38bda00f29 linux-starfive-dev: update starfive kernel for release 2.11.5 2023-04-09 07:36:11 -07:00
Andreas Cord-Landwehr
33a768b7fe linux-starfive-dev: update kernel to VisionFive2 tag 2.8.0 2023-03-06 10:19:34 -08:00
Andreas Cord-Landwehr
6472a479dc linux-starfive-dev: set CMA memory for visionfive2 to 256MB
Running anything with decent UI like a KDE Plasma shell requires much
more than the default 8MB. Visible effect of too small buffer is heavy
flickering of UI, accompained by allocation errors in syslog.
2023-03-06 10:19:34 -08:00
Andreas Cord-Landwehr
a7f82e4ab7 visionfive2: add initial kernel support 2023-03-06 10:19:34 -08:00
Khem Raj
6348fdd2b5 linux-starfive-dev: Update LINUX_VERSION to 6.2.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-05 14:47:40 -08:00
Khem Raj
d5628ffd5a linux-starfive-dev: Bump to 6.0.0
Drop lld patch, lld has implemented relaxation now in clang 15.x
which is default in master meta-clang, therefore this patch is no
longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-10 22:36:40 -07:00
Khem Raj
5415c909f2 linux-starfive-dev: Update srcrev and the defconfig name for beagleV
Use same branch for both starfive SOC boards

Fixes Issue #357

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-22 18:51:48 -07:00
Richard Purdie
d16bc5a3f2 visionfive: Add initial support for Starfive Visionfive board
This is largely based on the beaglev code nbut tweaked to work with current
starfive kernel repositories and tweak to the board.

The kernel and rootfs boot with working network and graphics. The u-boot
binary builds but is as yet untested.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-05 07:09:47 -04:00
Khem Raj
96b34d0976 linux-starfive: Use https protocol on github src_uri
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-11 17:22:07 -07:00
Khem Raj
2392e1f99d recipes: Convert to newer override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-04 23:14:25 -07:00
Khem Raj
5a3ff76ae5 meta-riscv: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-04 23:14:25 -07:00
Khem Raj
e8e0eef916 linux-starfive-dev: Dev has now moved to 5.14 for version
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-07-14 17:58:23 -07:00
Khem Raj
a1828a51a6 linux-starfive-dev: Use renamed defconfig for beaglev
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-21 00:06:22 -07:00
Khem Raj
5c5c7964c7 linux-starfive-dev.bb: Switch to starfive-tech fork
This is new dev branch for beagleV work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-08 10:50:39 +10:00
Khem Raj
7828a18b90 linux-firmware-beaglev-bcm43430: Add recipe
This packages bluetooth/Wifi firmware blobs into a package

Help lld linker
Use -mno-relax to compile the kernel with clang
when using lld for linker ( with LLVM=1 )

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-18 12:40:18 -07:00
Khem Raj
8b821bd50c linux-starfive-dev: Add recipe
This is Emil's upstream tree for beagleV

Also Enable wifi

This ensures that right firmware is installed into image
and we can now have wlan0

oot@beaglev-starlight-jh7100:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 2C:F7:F1:1B:E3:33
          inet addr:10.0.0.31  Bcast:10.0.0.127  Mask:255.255.255.128
          inet6 addr: fe80::2ef7:f1ff:fe1b:e333/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4317 (4.2 KiB)  TX bytes:4436 (4.3 KiB)
          Interrupt:20

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1746 (1.7 KiB)  TX bytes:1746 (1.7 KiB)

wlan0     Link encap:Ethernet  HWaddr D4:9C:DD:4A:C2:DD
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-13 17:44:37 -07:00