Giter Club home page Giter Club logo

Comments (16)

Damenly avatar Damenly commented on June 5, 2024

May I know if anything works abnormally in your raspberry_pi?

Suggest to use syslog() to output debug to /var/log/messages.

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

yes,I use syslog(), but there is no corresponding print in message.

from chromium_os-raspberry_pi.

Damenly avatar Damenly commented on June 5, 2024

Do you call openlog() first? Or call exit() so the process will crash intentionally to confirm the function was called.

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

Ok, thank you very much. I'll have a try

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

Maybe my changes didn't compile to image,
I first modified the src/third_party/adhd/cras/src/alsa_plugin/pcm_cras.c file,
then use the command sudo emerge-${BOARD} media-sound/adhd,
then use./build_image --board=${BOARD} --noenable_rootfs_verification dev,
finally use the cros flash usb:// ${BOARD}/latest command
But my changes didn't go into Raspberry PI.
Can you tell me how to correctly compile my changes into Raspberry PI

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

I came to this conclusion because I made a deliberate error, but the compiler did not report an error

from chromium_os-raspberry_pi.

Damenly avatar Damenly commented on June 5, 2024

No need to build_image wasting time. You can call
emerge-${BOARD} media-sound/adhd then cros deploy ${ip} media-sound/adhd
see https://chromium.googlesource.com/chromiumos/docs/+/main/cros_deploy.md.

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

hi,I follow the documentation https://chromium.googlesource.com/chromiumos/docs/+/main/developer_guide.md
Execute the following command:
cros_workon --board=${BOARD} start media-sound/adhd
cros_workon_make --board=${BOARD} media-sound/adhd
cros_workon_make --board=${BOARD} media-sound/adhd --install
./build_image --board=${BOARD} --noenable_rootfs_verificatio
cros_workon --board=${BOARD} stop media-sound/adhd
Then I run the build image command and I get an error
"All ebuilds that could satisfy "media-sound/adhd" for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_195945-a1/rootfs/ have been masked"
Could you tell me how to solve this problem?

from chromium_os-raspberry_pi.

Damenly avatar Damenly commented on June 5, 2024

Just use emerge after call of cros_workon as the doc says:

Alternatively, you can build your package using emerge-${BOARD} and quickly install it to the device by using [cros deploy](https://chromium.googlesource.com/chromiumos/docs/+/main/cros_deploy.md).

For example, if you want to build ec-utils to test on your device, use

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

Since I used the dev image earlier, I need to re-execute ./build_image --board=${BOARD} --noenable_rootfs_verification test, However, the following error occurs when the command is executed:
"All ebuilds that could satisfy "media-sound/adhd" for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_195945-a1/rootfs/ have been masked"
So I need to fix it

from chromium_os-raspberry_pi.

Damenly avatar Damenly commented on June 5, 2024

Please paste context around "All ebuilds that could satisfy "media-sound/adhd" for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_195945-a1/rootfs/ have been masked".
There should be a reason why the package is masked in the output.

And emerge-${BOARD} --info media-sound/adhd

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

This is log information, thank you very much for your help:
Setting up symlinks for /usr/local for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/stateful/dev_image
20:30:38 INFO : Image specified by /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1 mounted at /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs successfully.
Setting up symlinks for /usr/local for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/stateful/dev_image
20:30:38 INFO : Running: sudo tar -Ilbzip2 -xpf /var/lib/portage/pkgs/cross-armv7a-cros-linux-gnueabihf/glibc-2.33-r16.tbz2 -C /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs ./usr/armv7a-cros-linux-gnueabihf --strip-components=3 --exclude=usr/include --exclude=sys-include --exclude=.[ao] --exclude=usr/bin/getent --exclude=usr/bin/ldd --exclude=lib/libmemusage.so --exclude=lib*/libpcprofile.so --exclude=lib*/libSegFault.so --exclude=usr/lib*/audit --exclude=lib*/libnss_compat*.so* --exclude=lib*/libnss_db*.so* --exclude=lib*/libnss_hesiod*.so* --exclude=lib*/libnss_nis*.so* --exclude=lib*/libnss_nisplus*.so* --exclude=lib*/libBrokenLocale*.so*
20:30:38 INFO : Running: sudo -E /mnt/host/source/chromite/bin/parallel_emerge --board=rpi4 --root-deps=rdeps --usepkgonly -v --with-bdeps=n --root=/mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs virtual/target-os
20:30:39.274: INFO: Running: emerge --usepkgonly '--with-bdeps=n' virtual/target-os --sysroot /build/rpi4 --root /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs '--root-deps=rdeps' '--jobs=4' '--rebuild-exclude=chromeos-base/chromeos-chrome' '--rebuild-exclude=chromeos-base/chromium-source' '--rebuild-exclude=chromeos-base/chrome-icu'
!!! CONFIG_PROTECT is empty for '/mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs/'
!!! CONFIG_PROTECT is empty for '/build/rpi4/'
Calculating dependencies... done!

!!! All ebuilds that could satisfy "media-sound/adhd" for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs/ have been masked.
!!! One of the following masked packages is required to complete your request:

  • media-sound/adhd-9999::baseboard-rpi3 (masked by: missing keyword)

(dependency required by "virtual/target-chromium-os-1-r201::chromiumos" [binary])
(dependency required by "virtual/target-os-1-r5::chromiumos" [binary])
(dependency required by "virtual/target-os" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

Entering /mnt/host/source/src/scripts/mount_gpt_image.sh --unmount --from /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/chromiumos_base_image.bin --rootfs_mountpt /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs --stateful_mountpt /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/stateful --esp_mountpt /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/esp --delete_mountpts
20:30:50 INFO : Unmounting image from /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/stateful and /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs
20:30:50 INFO : Unmounting temporary rootfs /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/rootfs//build/rootfs.
Cleaning up /usr/local symlinks for /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/stateful/dev_image
20:30:50 INFO : Running sync -f /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1/chromiumos_base_image.bin
partx: specified range <1:0> does not make sense
An error occurred in your build so your latest output directory is invalid.
Would you like to delete the output directory (y/N)? y
Deleted /mnt/host/source/src/build/images/rpi4/R102-14695.195.0-d2023_04_27_203033-a1

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

This is the log information after executing the emerge-${BOARD} --info media-sound/adhd command
log.txt

from chromium_os-raspberry_pi.

Damenly avatar Damenly commented on June 5, 2024

There is a line KEYWORDS="~*" in adhd-9999.ebuild. Changing it to KEYWORDS="*" should let compile pass.

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

Thank you very much. I have solved the problem with your help

from chromium_os-raspberry_pi.

wwd-615 avatar wwd-615 commented on June 5, 2024

Hi,did chromium_os-raspberry_pi crop out the part about cras_dsp_module?
If I want to use drc algorithm on Raspberry PI, how do I apply it?
Can you give me a hand?

from chromium_os-raspberry_pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.