-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out a way to build audio target now that autotools is removed #4958
Comments
That CL landed in 15378.0.0. 5 options from discussion with @dnschneid :
4/5 are like, intern-sized project, so non-starter. I think we'll end up with 3 eventually, but 2 should be easy to implement. Basically, we just need to add a download step around here: https://github.com/dnschneid/crouton/blob/master/targets/audio#L59
(this can be done unconditionally as the extraction phase would override it) |
https://crrev.com/c/4322563 (>=15378.0.0) removed autotools support, let's fetch the last known good version from git. Fixes #4958. For now. Things will break again, likely.
https://crrev.com/c/4322563 (>=15378.0.0) removed autotools support, let's fetch the last known good version from git. Fixes #4958. For now. Things will break again, likely.
https://crrev.com/c/4322563 (>=15378.0.0) removed autotools support, let's fetch the last known good version from git. Fixes #4958. For now. Things will break again, likely.
Why can't we just eliminate cras? If you install a basic core, e.g.,
then from within the chroot, install alsa-utils, e.g.,
my experience is that you can both record and play audio using, .e.g., arecord and aplay. I've always been able to do this in crouton. So why do we even need the cras module? |
That should indeed work in many cases. Volume control will not integrate well though (nor any of the cras-applied volume curves, for example), and only integrated audio would work (no BT/USB headset). And there might be some weird interactions between cras and whatever userspace app. |
Thanks, drinkcat. I realize how little I know about the inner workings of crouton. You've been involved as long as I can remember. Thanks for your contributions. |
The main branch is still not fixed. How do I download your branch? |
Is Google intentionally sabotaging Crouton? |
This one is easy to answer. No, absolutely not. Chrome OS devs are moving forward and unintentionally breaking things in crouton. This happened many times throughout the years, and we could usually play catch up. This time, none of us have time (or even hardware) to test these fixes locally, so we'd need somebody from the community to step up. |
I think it can be tested using the new experimental branch 'longliveautotools' like this:
Enter the crouton options you would normally use to add or update a chroot in the command above. -DennisLfromGA |
@DennisLfromGA i tried it out with the command and cras compiles perfectly but then this happens, |
That's strange since the PR downloads a previous 'lastgoodam', not sure why it's failing, sorry. -DennisLfromGA |
I pushed a small change to hopefully fix that. Give it another shot, @ducksosu? |
@dnschneid i tried and and its back to the first problem |
Yeah, this fix needs to be combined with whatever fix for #4923, unfortunately. |
Thanks for the feedback, guys! I also tried the longliveautotools branch: Compiling CRAS (i386)... Edit: Disregard the below. The i386 is needed by AutoTools, otherwise we wouldn't be adding it. ̶S̶o̶ ̶h̶e̶r̶e̶'̶s̶ ̶a̶n̶o̶t̶h̶e̶r̶ ̶o̶u̶t̶s̶i̶d̶e̶-̶t̶h̶e̶-̶b̶o̶x̶ ̶s̶u̶g̶g̶e̶s̶t̶i̶o̶n̶:̶ ̶e̶l̶i̶m̶i̶n̶a̶t̶e̶ ̶t̶h̶e̶ ̶i̶3̶8̶6̶ ̶a̶r̶c̶h̶i̶t̶e̶c̶t̶u̶r̶e̶.̶ ̶W̶h̶y̶ ̶i̶s̶ ̶i̶t̶ ̶n̶e̶e̶d̶e̶d̶?̶ I think I was using crouton before cras was baked into the chroot. Also, it used to be that focal would install without cras, and I could access the sound card(s) directly using qjackctl and qsynth. But soon enough, the "oversight" was fixed. There are many use cases without the need for pretty sounds. Option 3 above, deprecate audio, is looking better and better. If crouton is going to break early and often, and take days or weeks to be fixed, then it's useless, save as an intellectual curiosity. I'm trying to keep the people on r/Crouton apprised of the situation, many of whom have no clue where to look for help. Thanks for all you guys do and have done over the years. James :) |
so if i removed the '-Wundef-prefix=HAVE_,CRAS_' option from the makefile would that cause any issues with cras or sound in general |
All you can do is try it and see what happens |
@CroutonIsFun yeah still trying to figure out where the makefile is though. do you know? |
The new audio file is in the 'longliveautotools' branch, you can find it here: Look at lines 60-65 where the Makefile.am is downloaded.
-DennisLfromGA |
You don't need permission to fork crouton. You just do it, and publish your own version. I'm skilled at using crouton, but not at reprogramming it. Yeah, my user name is CroutonIsFun. Maybe I should create a new account as TiredOfCrouton. ;-) Congratulations on setting up Xubuntu. Does your sound work? Personally, I'm using Debian bullseye, as Debian allows me more flexibility to install only what I wish. But Xubuntu is good! Thanks for your reply! |
Bye bye, crouton. You no longer work for me. It's been real. |
Barring an intervention by Google, crouton is dead. It is no longer possible to use sudo in the crosh shell: it is considered a privileged command. You can Ctrl-Alt-F2 over to VT-2, but this interface seems to be sandboxed, and device access doesn't work. And without device access, crouton will be similar to crostini. |
VT2 isn't sandboxed. There's contention on graphics that needs to be hopped around, but otherwise it's the native OS terminal like crosh is. |
Okay, I'll see what happens. Thanks for the info. |
@dnschneid @DennisLfromGA @drinkcat VT-2 is telling me this is a read-only file system. For example, try running this script from MrChromeBox:
If you unbundle the command, and only do the curl, the firmware-util.sh script cannot be downloaded, and thus the entire script fails. I used to know something about making the file system writable. Any thoughts on this? EDIT: I figured this out. When I login as chronos, it puts me in the user area. I have to first cd /, then I can get the command to work. This is tricky, because you can't copy and paste from the browser. So I had to create a text file, and save it to Downloads, then I could display it with
etc, then type it in. The same issue with running the crouton install script. |
-DennisLfromGA |
@dnschneid @DennisLfromGA @drinkcat Okay, now I'm seeing the graphics glitch which David mentioned. I had set up a chroot to use openbox, and I tried to launch it like this:
and the error message is: Xorg X11 servers cannot be launched from Frecon. So at this stage, I'm dead in the water as far as using a desktop. So many people want this to work, and I'm trying to lead the way. Any ideas? |
See my suggestions here |
David, thank you for jumping in.
Cannot open device /dev/sr0 for reading, check your DVD device This is why I thought VT-2 was sandboxed. So now, in order to accomplish what I need, I will install Debian bullseye to a USB, and dual boot. At least I now have access to VT-2. Update: Inside my chroot, I install ssh. There is no sshd in /etc/init.d, so I go
which only gives me back a command line help text showing me the options. According to Attempts to |
No way, my chromebook doesn't have function keys, I cannot access VT-2. And also, I cannot access tty2 when booting debian in live mode. |
F2 is the right arrow key. Start counting from the left, leaving out the Esc key. |
@CroutonIsFun Thank you, that worked. But when live booting debian, that trick doesn't work :( |
It's not supposed to work in Debian. It's a Chromebook-only command. |
Then plugging in a external keyboard would a good option for debian. |
Well, the top row of keys, not counting Esc, are recognized as F1 - F10. There is no F11 or F12. |
@dnschneid @DennisLfromGA @drinkcat CROUTON IS WORKING!!! Sorry, I know all caps is bad form... One of David's ideas was to ssh from crosh shell into a chroot running in VT-2. Well, this works! My previous attempt failed because after installing ssh in the chroot, I started it incorrectly. The correct command is
After starting ssh in the chroot, then I Ctrl-Alt-F1 over to ChromeOS, open up the crosh shell, then execute
Now, in my particular case, I'm starting openbox with xinit, so my method of starting an Xsession is simple xinit. But you could also install xfce4, in which you would type, startxfce4. Furthermore, earlier I had mentioned being unable to rip CDs and DVDs from the command line. This is because I had forgotten to add my username into /etc/group. I also add my username to hwaudio so I can use my USB audio adapter. (Built-in sound hardware doesn't work without cras. The situation is analogous to dual booting a Debian-based linux system, wherein the built-in sound hardware has no drivers in the Linux kernel). Billiant --- simply brilliant, @dnschneid Thank you one and all. I'll do my best to point users here and on Reddit in the right direction. |
I'm kinda out of loop now: my Chromebook expires in about 6 months, so I've already blown off ChromeOS and replaced it with Debian bullseye and xfce. Chromebooks are cool and clever devices. I'm not planning on buying a new Chromebook any time soon, so I'll really miss the ease of use and amazing features. |
You might want to check this updated 'Auto Update policy' page, they've recently extended the expiry date on many Chromebooks to 10 years from the platform release date. My Pixelbook was supposed to hit the AUE date Jun 2023 but it's now been extended to Aug 2027. -DennisLfromGA |
Dennis, interesting news. My Chromebook is an ASUS CX1100CNA, and it's on the list, with an asterisk. The footnote says I have to "opt in". I wonder what that means and how to accomplish it. I'll dig around a bit and come back here. Thanks for the tip! Edit: No information about enrollment in an update plan seems to be available as yet. Thanks, James :-) |
We don't yet know exactly how the 'opt-in' will work, they haven't released all of the details but you won't be able to 'opt-in' until your device hits the current AUE date. I'm sure we'll know more about it by then. -DennisLfromGA |
Thanks! |
I'm new to Linux and I have read through this discussion but I still don't understand how to install crouton. Please help. |
To install crouton you need to first:
I wanted to install a ubuntu 22.04 system with xfce But there's a problem, audio target is removed so The fix around that problem is to skip the audio target meaning that the base linux system with xfce installed on it would work without audio. ---> To run the xfce you installed type I recommend to read the README file of the crouton github repository, it contains pretty important information. You can install other targets as well but to list some use Not to mention, crouton is for intermediate users because of its complexity, you have to configure most of the stuff most of the time in the linux crouton installs. feedback is much appreciated. |
I would just do this, I ended up getting Ubuntu 22.04 (jammy) on my chromebook then after a while switching to windows. it works great just if you install windows check compatibility and check if the audio drivers are paid or not. even if the drivers are paid for your system it is cheap and easy to install so no worries there. with Linux it might be difficult to get audio working, I had a bug where it wouldnt detect my audio card correctly but it's fixable with a little bit of effort. |
got a functioning ubuntu by installing cras using chromebrew and then installing crouton. |
How did you do that? Looks very interesting as no one reported to have used that technique. Does audio and headphone jack work? Give us a in-depth explanation. A bit off topic, there is no way you're living in Antarctica ?. Thats what I call a true linux penguin ;) |
i got tricked, i made that post before starting the os. i don't remember the error but all the data is long since wiped, if i decide to buy a chromebook i'll fw it again. and no, unfortunately i'm not a scientist. |
in short, i got trolled by chromebook. |
What model is it? Maybe try installing chromeos 98 through a recovery image when autotools were present on chromebooks. |
https://chromium.googlesource.com/chromiumos/third_party/adhd/+/879fe7a51784eb07d1b85473d8927050fb000f87 removed
cras/src/Makefile.am
that we used to rely on.Not sure how we can work around this, implementing a bazel parser is definitely not something I'm looking forward to.
The text was updated successfully, but these errors were encountered: