Skip to content
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

Crosh shell not opening - illegal Instruction (core dumped) #1362

Open
joeyoropesa-dev opened this issue Jan 2, 2022 · 62 comments
Open

Crosh shell not opening - illegal Instruction (core dumped) #1362

joeyoropesa-dev opened this issue Jan 2, 2022 · 62 comments

Comments

@joeyoropesa-dev
Copy link

joeyoropesa-dev commented Jan 2, 2022

When I try to open Crosh shell with keyboard, crosh shell constantly close itself. After that when I try run crosh shell from terminal (Ctrl + Alt + F2) I get this error:

illegal instruction (core dumped)

I have latest Brunch and ChromeOS version so - is this bug by Brunch or by Chrome OS. And if this bug by Brunch framework, can this problem be solved. My Chrome OS image is rammus type. I don't have installed anything on my device (Android, Crostini - nothing)

/var/log/messages says:
2022-01-02T10:10:00.694175Z INFO kernel: [ 2515.077547] traps: crosh[9981] trap invalid opcode ip:59d35b93c4d9 sp:7ffeb42c8600 error:0 in crosh[59d35b844000+1e3000]
2022-01-02T10:10:01.196282Z WARNING crash_reporter[9984]: [user] Received crash notification for crosh[9981] sig 4, user 0 group 0 (handling)
2022-01-02T10:10:01.197404Z INFO crash_reporter[9984]: State of crashed process [9981]: S (sleeping)
2022-01-02T10:10:01.198684Z INFO crash_reporter[9984]: Accessing crash dir '/var/spool/crash' via symlinked handle '/proc/self/fd/11'
2022-01-02T10:10:01.219384Z WARNING crash_reporter[9984]: exec name 'crosh' not found in log file
2022-01-02T10:10:01.303526Z INFO crash_reporter[9984]: Stored minidump to /var/spool/crash/crosh.20220102.111001.28129.9981.dmp
2022-01-02T10:10:01.303882Z INFO crash_reporter[9984]: Finishing crash. Meta file: /proc/self/fd/11/crosh.20220102.111001.28129.9981.meta

@tejasraman
Copy link

Best I can think of is that Brunch is sending illegal(unsupported) instructions to your CPU. What exactly is your CPU model? Maybe try a different recovery image, "syndra" or "syndra" might work? - FYI I'm not sebanc, and it could be something else

@tejasraman
Copy link

I meant "syndra" or "caroline" - just to try :)

@joeyoropesa-dev
Copy link
Author

Best I can think of is that Brunch is sending illegal(unsupported) instructions to your CPU. What exactly is your CPU model? Maybe try a different recovery image, "syndra" or "syndra" might work? - FYI I'm not sebanc, and it could be something else

Processor: Intel(R) Celeron(R) CPU B820 @ 1.70GHz

@tejasraman
Copy link

That's Sandy Bridge. There shouldn't be problems with Sandy Bridge, but a "fairly recent" Celeron is recommended. You could try "nami" recovery image, or use "caroline" (try caroline first). It may just be that the rammus image is using unsupported instruction sets. Try these two and get back to me if they don;'t work :)
Here is the caroline image: https://cros.tech/device/caroline
and the nami one: https://cros.tech/device/nami

@joeyoropesa-dev
Copy link
Author

