Skip to content

Please fix compile! pcm_write + loop/system disk space hung issue in cvi_mpi/modules/audio/Makefile #50

@sunnydrake

Description

@sunnydrake

platform enviroment wsl2 Ubuntu24.04.2 LTS + 24.04.2 LTS standalone
Problem:
changes in audio.mk (tinyalsa=no , alsa =yes)
while performing ./build.sh milkv-duo256m-musl-riscv64-sd
compile goes in copy all harddrive files loop after
"[audio insatll>>>>] copy lib to: (xxx)/duo-buildroot-sdk-v2/cvi_mpi/lib"
cp: cannot open '/boot/System.map-6.11.0-21-generic' for reading: Permission denied
etc.. in loop whole drive /

to Fix loop
(As its data hoarder from drive) wipe&restore cvi_mpi dir rm -R ./cvi_mpi&&git checkout -- cvi_mpi
change in cvi_mpi/modules/audio/Makefile :34
PREBUILD_LIBDIR = prebuilt/$(TARGET_MACHINE)
to
PREBUILD_LIBDIR = ./prebuilt/$(TARGET_MACHINE)

Next to compile at all (with tinyalsa =yes as in stock)
( as with alsa = yes compile still fails via absence " No rule to make target 'src/cvi_audio_interface.c', " )
we must add changes to avoid " libcvi_audio.so: undefined reference to `pcm_read' " as in alsa it's snd_pcm_read and anyway we don't have sources of libcvi_audio to recompile )

build/env_setup_milkv.sh:519
function build_pqtool_server()
{(
return; # <-- add this line to skip build pqtoolserver

other changes:
dts file altered to enable SPI pins(default SPI pins are not set ! so /dev/spidev* is useless according to wire RX/TX loop and spi_test) and GC09 display

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions