#garfield Logs

May 23 2018

#garfield Calendar

12:02 AM Tom_L: http://www.fpmmetals.com/architectural/pattern-gallery/
12:06 AM Tom_L: https://www.finishing.com/454/92.shtml
12:15 AM katsmeow-afk: doesn;t matter how strong the legs are if they are not between the robot and the floor
12:16 AM katsmeow-afk: 1hr of formatting, 40% done
12:17 AM katsmeow-afk: in the olden daze of 10 MB hdds, formatting could be pretty fast
12:24 AM katsmeow-afk: https://www.youtube.com/watch?v=Ve9kWX_KXus
12:25 AM katsmeow-afk: https://www.youtube.com/watch?v=oxpZ1c7TsPI
12:45 AM rue_shop4: fast format that didnt check all the blocks
12:46 AM * katsmeow-afk runs slow format, and then a byte checker
12:55 AM katsmeow-afk: there's a GeneralFusion research lab in Burnaby
01:03 AM * katsmeow-afk wavers gnites and ttyt
09:03 PM rue_mohr: ok
09:03 PM rue_mohr: I'm awake
09:09 PM Tom_L: wanna build a kernel?
09:11 PM rue_mohr: dont we do that enough?
09:11 PM rue_mohr: whats up?
09:12 PM Tom_L: i want this kernel but i've never done one and stretch doesn't have a package needed
09:13 PM Tom_L: kernel-package has been dropped in stretch
09:17 PM Tom_L: it's in unstable or something but i've never built one
09:17 PM Tom_shop: d ~
09:17 PM Tom_shop: sudo apt-get update
09:17 PM Tom_shop: sudo apt-get install build-essential bin86 kernel-package libqt4-dev libncurses5-dev pkg-config
09:17 PM Tom_shop: mkdir rtlinux
09:17 PM Tom_shop: cd rtlinux
09:17 PM Tom_shop: wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz
09:17 PM Tom_shop: wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.16/patch-4.16.8-rt3.patch.gz
09:17 PM Tom_shop: tar -xpf linux-4.16.8.tar.xz
09:17 PM Tom_shop: gunzip patch-4.16.8-rt3.patch.gz
09:17 PM Tom_shop: cp patch-4.16.8-rt3.patch linux-4.16.8
09:17 PM Tom_shop: cd linux-4.16.8
09:17 PM Tom_shop: cat patch-4.16.8-rt3.patch | patch -p1
09:17 PM Tom_shop: make xconfig
09:17 PM Tom_shop: make -j4
09:17 PM Tom_shop: sudo make modules_install
09:17 PM Tom_shop: sudo make install
09:18 PM Tom_L: but it fails on the 2nd line
09:18 PM Tom_L: because that package is not part of it anymore
09:18 PM Tom_L: figured you might be up for helping
09:19 PM Tom_L: i've already got a preempt-rt kernel loaded but this one is better
09:19 PM Tom_L: but it's not in the mainstream distro
09:22 PM Tom_itx: so that led to this:
09:22 PM Tom_itx: https://lists.debian.org/debian-user/2017/06/msg00774.html
09:24 PM Tom_itx: which led to this:
09:24 PM Tom_itx: https://lists.debian.org/debian-user/2017/06/msg00784.html
09:25 PM Tom_itx: but i'm not sure how to include that in the script file so it will compile
09:27 PM Tom_L: you probably don't run stretch
09:31 PM Tom_L: how do you install a package you've downloaded? i don't think i've ever done that
09:32 PM Tom_L: or is there another way to get around that?
09:53 PM Tom_L: not interested?
10:11 PM rue_mohr: hmm
10:12 PM rue_mohr: so, your trying to patch a kernel for something?
10:12 PM rue_mohr: does the kernel compile ok without the patch?
10:14 PM rue_mohr: i suggest an older kernel then
10:14 PM rue_mohr: the last 4.15 version
10:25 PM Tom_L: no, this kernel works
10:25 PM Tom_L: others have used it but i've never built one
10:25 PM Tom_L: i'm not sure how they got past that kernel-package issue
10:26 PM rue_mohr: when it breaks what doees it say
10:26 PM Tom_L: just a sec
10:28 PM Tom_shop: E: Package 'kernel-package' has no installation candidate
10:29 PM Tom_shop: Linux debian 4.9.0-6-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux
10:29 PM rue_mohr: oh, why is make trying to install a package?
10:29 PM Tom_shop: is what i'm running currently
10:30 PM rue_mohr: make should not be trying to install packages
10:30 PM rue_mohr: oh, wait
10:30 PM rue_mohr: apt or make?
10:30 PM Tom_L: i got the script from someone that uses it and built his with it
10:30 PM rue_mohr: what are you running that giving the error?
10:30 PM rue_mohr: oooh
10:30 PM Tom_L: but he started with a newer kernel
10:30 PM rue_mohr: ok
10:30 PM rue_mohr: so you just need the kernel source
10:31 PM Tom_L: i guess
10:31 PM Tom_L: for the missing package
10:31 PM Tom_L: or
10:31 PM rue_mohr: wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz <-- but that is the kernel package
10:31 PM Tom_L: figure out how to replace it with the make deb-pkg that replaced it
10:31 PM rue_mohr: no
10:31 PM rue_mohr: its just the kernel source
10:32 PM rue_mohr: ^^ that command gets it
10:32 PM rue_mohr: !??!?!
10:32 PM Tom_L: i know
10:32 PM Tom_L: it's a patch i believe
10:32 PM rue_mohr: so, what are you running thats giving an error, some guys scipt?
10:32 PM rue_mohr: no, https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz <-- that IS the kernel
10:32 PM Tom_L: yeah but i'm running it a line at a time
10:33 PM rue_mohr: ok, wait, http://paste.debian.net/ paste the code your trying to run
10:33 PM Tom_L: but i need to patch my debian with it and replace the current kernel
10:33 PM Tom_L: i pasted the whole thing above
10:33 PM Tom_L: btw, how do you run a script from the terminal?
10:33 PM Tom_L: ./ something right?
10:34 PM Tom_L: i have trouble remembering things until i've done them a few times anymore
10:36 PM Tom_shop: http://paste.debian.net/1026315/
10:36 PM rue_mohr: its ifs not lfagged as executable, you bash myscript
10:37 PM Tom_L: huh?
10:37 PM rue_mohr: just remove kernel package from that line, and I htink you will be oik
10:37 PM Tom_L: what's it do anyway?
10:38 PM Tom_L: it was replaced with "make deb-pkg"
10:38 PM Tom_L: in debian 9
10:38 PM rue_mohr: it does the same as the line below
10:39 PM Tom_L: and can i sudo this or do i need to be root?
10:40 PM rue_mohr: just do them all as root and drop sudo
10:40 PM Tom_L: i'm not going to start it tonight but i'll try it tomorrow
10:41 PM Tom_L: i've got a spare drive to mess up
10:41 PM Tom_L: i did learn how to make a deb
10:42 PM rue_mohr: you dont need to tho
10:42 PM Tom_L: i'd been having trouble with a file not executing
10:42 PM Tom_L: it fixed it
10:42 PM rue_mohr: chmod 777 script
10:42 PM rue_mohr: ./script
10:42 PM Tom_L: and it will run anywhere like it's supposed to
10:42 PM Tom_L: what's 777?
10:42 PM Tom_L: everything?
10:42 PM rue_mohr: allow everything to everyone
10:43 PM rue_mohr: wtf, aliexpress thinks I'm in .nl again
10:43 PM rue_mohr: 20 STKS 103 10 K Ohm Trimmer Pot Enkele Turn Top Passen Variabele Weerstand 103
10:43 PM rue_mohr: ... what!?
10:43 PM Tom_L: this is a more 'efficient' kernel than the one packaged with debian for what we're doing
10:43 PM Tom_L: several have tested it
10:44 PM rue_mohr: heh
10:44 PM rue_mohr: its 'realtime'
10:44 PM Tom_L: yeah so is the current one
10:44 PM Tom_L: just older
10:45 PM Tom_shop: SMP PREEMPT RT Debian 4.9.88-1+deb9u1 (2018-05-07)
10:45 PM rue_mohr: its responce time comes closer to an avr doing the same task in a dedicated way :)
10:45 PM Tom_L: .16 is better
10:46 PM rue_mohr: zhanx,
10:46 PM Tom_L: the mill runs rtai instead of preempt
10:46 PM rue_mohr: where you at?
10:46 PM rue_mohr: hmmm real time Ai...
10:52 PM Tom_L: it won't build without it, someone tried removing that already
11:38 PM rue_shop4: show me the build error