FYI, the Brunch page says that Baytrail or later is needed - you have the older "Sandy Bridge". You could try a different recovery ("nami" or "caroline") and if they work, you could try "samus" (if you're OK with a release of Chrome OS from June 2021) - that has a higher chance, but is now end of life.

Is "nami" image supported by Google and my CPU?

@tejasraman
Copy link

Yes, the “nami” image is supported until 2025 (rammus hits EOL in 2026 - a year after nami) but nami should have better support for your CPU. This is an honestly weird error, and usually, these weird errors on seemingly supported CPUs (this is the actual Sandy Bridge architecture) can be solved using a different recovery.

@tejasraman
Copy link

FYI, the Brunch page says that Baytrail or later is needed - you have the older "Sandy Bridge". You could try a different recovery ("nami" or "caroline") and if they don’t work, you could try "samus" (if you're OK with a release of Chrome OS from June 2021) - that has a higher chance, but is now end of life - sorry for the confusion with this comment

@joeyoropesa-dev
Copy link
Author

Yes, the “nami” image is supported until 2025 (rammus hits EOL in 2026 - a year after nami) but nami should have better support for your CPU. This is an honestly weird error, and usually, these weird errors on seemingly supported CPUs (this is the actual Sandy Bridge architecture) can be solved using a different recovery.

On stable and beta version, crosh problem is resolved but in dev - the problem is the same. Maybe, if I change the kernel in the brunch settings for booting this image - i can use crosh on the dev version too.

@tejasraman
Copy link

Ohhhh… you are on ChromeOS Dev builds. You usually need brunch-unstable to use dev builds (it contains the latest Brunch code). Do you have the Brunch PWA installed on your Brunch laptop?

@tejasraman
Copy link

That’s how you change from brunch-stable to brunch-unstable(brunch dev releases)

@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Jan 5, 2022

Ohhhh… you are on ChromeOS Dev builds. You usually need brunch-unstable to use dev builds (it contains the latest Brunch code). Do you have the Brunch PWA installed on your Brunch laptop?

I'm using Brunch Unstable (the latest version for Unstable builds)

Brunch PWA is installed

(Now on kernel 5.15 - dev channel and crosh works but when I choose to boot to the Brunch settings, my device is booting to the chrome os normally. When I choose to boot Chrome OS normally, doesn't boot at all - can't find chromeos.img - can't mount /dev/sda7: no such device)

@tejasraman
Copy link

Maybe a messed up grub config. Press E on the Brunch option and see what is going on. Tell me what shows up in the grub editor.

@joeyoropesa-dev
Copy link
Author

Maybe a messed up grub config. Press E on the Brunch option and see what is going on. Tell me what shows up in the grub editor.

Fixed. When I changed brunch kernel from 5.15 to 5.10, it's working now normally

@tejasraman
Copy link

Great thanks!

@ganeshambalakkara
Copy link

I'm too having the same problem crosh closes as soon as i press Ctrl+Alt+T.
After that when I try run crosh shell from terminal (Ctrl + Alt + F2) I get this error:
illegal instruction (core dumped)

@ganeshambalakkara
Copy link

@admin-elvistrujanovic Can please help me how u solved this issue

@tejasraman
Copy link

Don't use kernel 5.15

@ganeshambalakkara
Copy link

I'm using kernel 5.4 only still

@ganeshambalakkara
Copy link

@admin-elvistrujanovic I'm using kernel 5.4 only still

@tejasraman
Copy link

tejasraman commented May 23, 2022 via email

@ganeshambalakkara
Copy link

ganeshambalakkara commented May 25, 2022

@admin-elvistrujanovic
Mine is hp elitebook 8460p
320GB hardisk 4gb DDR2 ram with integrated graphics intel i5

@tejasraman
Copy link

tejasraman commented May 25, 2022

DDR2 on a laptop that was only compatible with DDR3?

This laptop should work with Rammus, and it seems that your hardware is similar to of @admin-elvistrujanovic. (You both have 2nd gen Intel CPUs wi5 HD3000 graphics)

FYI I am NOT @admin-elvistrujanovic.

What he did to fix it was using kernel 5.10 on his system, but I want more info. What is your brunch version, chrome OS version, and recovery image?

@ganeshambalakkara
Copy link

@tejasraman brunch version r100 chromeos 100 rammus ,ddr3 4gb ram

@tejasraman
Copy link

Warning: Don't update to r101 on your model
Try kernel 5.10

@ganeshambalakkara
Copy link

@tejasraman would i be able to update to another version?

@tejasraman
Copy link

Not until @sebanc fixes the Mesa driver issue.
Try kernel 5.10 in Brunch config, do not upgrade to r101

@soupCodez
Copy link

I have this same issue

@tejasraman
Copy link

Hello @soupCodez !
We need some more context to deal with this. Could you please tell me

  • Your chrome OS version
  • Your Brunch version
  • Your CPU, GPU, and computer model (if it is a laptop/prebuilt PC)
  • Your kernel and any other configuration options set up

(Ya, that was a bit generic, sorry - but I can't really do much until I know info)

@tejasraman
Copy link

@soupCodez are you still having this issue?

@dhomas1
Copy link

dhomas1 commented Aug 23, 2022

Hello there!

I am still having this problem. I am on Brunch r103 with the image for Rammus on ChromeOS v103. My hardware is an HP Probook 67470b that uses a Core i5 3rd gen processor. I am using Kernel 5.10, but I had the same behaviour with kernel 5.4 and 5.15.

I have Brunch installed on my USB key using the instructions from Github (not any other video instructions). When I get to the part where I want to install it to the HDD, I cannot open crosh.

Troubleshooting steps I've tried:

  • different kernel versions
  • disabling nX in the BIOS
  • trying different boot options in Brunch Configuration Menu
  • installing Chrome OS v104 with Brunch r103 (I didn't think this would work :) )
  • tried installing to the HDD via sudo from the root shell (CTRL - ALT - F2), which allowed me to install, but I still had crosh crashing on start. Android apps also can be installed but don't work, which I assume is a side effect of crosh not working

Any help would be welcome. Thank you!

@tejasraman
Copy link

Hi @dhomas1 ! I can provide you with an (up to date) video tutorial if you want.

Tejas

@tejasraman
Copy link

@dhomas1 have you managed to get it working?

@Not-Dhanraj
Copy link

Not-Dhanraj commented Oct 31, 2022

hey there @tejasraman . Can you suggest brunch type for Intel(R) Celeron(R) CPU B830 ?
It would be amazing if you could also include a tutorial.
Thanks.

@tejasraman
Copy link

tejasraman commented Oct 31, 2022

@Not-Dhanraj The best image I can give you is Caroline.

I'll give you a tutorial but I need to know if you're using windows or Linux.

(Edit: read your GH page. Arch? Don't use the btw line on me 🤣)

Currently using fedora KDE but I have a partition with endeavorOS (Sway) and I can tell you what to do from there.

Tejas

@tejasraman
Copy link

If you see #1677 I'm not sure if your celeron will work however it might. If you could try Caroline + brunch 107-unstablehttps://github.com/sebanc/brunch-unstable/releases/tag/r107-unstable-20221029) that might work.

You can read the official docs. If you want singleboot I can help but dualboot is a mixed bag (especially when it comes to fedora)

@Not-Dhanraj
Copy link

Not-Dhanraj commented Nov 1, 2022

I don't intend to use btw line anyways lamo😂
I use it cause it is pretty lightweight on my b830 laptop. Tried debian/fedora xfce as well but arch felt smooth so going with it.
Haven't updated/turned it on from months now i need to chroot and update everything 😂

@Not-Dhanraj
Copy link

If you see #1677 I'm not sure if your celeron will work however it might. If you could try Caroline + brunch 107-unstablehttps://github.com/sebanc/brunch-unstable/releases/tag/r107-unstable-20221029) that might work.

You can read the official docs. If you want singleboot I can help but dualboot is a mixed bag (especially when it comes to fedora)

Yeah, i want singleboot. If it'll work i'll upgrade to a 150 gig ssd.
Are you sure that unstable might not be unstable? 🤔
Can it work with stable?

@tejasraman
Copy link

I mean it will but unstable is never unstable. I wanted to replicate my Sandy bridge setup but stable should work.

Single boot :) I can help

(BTW I don't use Arch)

@tejasraman
Copy link

I'll give you a tutorial in any form you want.

@Not-Dhanraj
Copy link

I'll give you a tutorial in any form you want.

Video tutorial would be amazing 😅

@tejasraman
Copy link

Will do! Want me to do it on arch?

@Not-Dhanraj
Copy link

Will do! Want me to do it on arch?

Do it with whatever you have right now, or whatever you are comfortable with😁

@tejasraman
Copy link

tejasraman commented Nov 1, 2022

I have an arch partition on my main PC. I'll film it today or tomorrow and send it in to you.

@Not-Dhanraj
Copy link

Thanks!

@tejasraman
Copy link

tejasraman commented Nov 2, 2022

I'm still trying to make this into a video tutorial but here is a text tutorial:

  • Install Chaotic Arch repos
  • Run sudo pacman -S pv vboot-utils e2fsprogs
  • Mount the drive, format it to ext4, and run tune2fs -m 0 /dev/sdX (for a PC of that generation it's probably sata) (Only needed for very small disks)
  • Download the image "Caroline" from cros.tech
  • Download brunch unstable 107
  • Extract both zips into a folder
  • (If your laptop doesn't support EFI) download the mbr-support.tar.gz and extract it into the same directory as the other two archives.
  • Run sudo bash chromeos-install.sh -src yourimage.bin -dst mountedlocation

PS the computer needs EFI support for this to work.

If you want to try the legacy bios patch download the "mbr_support.tar.gz" from the main brunch repo and extract it into the same folder as the other two right before the last step.

@Not-Dhanraj
Copy link

Not-Dhanraj commented Nov 2, 2022

Don't worry abour legacy bios, the laptop in which i am trying to install chrome os supports EFI.

@tejasraman
Copy link

tejasraman commented Nov 2, 2022

Great... The only Sandy bridge laptop I have is a MacBook with EFI so I never tested the patch.

Did the guide work for you?

Edit: The reason I mentioned it was that most Windows Sandy Bridge laptops had Windows 7 (no EFI).

@jmbocn
Copy link

jmbocn commented Nov 2, 2022

Hi,

same issue here, I'm running nami r100 over brunch r107 unstable 20221029 on a core i3 3217U processor. Tried different kernels, now on 5.4, tried also ramus r100, crosh keeps on crashing with illegal instruction.

Any suggestions welcome!

@tejasraman
Copy link

Could you try Caroline @jmbocn

@jmbocn
Copy link

jmbocn commented Nov 3, 2022

Hi Tejas, same issue (tried both caroline r100 and r96); plus I cannot login to the system on the graphical GUI. If I switch to terminal mode with CTRL+ALT+F2 I can (1) check that crosh crashes with illegal instruction and (2) on /var/log/messages I see recurrent crashes with lots of ERR from missived calling method .....UploadEncryptedRecord (possibly related to the unability to log in). I reverted to nami r100 which is functional for me -other than crosh-.

@jmbocn
Copy link

jmbocn commented Nov 4, 2022

Update: I realized I can run crosh, just not interactively. E. g.: crosh -- <command> works but just crosh will fail. I guess that's why CTRL + ALT + F2 just opens and quickly closes the window, because crosh crashes if there are no arguments, that is if I try to execute crosh interactively to get a crosh> prompt

@Not-Dhanraj
Copy link

Great... The only Sandy bridge laptop I have is a MacBook with EFI so I never tested the patch.

Did the guide work for you?

Edit: The reason I mentioned it was that most Windows Sandy Bridge laptops had Windows 7 (no EFI).

Yes it did but sadly internet connection wasn't working so installed mint

@tejasraman
Copy link

What's your laptop model? I'll try to help

@Not-Dhanraj
Copy link

It is hp notebook 2000. And i cannot tell exact model number right now as i don't have access to that device right now.

@Not-Dhanraj
Copy link

When installed chromeos then it connected to wifi just fine and my network was working fine as well but it wasnt opening any website + i was not able to login with my google account.

Linux development tools wasn't supported on that device either, so i lost interest as soon as i installed it😂

@tejasraman
Copy link

tejasraman commented Nov 5, 2022

You know I hate chromeOS. My school forces a piece of junk Chromebook on me and it's limited (crostini = slow).

At the same time brunch is an interesting project (for me) to mess around with. (I even added Linux 6.0 to it recently).

I understand what you mean but thanks so much for being so helpful!

I think Linux Mint will serve you well - it's served me well 😃.

Thanks!

@tejasraman
Copy link

tejasraman commented Nov 5, 2022

That's weird especially because on an i5-2435M crosh works fine. Your chip has the same/more instruction sets than mine. @admin-elvistrujanovic had this but sadly IvyBridge is not supported (works though).

Can you test r107 unstable @jmbocn ?

@jmbocn
Copy link

jmbocn commented Nov 7, 2022

Hi @tejasraman I'm on brunch r107 unstable, but ChromeOS I cannot update past r100 as I hit a bug that makes the system stall at the login page, see #1546. So I'm quite between a rock and a hard place here :(
Just to make sure I got this thing working once, I went back to gandof r91 and crosh works OK on that version.

@tejasraman
Copy link

Then I'm not sure anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants