[Bug 1132956] New: cputype-armv6 no longer works
http://bugzilla.suse.com/show_bug.cgi?id=1132956 Bug ID: 1132956 Summary: cputype-armv6 no longer works Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: dmueller@suse.com Reporter: schwab@suse.com QA Contact: qa-bugs@suse.de CC: afaerber@suse.com Blocks: 1128045 Found By: --- Blocker: --- Since CONFIG_DEVKMEM has been disabled in the kernel the cputype-armv6 hack no longer works. [ 24s] cputype-armv6-20180219-3.2 ######################################## [ 24s] dd: failed to open '/dev/kmem': No such file or directory [ 24s] Error: /dev/kmem machine name () and uname machine name (armv7l) do not match! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c1 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkubecek@suse.com --- Comment #1 from Dirk Mueller <dmueller@suse.com> --- regression as part of : https://bugzilla.suse.com/show_bug.cgi?id=1128045 commit 14780962d2a521dd4c7a0a3d0effded2b8cf465f Author: Michal Kubecek <mkubecek@suse.cz> Date: Mon Apr 8 07:34:05 2019 +0200 config: disable DEVKMEM (bsc#1128045) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c2 --- Comment #2 from Dirk Mueller <dmueller@suse.com> --- any suggestions? /dev/mem seems still available but it maps physical addresses. so how do we something equivalent? kprobe? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msuchanek@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c3 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffm@suse.com --- Comment #3 from Jeff Mahoney <jeffm@suse.com> --- Overwriting kernel memory is never a solution. The kernel now has the ability, with compiler support, to randomize structure layouts. utsname is one of them, so this approach was going to turn from a bad idea to worse pretty soon anyway. If my understanding is correct, you want to force newer hardware to report that it's older so that "naive" build processes will work to build for the old hardware. You want this to be as cheap as possible. Would adding a kernel command line option be feasible for your workflow? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c4 --- Comment #4 from Jeff Mahoney <jeffm@suse.com> --- Created attachment 803729 --> http://bugzilla.suse.com/attachment.cgi?id=803729&action=edit [PATCH] arm64: add compat_uts_machine boot parameter Not even build tested, but this is what I had in mind. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c5 --- Comment #5 from Michal Suchanek <msuchanek@suse.com> --- This patch would require that the system is run on 64bit kernel -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c6 --- Comment #6 from Michal Suchanek <msuchanek@suse.com> --- Which does not seem to work well: linux:/mnt/armv6 # uname -a Linux linux.suse 4.4.176-1.g755499f-default #1 SMP Thu Apr 4 18:21:44 UTC 2019 (755499f) aarch64 aarch64 aarch64 GNU/x linux:/mnt/armv6 # chroot . [ 4774.885949] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf73105f8 [ 4774.902912] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf73105f8 [ 4774.902922] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf73105f8 [ 4774.902931] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf73105f8 [ 4774.902943] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf73105f8 [ 4774.902955] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7310e34 [ 4775.084385] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf714665c [ 4775.084400] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7146698 [ 4775.084919] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf718ac98 [ 4775.084967] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf718acb8 linux.suse:/ # [ 4780.705417] cp15barrier_handler: 786 callbacks suppressed u[ 4780.705426] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7175668 [ 4780.705445] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf71757ac [ 4780.705463] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7174338 [ 4780.705488] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf71743c0 [ 4780.929341] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7175668 n[ 4780.929358] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf71757ac [ 4780.929373] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7174338 [ 4780.929397] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf71743c0 [ 4781.057386] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf7175668 a[ 4781.057401] "bash" (1547) uses deprecated CP15 Barrier instruction at 0xf71757ac me -a Linux linux.suse 4.4.176-1.g755499f-default #1 SMP Thu Apr 4 18:21:44 UTC 2019 (755499f) aarch64 aarch64 aarch64 GNU/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c7 --- Comment #7 from Jeff Mahoney <jeffm@suse.com> --- linux32 is still required -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c8 Andreas Färber <afaerber@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS|Other |openSUSE Factory --- Comment #8 from Andreas Färber <afaerber@suse.com> --- I assume there's two cases here: a) aarch64 host + linux32 = armv8l b) armv7l host If we have to patch the kernel anyway, can't we change it dynamically like linux32 or linux26 tools do? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c9 --- Comment #9 from Jeff Mahoney <jeffm@suse.com> --- This is for using linux32. Neither of those programs can inject an arbitrary machine type name into the kernel. They just set a process flag that overrides the default with a different, also hard coded, option. The patch just lets the user override what the second name is. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c10 --- Comment #10 from Andreas Färber <afaerber@suse.com> --- (In reply to Jeff Mahoney from comment #9)
This is for using linux32.
And I assume it will not handle case b), as it does not touch 32-bit arm code. There appears to be no equivalent uts_name= option. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 Matthias Brugger <mbrugger@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mbrugger@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 Mian Yousaf Kaukab <yousaf.kaukab@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yousaf.kaukab@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1132956 http://bugzilla.suse.com/show_bug.cgi?id=1132956#c12 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |NORESPONSE --- Comment #12 from Dirk Mueller <dmueller@suse.com> --- LD_PRELOAD was implemented and seems to be good enough at the moment. No response from Jeff, closing. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com