**** BEGIN LOGGING AT Mon Jul 11 02:59:58 2016 Jul 11 08:16:20 nerdboy: Wormo ? anyone there ? Jul 11 12:30:57 alexhiam: ping ping :-D Jul 11 15:36:05 mdp there? Jul 11 15:36:28 alexhiam, Are you free today? Could you check out my code? Jul 11 18:38:32 hey bradfa ,there? Jul 11 18:40:24 m_w, The module did not insmod. The weird thing is that bradfa compiled my module for me and it insmoded.And the module that I compiled using the kernel we built that day has the exact same vermagic string Jul 11 18:41:09 as the one bradfa compiled. So I am unable to understand why this is not insmoding :( Jul 11 18:43:19 not sure Jul 11 18:44:35 m_w, It is very weird. The only reason I can think of is my cross compiler does not support fstack. Because that is the only difference that I can see. Jul 11 18:44:58 m_w, Any idea how to upgrade gnueabihf so that it supports fstck? Jul 11 18:54:29 what does it say when you run insmod? Jul 11 19:03:15 insmod: error inserting 'spi_pru.c': -1 Invalid module format Jul 11 19:03:24 m_w, ^^ Same error as before :( Jul 11 19:03:36 Vesion number is fine Jul 11 19:07:33 what does 'cat /proc/version' say Jul 11 19:07:43 in particular the gcc version part Jul 11 19:09:14 then look at the last line of output from 'arm-linux-gnueabihf-gcc -v' Jul 11 19:09:23 if they don't match, that's your trouble Jul 11 19:10:10 'spi_pru.c' <== Why are you probing the C file :D Jul 11 19:11:19 hehe somebody is reading carefully Jul 11 19:11:37 Ohh sorry, m_w I was not. Actually I have got that message so many times Jul 11 19:11:52 it's a typo instead of direct paste right Jul 11 19:11:58 That I have memorized it. Just got the file name wrong Jul 11 19:12:01 either way Jul 11 19:12:01 Yes Wormo Jul 11 19:12:17 Caught me m_w :P :P Jul 11 19:12:26 give the output of 'cat /proc/version' Jul 11 19:12:34 anyways if your kernel has fstack on but your toolchain doesn't support it, you're using the wrong toolchain Jul 11 19:12:43 and file 'file spi_pru.ko' Jul 11 19:13:02 from the target Jul 11 19:13:09 and you either update your kernel to match the toolchain or you update the toolchain to match the kernel Jul 11 19:13:25 I thought somebody told you to use jessie vm to get a matching toolchain Jul 11 19:13:32 is that what you used now? Jul 11 19:13:44 sry I have to head out... Jul 11 19:14:02 No Wormo I am not left with many options now I guess Jul 11 19:14:11 Have to use vm Jul 11 19:14:27 2 options, pick one Jul 11 19:14:46 you could also install the kernel that matches your current toolchain Jul 11 19:15:05 but you can't keep using same old kernel and same old unmatching toolchain and expect it to work Jul 11 19:15:12 ltr Jul 11 19:15:37 Okay Wormo .Thanks for your help : ) Jul 11 19:17:51 chanakya_vc: are you using the hard floating point compiler? Jul 11 19:20:10 yup gneuabihf Jul 11 19:20:11 m_w, Jul 11 19:21:02 chanakya_vc: Could you provide the outputs from the commands I listed above? Jul 11 19:21:21 Also 'modinfo spi_pru.ko' Jul 11 19:21:37 Yup just one sec m_w . Jul 11 19:32:06 m_w, http://pastebin.com/0GzWCazB Jul 11 19:32:32 m_w, Sorry for the delay, mom called me Jul 11 19:34:21 now do the modinfo for one of the modules in /lib/modules/ Jul 11 19:35:03 Okay m_w Jul 11 19:37:28 m_w, http://pastebin.com/EJAaigrH Jul 11 19:39:07 the only thing different is the version string Jul 11 19:39:28 4.4.9 vs 4.4.9-ti-r25 Jul 11 19:40:27 compile with EXTRAVERSION=-ti-r25 Jul 11 19:41:03 Okay the driver to be compiled with the above option? Jul 11 19:41:05 m_w, ? Jul 11 19:41:17 the kernel Jul 11 19:41:25 and driver Jul 11 19:41:58 or LOCALVERSION=-ti-r25 ? Jul 11 19:42:05 http://www.zeekhuge.me/post/a_handfull_of_commands_and_scripts_to_get_started_with_beagleboneblack/#k_dev:01d25bfd2399ec47b9c04f156786eab8 Jul 11 19:42:14 CONFIG_LOCALVERSION Jul 11 19:43:11 oh how nice Jul 11 19:43:26 use ZeekHuge's commands Jul 11 19:44:26 m_w, ZeekHuge I didn't get that. So I should compile the kernel with that command? Jul 11 19:44:44 first compile the kernel Jul 11 19:45:09 make ARCH=arm LOCALVERSION=-ti-r25 CROSS_COMPILE=path/to/the/cross/compile/toolchain Jul 11 19:45:19 chanakya-vc: Hi ! that 'fstack' thing you said is confusing me .... what is your cross compiler toolchain ? Jul 11 19:46:08 I think I have seen that 'fstack' error ... and its related to the crosscompiler Jul 11 19:46:34 have you downloaded the toolchain using apt ? Jul 11 19:46:50 like : sudo apt-get install .... ? Jul 11 19:47:36 Yes ZeekHuge , I read online that this fstack is only supported by GCC-4.9 and above. I have that. And yes I installed the cross compilers using apt Jul 11 19:48:05 Although I don't get the relation between GCC-4.9 and the cross compiler. Jul 11 19:48:07 chanakya-vc: please purge it and download the latest version Jul 11 19:48:17 i am pretty sure thats the problems Jul 11 19:48:20 *problem Jul 11 19:49:03 chanakya-vc: the commands to download crosscompiler toolchain are here : http://www.zeekhuge.me/post/a_handfull_of_commands_and_scripts_to_get_started_with_beagleboneblack/#k_dev:01d25bfd2399ec47b9c04f156786eab8 Jul 11 19:49:12 ZeekHuge, Yes it was not compiling initially and then did some jugaad and removed the entire section of fstack from the Kconfig file Jul 11 19:49:38 ahh ... just update the crosscompiler toolchain Jul 11 19:50:16 and revert that fstack change you did in the Kconfig Jul 11 19:52:34 Hmm ZeekHuge , When I will purge so I just say sudo apt-get --purge arm-linux-gueabihf-gcc? Jul 11 19:53:37 sudo apt-get purge arm-linux-gnueabihf-gcc Jul 11 19:53:55 chanakya-vc: ^ Jul 11 19:55:22 Okay ZeekHuge ,Missed the n. Should I remove gnueabi-gcc also? Jul 11 19:55:43 m_w, Last time we compiled a zimage, this time also the same thing right? Jul 11 19:55:52 your call Jul 11 19:57:16 yup Jul 11 19:57:51 ZeekHuge, The command is sudo apt-get purge gcc-arm-linux-gnueabihf Jul 11 19:57:57 I got it wrong, sorry Jul 11 19:58:09 chanakya-vc: you will provide the path to cross compiler in you make instruction anyway. so there is no need to purge the cross compiler as such.... but just dont use (therefore I just said to purge it) Jul 11 19:58:44 yeah .. I was about to warn you about the package name ... as I was not sure about it myself. Jul 11 20:00:12 ZeekHuge, Uptil now I just used to write gnueabihf. Now with the new cross compiler, isn't there a way to put in path of make, so that make automatically searches for it? Jul 11 20:01:28 This command:export CC=`pwd`/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- Jul 11 20:01:37 ZeekHuge, Does it do what I asked above? Jul 11 20:04:32 you purged the other cross compiler ? Jul 11 20:04:37 chanakya-vc: ^ Jul 11 20:05:32 No I didn't Jul 11 20:05:36 gnueabi Jul 11 20:05:43 you should first check if this compiler works for you Jul 11 20:05:49 we can do that later. Jul 11 20:06:10 Yes let me try. So full path to this compiler right? Jul 11 20:06:12 ZeekHuge, ^^ Jul 11 20:06:38 basically it will involve removing the older cross-compiler, and then adding a line to your /etc/environment file .. but later on that.. Jul 11 20:28:35 if it's an "external" toolchain like linaro, all you need is the bindir in the front of your path and CROSS_COMPILE=- Jul 11 20:29:10 don't go messing with the system environment... Jul 11 20:30:15 should be compiling as a normal user anyway, so if you want to set any environment stuff use the right files Jul 11 20:30:40 like $HOME/.barshrc and .profile Jul 11 20:32:24 nerdboy, Bindir refers to the variable? Jul 11 20:32:59 it refers to wherever your downloaded toolchain bindir is Jul 11 20:33:24 like /opt/linaro-gcc-whatever Jul 11 20:34:26 nerdboy: yeah .. using baschrc and profile is usually the suggested way.. but why is it mostly suggested ? Isnt the environment file thats actually made for this ? To me it looks like .bashrc and .profile are made for other purposes and we just use it for this... Therefore i use /etc/environment Jul 11 20:34:33 you could follow the toolchain stuff on the wiki page Jul 11 20:35:14 ZeekHuge: the system env gets modified by system tools that know what they are installing Jul 11 20:35:43 like apt-get install blah-compiler Jul 11 20:36:13 you don't need to play sysadmin trying to set it up that way... Jul 11 20:37:35 oh .. okay. So my /etc/environment file can be modified by other programs. Didnt know that .. Thanks :) Jul 11 20:42:46 m_w, Okay so I have compiled the kernel. Now the moment of truth Jul 11 20:43:14 :D Jul 11 20:50:41 m_w, Now it is saying while compiling that some warnings are being treated as errors . Jul 11 20:51:14 I am not destined to get this compiled and get it insmoded I guess Jul 11 20:52:06 chanakya-vc: google tmate and install it Jul 11 20:52:42 ZeekHuge, Will do that. Jul 11 20:53:54 Terminal sharing. Wow! Jul 11 21:00:11 ZeekHuge, I have installed tmate Jul 11 21:01:11 start the session and share the link Jul 11 21:01:40 once the session is started ... you can use 'tmate show-messages' to get the link Jul 11 21:02:11 copy the link ... then type 'reset' command and then share the link Jul 11 21:02:33 How many people can connect to me at a time? Jul 11 21:02:48 Like everyone whom I share stuff with? Jul 11 21:02:53 yes Jul 11 21:03:02 if stuff == link Jul 11 21:03:04 Ohh that's nice Jul 11 21:03:07 Yeah Jul 11 21:03:11 :P Jul 11 21:03:47 And can they type things too or it is only me typing things and they viewing it Jul 11 21:05:05 hmmn m_w Do you have this? It looks great! Jul 11 21:05:39 I have used it Jul 11 21:09:11 m_w, The error that I am getting are these:http://pastebin.com/s9LWibXz Jul 11 21:09:15 Line 23 Jul 11 21:09:29 Rest are warnings Jul 11 21:12:48 looks like your function protoype does not match the one in the struct Jul 11 21:13:38 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); Jul 11 21:14:01 take the const out Jul 11 21:14:19 static ssize_t spi_read(struct file *filp, char __user *buf, size_t count,loff_t *f_pos) Jul 11 21:14:44 it is obviously not const if you are reading Jul 11 21:22:07 Success m_w ! Jul 11 21:22:28 const was to be removed from read not from write Jul 11 21:23:06 Although I didn't get why the buffer would be constant while writing. Jul 11 21:27:59 ZeekHuge,m_w,alexhiam: Did you have a look at this: https://github.com/chrislgarry/Apollo-11 Jul 11 21:32:52 nope Jul 11 21:35:15 This is the entire code of the apollo 11 mission, or atleast it claims to be Jul 11 21:38:27 yes .. Jul 11 21:38:44 didnt go into it though .. quite spread on fb Jul 11 21:39:50 so that compiler update solves it ? I mean .. is this module that was giving that 'fstack' error ? Jul 11 21:40:20 ZeekHuge, No everything done, no fstack error and no problem with insmoding Jul 11 21:40:33 cool ! Jul 11 21:41:31 ZeekHuge, When you said use LOCALVERSION, I mean there is further classification in kernel number 4.4.9 too Jul 11 21:41:47 I mean what does the r25 stand for? Jul 11 21:42:05 revision 25? Jul 11 21:48:25 I am not sure ... but I just have a feeling that the value LOCALVERSION is like a unique key. it is used for the final image. It somehow uses the config file and get embedded into the kernel image that gets developed. So as to differentiate it from other images. Jul 11 21:49:24 in our case we choose to give this variable a value = -ti-r25 where r25 is .. yes .. revision number Jul 11 21:50:04 Okay ZeekHuge , Thanks for your help! Jul 11 21:50:11 : ) Jul 11 21:50:24 no problem Jul 12 00:01:39 hi I changed to a new system with Debian to Ubuntu Jul 12 00:02:00 and I have a problem with BeagleBone Jul 12 00:02:44 When I plug BBB to usb Jul 12 00:03:08 It shows up as a device Jul 12 00:04:02 but 192.168.7.2 in web broswer not working and ssh root@192.168.7.2 not working Jul 12 00:04:50 What could be the reason? what should I do? Jul 12 00:27:48 * nerdboy guesses gadget ethernet not all there? Jul 12 00:30:02 can you use the real serial console or ssh? Jul 12 00:30:23 if so try lsmod and see what modules are loaded Jul 12 00:30:51 you could also apt-get update/upgrade and update to latest kernel Jul 12 00:31:26 if it's *your* kernel then pastebin the config Jul 12 00:32:30 thanks nerdboy I will check it in a moment Jul 12 00:33:28 upgrade takes quite a long time Jul 12 00:37:28 it shouldn't if the rootfs is recent... Jul 12 00:37:50 where did you get it, and what "release" is it? Jul 12 00:40:52 ubuntu 16.04 gnome on computer Jul 12 00:41:34 on BB is Jessie what is recommending Jason Jul 12 00:43:04 this one: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Jessie_Snapshot_lxqt Jul 12 00:49:55 oh, i thought you meant the beaglebone end was messing up Jul 12 00:50:21 then you have to configure your ubuntu system to fire up usb0 Jul 12 00:56:33 nerdboy: Can you give me a tip on how to do it? Jul 12 01:02:36 rry, wife distracted me Jul 12 01:03:02 *sorry even Jul 12 01:03:11 http://www.vctlabs.com/posts/2014/Sep/14/beaglebone_images/ <= read this Jul 12 01:03:30 starting in the middle-ish Jul 12 01:12:06 thanks nerdboy, I will try to do it tomorrow. I'm dying when not sleeping **** ENDING LOGGING AT Tue Jul 12 02:59:58 2016