Commit Graph

414 Commits

Author SHA1 Message Date
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
Khem Raj
b822e2e9fb libunwind: Remove bbappend
Changes are now in OE-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-16 22:41:56 -07:00
Alistair Francis
1e2e6c7c48 openocd: Enable jtag_vpi config option
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-03-16 09:51:33 -07:00
Alistair Francis
4cbee5b139 openocd: Bump to a more recent build
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-03-16 09:51:33 -07:00
Alistair Francis
9e88baad29 qemuriscv32: Remove the 32-bit RISC-V machine
OE-Core now has support for the 32-bit RISC-V QEMU machine, so let's
remove it from here.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-03-11 10:08:41 -08:00
Khem Raj
5da7c891be busybox: Fix build on rv32/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-08 07:46:36 -08:00
Khem Raj
6ce18b2de4 musl: Update the rv32 patches to apply on latest musl
port on top of oe-core version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-08 07:46:36 -08:00
Khem Raj
7cfde1e32f linux-yocto-5.10: Remove 2GB physical memory rv32 patch
this is not applied to linux-yocto upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-19 08:19:39 -08:00
Khem Raj
c3eb6ff657 layer.conf: Ignore textrels for rust hello world on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-17 09:40:47 -08:00
Khem Raj
25e7762b88 riscv32: Disable textrels check for rust-hello-world
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Khem Raj
a7b220dc86 rng-tools: rngd uses 100% cpu on qemu/riscv32
Use -x jitter to fix the cpu hog

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Khem Raj
130f6dc2ed u-boot: Fix build for rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Khem Raj
dc6d123050 recipes: Remove textrel skipping for some recipes
These recipes have gotten fixed overtime

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Khem Raj
6bed43c37f tcf-agent: Enable builds on riscv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Khem Raj
94ec885cec ltp: Drop the upstreamed patch for rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-05 18:01:14 -08:00
Alistair Francis
9407a33a2b glibc: Remove glibc bbappend
glibc 2.33 is now in OE-Core and supports RV32, so let's remove the 2.32
bbappend.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-02-05 13:32:00 -08:00
Khem Raj
a1bb4d1a47 linux-yocto: Fix 5.10.12+ build issue on rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-05 09:33:42 -08:00
Khem Raj
b022614bc4 musl: Add bits/reg.h for riscv32
Applications include sys/reg.h to get wordsize for architecture and such
applications would fail to build on rv32/musl if this header is not
provided

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-01-12 21:46:39 -08:00