21 Commits

Author SHA1 Message Date
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
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
d7bb4241ae linux-starfive: Delete unused patches
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
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
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
Khem Raj
3084768a1d linux-starfive: Enable stmmac.chain_mode and earlycon
stmmac.chain_mode=1 is needed for ethernet to work
earlycon for more verbose msgs on console

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-13 17:44:37 -07:00
Khem Raj
4d48df9c05 linux-starfive: Enable power reset via TPS65086
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
a680163804 linux-starfive: support TPS65086 restart
apply patches from
https://github.com/starfive-tech/linux/issues/8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
84ebe7b9d1 wifi.cfg: Make bcmdhd as module
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
edb57675d2 extra.cfg: Disable marvell phy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
b868afe69d linux-starfive_5.10.bb: Update to latest on fedora branch
Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
d21287ab69 linux-starfive: Enable BCMDHD wifi module
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
7e3f2fe06b linux-starfive: Enable micrel module
This is required for ethernet to work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
8b05ff2630 linux-starfive: Switch back to starfive_vic7100_evb_sd_net_defconfig
The real problem is that we can not boot kernel compiled with
-Os/gcc-11, once we disable CONFIG_CC_OPTIMIZE_FOR_SIZE, original
defconfig boots fine. Since its smaller in size and does not enable
ton of modules like the fedora config, lets switch back to this

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -07:00
Khem Raj
53757c4a19 linux-starfive: Drop rootdelay=3 from kernel cmdline
I am seeing this issue with 3s delay and also with 10s delay so there is
something else going on, it locks hard when it does. Interestingly
reseting with button on board then reboots it fine.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-09 16:54:57 -07:00
Khem Raj
128fa1b539 linux-starfive: Use starfive_vic7100_evb_sd_net_fedora_defconfig
This helps fix the time issues we were seeing with current config
which was resulting in bad time being reported from kernel and glibc
strftime() tripping over it.

This fixes all those issues and we can boot glibc based rootfs without
issues

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-07 08:35:48 -07:00
Alistair Francis
c881a6ede3 machine/beaglev-starlight-jh7100: Use fitImage
Update the boot process to follow the HiFive1.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
9d3df1e164 beaglev: rename BSP components from -beaglev to -stafive
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00