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.16 | zzb | hi,Can I type now? Sorry for disturbing everybody |
02:00.22 | CapnKernel | yes |
02:02.04 | zzb | Thanks. I have a question very strange. somebody may help me |
02:03.18 | zzb | the "getaddrinfo " function cause segmentation fault on NFS execution, but ok on local Jffs2 exection. the code is very simple. |
02:05.08 | zzb | I 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.48 | CapnKernel | Do you use the same kernel for both? (Literally the same - same binary from the same place in memory) |
02:09.41 | CapnKernel | And is the segfault inside of getaddrinfo(), or is it when you try to use the info that getaddrinfo() returns? |
02:10.15 | zzb | yes, the same kernel on flash. Uboot boot the same kernel. Inside of getaddrinfo(). |
02:10.52 | CapnKernel | I presume by "NFS" and "JFFS2", that your root filesystems are NFS and JFFS2 respectively.... |
02:11.16 | zzb | One case is using root= , rootfs is jffs2, |
02:11.17 | zzb | the other is using initramfs , rootfs is NFS. |
02:11.27 | CapnKernel | I see. |
02:12.46 | CapnKernel | NFS implies network traffic. Is it possible to sniff the network interface and see if the nameserver is being contacted by the getaddrinfo()? |
02:13.03 | CapnKernel | Ie, is there a DNS query packet? |
02:13.17 | CapnKernel | (I have to go now) |
02:13.48 | zzb | thanks. I can "ping " localhost |
02:14.40 | zzb | and the code: |
02:14.41 | zzb | #include <sys/types.h> |
02:14.43 | zzb | #include <sys/socket.h> |
02:14.44 | zzb | #include <netdb.h> |
02:14.46 | zzb | #include <strings.h> |
02:14.47 | CapnKernel | calling getaddrinfo() will result in one or more network packets to the NFS server. |
02:14.47 | zzb | int main(int argc, char *argv[]) |
02:14.49 | zzb | { |
02:14.51 | zzb | <PROTECTED> |
02:14.52 | CapnKernel | DON'T PASTE CODE HERE |
02:14.53 | zzb | <PROTECTED> |
02:14.54 | zzb | <PROTECTED> |
02:14.56 | zzb | <PROTECTED> |
02:14.57 | zzb | <PROTECTED> |
02:14.58 | CapnKernel | Send it to pastebin.ca or similar. |
02:14.59 | zzb | <PROTECTED> |
02:15.00 | zzb | <PROTECTED> |
02:15.02 | zzb | <PROTECTED> |
02:15.03 | zzb | <PROTECTED> |
02:15.04 | zzb | <PROTECTED> |
02:15.06 | zzb | <PROTECTED> |
02:15.07 | zzb | <PROTECTED> |
02:15.09 | zzb | } |
02:15.47 | zzb | Oop.... , pastebin.ca ? I use the irc for first time, sorry. |
02:16.53 | CapnKernel | Go to http://pastebin.ca and have a look |
02:16.58 | CapnKernel | Put your code there |
02:17.20 | CapnKernel | Then paste the link for your code from pastebin.ca, here. |
02:22.17 | CapnKernel | Sorry, have to go now. |
02:22.44 | zzb | Thank you very much. |
02:23.04 | zzb | the 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.03 | CapnKernel | zzb: are you there? |
04:41.39 | CapnKernel | zzb, there are example programs in the getaddrinfo(3) manpage. Do the example programs run on NFS |
04:42.16 | CapnKernel | Also, what are the contents of /etc/resolv.conf on the NFS root filesystem? How about /etc/resolv.conf in the JFFS2 filesystem? |
04:42.47 | CapnKernel | Also, getaddrinfo() mentions that hints (the third arg) can be NULL. What happens when you pass in NULL for hints? |
05:22.27 | zzb | I am back , will try your said, thanks a lot. |
05:31.22 | CapnKernel | zzb: no problem |
05:33.27 | CapnKernel | I'd still be trying a packet sniff. |
05:44.58 | *** join/#elinux Madsy (n=madsy@fu/coder/madsy) |
05:50.02 | zzb | in nfs, ret = getaddrinfo(NULL,service,NULL, &result); will return zero |
05:50.44 | zzb | the example program run with no error |
05:51.16 | zzb | the /etc/resolv.conf content is the same |
05:52.49 | zzb | CapnKernel, it seems I can workaround this problem at least. |
05:58.17 | CapnKernel | zzb: great news. |
05:58.42 | CapnKernel | Strange 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.18 | zzb | CanpKernel, I know why is the difrrence. |
06:39.41 | zzb | the /etc/services file |
06:40.08 | zzb | there is no /etc/services file on jffs2 RFS |
06:40.26 | zzb | I copied it from host |
06:40.32 | zzb | the result is the same. |
06:40.46 | zzb | between the NFS and jffs2. |
06:41.37 | zzb | thank 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.03 | methril|work | yo |
07:27.58 | *** join/#elinux hw_ (n=hw@p578b3905.dip0.t-ipconnect.de) |
07:28.44 | CapnKernel | zzb: 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.40 | vapier | anyone 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.43 | lo127 | Does anyone know if I can format a SD memory card to jffs2 from a SD port in my Debian workstation? |
11:47.19 | HcE | probably not |
11:47.29 | HcE | why would you want jffs2 on a SD-card anyway |
11:47.50 | HcE | if you need to test drive a jffs2 image, use mtdram |
11:48.08 | lo127 | I would like to mount my root filesystem from it |
11:48.30 | HcE | as long as your workstation and embedded target is the same endianess, you can use mtdram |
11:49.25 | lo127 | okey, thanks HcE |
11:50.47 | lo127 | you mean I shall use a different filesystem for the SD card and put an jffs2 image on it? |
11:55.28 | HcE | no, use mtdram |
11:55.41 | HcE | it is a kernel module, hopefully available on your workstation |
12:02.39 | vapier | still doesnt make much sense |
12:03.20 | vapier | easier to run ext3 on it |
12:09.03 | lo127 | vapier, 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.33 | lo127 | would simply; cp /* /media/sd_card work? :S |
12:14.07 | *** join/#elinux gustavoz (n=gustavoz@imhotep.toptech.com.ar) |
12:51.43 | keesj | I 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.00 | nathan7 | Hello, 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.53 | lo127 | keesj, the problem is that I don't have tar in the embedded system :'( |
13:41.10 | HcE | sure it is not part of busybox? |
13:41.21 | HcE | usually it is enabled, at least in default AVR32 |
13:43.07 | lo127 | HcE, your right as usual, what happens if the destination is in the archive? like /media/sd is in /* ? |
13:47.37 | mnemoc | tar supports exclusions ;-) |
13:48.12 | mnemoc | obviosuly you want to skip /dev, /sys and /tmp too |
13:49.54 | lo127 | mnemoc, didn't see the exclude option in the busybox build of tar |
13:50.45 | lo127 | I can just type in all the root directories, they are not that many |
13:53.35 | mnemoc | lo127: 1.13 does support --exclude and --exclude-from, but sure you can give an explicit list too |
13:54.06 | mnemoc | what I love more of tar is that one can pipe the output via network |
13:55.41 | keesj | ssh achilles tar -C /home/cvs -c -f - dirname > myfile |
13:56.07 | keesj | might even do a pipe but that realy start to look like rsync |
13:56.32 | mnemoc | =) |
14:00.16 | lo127 | after a couple of lines the terminal starts spitting out gibberish :/ maybe the serial connection? I will try over ssh |
14:02.47 | lo127 | this is scaring me to death every time it happens :S |
14:03.19 | *** join/#elinux markl_ (n=mark@tpsit.com) |
14:04.33 | lo127 | is it suppose to output everything? |
14:05.12 | lo127 | I'm running: tar -cv bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/ /media/sd_card/RFS.tar |
14:06.26 | lo127 | after 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.54 | lo127 | am I missing the target? |
14:08.10 | lo127 | lol, I see what I did wrong now :P |
14:08.11 | mnemoc | lo127: tar -cvf /media/sd_card/RFS.tar bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/ |
14:08.22 | mnemoc | or > /media/sd_card/RFS.tar |
14:09.03 | lo127 | thanks, |
14:09.43 | mnemoc | you may also want to use /media/sd_card/RFS.tar.tmp to not destroy the previous backup until the new is finished |
14:09.51 | mnemoc | in the case you have enough room of course |
14:52.02 | *** join/#elinux clem6 (n=chatzill@122.193.209.26) |
14:52.15 | clem6 | hello |
14:52.38 | clem6 | I have a question |
14:54.03 | clem6 | What is the meaning of "mount -t sysfs none /sys"?the none device? |
14:55.26 | mnemoc | clem6: it's not bound to any /dev/foo, it's kind of virtual |
14:56.57 | clem6 | But sometimes it will be "mount -t sysfs sysfs /sys",what's the difference? |
14:57.14 | mnemoc | none afaik |
14:57.42 | mnemoc | i think that is just personal preference |
14:58.42 | clem6 | so it means nothing? |
14:58.50 | mnemoc | giving a "proper" name may have administration advantages |
14:59.41 | mnemoc | yes, i think it would make no differnce if you place your nick in there either |
15:00.56 | mnemoc | $ mount | grep clem6 |
15:00.56 | mnemoc | clem6 on /tmp/sys type sysfs (rw) |
15:03.49 | clem6 | If 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.10 | mnemoc | some filesystems may use that name for something useful, but none i'm aware of |
15:06.21 | clem6 | OK,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.08 | lo127 | mnemoc, I get "tar: short read" at the end of the tar creation, any idea? |
15:38.54 | mnemoc | nope :\ |
15:40.41 | lo127 | seams to be a problem with the busybox build of tar |
15:43.59 | lo127 | this is killing me, maybe I shall try just copying with the -a flag? |
15:45.05 | lo127 | something like cp -a bin/ etc/ linuxrc proc/ var/ config/ home/ sbin/ uImage www/ lib/ mnt/ usr/ /media/sd_card/ ? |
15:47.09 | lo127 | *fingers crossed* |
15:58.48 | mnemoc | what version of bb are you using? |
16:04.50 | lo127 | BusyBox v1.4.2 (2007-04-17 15:34:55 CEST) multi-call binary |
16:05.24 | lo127 | I'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.58 | lo127 | it 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.45 | mnemoc | lo127: err... i didn't notice you had proc there, exclude it |
16:29.05 | lo127 | did, works fine now :) |
16:31.53 | *** join/#elinux jlg (n=jlg@pas38-6-88-172-132-119.fbx.proxad.net) |
16:32.44 | mnemoc | :) |
16:43.43 | lo127 | I 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.58 | aliverius | hi fellas |
23:33.48 | aliverius | i configure buildroot and then uclibc and the result is this: |
23:33.54 | aliverius | `__fini_array_start' can not be used when making a shared object |
23:34.06 | aliverius | and then some linking fails |
23:34.33 | aliverius | whenever i touch the uclibc configuration it fails :( |