Re: [uClinux-dev] Writing data to an USB ext2 stick I get an usbreset and device descriptor errors
I have this problem with 3 devices out of four. What does it mean? Is the driver compliant with a specific type of USB stick? - Original Message - From: Jorge Pereira To: uClinux development list Sent: Saturday, March 01, 2008 8:20 PM Subject: Re: [uClinux-dev] Writing data to an USB ext2 stick I get an usbreset and device descriptor errors i think so that problems found in your device, try use other device. []s On Fri, Feb 29, 2008 at 11:31 AM, Claudia De Bartolomeis [EMAIL PROTECTED] wrote: Hi everyboby, I'm designing a custom board based on M5329EVB and the BSP m532xevb based on kernel uClinux 2.6.17.7-uc1 by Freescale. I've got an isssue regarding usb. When I try writing to an usb stick (ext2 format) I get the following messages. # usb 1-1: new full speed USB device using ehci and address 2 usb 1-1: not running at top speed; connect to a high speed hub usb 1-1: Product: Flash Disk usb 1-1: Manufacturer: USB 2.0 usb 1-1: SerialNumber: AA0401278350 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices Vendor: USB 2.0 Model: Flash DiskRev: 1100 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 1981440 512-byte hdwr sectors (1014 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 1981440 512-byte hdwr sectors (1014 MB) sda: Write Protect is off sda: assuming drive cache: write through sda:7usb-storage: queuecommand called sda1 sd 0:0:0:0: Attached scsi removable disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 # mount /dev/sda1 /mnt/floppy EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended # cp -R icoone/ mnt/floppy/pippoo/ # umount /dev/sda1 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device descriptor read/64, error -110 usb 1-1: device descriptor read/64, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device descriptor read/64, error -110 usb 1-1: device descriptor read/64, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device not accepting address 2, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device not accepting address 2, error -110 usb 1-1: USB disconnect, address 2 sd 0:0:0:0: scsi: Device offlined - not ready after error recovery sd 0:0:0:0: SCSI error: return code = 0x1 end_request: I/O error, dev sda, sector 409792 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51236 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51284 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 51298 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51316 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51332 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 51346 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 0 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 1 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 4 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 32770 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0
[uClinux-dev] Writing data to an USB ext2 stick I get an usb reset and device descriptor errors
Hi everyboby, I'm designing a custom board based on M5329EVB and the BSP m532xevb based on kernel uClinux 2.6.17.7-uc1 by Freescale. I've got an isssue regarding usb. When I try writing to an usb stick (ext2 format) I get the following messages. # usb 1-1: new full speed USB device using ehci and address 2 usb 1-1: not running at top speed; connect to a high speed hub usb 1-1: Product: Flash Disk usb 1-1: Manufacturer: USB 2.0 usb 1-1: SerialNumber: AA0401278350 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices Vendor: USB 2.0 Model: Flash DiskRev: 1100 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sda: 1981440 512-byte hdwr sectors (1014 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 1981440 512-byte hdwr sectors (1014 MB) sda: Write Protect is off sda: assuming drive cache: write through sda:7usb-storage: queuecommand called sda1 sd 0:0:0:0: Attached scsi removable disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 # mount /dev/sda1 /mnt/floppy EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended # cp -R icoone/ mnt/floppy/pippoo/ # umount /dev/sda1 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device descriptor read/64, error -110 usb 1-1: device descriptor read/64, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device descriptor read/64, error -110 usb 1-1: device descriptor read/64, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device not accepting address 2, error -110 usb 1-1: reset full speed USB device using ehci and address 2 usb 1-1: device not accepting address 2, error -110 usb 1-1: USB disconnect, address 2 sd 0:0:0:0: scsi: Device offlined - not ready after error recovery sd 0:0:0:0: SCSI error: return code = 0x1 end_request: I/O error, dev sda, sector 409792 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51236 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51284 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 51298 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51316 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 51332 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 51346 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 0 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 1 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 4 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed Buffer I/O error on device sda1, logical block 32770 lost page write due to I/O error on sda1 sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed sd 0:0:0:0: rejecting I/O to device being removed
[uClinux-dev] change ram size on m5329evb - Kernel Panic
Hi everybody, I'm developing a system on a custom board based on the M5329evb // design, which has 32MB of RAM I now have new boards with 64MB of RAM instead of 32. I tryed to make the kernel aware of it changing the option CONFIG_RAMSIZE from 0x200 to 0x400. But It doesn't work on my system. I get a kernel panic! Thanks a lot for any help. Claudia Here it follows my boot log with 64M RAM (init.c in DEBUG mode) : uClinux/COLDFIRE(m532x) COLDFIRE port done by Greg Ungerer, [EMAIL PROTECTED] Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne virtual_end is 0x4400 virtual_end is 0x4400 Built 1 zonelists Kernel command line: root=/dev/nfs nfsroot=192.168.0.24:/tftpboot/M5329claudia/nfs ip=192.168.0.23:192.168.0.2 4:192.168.0.2:255.255.255.0::eth0:off PID hash table entries: 512 (order: 9, 2048 bytes) Console: colour dummy device 80x25 Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory available: 60940k/65536k RAM, (1652k kernel code, 331k data) Mount-cache hash table entries: 512 NET: Registered protocol family 16 USB-MCF532x: (HOST module) EHCI device is registered USB-MCF532x: (OTG module) EHCI device is registered USB-MCF532x: (OTG module) UDC device is registered SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub NET: Registered protocol family 2 IP route cache hash table entries: 512 (order: -1, 2048 bytes) TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 2048 bind 1024) TCP reno registered JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. io scheduler noop registered io scheduler cfq registered (default) Initing M532x Framebuffer Console: switching to colour frame buffer device 80x30 fb0: M532x FB frame buffer device ISA-Philips-Basic-CAN memory mapped CAN Driver 3.0_ColdFire_FlexCAN (c) Oct 15 2007 12:26:11 ColdFire internal UART serial driver version 1.00 ttyS0 at 0xfc06 (irq = 90) is a builtin ColdFire UART ttyS1 at 0xfc064000 (irq = 91) is a builtin ColdFire UART RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) nbd: registered device at major 43 FEC ENET Version 0.2 fec: PHY @ 0x1, ID 0x20005c90 -- DP83848 eth0: ethernet 00:cf:53:29:cf:01 uclinux[mtd]: RAM probe address=0x402102a0 size=0x1cb000 Creating 1 MTD partitions on RAM: 0x-0x001cb000 : ROMfs uclinux[mtd]: set ROMfs to be root filesystem NAND device: Manufacturer ID: 0x20, Chip ID: 0x75 (ST Micro NAND 32MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 595 at 0x0094c000 Creating 1 MTD partitions on NAND 32MiB 3,3V 8-bit: 0x-0x0100 : M5329 flash partition 1 QSPI: spi-max_speed_hz 25 QSPI: Baud set to 160 COLDFIRE-QSPI: probed and master registered QSPI device driver installed OK ColdFire QSPI (at 0x4010ac4c) called request_irq without a dev_id! QSPI: Unable to attach ColdFire QSPI interrupt vector=95 usbmon: debugfs is not available MCF532x USB EHCI: is found. ID=0x5 Rev=0x41 ehci ehci.1: EHCI Host Controller ehci ehci.1: new USB bus registered, assigned bus number 1 ehci ehci.1: irq 176, io mem 0xfc0b4000 ehci ehci.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected MCF532x USB EHCI: is found. ID=0x5 Rev=0x41 ehci ehci.0: EHCI Host Controller ehci ehci.0: new USB bus registered, assigned bus number 2 ehci ehci.0: irq 175, io mem 0xfc0b ehci ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected ehci-mcf532x: can't find transceiver! Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver udc: Freescale MCF532x UDC driver version 27 October 2006 init udc: No external transceiver! udc: MCF532x USB Device is found. ID=0x5 Rev=0x41 ts: Compaq touchscreen protocol output ads7843 spi1.1: touchscreen, irq 68 input: ADS784x Touchscreen as /class/input/input0 TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX. IP-Config: Complete: device=eth0, addr=192.168.0.23, mask=255.255.255.0, gw=192.168.0.2, host=192.168.0.23, domain=, nis-domain=(none), bootserver=192.168.0.24, rootserver=192.168.0.24, rootpath= Looking up port of RPC 13/2 on 192.168.0.24 Looking up port of RPC 15/1 on 192.168.0.24 VFS: Mounted root (nfs filesystem) readonly. Freeing unused kernel memory: 80k freed (0x401d5000 - 0x401e8000) BINFMT_FLAT: reloc outside program 0x (0 - 0x727d4/0x459c0), killing init! BINFMT_FLAT: reloc
[uClinux-dev] FAT32 USB doesn't work
Hi everybody, I'm developing an application under uclinux uclibc 0.9.26 for Coldfire m532x. If I try to mount a FAT32 USB stick --- as a vfat fs: # mount -t vfat /dev/sda1 /mnt/floppy/ mount: Mounting /dev/sda1 on /mnt/floppy failed: No such device or address it doesn't work!! --- as a msdos fs: # mount -t msdos /dev/sda1 /mnt/floppy/ It works and I can read its content, but when I write something and I try to unmuont, I get the following: # cp HmiErrors.log /mnt/floppy/ # umount /dev/sda1 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 sd 7:0:0:0: SCSI error: return code = 0x7 end_request: I/O error, dev sda, sector 64 Buffer I/O error on device sda1, logical block 32 lost page write due to I/O error on sda1 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 sd 7:0:0:0: SCSI error: return code = 0x7 end_request: I/O error, dev sda, sector 1072 Buffer I/O error on device sda1, logical block 1040 lost page write due to I/O error on sda1 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 usb 1-1: reset full speed USB device using ehci and address 13 Thanks a lot for any help Claudia ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
[uClinux-dev] change ram size on m5329evb
I'm developing a system on a custom board based on the M5329evb design, which has 32MB of RAM. I now have new boards with 64MB of RAM instead of 32. How can I make the kernel and the boot loader (dBUG) aware of it? Regards Claudia___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] Mouting JFFS2 file system
Thanks! I have already used your precious patch! Regards Claudia - Original Message - From: Tarani, Andrea To: uClinux development list Sent: Thursday, June 21, 2007 11:22 AM Subject: R: [uClinux-dev] Mouting JFFS2 file system Warning!! The nand flash driver is bugged (wrong use of nand ce signal). Hi have recently posted a patch that solve the problem (8 June) -- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Claudia De Bartolomeis Inviato: giovedì 21 giugno 2007 11.02 A: uClinux development list Oggetto: [uClinux-dev] Mouting JFFS2 file system Hi Vanitha, what kernel boot command did you use to mount the file system from the Nand flash? Something like root=/dev/mtdblockx? I'm also trying to use my Nand Flash as root file system, (I'm working now on the MCF5329 platform) and I gave up creating a jffs2 image and mounting it because i had Magic bitmask ... not found messages and I can't solve it ( I used this commands flash_eraseall /dev/mtd1 nandwrite -jf /dev/mtd1 rootfs.jffs2 mount -t jffs2 /dev/mtdblock1 /mnt ) From freescale I received this hint: Try to create JFFS2 directly on NAND device without making image. Than just copy some file there. I followed this passes: flash_eraseall /dev/mtd1 mount -t jffs2 /dev/mtdblock1 /mnt cd /mnt copying into it my file system, in this way it works every time you mount it, but I can't find the proper boot kernel command to mount it automatically at boot time. If you can please help me. Regards Claudia This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. -- ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.1/857 - Release Date: 20/06/2007 14.18 ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] Problem linking pthread... undefined referenceto`pthread_create'
I added -lpthread to thr NANOXCLIENTLIBS in Makefile.rules (even if I don't know if it's the correct place) ... ifeq ($(LINK_APP_INTO_SERVER), Y) NANOXCLIENTLIBS += \ $(TOP)/lib/libnano-X.a \ $(TOP)/lib/libmwengine.a \ $(TOP)/lib/libmwdrivers.a \ $(TOP)/lib/libmwfonts.a \ $(MW_CORE_LIBS) -lpthread CCNANOXCLIENTLIBS += -lnano-X -lmwengine -lmwdrivers -lmwfonts $(MW_CORE_LIBS) else NANOXCLIENTLIBS += $(TOP)/lib/libnano-X.a CCNANOXCLIENTLIBS += -lnano-X endif . and I turned yes THREADSAFE and LINK_APP_INTO_SERVER in config file Bye Claudia - Original Message - From: chris brooke To: uClinux development list Sent: Tuesday, May 15, 2007 7:59 PM Subject: RE: [uClinux-dev] Problem linking pthread... undefined referenceto`pthread_create' Hi Claudia, What did you do to solve this problem? I've been working on the same problem for more than a week. Thanks, Chris -- From: [EMAIL PROTECTED] To: uclinux-dev@uclinux.org Subject: Re: [uClinux-dev] Problem linking pthread... undefined referenceto `pthread_create' Date: Tue, 15 May 2007 08:49:44 +0200 Hi Daniel, I have solved my linking problem making a modification in the Makefile -lpthread Now It works (almost the compilation does) Thanks Claudia - Original Message - From: Daniel Alomar [EMAIL PROTECTED] To: uClinux development list uclinux-dev@uclinux.org Sent: Tuesday, May 15, 2007 6:37 AM Subject: Re: [uClinux-dev] Problem linking pthread... undefined referenceto `pthread_create' Hi Claudia, Have you already enable pthreads inside uClibc? Regards, Daniel Alomar En/na Claudia De Bartolomeis ha escrit: Hi everybody, I'm developing an application under uclinux uclibc 0.9.26 for Coldfire m532x, but I'm having troubles linking pthread Thanks in advance for any help Claudia This is the compilation log: [EMAIL PROTECTED]:~/ltib-m532xevb-20061117 mailto:[EMAIL PROTECTED]:~/ltib-m532xevb-20061117 ./ltib -m cbuild -p microwindows.spec Processing: microwindows == rpmbuild --dbpath /home/claudia/ltib-m532xevb-20061117/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu' --define '__strip strip' --define '_topdir /home/claudia/ltib-m532xevb-20061117/rpm' --define '_prefix /usr' --define '_tmppath /home/claudia/ltib-m532xevb-20061117/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/claudia/ltib-m532xevb-20061117/dist/lfs-5.1/microwindows/microwindows.spec Executing(%build): /bin/sh -e /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.19156 + umask 022 + cd /home/claudia/ltib-m532xevb-20061117/rpm/BUILD + cd microwindows-0.90 + cd src + make -j1 'HOSTCC=/usr/bin/gcc -B/usr/bin//' make -C drivers make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make -C mwin make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C bmp make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make -C mwobjects make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make -C winlib make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C engine make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make -C fonts make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make -C nanox make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox' make[1]: Leaving directory `/home
Re: [uClinux-dev] Problem linking pthread... undefined referenceto `pthread_create'
Hi Daniel, I have solved my linking problem making a modification in the Makefile -lpthread Now It works (almost the compilation does) Thanks Claudia - Original Message - From: Daniel Alomar [EMAIL PROTECTED] To: uClinux development list uclinux-dev@uclinux.org Sent: Tuesday, May 15, 2007 6:37 AM Subject: Re: [uClinux-dev] Problem linking pthread... undefined referenceto `pthread_create' Hi Claudia, Have you already enable pthreads inside uClibc? Regards, Daniel Alomar En/na Claudia De Bartolomeis ha escrit: Hi everybody, I'm developing an application under uclinux uclibc 0.9.26 for Coldfire m532x, but I'm having troubles linking pthread Thanks in advance for any help Claudia This is the compilation log: [EMAIL PROTECTED]:~/ltib-m532xevb-20061117 mailto:[EMAIL PROTECTED]:~/ltib-m532xevb-20061117 ./ltib -m cbuild -p microwindows.spec Processing: microwindows == rpmbuild --dbpath /home/claudia/ltib-m532xevb-20061117/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu' --define '__strip strip' --define '_topdir /home/claudia/ltib-m532xevb-20061117/rpm' --define '_prefix /usr' --define '_tmppath /home/claudia/ltib-m532xevb-20061117/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/claudia/ltib-m532xevb-20061117/dist/lfs-5.1/microwindows/microwindows.spec Executing(%build): /bin/sh -e /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.19156 + umask 022 + cd /home/claudia/ltib-m532xevb-20061117/rpm/BUILD + cd microwindows-0.90 + cd src + make -j1 'HOSTCC=/usr/bin/gcc -B/usr/bin//' make -C drivers make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make -C mwin make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C bmp make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make -C mwobjects make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make -C winlib make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C engine make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make -C fonts make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make -C nanox make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox' make -C demos make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos' make -C mwin make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin' make -C mwobjects make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects' make -C nanowm make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm' make -C nanox make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox' make -C icoone make[3]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox/icoone' Linking /home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main ... gcc -I. -I/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/include -Wall -Wpointer-arith -lpthread -L/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/lib main.o menu_engine.o buttons.o -o /home/claudia/ltib-m532xevb-20061117
[uClinux-dev] Problem linking pthread... undefined reference to `pthread_create'
Hi everybody, I'm developing an application under uclinux uclibc 0.9.26 for Coldfire m532x, but I'm having troubles linking pthread Thanks in advance for any help Claudia This is the compilation log: [EMAIL PROTECTED]:~/ltib-m532xevb-20061117 ./ltib -m scbuild -p microwindows.spec Processing: microwindows == rpmbuild --dbpath /home/claudia/ltib-m532xevb-20061117/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu' --define '__strip strip' --define '_topdir /home/claudia/ltib-m532xevb-20061117/rpm' --define '_prefix /usr' --define '_tmppath /home/claudia/ltib-m532xevb-20061117/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/claudia/ltib-m532xevb-20061117/dist/lfs-5.1/microwindows/microwindows.spec Executing(%build): /bin/sh -e /home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.19156 + umask 022 + cd /home/claudia/ltib-m532xevb-20061117/rpm/BUILD + cd microwindows-0.90 + cd src + make -j1 'HOSTCC=/usr/bin/gcc -B/usr/bin//' make -C drivers make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers' make -C mwin make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C bmp make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp' make -C mwobjects make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects' make -C winlib make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin' make -C engine make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine' make -C fonts make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts' make -C nanox make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox' make[1]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox' make -C demos make[1]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos' make -C mwin make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin' make -C mwobjects make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects' make -C nanowm make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm' make[2]: Leaving directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm' make -C nanox make[2]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox' make -C icoone make[3]: Entering directory `/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox/icoone' Linking /home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main ... gcc -I. -I/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/include -Wall -Wpointer-arith -lpthread -L/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/lib main.o menu_engine.o buttons.o -o /home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main /home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/lib/libnano-X.a menu_engine.o: In function `prova': menu_engine.c:(.text+0x50): undefined reference to `pthread_create' menu_engine.c:(.text+0x72): undefined reference to `pthread_create' menu_engine.c:(.text+0x88): undefined reference to `pthread_join' menu_engine.c:(.text+0x98): undefined reference to `pthread_join' collect2: ld returned 1 exit status make[3]: *** [/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main] Error 1 make[3]: Leaving directory