View previous topic :: View next topic |
Author |
Message |
double_crane Tux's lil' helper
Joined: 11 Dec 2011 Posts: 134 Location: China
|
Posted: Wed Feb 22, 2017 3:37 am Post subject: [Solved] boot failure after update world on G3220, OK on i3 |
|
|
I have a computer( H81 platform with intel G3220 ) and a laptop (H87 platform with corei7-4700MQ )
and both of them install a gentoo x64 system.
the bad gentoo system is on the G3220 computer, after emerge -uDN wolrd at Feb,20th it can't boot up. with errors of bad opcode, such as below
Code: |
[1.377480] traps NetWorkmanager[227] trap invalid opcode in ip:55dede sp:7ffe155971b0 error:0 in Networkmanager
.......sth other messages
[2.234940] traps gdm[239] trap invalid opcode ip:415bac sp 7ffdb23fc810 error in gdm[40000+5b000]
.......sth other messages
[2.299423] traps: alsact[178] trap invalid opcode ip 7fe061f53bfd sp:7ffcc4a4da00 error:0 in libpulsecommon-10.0.so[7fe0..]
|
http://oef34nctr.bkt.clouddn.com/IMG_20170222_0856074.jpg
http://oef34nctr.bkt.clouddn.com/IMG_20170222_0917108.jpg
at last it will go to the login interface (under terminal, not X-window), but once input username and click enter, it repeat to ask for username again, not password. So I can't login.
but if I put the harddisk which installed the bad gentoo system into my laptop(H87 with i7-4700mq) , it can boot up correctly.
and also I test it on another B85 platform with intel-i3 4150 computer, it can boot up too.
before update world, it can boot up correctly. I didn't change anything before or after update. the only difference is that I put the harddisk into my laptop (with Core-i7 )to emerge faster.
I guess the wrong opcode maybe the CFLAGS error? I use CFLAGS, march=core2 in the gentoo system on G3220 computer. and in kernel ARCH selection, I also set CPU ARCH=Core2. Although it's compiled by i7-4700mq on my laptop, I don't think it's the cause of the error because I always do like this and always OK.
I notice that the CFlags "march=" is equal to "haswell" for G3220 if it's set to "native" in gcc 4.9, so I changed "march=" from "core2" to "haswell", and also I set the CPU ARCH selection in kernel config from "Core2" to "generic X86-64", and I did emerge -e world (use chroot, as the second harddisk on my laptop, succeed).
but after that, it still can't boot up, and the error message changes to kernel panic. I rebuild the 4.9.6 kernel while emerge -e world , but I didn't change any other kernel CONFIGs except the CPU ARCH. and I didn't rebuild 4.4.26 kernel but it go into kernal panic too. So I think it's not the kernel fault.
Code: |
[end kernel] panic - not syncing Attempted to kill init! exitcode = 0x00000004
[cut here]
WARNING: CPU:0 PID:1 at arch/x86/kernel/smp.c:127 native_smp_send_reschedule+0x3a/0x40
Modules linked in:
CPU:0 PID:1 Comm: systemd not tainted 4.9.6-gentoo_r1 #3
Hardware name
.......
|
http://oef34nctr.bkt.clouddn.com/IMG_20170224_1757448.jpg
http://oef34nctr.bkt.clouddn.com/IMG_20170224_1800217.jpg
and I notice that, if put my laptop harddisk (not update world) into the G3220 computer, it can boot up, but it can't chroot to the second harddisk partition (the error gentoo system), and I installed a Ubuntu 16.04 system on another partition on G3220 computer, and it can't chroot to the error system partition too. Both of them will return "illegal instruction". and if do "chroot /mnt /bin/bash -v", I see that it print error when handle /mnt/etc/bash/bashrc file, it'll print error at every line not commented.
And I tried "chroot /mnt /bin/sh", the same result.
not only chroot, some other commands return illegal instruction too, such as git status.
but on my laptop, I can chroot to the bad gentoo system from the good gentoo system.
So, what's wrong?
thank you very much.
Last edited by double_crane on Thu Mar 02, 2017 1:55 pm; edited 6 times in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21602
|
Posted: Wed Feb 22, 2017 4:39 am Post subject: |
|
|
What is the output of emerge --info ; ls -l /etc/portage/make.conf? |
|
Back to top |
|
|
double_crane Tux's lil' helper
Joined: 11 Dec 2011 Posts: 134 Location: China
|
Posted: Thu Mar 02, 2017 1:55 pm Post subject: |
|
|
I redo emerge -e world on G3220 computer, although it takes almost two days, it works now.
I guess that, although march=native set on pentium G3220 and i7-4700 both are equal to match=haswell, but they are still not the same.
applications built on i7 can't run correctly on G3220.
I see it on the page https://wiki.gentoo.org/wiki/Safe_CFLAGS, in SandyBridge and IvyBridge, although their CFlags both are equal to ivybridge/sandybridge, pentium have "-mno-avx -mno-aes -mno-rdrnd" but others don't. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|