/srv/irclogs.ubuntu.com/2017/06/16/#ubuntu-kernel.txt

=== mjg59` is now known as mjg59
=== ogra_ is now known as ogra
=== koza|away is now known as koza
knowhowhello again15:38
knowhowcking15:39
ckingknowhow, hi 15:39
knowhowi had to decompress the tar xz in root...you could have give a gz link you know :))15:39
ckingxz takes less time to uncompress15:40
ckingI mean download15:40
knowhowthe patch also needs to be uncopressed it seems and has to be in the kernel folder...literaly the kernel folder15:41
ckingwell, to make it easier you can do that15:41
knowhowfrom the kernel directory i typed the following comand: patch -p1 --verbose ../patch-4.9.30-rt21.patch now i see a rectagular white thing15:43
knowhowhow long does a patch needs to be applied?15:43
knowhowit is allready 5 minutes15:44
ckingtry: patch -p1 --verbose < ../patch-4.9.30-rt21.patch15:44
ckinghit control-C to stop what you have running and use the above ^15:44
knowhowand --verbose should have give me more than a terminal rectagular prompt shouldn't havewith the < ?15:45
knowhowdidn't see that in instructios15:45
knowhowcking ? did ommision of the < screwd things up?15:46
ckingknowhow, without the < the patch command was just trying to pull in a patch from standard input rather than the file15:47
ckingI suspect it is OK15:47
knowhowwell...i still see a prompter with nothing else...should i stop it and use the <   ? or let it a little more ?15:48
knowhow my concern is that -- verbose parameter should have said more than he rectagular white prompter flashing no?15:49
knowhowwhich i still see15:49
knowhowand i have an 8 core i7 darn it :))15:50
knowhowwell..four real ones anyway :|15:50
knowhowcking ? i applyed the command from the kernel directory where i copied the patch also15:51
knowhowbut the copy i did it with sudo nautilus15:52
sforsheeknowhow: yes you need to stop it and use the <, it's never going to do anything the way you've run it15:52
knowhowdoing it now15:52
ckingyep, hit control-C now, and run patch -p1 --verbose < ../patch-4.9.30-rt21.patch15:52
ckingthe "prompter" is called a cursor15:53
knowhowno such file or directory and i see it there with my own eyes :|15:54
ckingoh, it may be in the current directory, so try: patch -p1 --verbose < patch-4.9.30-rt21.patch15:54
knowhowshould i do it with sudo ?15:54
knowhowyou are absolutely right it is in current directory....damn you grammar :)))15:55
knowhowpardon me it s syntax :))15:56
knowhowpatch -p1 --verbose  < patch-4.9.30-rt21.patch Hmm...  Looks like a unified diff to me... can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/Documentation/sysrq.txt b/Documentation/sysrq.txt |index 3a3b30ac2a75..9e0745cafbd8 100644 |--- a/Documentation/sysrq.txt |+++ b/Documentation/sysrq.txt ------------------------15:58
knowhowthat is the command + error15:58
knowhownow15:58
knowhowcking15:58
ckingknowhow, what is in the current directory?15:58
knowhowthe current directory is kernel15:59
knowhowand in it is the patch uncompressed15:59
ckingok, you need to cd into the kernel directory15:59
ckingand then run:  patch -p1 --verbose < ../patch-4.9.30-rt21.patch15:59
knowhowi am in the kernel directory16:00
ckingknowhow, what is in the kernel directory?16:01
knowhowlots of folders and files16:01
knowhowand my copied patch16:02
ckingknowhow, type: grep ^VERSION Makefile16:03
knowhowfrom the main linux directory it says that cannot find the file...should i copy the patch back to the parent directory?16:03
ckingand then type: grep ^PATCHLEVEL Makefile16:03
knowhowdone16:05
knowhowno errors16:05
ckingwho do you see?16:05
knowhownothing just jumps to next row16:05
ricotztype: pwd16:05
ckingknowhow, ^16:07
knowhowpwd gives where i am which is kernel folder16:07
knowhowthe two that cking gave me just do nothing they jump ok to n ext row...whitout errors16:08
ricotzknowhow, then paste the output of pwd to give cking some clue16:08
ckingknowhow, the grep command should have found the kernel version and patch level numbers from the Makefile in the directory, the fact that it is not doing that means something is not right16:09
knowhowyeah something was not right allright16:10
knowhowprobably the things musnt be done from the kernel directory but from the parent sorce directory16:11
knowhowmoving the patch  back to the main directory from the kernel directory16:12
knowhowwhen i am in the parent directory i get output from the two commands cking gave me16:12
knowhowversion is 4 paatchlevel is 9 cking16:12
ckinggood. keep in that directory16:13
knowhowfrom the parent directory and not the kernel one16:13
ckingthe "parent directory" you refer to *IS* the source directory of the kernel, to confuse things, there is a directory inside that called "kernel"16:13
knowhowbut i have to move with sudo nautilus the uncompressed patch there now....i am not a terminal guy you know :|16:14
ckingI have no idea why your kernel source needs root permission to write to, where is it? what does pwd show?16:15
knowhowis the 666. something megabytes directory after decompression of the thing i downloaded yesterday from your link16:15
knowhowprobably that 666 number does these things to me :)))16:15
apwhow did you extract it ...16:16
knowhowi put it in home directory16:16
knowhowapw..that is the best question16:16
knowhowwith archive manager but from sudo nautilus not the ...usual nautilus...terminal commands dont work for that by the way16:16
knowhowsome errors that have nothing to do with reality16:17
ricotz(running nautilus with sudo is a bad idea)16:17
knowhowafter that from root nautilus i changed permissinos for the user me....16:17
ckingknowing some command line foo is really a baseline to get a kernel patched, configured and built too16:18
knowhowricotz why?...the equation group will get me or something?16:18
ricotzjust create some folder inside *your* home-dir, uncompress with "tar xf kernel.tar.xz"16:18
knowhowtar xf doesnt work...gives an error not being a bz2 format or something16:19
ricotzknowhow, is messes with the root account settings and runs services which are not meant to be run like that16:19
knowhowbut i use it only to copy these things that do not work the usual way...after that i used normal nautilus16:19
ricotzknowhow, make sure the package "xz-utils" is installed16:20
knowhowit is16:20
knowhowthe formus blasted with that info16:20
ricotzknowhow, but if you copy thing with nautilus running with sudo you get such permission problems16:20
knowhowwhen sudo apt-get install ...it said it is allready there16:20
ricotzok16:20
knowhowbut from sudo nautilus i right click the folder...give all permissions to me and i done with it no?16:21
ricotzcking, I don't want to hijack this16:22
knowhowricotz...by all means...i answered all the questions16:22
knowhowif you have something usefull to say go right ahead...except the religious "linux god" dictatorship of course :))16:23
knowhowso...sudo nautilus i used to copy things where they should be16:23
ricotzplease figure this out on a normal user console without sudo/root16:24
knowhowapw...if not using sudo nautilus for decompressing the xz archive ...it gives an error at the extraction ...says that "no symbol links" supported on destination16:24
knowhowand i have an ext4 on the system drive16:24
knowhowif using sudo nautilus the archive manager doesnt complain16:25
knowhowafter that i revert to normal nautilus...and normal terminal of course16:25
ckingknowhow, this really isn't the way it should be done, you are making more problems for yourself doing it via sudo'd nautilus16:25
ckingknowhow, the recipe for getting this done is as follows:16:26
cjwatsonI suspect the only reason you need to use sudo nautilus is that you had previously done something with sudo nautilus there and so the containing directory is owned by root16:26
knowhowcjwatson after the ubuntu install if you want to copy a single measily mp3 or some other file...from the stick....to the hdd....from the first hdd to second from the normal nautilus...you can't:|16:29
cjwatsonDepends on the target directory, I imagine16:29
knowhowit simply says something ...can't copy...can't move...and you start crying near the computer.....16:30
cjwatsonI think you would do better if you left out the florid commentary16:30
knowhowin home directory...music directory...thesame difference16:30
cjwatsonAnd it's generally much more helpful to quote exact error messages (in a pastebin if they're large) rather than paraphrasing things vaguely.  Even if the differences don't seem interesting or meaningful to you it might help whoever you're asking to help you.16:31
ckingif it's any help, I've just downloaded the kernel source + the RT patch, applied the patch and I'm building it right now on a server16:32
knowhowcjwatson if i get this through....i am going to make a tutorial on youtube so no one goes EVER through the same ....chocolate....that i am going right now16:33
knowhoweven if it takes 10 episodes...with the time youtube give to  newcomers16:33
ckingknowhow, I just wget'd the tarball + patch, uncompress'd and untar'd the kernel source, uncompressed and applied the patch, slapped in a reasonably close .config and kicked off a build, I 'll upload it once it's done16:34
knowhowcking can you make it a deb file with all the dependencies needed for a OS fresh install too?16:34
ckingknowhow, the .deb will contain just the kernel + modules nothing more and nothing less16:35
cjwatsonBut on a fresh install you already have all the dependencies needed to install a kernel installed, since by definition if you can boot the thing then it has a kernel installed16:36
knowhowcking i saw a kicad deb on mister reynaud2007 git....download it...no dice16:36
cjwatsonAnyway, on recent versions of Ubuntu you can do "sudo apt install ./foo.deb" and it will fetch dependencies for you16:36
ckingnice16:37
cjwatson(assuming they're available in your apt sources)16:37
knowhowafter using lots of terminal commands...apt get magically installed it ...but with the need of internet of course...beacause of some dependencies that ubuntu didn't even bother to tell me about16:37
knowhowcjwatson a deb file should normally have all the dependencies it needs...that is why it is a deb16:38
cjwatsonIt's not Ubuntu's fault if some third-party package fails to declare its dependencies properly16:38
knowhowprobably i will learn to do a deb package inthe future...and learn how to put the dependencies in too16:39
cjwatson(If it had declared them, the package manager would have told you about them)16:39
knowhowcjwatson i know16:39
knowhowoooh...so that means the uploader didnt do the deb right?16:40
cjwatsonThat seems quite likely16:40
cjwatsonDepending on exactly what went wrong of course, since once again you've given an extremely vague description of the problem16:40
cjwatson(Not that a problem with a third-party kicad package would be especially relevant to #ubuntu-kernel of course)16:40
knowhowbut that means he wants the people not to be able to use the deb???...that is extremely naughty16:40
cjwatsonMore likely the uploader just made a mistake16:41
cjwatsonDon't overdramatise16:41
knowhowcjwatson of course16:41
knowhowbut it happens...and it is the human behind that is at fault16:41
knowhowthat is what i try to emphasize16:41
cjwatsonYou said "that ubuntu didn't even bother to tell me about"16:42
knowhowyes beacause i didnt have the piece of info you gave about the declaration thing that some human developer should have bother putting in there16:43
knowhowi am new in this darn it :)))16:43
knowhowi am like an alien abductee...when he is in space :))16:44
cjwatsonRight.  So slow down, stop blaming things that don't deserve blame and making cracks about religious dictatorships, and listen to people giving advice.16:44
knowhowor god knows where16:44
ckingknowhow, I'm uploading a kernel for you right now with notes on how I built it16:44
knowhowcjwatson.....i know..stop feeling it16:45
knowhowcking....thanks...i will try to understand the notes16:45
knowhowso i can share the knoledge to others16:45
knowhowcking what behemoth of computer do you have?16:46
ckingknowhow, a fast one16:46
knowhowbeacause everything you do seems ftl tehnology16:47
knowhowthat laforge would be gelous16:47
ckingknowhow, we have a lot to do, so we do it fast and efficiently16:47
knowhowhow many cores?16:47
knowhowor cpus?16:48
knowhowso cking am i installing the deb file with the software center and it should add it to the grub list?16:49
knowhowi supose you give me a deb right?16:49
knowhowthat includes the rt patch16:49
knowhowright?16:49
ckingknowhow, and a README and a .config for this RT kernel config http://kernel.ubuntu.com/~cking/knowhow/16:50
ckingwait a moment, I'm still uploading the debug deb16:50
knowhowcking can the link from this server be shared....or after i download it you erase the file from server?16:51
ckingI will erase it once you download it all16:52
knowhowcking be carefull i see that you applied patch for 4.9.30 to 4.9.32...will that be good?16:53
knowhowi start downloading at 200 kb per second so it will be a while16:53
knowhowcking after download ...which one do i install?16:54
knowhowi have a core i 7 so amd64 it is...but you have 3 debs there16:54
ckingknowhow, it applied OK. Note I've not tested this nor do I support this. The notes in the README are sufficient to repeat the build16:55
ckingknowhow, 5 debs. just yse the firmware image, headers and linux-image deb. you can probably ignore the  dbg image deb and libc dev16:56
ckingi also supplied the config file I used to build that RT kernel too - you need to copy it into the kernel source directory with the name ".config"16:57
knowhowcking i only see 4 debs16:58
ckingknowhow, note this kernel does no have any of the Ubuntu kernel team "sauce" patches, bug fixes or CVE fixes, it is just a stock kernel with RT patches and no support16:59
knowhowcking is it a stable one?16:59
knowhowthat is why i wanted 4.0.3016:59
ckingyes it is a gregkh stable kernel16:59
ckinghttps://lwn.net/Articles/725370/17:00
ckingcame out a couple of days ago, so all shiney and new17:00
knowhowcking...usualy bleeding edge means black screens and all that nasty stuff :))...but if you say it is declared stable ok....the patch is garanteed by the preempt rt team17:02
ckingshiney and new "fixes" 17:02
knowhowi am still donloading by the way17:02
ckingi need to pop away from the computer and cook some food for my family, I'll be back later17:03
knowhowok i saw the stable word in there :))17:03
ckingstable is as good as it gets17:03
knowhowok bon appetit cking17:03
ckingcheerio17:03
knowhowbut i see 4 debs and you said are 5 17:03
knowhowshold i refresh browser?17:04
cjwatsonyes, refresh, I saw 517:04
knowhowok17:04
knowhowyes i see the other one too now cjwatson but which one do i install first?...all of them are amd6417:06
cjwatsonI don't recall whether software-center lets you install multiple packages in one go17:07
cjwatsonI'd download the set that cking recommended you install and just use the command line: sudo apt install ./linux-firmware-image-4.9.32-rt21_4.9.32-rt21-1_amd64.deb ./linux-headers-4.9.32-rt21_4.9.32-rt21-1_amd64.deb ./linux-image-4.9.32-rt21_4.9.32-rt21-1_amd64.deb17:08
knowhowbut the kernel is one...that is how the official low-latency one is17:08
knowhowso which is which?17:08
knowhowi see two linux-image things17:09
cjwatsonlinux-image is the kernel itself, but you need linux-headers if you might ever build third-party modules against it, and linux-firmware-image I don't know but if cking said you want it then you should probably take his word for it17:09
cjwatsonyou can run   dpkg -I ./linux-firmware-image-4.9.32-rt21_4.9.32-rt21-1_amd64.deb   (etc.) to see the package description17:09
cjwatsoncking said that you can probably ignore linux-image-4.9.32-rt21-dbg_4.9.32-rt21-1_amd64.deb17:10
knowhowi am downloading them for sure but which one should i use?...which one is a kernel...with the preempt rt patch included?17:11
knowhowi downloaded everything...so what now?17:15
knowhowok dbg one ignored for now17:15
cjwatsonI answered all of this above, so just re-read the last dozen lines or so ...17:17
knowhowcjwatson that means i have to install everything except the dbg one but which on do i select fro boot after that? from grub customizer?17:24
knowhowor it will only show a one new kernel with the rt letters?17:25
knowhowand i can select that one17:25
cjwatsonI would assume it would not be hard to find if it isn't automatically selected as the default.17:25
knowhowwhat should i expect after installation?17:25
knowhowi know beacause it is grub customizer i have installed...just tyo be able to revert to other kernels i have installed easily17:26
cjwatsonI think you should just make a note of the version if you think you might not remember it.17:28
knowhowso do i install them in the order you mention earlier cjwatson?17:29
knowhowthe packages17:29
cjwatsonIf you pass them all on a single command line as I recommended, the order doesn't matter.17:31
cjwatsonapt will pick a suitable order that ensures dependencies are satisfied.17:32
knowhowcjwatson it seems that they installed in one go it found some warnings about some intel chipset the forum said it would...it showed the other kernels i have installed the generic and low latency17:45
knowhowand i will open grub customizer to see what horrors expect me :))17:45
knowhowseems that everything is in order17:49
knowhowa normal an upstart..and some other thingy exactly as the other group17:49
* cking back again17:50
ckingknowhow, so, all OK then17:50
knowhowall ok i will restart soon just to see how it went...but i will probably have to do it again because....i havent understand a bob from what just happened :)))17:51
knowhowi will restart and see if uname -a will show my new shiny ...with nemphasis on functional :)))...kernel booted :)17:52
knowhowfor now many thanks cking ...to you and to that super computer of yours17:53
knowhowand cjwatson for the all in one install for the deb files17:53
ckingintel make some big beefy machines for sure17:53
knowhowbut expensive too17:54
knowhowladies and gentlemen including the people of the hour cking and cjwatson...i am writing this message from...an allmost realtime.... linux ubuntu instance running machine18:02
cjwatsongood stuff18:02
knowhowuname -a gives this18:02
knowhow4.9.32-rt21 #1 SMP PREEMPT RT Fri Jun 16 16:36:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux18:02
knowhownow i have to continue with the linuxcnc compilation against this kernel18:03
knowhowi packed these things for safekeeping just in case someone else needs them18:04
knowhowthank you again cking cjwatson apw and others...your atmost patience was not in vain 18:06
knowhowso thank you again...the open source sound card continues oncemore18:06
knowhowcjwatson how do you grab libraries...or to better call them what they are....dependencies..... for future use on a pc not connected to internet?18:10
knowhowi used check build deps so i know how to track them for a said source compiling need...but i only know how to get them with apt install command from repos18:12
knowhowor..is there another irc channel that treats these things...so i do not other more than i should?18:12
cjwatsonknowhow: sounds more like something for #ubuntu; but you could try the apt-offline package (disclaimer: I've never tried this myself), or if you ... bah18:19
=== JanC is now known as Guest55726
=== JanC_ is now known as JanC
=== henrix_ is now known as henrix
=== logan_ is now known as logan-
=== Guest22862 is now known as RAOF

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!