IRC log for #elinux on 20090331

00:20.06*** join/#elinux CapnKernel (n=capnkern@204.37.233.220.exetel.com.au)
00:27.15*** join/#elinux flavioribeiro (n=avaty@200.97.67.57)
00:40.37*** join/#elinux CapnKernel (n=capnkern@204.37.233.220.exetel.com.au)
01:57.45*** join/#elinux zzb (n=chatzill@59.108.122.138)
01:59.16zzbhi,Can I type now? Sorry for disturbing everybody
02:00.22CapnKernelyes
02:02.04zzbThanks. I have a question very strange. somebody may help me
02:03.18zzbthe "getaddrinfo " function cause segmentation fault on NFS execution, but ok on local Jffs2 exection. the code is very simple.
02:05.08zzbI use linux kernel 2.6.14 ,arm , uclibc 0.9.28 , gcc 3.4.3.
02:07.47*** join/#elinux russ (i=foobar@ip70-176-253-20.ph.ph.cox.net)
02:07.48*** mode/#elinux [+o russ] by ChanServ
02:07.48CapnKernelDo you use the same kernel for both?  (Literally the same - same binary from the same place in memory)
02:09.41CapnKernelAnd is the segfault inside of getaddrinfo(), or is it when you try to use the info that getaddrinfo() returns?
02:10.15zzbyes, the same kernel on flash. Uboot boot the same kernel. Inside of getaddrinfo().
02:10.52CapnKernelI presume by "NFS" and "JFFS2", that your root filesystems are NFS and JFFS2 respectively....
02:11.16zzbOne case is using root= , rootfs is jffs2,
02:11.17zzbthe other is using initramfs , rootfs is NFS.
02:11.27CapnKernelI see.
02:12.46CapnKernelNFS implies network traffic.  Is it possible to sniff the network interface and see if the nameserver is being contacted by the getaddrinfo()?
02:13.03CapnKernelIe, is there a DNS query packet?
02:13.17CapnKernel(I have to go now)
02:13.48zzbthanks. I can "ping " localhost
02:14.40zzband the code:
02:14.41zzb#include <sys/types.h>
02:14.43zzb#include <sys/socket.h>
02:14.44zzb#include <netdb.h>
02:14.46zzb#include <strings.h>
02:14.47CapnKernelcalling getaddrinfo() will result in one or more network packets to the NFS server.
02:14.47zzbint main(int argc, char *argv[])
02:14.49zzb{
02:14.51zzb<PROTECTED>
02:14.52CapnKernelDON'T PASTE CODE HERE
02:14.53zzb<PROTECTED>
02:14.54zzb<PROTECTED>
02:14.56zzb<PROTECTED>
02:14.57zzb<PROTECTED>
02:14.58CapnKernelSend it to pastebin.ca or similar.
02:14.59zzb<PROTECTED>
02:15.00zzb<PROTECTED>
02:15.02zzb<PROTECTED>
02:15.03zzb<PROTECTED>
02:15.04zzb<PROTECTED>
02:15.06zzb<PROTECTED>
02:15.07zzb<PROTECTED>
02:15.09zzb}
02:15.47zzbOop.... , pastebin.ca ? I use the irc for first time, sorry.
02:16.53CapnKernelGo to http://pastebin.ca and have a look
02:16.58CapnKernelPut your code there
02:17.20CapnKernelThen paste the link for your code from pastebin.ca, here.
02:22.17CapnKernelSorry, have to go now.
02:22.44zzbThank you very much.
02:23.04zzbthe code is on here.  http://pastebin.ca/1377535
04:30.55*** join/#elinux russ__ (n=russ@149-169-238-143.nat.asu.edu)
04:32.49*** join/#elinux russ (i=foobar@ip70-176-253-20.ph.ph.cox.net)
04:32.49*** mode/#elinux [+o russ] by ChanServ
04:40.03CapnKernelzzb: are you there?
04:41.39CapnKernelzzb, there are example programs in the getaddrinfo(3) manpage.  Do the example programs run on NFS
04:42.16CapnKernelAlso, what are the contents of /etc/resolv.conf on the NFS root filesystem?  How about /etc/resolv.conf in the JFFS2 filesystem?
04:42.47CapnKernelAlso, getaddrinfo() mentions that hints (the third arg) can be NULL.  What happens when you pass in NULL for hints?
05:22.27zzbI am back , will try your said, thanks a lot.
05:31.22CapnKernelzzb: no problem
05:33.27CapnKernelI'd still be trying a packet sniff.
05:44.58*** join/#elinux Madsy (n=madsy@fu/coder/madsy)
05:50.02zzbin nfs, ret = getaddrinfo(NULL,service,NULL, &result); will return zero
05:50.44zzbthe example program run with no error
05:51.16zzbthe /etc/resolv.conf content is the same
05:52.49zzbCapnKernel, it seems I can workaround this problem at least.
05:58.17CapnKernelzzb: great news.
05:58.42CapnKernelStrange it should give you a difference depending on your RFS, but at least you can keep going.
06:05.14*** join/#elinux toi (n=toi@116.54-246-81.adsl-static.isp.belgacom.be)
06:10.41*** join/#elinux lyakh (n=lyakh@p57BD17F3.dip0.t-ipconnect.de)
06:19.02*** join/#elinux pcgeil (n=steffen@p5B17F715.dip.t-dialin.net)
06:24.24*** join/#elinux russ (i=foobar@ip70-176-253-20.ph.ph.cox.net)
06:24.24*** mode/#elinux [+o russ] by ChanServ
06:32.30*** join/#elinux rraasch (n=ryan@80.72.151.98)
06:39.18zzbCanpKernel, I know why is the difrrence.
06:39.41zzbthe /etc/services file
06:40.08zzbthere is no /etc/services file on jffs2 RFS
06:40.26zzbI copied it from host
06:40.32zzbthe result is the same.
06:40.46zzbbetween the NFS and jffs2.
06:41.37zzbthank you very much.
06:47.00*** part/#elinux pcgeil (n=steffen@p5B17F715.dip.t-dialin.net)
07:18.23*** join/#elinux boris_OmegA (n=boris@194.51.141.172)
07:24.43*** join/#elinux pcgeil (n=steffen@HFUVPN251.HFU-VPN.HS-Furtwangen.DE)
07:26.03methril|workyo
07:27.58*** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de)
07:28.44CapnKernelzzb: You're welcome!  That explains a lot of things
07:53.29*** join/#elinux damunix (n=damunix@rps919.ovh.net)
08:09.19*** join/#elinux vapier (i=UserBah@wh0rd.org)
08:11.40vapieranyone care to share their logic analyzer experience ?  i'm looking for a cheap portable usb one that works under Linux ...
08:30.36*** join/#elinux booxter (n=booxter@cpmsq.epam.com)
09:16.16*** join/#elinux like2wise (n=chatzill@82-171-51-231.ip.telfort.nl)
09:21.35*** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de)
10:20.55*** join/#elinux like2wise_ (n=likewise@82-171-51-231.ip.telfort.nl)
10:25.17*** join/#elinux pirho (i=pirho@gateway/gpg-tor/key-0x2CEEC9CB)
11:44.39*** join/#elinux lo127 (n=lo@c-89-160-3-125.cust.bredband2.com)
11:45.43lo127Does anyone know if I can format a SD memory card to jffs2 from a SD port in my Debian workstation?
11:47.19HcEprobably not
11:47.29HcEwhy would you want jffs2 on a SD-card anyway
11:47.50HcEif you need to test drive a jffs2 image, use mtdram
11:48.08lo127I would like to mount my root filesystem from it
11:48.30HcEas long as your workstation and embedded target is the same endianess, you can use mtdram
11:49.25lo127okey, thanks HcE
11:50.47lo127you mean I shall use a different filesystem for the SD card and put an jffs2 image on it?
11:55.28HcEno, use mtdram
11:55.41HcEit is a kernel module, hopefully available on your workstation
12:02.39vapierstill doesnt make much sense
12:03.20vapiereasier to run ext3 on it
12:09.03lo127vapier, great, now I have it mounted in the embedded system as ext3, next step is to copy the existing root filesystem onto to SD card so that I can mess with it
12:09.33lo127would simply; cp /* /media/sd_card work? :S
12:14.07*** join/#elinux gustavoz (n=gustavoz@imhotep.toptech.com.ar)
12:51.43keesjI use tar for that , but there are also special options to cp to copy device nodes and such
12:53.42*** join/#elinux like2wise_ (n=likewise@82-171-51-231.ip.telfort.nl)
13:06.42*** join/#elinux linac (n=lin@121.201.117.191)
13:09.51*** join/#elinux VK4MSL (n=vk4msl@203.94.56.252)
13:25.10*** join/#elinux nathan7 (i=frozenfi@unaffiliated/nathan7)
13:26.00nathan7Hello, I'm trying to make a rootfs for an ancient 2.4 kernel (OpenPsion), but I keep getting clock_gettime(MONOTONIC) errors on the device.
13:32.12*** join/#elinux GPSFan (n=kenm@64.92.145.112)
13:32.28*** part/#elinux nathan7 (i=frozenfi@unaffiliated/nathan7)
13:34.53lo127keesj, the problem is that I don't have tar in the embedded system :'(
13:41.10HcEsure it is not part of busybox?
13:41.21HcEusually it is enabled, at least in default AVR32
13:43.07lo127HcE, your right as usual, what happens if the destination is in the archive? like /media/sd is in /* ?
13:47.37mnemoctar supports exclusions ;-)
13:48.12mnemocobviosuly you want to skip /dev, /sys and /tmp too
13:49.54lo127mnemoc, didn't see the exclude option in the busybox build of tar
13:50.45lo127I can just type in all the root directories, they are not that many
13:53.35mnemoclo127: 1.13 does support --exclude and --exclude-from, but sure you can give an explicit list too
13:54.06mnemocwhat I love more of tar is that one can pipe the output via network
13:55.41keesjssh achilles tar -C /home/cvs -c -f - dirname > myfile
13:56.07keesjmight even do a pipe but that realy start to look like rsync
13:56.32mnemoc=)
14:00.16lo127after a couple of lines the terminal starts spitting out gibberish :/ maybe the serial connection? I will try over ssh
14:02.47lo127this is scaring me to death every time it happens :S
14:03.19*** join/#elinux markl_ (n=mark@tpsit.com)
14:04.33lo127is it suppose to output everything?
14:05.12lo127I'm running: tar -cv bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/ /media/sd_card/RFS.tar
14:06.26lo127after a couple of lines (normal file added lines) it goes berserk and start to dump something that looks like compiled code on the terminal
14:06.54lo127am I missing the target?
14:08.10lo127lol, I see what I did wrong now :P
14:08.11mnemoclo127: tar -cvf /media/sd_card/RFS.tar bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/
14:08.22mnemocor > /media/sd_card/RFS.tar
14:09.03lo127thanks,
14:09.43mnemocyou may also want to use /media/sd_card/RFS.tar.tmp to not destroy the previous backup until the new is finished
14:09.51mnemocin the case you have enough room of course
14:52.02*** join/#elinux clem6 (n=chatzill@122.193.209.26)
14:52.15clem6hello
14:52.38clem6I have a question
14:54.03clem6What is the meaning of "mount -t sysfs none /sys"?the none device?
14:55.26mnemocclem6: it's not bound to any /dev/foo, it's kind of virtual
14:56.57clem6But sometimes it will be  "mount -t sysfs sysfs /sys",what's the difference?
14:57.14mnemocnone afaik
14:57.42mnemoci think that is just personal preference
14:58.42clem6so it means nothing?
14:58.50mnemocgiving a "proper" name may have administration advantages
14:59.41mnemocyes, i think it would make no differnce if you place your nick in there either
15:00.56mnemoc$ mount | grep clem6
15:00.56mnemocclem6 on /tmp/sys type sysfs (rw)
15:03.49clem6If it is a real file system, that place is the name of a device nod, and if it is a virtual file system, that place is just a nick.Is that right?
15:05.10mnemocsome filesystems may use that name for something useful, but none i'm aware of
15:06.21clem6OK,thank you ;)
15:08.15*** join/#elinux darkschneider2 (n=gab@83-103-75-192.ip.fastwebnet.it)
15:31.37*** join/#elinux darkschneider_ (n=gab@93-32-35-77.ip31.fastwebnet.it)
15:37.08lo127mnemoc, I get "tar: short read" at the end of the tar creation, any idea?
15:38.54mnemocnope :\
15:40.41lo127seams to be a problem with the busybox build of tar
15:43.59lo127this is killing me, maybe I shall try just copying with the -a flag?
15:45.05lo127something like cp -a bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/ /media/sd_card/ ?
15:47.09lo127*fingers crossed*
15:58.48mnemocwhat version of bb are you using?
16:04.50lo127BusyBox v1.4.2 (2007-04-17 15:34:55 CEST) multi-call binary
16:05.24lo127I'm planing to upgrade it as soon as I have a copy of the entire root file system on the SD card. Don't want to mess the default one up
16:15.58lo127it something in /proc that causes the read error :S
16:24.11*** join/#elinux Russ (i=foobar@ip70-176-253-20.ph.ph.cox.net)
16:24.11*** mode/#elinux [+o Russ] by ChanServ
16:27.45mnemoclo127: err... i didn't notice you had proc there, exclude it
16:29.05lo127did, works fine now :)
16:31.53*** join/#elinux jlg (n=jlg@pas38-6-88-172-132-119.fbx.proxad.net)
16:32.44mnemoc:)
16:43.43lo127I will be back later thanks again mnemoc
17:03.13*** join/#elinux albech (n=thomas@119.42.76.180)
17:33.35*** join/#elinux toi (n=toi@d54C2AAB7.access.telenet.be)
17:48.24*** join/#elinux flavioribeiro (n=avaty@189.71.66.144)
19:01.39*** join/#elinux lewellyn (n=lewellyn@gryphon.greenviolet.net)
19:13.42*** join/#elinux gustavoz (n=gustavoz@nuada.toptech.com.ar)
19:19.07*** join/#elinux markl__ (n=mark@tpsit.com)
19:21.28*** join/#elinux markl___ (n=mark@tpsit.com)
19:35.23*** join/#elinux pcgeil (n=steffen@p5B17F715.dip.t-dialin.net)
20:03.47*** part/#elinux vapier (i=UserBah@wh0rd.org)
20:07.18*** join/#elinux pcgeil (n=steffen@p5B17F715.dip.t-dialin.net)
20:07.22*** join/#elinux gustavoz (n=gustavoz@imhotep.toptech.com.ar)
20:09.48*** join/#elinux flavioribeiro (n=avaty@189.71.66.144)
20:11.26*** join/#elinux pcgeil_ (n=steffen@p5B17F715.dip.t-dialin.net)
21:09.42*** join/#elinux like2wise (n=likewise@82-171-51-231.ip.telfort.nl)
23:31.30*** join/#elinux aliverius (n=giorgos@athedsl-4384745.home.otenet.gr)
23:32.58aliveriushi fellas
23:33.48aliveriusi configure buildroot and then uclibc and the result is this:
23:33.54aliverius`__fini_array_start' can not be used when making a shared object
23:34.06aliveriusand then some linking fails
23:34.33aliveriuswhenever i touch the uclibc configuration it fails :(

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.