**** BEGIN LOGGING AT Fri Jul 08 02:59:58 2016 Jul 08 14:21:20 hey bradfa are you there? Jul 08 14:24:36 hi chanakya_vc Jul 08 14:26:28 bradfa, I tried to determine the reason for the oops happening and I think it is happening because they is garbage value at the address from which we are reading. Jul 08 14:26:42 Unless the firmware writes something it. Jul 08 14:27:20 chanakya_vc: that would make sense, so your driver needs to keep track of how much data the pru firmware has put there Jul 08 14:27:57 chanakya_vc: I think this is where rpmsg or similar would be useful as a messaging system between linux and the pru, so they can each tell each other things like this Jul 08 14:28:22 Hmmn yes. only read when pru says it has written to that address. Jul 08 14:28:25 bradfa, ^^ Jul 08 14:29:59 chanakya_vc: the driver when it starts should assume there's 0 bytes from the PRU Jul 08 14:30:33 chanakya_vc: so a blocking read on the char driver should just block and wait (or alternatively return immediately with 0 bytes read) Jul 08 14:30:50 chanakya_vc: your driver should also do the pru firmware loading operations, I don't think you do that yet Jul 08 14:31:10 Anyway bradfa, I could not test the entire setup i.e write the value to the driver and then let the firmware bitbang it. For some reason my logic analyzer is not working. Jul 08 14:31:19 chanakya_vc: ok Jul 08 14:31:22 Yes it does by unloading and loading Jul 08 14:31:27 the pru_rproc Jul 08 14:31:31 chanakya_vc: ok Jul 08 14:31:53 driver as of now bradfa . I don't know of a way this can be automatically done Jul 08 14:32:54 by our driver. I will work on this. Whenever, you get the time, do test the entire setup and let me know if it is working? Jul 08 14:32:58 bradfa, ^^ Jul 08 14:34:24 chanakya_vc: ok, I might not be able to test until Monday, but if you can get your logic analyzer working again, do you have a clear set of things you can work on this weekend and early next week? Jul 08 14:34:47 chanakya_vc: I'm likely to be traveling this weekend Jul 08 14:35:30 Can you help me with setting up the logic analyzer, if you are free right now? Guys in #sigrok were not particularly helpful. Jul 08 14:35:36 chanakya_vc: and we should start involving mdp more over the next week, as my wife will be giving birth to our third child in the next week or two and then I'll be unavailable for a week or so when that happens Jul 08 14:35:44 chanakya_vc: sure, I can try to help setup the logic analyzer Jul 08 14:36:37 bradfa, sure. I will try to catch mdp whenever he is online. Perhaps you could tell him about what is been done so far. Jul 08 14:36:51 and congratulations bradfa : ) Jul 08 14:37:05 thanks :) Jul 08 14:38:34 I would surerly need help from either you or mdp, when I am working on the driver with the spi-subsytem Jul 08 14:38:56 bradfa, ^^ Jul 08 14:39:11 chanakya_vc: mdp will be very helpful for that. I believe he's traveling to Japan in the next week or so but he can likely still be reached by email on a regular basis Jul 08 14:40:14 Anyway regarding the logic analyzer, I guess I have downloaded everything I including the firmware and gui also Jul 08 14:40:18 bradfa, ^^ Jul 08 14:40:29 chanakya_vc: where are you stuck with the logic analyzer? Jul 08 14:40:46 But it just doesn't show the waveforms with my firmware Jul 08 14:40:59 I am unable to reproduce alexhiam's result. Jul 08 14:42:04 chanakya_vc: ok, are you able to capture any waveforms of other sources? like if you hook the logic analyzer up to the uart output, can you see the serial data when you have the bbb boot or interact with it over the serial port? Jul 08 14:42:12 I think I am going wrong with the settings somewhere bradfa . Jul 08 14:42:56 Let me just try a normal gpio program that just switches on and off a gpio pin. Jul 08 14:42:58 bradfa, ^^ Jul 08 14:44:35 Let me just set it up bradfa . Jul 08 14:48:05 Also bradfa apart from that I was unable to get the kernel to compile correctly. I have been compiling the driver on the bbb and I realized that is not an option at all . Jul 08 14:54:32 chanakya_vc: ok, regarding getting the kernel to compile, do you have a Debian Jessie system which isn't the bbb? Jul 08 14:55:24 bradfa, I downloaded the kernel whose link you gave me. Jul 08 14:55:38 and I gunzipped the .config file and placed Jul 08 14:55:42 in the kernel source Jul 08 14:56:30 But after that I followed the instructions online and they all work upon the beagle_deconfig file Jul 08 14:56:39 so that's the problem Jul 08 14:56:53 chanakya_vc: ignore the beagle_defconfig, just put your config as a file called .config Jul 08 14:57:07 then you're all setup from a config perspective and you can do the actual compile Jul 08 14:58:03 chanakya_vc: I have to run some errands but I'll be back at my desk in about 2 hours Jul 08 14:58:24 Okay bradfa .I will be probably online then Jul 08 14:58:51 I will try to get the kernel to compile. If not I will ask you then Jul 08 14:59:12 do ping me whenever you get back Jul 08 14:59:30 bradfa, ^^ Jul 08 15:25:24 hey foreverska Are you there? Jul 08 15:25:35 Yea Jul 08 15:25:47 Long time :P Jul 08 15:26:13 haha I glance at the chat from time to time and read the weekly updates Jul 08 15:26:23 Just had a few doubts about .congfig and kconfig files foreverska ,if you are free could yould clear them up? Jul 08 15:26:44 in the linux kernel Jul 08 15:27:33 Yea, I'll try to clear them up Jul 08 15:28:19 Okay firstly I don't get the difference between kconfig file, defconfig file and .config file? Jul 08 15:28:51 So I downloaded the latest kernel 4.4.9 ti-r25 Jul 08 15:29:39 There , in the kernel source folder is Kconfig file which points to another Kconfig file in arch folder. Jul 08 15:30:41 This I understand is the general architecture Config file. Jul 08 15:30:50 Yea Jul 08 15:31:13 So how's this different from any defconfig file like beaglebone_defconfig Jul 08 15:32:46 Are the options in the architecture dependent file set by the defconfig file? Like all the options will be set by our choice of defconfig file Jul 08 15:33:57 Like when we issue make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- beaglebone_defconfig Jul 08 15:34:28 I thought Kconfig was just the help text for the config program. It doesn't actually contain config Jul 08 15:34:58 .config or defconfig contains your choices Jul 08 15:37:24 Ohh... Jul 08 15:37:44 Any idea where does this .config file actually go foreverska ? Jul 08 15:37:53 In the kernel source? Jul 08 15:39:03 Somewhere make can find it. I think in the base of the linux kernel source. Jul 08 15:39:25 So what I am trying to do is that I took the config.gz from my BBB, gunzipped it, renamed it new_defconfig and placed it in the arch/arm/configs. Jul 08 15:39:49 and then tried compiling it as make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- new_defconfig Jul 08 15:40:20 so then it gave me a error that -fstack-protection-strong was an invalid option. Jul 08 15:40:45 So I found this line in the Kconfig file and removed it. It passed this step then. Jul 08 15:41:37 And i forgot to tell you I am doing all this to compile the kernel on my host so that it is exactly configured like it is on my bbb Jul 08 15:42:01 What version of GCC are you using? Jul 08 15:42:02 Then I issued this command: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs Jul 08 15:43:17 gcc --version return this:gcc-4.8.real (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8. Jul 08 15:43:32 foreverska, ^^ Jul 08 15:44:06 Ah, yea. Reports are that '-fstack-protection-strong was an invalid option' comes because -fstack-protection-strong is in GCC 4.9 and higher. Jul 08 15:44:36 After issung the last command , it was compiling for good around 10 minutes until it came to an error:block/partitions/check.c:25:19: fatal error: atari.h: No such file or directory Jul 08 15:44:44 :( Jul 08 15:44:56 Okay got to update my Gcc first Jul 08 15:45:13 But any idea about this atari.h thing? Jul 08 15:46:28 I've never seen it and it doesn't google well. Are you using the same kernel source that your BBB is using? Jul 08 15:46:52 Yup ti 4.4.9 Jul 08 15:47:07 Wait let me update gcc and see what happens. Jul 08 15:47:44 Just back in 5 minutes.Got to restart my computer for some updates need to installed :P foreverska Jul 08 15:47:57 alright Jul 08 16:04:33 doesn anybody here knows how to use pru kernel driver? Jul 08 16:12:50 foreverska, I have updated to gcc 4.9, still it gives the same error as Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler Jul 08 16:13:04 kiran4399, Which driver are you talking about? Jul 08 16:13:24 pru_rproc? Jul 08 16:13:33 yeah.. Jul 08 16:13:48 chanakya_vc: can you just give me an overview of it? Jul 08 16:14:26 chanakya_vc: btw.. the error which you are talking about... you need to use gcc 5+ Jul 08 16:14:57 Gcc 5+ :( Jul 08 16:15:22 kiran4399, pru_rproc does a lot of things...wait Jul 08 16:15:40 Really? Everything I was reading said 4.9+ but I'm willing to believe it. Jul 08 16:16:03 foreverska: I tried it myself.. it should definitely work with 5+ Jul 08 16:16:20 Can't argue with what works. Jul 08 16:16:25 foreverska, Even I read that it requires only 4.9 but anyway :P Jul 08 16:17:42 kiran4399, What I have been using it for is that it loads any firmware placed in /lib/firmware/am335x-pru0-fw to the pru Jul 08 16:18:24 chanakya_vc: is the firmware .bin or .elf? Jul 08 16:19:22 It is .bin file Jul 08 16:19:55 Apart from that it can be used to handle interrupts from the PRU and generate interrupts back Jul 08 16:20:17 to the PRU. So it acts as abridge between the arm and PRU Jul 08 16:20:34 It is the base for RPMSG Jul 08 16:21:37 i.e Remote Proc messaging. Jul 08 16:25:09 So it loads the firmware onto the PRU's and then starts the PRU-cores. And gives us a way to communicate between the PRU and ARM. Moreover it tells the kernel about the resources in the PRU-ICSS. Jul 08 16:41:17 change it to CONFIG_CC_STACKPROTECTOR_REGULAR or whetever it is... Jul 08 16:42:46 probably works with hardened 4.9 but not vanilla? Jul 08 16:43:32 * nerdboy makes his own cross-toolchains with crossdev Jul 08 16:49:44 chanakya_vc: if you are compiling and installing both new kernel and modules then it's ok to just turn off stackprotector, but if you were hoping to just install new modules then toolchain needs to match what current kernel was compiled with Jul 08 16:50:54 note that 'cat /proc/version' includes the compiler used to build kernel, to help in matching it Jul 08 16:52:54 if you don't have that cross-toolchain available for your desktop it's easiest to just replace both kernel and modules so they still match each other Jul 08 16:54:22 mix-and-match results in kernel refusing to load unmatching modules, which is a good thing because otherwise the breakage from slight alignment differences in kernel structures could be terrible to track down Jul 08 17:16:04 chanakya_vc: you need to just setup a Debian Jessie system with the compiler targetting armhf and it'll just work Jul 08 17:16:46 chanakya_vc: you can do this on your bbb, or you can setup the debian cross compilers on an x86 system by following these instructions: https://wiki.debian.org/CrossToolchains#Installation Jul 08 17:17:02 chanakya_vc: if you do not have a Debian Jessie system, you can make a VM with it and use the VM Jul 08 17:17:19 (there are other ways but which are a bit more complicated to explain) Jul 08 17:17:39 chanakya_vc: the Debian Jessie version of GCC will support building with stack protector on Jul 08 17:18:04 chanakya_vc: and you'll need the same version of GCC for building any modules anyways, so you should just use the Jessie versions of everything, it'll be easiest Jul 08 17:22:05 chanakya_vc: the builds I did for you and sent you the module were done with a Debian Jessie x86 system using the cross compilers in Debian Jessie Jul 08 17:22:38 Ohh something arm-gnueabi but in Debian Jessie? Jul 08 17:22:41 bradfa, ^^ Jul 08 17:23:00 chanakya_vc: the compiler prefix will be arm-linux-gnueabihf- Jul 08 17:23:55 chanakya_vc: output from this gcc when asking it its version will be like: http://pastebin.com/Jbh95USk Jul 08 17:24:30 and http://pastebin.com/qkuqEnyz Jul 08 17:25:06 chanakya_vc: if you do not have this exact version of gcc, your modules will not load using insmod Jul 08 17:25:42 Okay that is my second option bradfa . I will use this if I am unable to resolve the issue with the current way I am trying by today. Jul 08 17:25:52 chanakya_vc: ok Jul 08 17:25:57 I didn't even have hf installed Jul 08 17:26:08 I was using gnueabi only Jul 08 17:26:17 chanakya_vc: if you're using the ubuntu provide compilers, they will not be the right versions Jul 08 17:26:24 s/provide/provided/ Jul 08 17:27:56 bradfa, I did what Wormo suggested, I removed the option of stackprotector(I erased that option itself from the kconfig file) and built it using the .config file that I copied Jul 08 17:28:05 chanakya_vc: ok Jul 08 17:31:04 So what I did was copied the .config file and placed it in arc/arm/configs and renamed it new_deconfig and then issued make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- new_defconfig Jul 08 17:31:22 chanakya_vc: ok, you can just put it as .config in the root of the linux kernel sources, too Jul 08 17:31:30 there's no need to make it be a defconfig first Jul 08 17:31:37 That was not working for some reason Jul 08 17:32:13 Then when I issue make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack Jul 08 17:32:56 bradfa, It builds fine for around 10-15 minutes but then got stuck with: error:block/partitions/check.c:25:19: fatal error: atari.h: No such file or directory Jul 08 17:33:05 so close :p Jul 08 17:34:32 chanakya_vc: ok. I've not tried building with the ubuntu cross compilers, I've only tried and had success using the Debian Jessie ones Jul 08 17:35:33 Okay bradfa, let me see if I can do some thing. Otherwise I will fall back to your idea of using a VM Jul 08 17:36:02 The thing is that my laptop only has 2gb of RAM and I am not sure how it will cope with running a VM Jul 08 17:37:01 chanakya_vc: it should be fine Jul 08 17:37:38 Hmmn okay. Never run a VM on my laptop. First time. Jul 08 17:38:18 bradfa, Have got to eat dinner. Will be back in about half an hour. Jul 08 17:38:24 Will you be free then? Jul 08 17:39:36 chanakya_vc: I'll likely be here Jul 08 17:39:43 chanakya_vc: you can install virtualbox to run VMs Jul 08 17:40:12 Okay bradfa ...BRB ! Jul 08 17:40:13 http://packages.ubuntu.com/trusty/virtualbox Jul 08 19:46:04 bradfa, There? Jul 08 19:47:17 m_w, ^^ Jul 08 19:48:03 alexhiam, Are you free today, could you check out my code? Jul 08 19:49:29 what's up? Jul 08 19:50:47 m_w, Okay I seem have to discovered a bug or something. Jul 08 19:51:43 So I am trying to compile the kernel downloading from here:https://github.com/RobertCNelson/linux-stable-rcn-ee/releases/tag/4.4.9-ti-r25 Jul 08 19:51:52 okay Jul 08 19:52:23 So everything going fine until it hits this message:block/partitions/check.c:25:19: fatal error: atari.h: No such file or directory Jul 08 19:52:26 #include "atari.h" Jul 08 19:52:42 So I went looking for this file in the block segment. Jul 08 19:53:49 And found it. When I try to open it I get this http://pastebin.com/qXeQ70Fa Jul 08 19:54:12 So this is a bug right. Because this file link seems to be broken. Jul 08 19:55:48 What do you think m_w ? Jul 08 19:57:29 I am not sure what to think of that Jul 08 19:57:34 very confused Jul 08 19:59:57 Yup. I mean I am sure though that using a custom config file won't do anything that can break a file link Jul 08 19:59:59 m_w, ^^ Jul 08 20:00:20 I have used the config file from my bbb, gunzipped and put it as .config file Jul 08 20:00:47 If you are free you could try to build it on your end. I think it is a bug. Jul 08 20:01:35 can you provide the step to replicate this? Jul 08 20:02:25 m_w, Okay first just download the kernel from github and unzip it. Jul 08 20:02:44 exactsteps please Jul 08 20:02:50 prompt commands Jul 08 20:06:41 m_w, I am sorry but for the first step, you would have to manually go and download from the page,rcn has only posted the zip on the github page. Jul 08 20:06:47 https://github.com/RobertCNelson/linux-stable-rcn-ee/releases/tag/4.4.9-ti-r25 Jul 08 20:07:58 wget https://github.com/RobertCNelson/linux-stable-rcn-ee/archive/4.4.9-ti-r25.tar.gz Jul 08 20:08:09 and then? Jul 08 20:08:15 Ohh sorry :P Jul 08 20:08:29 unzip it. Jul 08 20:10:03 chanakya_vc: Do you have a problem with linux headers? Jul 08 20:10:09 m_w, Then copy this file into kernelsource/arch/arm/configs as new_defconfig(name the file as such) Jul 08 20:10:25 http://pastebin.com/bUANvttd Jul 08 20:11:03 pmezydlo, No I am trying to compile the kernel so that I can cross compile my module and I seem to have hit a roadblock Jul 08 20:11:12 okay Jul 08 20:11:25 4.4.9-ti-r25 pmezydlo Jul 08 20:13:53 m_w, Then open up arch/Kconfig and search for fstack protector. On sublime text it starts from line 361 in my case Jul 08 20:14:22 Or better replace it with the file I will give Jul 08 20:14:23 I am confused already Jul 08 20:14:42 why are you replacing files in the source tree? Jul 08 20:15:16 http://pastebin.com/ZpWUE8e4 Jul 08 20:15:37 Because I want to compile the kernel according to the configuration of my BBB Jul 08 20:15:51 yeah I know, probably it is easy but I was also a lot of problems Jul 08 20:15:55 just name the file .config Jul 08 20:16:08 And the .config file that I gave is from BBB only. Jul 08 20:16:15 yeah Jul 08 20:16:18 I tried that it was not working Jul 08 20:16:52 so me the console interaction and output Jul 08 20:16:55 show Jul 08 20:17:07 And the Kconfig file, I am just removing the part related to fstack-protector, otherwise it just the same Jul 08 20:17:48 This command make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- new_defconfig Jul 08 20:18:07 m_w, Will add the defconfig file that I gave as the .config file for me Jul 08 20:18:16 No errors over here. Jul 08 20:18:49 Then make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs Jul 08 20:19:05 This will start compiling the kernel m_w Jul 08 20:19:13 do it on your console and pastebin the whole thing Jul 08 20:19:19 please Jul 08 20:19:22 Okay wait Jul 08 20:22:07 http://pastebin.com/GR5bZaHv Jul 08 20:22:11 m_w, ^^ Jul 08 20:23:35 okay Jul 08 20:23:45 lemme replicate Jul 08 20:23:58 it will a minute Jul 08 20:24:59 It will take some time m_w . Atleast on my machine it did. Jul 08 20:25:17 okay I will let you know Jul 08 20:25:20 But then I only have 2 Gigs of Ram Jul 08 20:25:38 Okay Jul 08 20:25:39 my laptop has 12GB Jul 08 20:27:03 Ohh wow. Jul 08 20:27:08 Paradise Jul 08 20:27:12 :P Jul 08 20:27:33 m_w, I need to buy a new machine I guess :P Jul 08 20:29:06 m_w, Which laptop do you have? Jul 08 20:29:49 some toshiba laptop I got for cheap Jul 08 20:30:56 My heart is on a dell xps developers edition machine Jul 08 20:31:11 cool Jul 08 20:31:15 But it is very expensive :P Jul 08 20:32:13 In US the cost is is about 1200 dollars ,In india, it is nearly 1400 :( Jul 08 20:32:30 I don't even have that much to spare Jul 08 20:33:00 sorry this taking so long, I am doing lots of things at once Jul 08 20:33:31 No problem m_w . I am almost free. I can't really do anything until I get this kernel compiled :P Jul 08 20:37:04 how did you install the compiler? Jul 08 20:39:36 chanakya_vc ^^^ Jul 08 20:39:46 I want to use the same one you are Jul 08 20:40:14 ahh m_w you are talking about the cross compilers right? Jul 08 20:40:28 yes the cross compiler Jul 08 20:40:37 what the commands to install it? Jul 08 20:41:13 make a pitop with odroid c2 in it Jul 08 20:41:28 compiles arm stuff pretty fast Jul 08 20:41:54 or stick a usb3 ssd on a tegra chromebook Jul 08 20:41:55 Just one sec m_w Jul 08 20:42:18 I just typed this : sudo apt-get install gcc-arm-linux-gnueabihf Jul 08 20:42:51 But I had installed gcc 4.9 before this. I don't know if that makes a difference to the cross compiler Jul 08 20:43:29 I followed instructions for that from here:http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu Jul 08 20:43:29 k1 quadcore has all these lovely features... : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm Jul 08 20:43:54 nerdboy, Is this something different from gcc? Jul 08 20:44:21 hardware to run native arm-gcc on... Jul 08 20:44:42 ~$200 us for the chromebook Jul 08 20:45:02 Ohh..so specific hardware to run arm-gcc? wow Jul 08 20:45:07 nvidia cuda graphics on a fast arm soc Jul 08 20:46:02 easy to install ubuntu/debian on the internal ssd, also boots off sdcard Jul 08 20:46:59 building gentoo on is fast enough to feel "x86-ish" Jul 08 20:47:59 cheap one only has 2 GB ram and 16 GB emmc Jul 08 20:48:46 i think there's one with twice the ram/emmc size for under $400 Jul 08 20:49:33 cheap one does have 1080p display and really good wireless Jul 08 20:49:49 okay Jul 08 20:50:11 2 usb3 ports and hdmi out Jul 08 20:50:36 m_w, Did it build? Jul 08 20:50:56 Ohh ...that's great nerdboy ! Jul 08 20:51:41 you should be able to get a tegra chromebook cheap over there somewhere Jul 08 20:58:43 still working on it Jul 08 21:10:44 I think the configuration file is has \r in it Jul 08 21:12:43 \r in it? Jul 08 21:12:46 m_w, ^^ Jul 08 21:13:09 it has dos carriage returns Jul 08 21:13:41 sudo apt-get install dos2unix Jul 08 21:13:55 Okay no idea about that. Jul 08 21:13:59 m_w, ^^ Jul 08 21:14:10 Can this break links to a file? Jul 08 21:14:32 lets just have you run my exact steps Jul 08 21:14:41 Okay Jul 08 21:14:42 from scratch Jul 08 21:14:50 Okay Jul 08 21:14:57 wget https://github.com/RobertCNelson/linux-stable-rcn-ee/archive/4.4.9-ti-r25.tar.gz Jul 08 21:15:08 tar xzvf 4.4.9-ti-r25.tar.gz Jul 08 21:15:18 cd linux-stable-rcn-ee-4.4.9-ti-r25/ Jul 08 21:15:34 wget http://pastebin.com/raw/bUANvttd Jul 08 21:15:42 mv bUANvttd .config Jul 08 21:15:55 dos2unix .config Jul 08 21:16:11 make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage dtbs Jul 08 21:16:56 you will have to switch to you match your cross compiler Jul 08 21:17:45 maybe make it -j2 for your computer Jul 08 21:18:35 if you want to build a uImage your will need to supply LOADADDR Jul 08 21:20:28 m_w, This worked for you? Jul 08 21:21:43 yup Jul 08 21:22:06 follow the exact steps Jul 08 21:29:55 m_w, It showed an error the same fstack error. Jul 08 21:30:10 And then my computer froze so I had to reboot Jul 08 21:30:39 So either I somehow upgrade my cross compiler or remove those line from the Kconfig file Jul 08 21:33:27 I have removed the lines. Let me see what happens now. Jul 08 21:34:17 there should be no need to update any of the files in the source directory Jul 08 21:34:36 the fstack warning? Jul 08 21:34:51 No it gave an error and then exit Jul 08 21:35:11 I have started building it. Let me see if it does complete this time Jul 08 21:48:45 m_w, I got this message Kernel: arch/arm/boot/zImage is ready Jul 08 21:49:15 that means it compiled Jul 08 21:49:23 Has it compiled?I am a bit confused. zImage is the kernel source? Jul 08 21:49:34 it is the kernel binary Jul 08 21:49:43 You got to clarify a few things for me: Jul 08 21:50:13 First difference between zimage and uimage? Jul 08 21:50:35 Because earlier I was building a uimage? Jul 08 21:51:28 That I can probably google Jul 08 21:52:12 Ah I didn't understand the dos thing. You said that the .config file has carriage returns. What does that mean? Jul 08 21:53:55 m_w, ^^ Jul 08 21:55:57 it is an extra character at the end of the line that linux does not like Jul 08 21:56:22 each line has \n in linux Jul 08 21:56:49 each line has \r\n in dos/windows Jul 08 21:57:18 Okay how did you figure that out? And the dos2unix thing just removes this? Jul 08 21:57:23 m_w, ^^ Jul 08 22:02:41 non-unix line-endings are bad juju Jul 08 22:03:05 they make text processing/other tools throw weird erros Jul 08 22:03:13 *errors even Jul 08 22:06:06 nerdboy, I am just not able to see how to figure out these these line endings from the document. Jul 08 22:06:38 Like \n is newline. But how to know whether it is \r \n or not? Jul 08 22:07:16 look at it in hex if you really want to know Jul 08 22:08:08 it's also safe to run dos2unix whether or not the files have CR's Jul 08 22:08:14 Hi jkridner, I started working on state diagram Jul 08 22:09:39 chanakya-vc: in hex, LF is 0A and CR is 0D Jul 08 22:10:01 dos files will therefore have what as a line-ending? Jul 08 22:11:04 0A0D? Jul 08 22:11:08 nerdboy, ? Jul 08 22:11:29 reverse that Jul 08 22:11:52 dos lines end in CRLF Jul 08 22:12:16 unix lines end with LF Jul 08 22:12:26 mac lines end in CR Jul 08 22:13:00 Cr==carriage return Jul 08 22:13:01 stupid historical baggage Jul 08 22:13:26 Yeah I read it has something to do with typewriters :P Jul 08 22:13:38 What does LF mean? Jul 08 22:13:41 * nerdboy assumes "modern" mac os has unix text files Jul 08 22:13:57 linefeed Jul 08 22:14:04 Ohh.. Jul 08 22:14:43 so carriage return is basically coming back to the left of the page right? Jul 08 22:15:00 that plus charsets/encoding make text processing so much fun! Jul 08 22:15:17 And all these line endings are valid for all sort of text files or only for system files? Jul 08 22:15:49 any and all text files Jul 08 22:16:30 with which any aand all tools will do something funny if it's not what they expect Jul 08 22:16:56 Ohh..so when I press enter in any text file, the actual thing that happens behind the scene is os dependent? Jul 08 22:17:15 But then how are documents compatible with each other at all? Jul 08 22:17:38 Like a doc made in windows would not open in UNIX then? Jul 08 22:18:47 nerdboy, ^^ Jul 08 22:18:49 m_w, ^^ Jul 08 22:20:09 if you edit the file in windows it will add the \r Jul 08 22:20:12 that is all Jul 08 22:20:21 they need to understand it Jul 08 22:20:55 some vcs tools do auto-conversion when you check files in and out Jul 08 22:21:10 Okay m_w , I got that. so you used dos2unix converter to resolve it? Jul 08 22:21:19 yeah Jul 08 22:21:24 mv bUANvttd .config Jul 08 22:21:25 a good editor will show you if it's a dos file and you're on unix Jul 08 22:22:12 and offer to save in local format or not Jul 08 22:22:16 m_w, Then did you change the config file too? Jul 08 22:22:23 Ohh nerdboy... Jul 08 22:22:26 shitty editor will do what m_w said Jul 08 22:22:57 ftp will do it too if you don't set binary mode Jul 08 22:23:10 my shitty editor "vim" tells me that it is dos formatted Jul 08 22:23:15 *will change the text format for you Jul 08 22:23:28 Okay that's how you figured it out m_w Jul 08 22:23:32 m_w: that's not a shutty editor Jul 08 22:23:38 But then I did not open it in windows Jul 08 22:23:39 *shitty even Jul 08 22:23:51 I figure it out because the compiler complained about it Jul 08 22:24:00 maybe because I used gedit ? that's why? Jul 08 22:24:09 Ohh.. I never got that warning Jul 08 22:24:40 you did say "add the \r for you" Jul 08 22:24:50 *and without telling you Jul 08 22:25:15 maybe the pastebin did it Jul 08 22:25:22 I don't know Jul 08 22:25:28 chanakya-vc: a good thing to do is never touch notepad Jul 08 22:25:33 but I know that it compiles now Jul 08 22:25:34 ever Jul 08 22:25:56 Okay vim it is from now onwards. Jul 08 22:26:11 even the cheesy windoze doc editor is better Jul 08 22:26:15 btw, to create the uImage you will need to add LOADADDR= in the make Jul 08 22:26:35 *better in that it does not change the file format Jul 08 22:27:20 i thought we were using the rcn build scripts... Jul 08 22:27:25 m_w,I can use zimage itself as the kernel source right? Jul 08 22:27:26 or did I already tell you that Jul 08 22:27:41 depends on the bootloader Jul 08 22:27:44 I don't need to run this on the bbb so why bother Jul 08 22:27:48 zImage works fine with newer u-boot Jul 08 22:27:48 and what it expects Jul 08 22:28:00 m_w, ^^ Jul 08 22:28:11 the bootscript will need to call bootz instead of bootm Jul 08 22:28:45 you may have to manually cat the dtb as well Jul 08 22:28:59 if that is what the bootloader expects Jul 08 22:29:24 Okay but I don't get why would I need that to cross compile a module? Jul 08 22:29:41 I thought it only needed the headers Jul 08 22:30:04 m_w, ^^ Jul 08 22:30:20 oh Jul 08 22:30:36 I thought you were updating the kernel on the target Jul 08 22:30:41 No Jul 08 22:30:47 Just need to cross compile Jul 08 22:30:56 you dont need it to compile the module Jul 08 22:31:11 you can use what you have now Jul 08 22:32:05 Yup..just one more thing did you make any changes to the config file? Jul 08 22:32:13 or was it the same I gave you? Jul 08 22:32:31 Apart from me running the dos2unix command on it? Jul 08 22:32:35 you saw the commands Jul 08 22:33:11 I copied it straight from pastebin, change the name to .config, and ran dos2unix on it Jul 08 22:33:14 that is all Jul 08 22:33:22 Hmmn so no change. Yes Jul 08 22:33:23 no configuration changes at all Jul 08 22:33:37 and what does -j8 and -j2 stand for? Jul 08 22:33:48 m_w, ^^ Jul 08 22:36:00 parallel make Jul 08 22:36:19 makes the compile go faster Jul 08 22:36:35 Okay I will search about it. Jul 08 22:36:42 the number you use depends on your processor Jul 08 22:37:18 Last question any idea as to why in the previous case the link to atari.h was broken? Jul 08 22:37:47 probably an artifact from the \r's in the configuration file Jul 08 22:39:05 Thanks m_w for your help!!! Jul 08 22:39:15 Learnt a lot today!! Jul 08 22:39:21 Thank you nerdboy !! Jul 08 22:40:02 I think I need to document this if anyone else needs to compile and doesn't want to use RCN's script. Jul 08 22:40:35 But the real test m_w is if the module I compile with it correctly insmods. Jul 08 22:41:26 yes Jul 08 22:41:53 scripts dilute the process and stunt the understand of what is going on Jul 08 22:42:42 only use them after you understand what they are doing Jul 08 22:43:05 Yes m_w True that. I totally agree with you. Jul 08 22:43:54 time to reboot Jul 08 22:44:06 see you on the other partition :) Jul 08 22:48:09 Welcome back m_w . That was a quick reboot :P Jul 08 22:50:39 I was dilly dallying Jul 08 22:50:58 I don't have a SSD for super speedy boots Jul 08 22:53:31 Haha but seriously that was fast :P Jul 08 22:53:38 m_w, ^ Jul 08 22:54:08 model name: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz Jul 08 22:54:23 it is not too bad Jul 08 22:57:02 it isn't bad at all . I have to make do with a i3 machine. My laptop is more than 5 years old :P Jul 08 22:57:30 I guess I have to ask my parents for a new one now m_w at any cost. Jul 08 22:57:35 :P Jul 08 23:04:31 m_w, Just one more thing when I am compiling my modules, I will give the path to kernel source to the zimage right? Jul 08 23:04:54 I don't get how it will include headers from a binary file though. Jul 08 23:05:32 it is the path of the whole build Jul 08 23:06:00 the headers are there Jul 08 23:06:03 Okay so till the folder linux-stable.... Jul 08 23:06:08 m_w, Jul 08 23:06:09 yes Jul 08 23:07:45 Will you be online tomorrow m_w ? Jul 08 23:09:04 I am online most days Jul 08 23:09:14 on irc some of the time Jul 08 23:09:35 just send me an email if you dont see me here Jul 08 23:11:09 Okay m_w Jul 08 23:17:21 oops, i have u-boot link https://github.com/RobertCNelson/Bootloader-Builder/blob/master/build.sh Jul 08 23:17:50 shows latest versions/patches/other for a lot of boards... Jul 08 23:18:32 the ti stuff should all be pretty current, except that's a new patch for black Jul 08 23:22:40 chanakya-vc: You would probably have enough now to buy a MBP Retina, if you want. Jul 08 23:23:20 nerdboy, I tried using it. But there seems to be some problem. Because When I insmoding my module, it showed vermagic problem and on modinfo it showed that it had been compiled for 4.4.14 Jul 08 23:23:42 Even though I had explicitly downloaded 4.4.9 Jul 08 23:24:22 Abhishek_, Haha I am not a mac fan :P Jul 08 23:25:05 The newest XPS 13/15 would make a really nice upgrade for you. Jul 08 23:25:15 After 5 years. Jul 08 23:25:42 Yes but it is not available in India.I wanted xps 13 developers edition Jul 08 23:26:01 And normal xps is insanely priced... Jul 08 23:26:11 1 lakh 34 thousand rupees Jul 08 23:26:29 Not much difference between the developer edition and the normal one, just a different WiFi card and preloaded Linux. Jul 08 23:26:43 You could install Linux by yourself. Jul 08 23:26:46 while in US it would only come out to about 90 thousand rupees.. Jul 08 23:26:49 Ya.. Jul 08 23:27:03 I definitely need to upgrade Jul 08 23:27:18 Which laptop do you use? Jul 08 23:27:26 * Abhishek_ purchased a Lenovo Yoga 900 recently Jul 08 23:27:51 But I'll probably return it, because it has a locked down BIOS that does not allow installing Linux on it :/ Jul 08 23:28:06 What..that's funny Jul 08 23:28:27 Lenovo does offer some great machines. Jul 08 23:28:41 A complete deal breaker, even though it has a really nice touch screen (QHD 3200x1800) and folds back 360 degrees, and is so lightweight. Jul 08 23:29:07 Ohh wow! That's great.. Jul 08 23:29:10 For an i7-6560U, 16GB of RAM and a 512GB NVMe SSD Jul 08 23:29:10 can't set legacy or install the grub efi stub? Jul 08 23:29:25 *that would be the suck Jul 08 23:29:29 It does not detect the onboard NVMe at all Jul 08 23:29:44 try the gparted livecd yet? Jul 08 23:29:48 The SATA mode is set to RAID and there is no known way to set it to AHCI yet Jul 08 23:29:57 that had the best efi support last i checked... Jul 08 23:30:00 through the BIOS Jul 08 23:30:25 16.04 has GParted 0.25 that includes NVMe support IIRC Jul 08 23:30:37 there are bios hacking tools that expose the hidden settings, if you're brave... Jul 08 23:30:45 Abhishek_, You do know Lenovo is banned by use in all Government offices and officers here in India? :P Jul 08 23:31:15 nerdboy: I'm aware but I want the machine to be returnable, prefer not to "brick" it Jul 08 23:31:24 * nerdboy got a refurb HP for $160 and upgraded it Jul 08 23:31:32 The BIOS is apparently locked down Jul 08 23:31:58 much cheaper and still nice for developer stuff Jul 08 23:32:06 How can the BIOS be locked? I mean it doesn't let you change any setting? Jul 08 23:32:16 I looked at sites that used a hacked GRUB EFI shell that has a command to tweak "hidden" settings Jul 08 23:32:22 Long story. Jul 08 23:32:30 *elitebook something with firewire/displayport/esata and such Jul 08 23:33:04 add some ram and a couple of ssds Jul 08 23:33:10 Now that I look at it, I realize older laptops are so much better than these new ones that are just trying to thinner and lighter Jul 08 23:33:25 * nerdboy runs multiple VMs and builds yocto on it Jul 08 23:33:58 Why didn't you go for dell Abhishek_ ? Jul 08 23:34:15 Was more expensive, but I realized it was a bad choice Jul 08 23:34:20 this one is closest to older thinkpad than most Jul 08 23:34:21 (the Lenovo) Jul 08 23:34:31 So I'll just return it. Jul 08 23:34:31 Yeah.. Jul 08 23:34:45 So thinking of buying a dell or mac? Jul 08 23:34:52 right down to the pointy-stick thingy Jul 08 23:35:19 Or Toshiba..I saw they also offer some great laptops Jul 08 23:35:27 Highly customizable Jul 08 23:35:33 I'll just hold my horses and wait for the next MacBook launch. If I feel it's a significant improvement over a Dell, I'll buy it, otherwise the XPS 15 Jul 08 23:35:42 look at the refurbs on newegg Jul 08 23:36:40 Abhishek_, The dell websites says XPS 15 is unavailable Jul 08 23:36:55 I am assuming that only pertains to India Jul 08 23:42:17 nerdboy: That's a treasure Jul 08 23:42:28 The refurb laptops **** ENDING LOGGING AT Sat Jul 09 02:59:58 2016