Commit Graph

431 Commits

Author SHA1 Message Date
Alistair Francis
f2a2d890ee docs/BeagleV.md: Update the BeagleV documentation
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-05-31 07:41:32 -07:00
Khem Raj
1f6605cb48 ghostscript: Drop setting objarch.h for rv32/rv64
latest version in oe-core does not need it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-27 07:12:39 -07:00
Khem Raj
cb86766bf7 setup.sh: Drop image-mklibs
image-mklibs has been removed from OE core layer

Fixes #289

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-27 07:12:39 -07:00
Khem Raj
83fc7164d7 u-boot-starfive: Move to Fedora_VIC_7100_2021.04 branch
Fedora is rename to this new name
Update to tip of branch while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-26 16:10:06 -07:00
Khem Raj
244f5e7805 opensbi_starfive: Switch to StarFive_VIC_7100 branch name
Fedora branch seems to have disappeared ( perhaps renamed to
StarFive_VIC_7100) but StarFive_VIC_7100 is now default branch on github
so lets switch to that

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-26 16:10:06 -07:00
Khem Raj
c0dffa7c60 wic/beaglev.wks: Use legacy msdos partition table
Ensures that dynamic resizing of the SD card works
since 96boards-tools package somehow breaks otherwise

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-18 12:40:18 -07: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
Steve Arnold
c168aab9f1 linux-starfive: bump to latest version on non-dev branch
Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
2021-05-14 08:49:04 -07:00
Khem Raj
35d1d58492 beaglev.wic: Do not mark gpt for partition table
partition resizing scripts fail e.g.

Error: Unable to satisfy all constraints on the partition.

This helps in ensuring that parition resizing works well using
IMAGE_INSTALL += "96boards-tools"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-13 17:44:37 -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
e4697fa5d0 opensbi-starfive: Rename to opensbi_starfive-0.8.0.bb
This makes the main recipe PN same as the one in core, but gives it
starfive flavor in PV, this then becomes nice to include it via
PREFERRED_VERSION mechanism.

Additionally, this also means that it gets picked up in world builds for
beaglev and OE-Core recipe is not preferred, as of now, it tries to
build both, since they are seen as different packages by bitbake due to
different PN

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-09 16:54:57 -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
b2dc925caa freedom-u540.conf: Remove clang runtime from ASSUME_PROVIDED
this is no longer needed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-09 16:54:57 -07:00
Khem Raj
c76570dd27 beaglev.yml: We can build with glibc now !
Enable glibc again

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-07 08:35:48 -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
Khem Raj
f38d01c1a7 beaglev.yml: Use musl for now
Glibc based images end up crashing the kernel in init
until thats debugged through lets use musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
475f2871c6 README.md: Add information on beagleV
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
f9c1baf4a6 beaglev.md: Move to doc/ dir and rename to BeagleV.md
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
c32a46b359 beaglev.md: Address typo and remove extlinux specific needs
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
1b048984be u-boot-starfive: Fix builds from sstate cache
do_deploy need to execute from sstate-cache when the build directory is
empty and system determines that there is no change to u-boot and it
can be reused from sstate, in this scenario deploydir needs to populate
properly, so we can not use WORKDIR in logic

Activate u-boot and opensbi only for beaglev-starlight-jh7100

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
23e6b57afc u-boot-starfive: Drop FDT address adjustments
This lends the system non-bootable as kernel waits for rootfs media
forever like below

[    2.011165] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[    2.051162] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[    2.311113] dw_mmc 10010000.sdio1: Unexpected interrupt latency
[    4.871335] Waiting for root device /dev/mmcblk0p2...

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Khem Raj
65407db940 opensbi-starfive,u-boot-starfive: Demand gcc for compiler
They dont yet build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -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
Alistair Francis
48bc14dcd8 machine/beaglev-starlight-jh7100: Fix serial console
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
d31a8ed0ae beaglev: add 1st on-hardware test results
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
631ea77d4a beaglev-starlight-jh7100.conf: add wic.bmap IMAGE_FSTYPE
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
f0225ee57e linux-starfive: rename LINUX_VERSION_EXTENSION to -starfive
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
51d571ef99 beaglev.md: add basic readme
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.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
Maciej Pijanowski
562bbf0f74 linux-beaglev: explain dts sync patch
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
0e5a6d0cc7 beaglev-starlight-jh7100.conf: remove comment about SBI_PAYLOAD
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
4c4c29aeeb beaglev-starlight-jh7100.conf: remove leftovers from freedom-u540.conf
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
89d3bfd5d8 opensbi-beaglev: w/a for do_deploy failure
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
643f03b3d0 linux-beaglev: update LIC_FILES_CHKSUM
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
62721a1e29 linux-beaglev: sync dts from u-boot
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
9b31efa4ab preliminary beaglev support
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Khem Raj
69f38710a0 capnproto: Disable on rv32/musl
Needs context functions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 08:57:33 -07:00
Khem Raj
ea75275414 qtwebkit: Disable on rv32
Not ported yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 08:57:33 -07:00
Khem Raj
bb4c722ae4 rust-hello-world: skip textrel checks for glibc/rv64 too
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-30 08:57:33 -07:00
Khem Raj
e34ede8564 layer.conf: Drop gatesgarth from LAYERSERIES_COMPAT
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-18 11:51:59 -07:00
Khem Raj
53fe85aa6a perf: Delete bbappend
This change is now in OE-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-16 22:41:56 -07:00