Re: Wiki page of the day: USB networking and USB networking with Debian
Hi, These pages look good, just a quick query about them. The USB with Debian uses IP address 192.168.2.1 and 2, but the USB networking page talks about 192.168.2.14 and 15. Should these use the same IP addresses? Ian - Original Message From: Dave Neary [EMAIL PROTECTED] To: maemo-developers@maemo.org maemo-developers@maemo.org; Maemo Users [EMAIL PROTECTED] Sent: Tuesday, 1 July, 2008 8:16:23 AM Subject: Wiki page of the day: USB networking and USB networking with Debian Morning all, I obviously underestimated the insatiable desire of the maemo.org community! Root access is done dusted, in no time at all. Many thanks to all those who contributed their time to improve the article. So today, we have a twofer - two articles which should in all likelihood be merged, and which have the potential to be very useful: * USB networking: https://wiki.maemo.org/USB_networking * USB networking with Debian: https://wiki.maemo.org/USB_Networking_with_Debian Thanks again for your help! Cheers, Dave. -- maemo.org docsmaster Email: [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] ___ maemo-users mailing list [EMAIL PROTECTED] https://lists.maemo.org/mailman/listinfo/maemo-users __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Wiki page of the day: USB networking and USB networking with Debian
Thanks for the reply Dave. I was pointing out the inconsistencies in the web pages - I do know a bit about USB networking, use it every day for testing. In actual fact, you can use any legitimate private network class addresses. It just seems that 192.168.2.1 / 2 and 192.168.2.14 / 15 are the most commonly documented pairs used for USB networking. I agree, they should be merged, makes it less confusing to the less experienced. Ian - Original Message From: Dave Neary [EMAIL PROTECTED] To: Ian Key [EMAIL PROTECTED] Cc: maemo-developers@maemo.org maemo-developers@maemo.org; Maemo Users [EMAIL PROTECTED] Sent: Tuesday, 1 July, 2008 10:54:03 AM Subject: Re: Wiki page of the day: USB networking and USB networking with Debian Hi Ian, They may look good, but they need some cleaning up, and IMHO should be merged, and the inconsistencies such as the one you mention should be removed. In fact, it doesn't matter whether you use .14 and .15 or .1 and .2 (or .3 or .4 or...). Cheers, Dave. Ian Key wrote: Hi, These pages look good, just a quick query about them. The USB with Debian uses IP address 192.168.2.1 and 2, but the USB networking page talks about 192.168.2.14 and 15. Should these use the same IP addresses? Ian - Original Message From: Dave Neary [EMAIL PROTECTED] To: maemo-developers@maemo.org maemo-developers@maemo.org; Maemo Users [EMAIL PROTECTED] Sent: Tuesday, 1 July, 2008 8:16:23 AM Subject: Wiki page of the day: USB networking and USB networking with Debian Morning all, I obviously underestimated the insatiable desire of the maemo.org community! Root access is done dusted, in no time at all. Many thanks to all those who contributed their time to improve the article. So today, we have a twofer - two articles which should in all likelihood be merged, and which have the potential to be very useful: * USB networking: https://wiki.maemo.org/USB_networking * USB networking with Debian: https://wiki.maemo.org/USB_Networking_with_Debian Thanks again for your help! Cheers, Dave. -- maemo.org docsmaster Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ maemo-users mailing list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] https://lists.maemo.org/mailman/listinfo/maemo-users Not happy with your email address? Get the one you really want http://uk.docs.yahoo.com/ymail/new.html - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- maemo.org docsmaster Email: [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Program works fine in Scratchbox Chinook but does not work in Nokia N800
Hi, That's the error you get if it was compiled for x86 architecture and running on the ARM. You need the Scratchbox toolchain with the ARMEL toolchain (glibc2.5-armel). Ian - Original Message From: Dinh Khac Thanh [EMAIL PROTECTED] To: maemo-developers@maemo.org Sent: Friday, 23 May, 2008 9:15:14 AM Subject: Program works fine in Scratchbox Chinook but does not work in Nokia N800 Hi everyone, I wrote a simple program in Scratchbox using Hildon and Gtkmm library (on Ubuntu 7.10). Everything worked fine in Scratchbox but after I transferred the executable to N800 and tried to run it, this error message appeared: Line 1: syntax error: ( unexpected Anyone has any idea why it doesn't work? Thank you very much in advance. -- Dinh Khac Thanh Computer Engineering student National University of Singapore __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Fwd: Program works fine in Scratchbox Chinook but does not work in Nokia N800
Hi, You will need to modify the target for the following : Compiler: cs2005q3.2-glibc2.5-arm Devkits: debian-sarge cputransp doctools maemo3-tools perl maemo3-debian CPU-transparency: /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.2-sb2 If you have no transparancy methods, then use Synaptic Package manager, do a serach for scratchbox and install the scratchbox-devkit-cputransp package. Ian - Original Message From: Dinh Khac Thanh [EMAIL PROTECTED] To: maemo-developers@maemo.org Sent: Friday, 23 May, 2008 10:39:40 AM Subject: Fwd: Program works fine in Scratchbox Chinook but does not work in Nokia N800 Hi, Thank you for your reply. I tried switching to ARM with the cs2005q3.2-glibc2.5-arm toolchain but then when I compiled again, I got this error (in Ubuntu): /scratchbox/tools/bin/misc_runner: SBOX_CPUTRANSPARENCY_METHOD not set When I ran sb-menu I did not see any transparency method except 'none'. Do I need to reinstall Scratchbox? I think some transparency methods is missing somehow. Regards, Thanh On Fri, May 23, 2008 at 4:25 PM, Ian Key [EMAIL PROTECTED] wrote: Hi, That's the error you get if it was compiled for x86 architecture and running on the ARM. You need the Scratchbox toolchain with the ARMEL toolchain (glibc2.5-armel). Ian - Original Message From: Dinh Khac Thanh [EMAIL PROTECTED] To: maemo-developers@maemo.org Sent: Friday, 23 May, 2008 9:15:14 AM Subject: Program works fine in Scratchbox Chinook but does not work in Nokia N800 Hi everyone, I wrote a simple program in Scratchbox using Hildon and Gtkmm library (on Ubuntu 7.10). Everything worked fine in Scratchbox but after I transferred the executable to N800 and tried to run it, this error message appeared: Line 1: syntax error: ( unexpected Anyone has any idea why it doesn't work? Thank you very much in advance. -- Dinh Khac Thanh Computer Engineering student National University of Singapore Sent from Yahoo! Mail. A Smarter Email. -- Dinh Khac Thanh Computer Engineering student National University of Singapore -- Dinh Khac Thanh Computer Engineering student National University of Singapore __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
OpenEmbedded
Following on from the How to detect Maemo for building..., Marcin Juszkiewicz specifies OE for package building. Using, say, Chinook SDK has anyone used OE to build a complete rootfs and flash on device or use the MMC? If so, what BitBake configurations were used (I notice there are some N800 .bb files present). What toolchain is used for the compilation? I'm new to OE and fairly new to Linux development, have been using Scratchbox for as long as I've done Linux devel (which isn't long), so any help is appreciated. Ian __ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: OpenEmbedded
Thanks for the response Marcin :) Toolchains and environments are a nightmare. Scratchbox is good, but I find it hard to know how to set up new environments, for example, the NSLU2/Slug (and that's without the different variants of the Slug images!!!). I see OE has various Slug types and I am still trying to get bootstrap-image to compile properly for a slug :( If I can do N8x0 on OE instead of Scratchbox, it makes maintenance musch easier :) I will check out Poky as well Ian - Original Message From: Marcin Juszkiewicz [EMAIL PROTECTED] To: maemo-developers@maemo.org Sent: Thursday, 21 February, 2008 12:21:33 PM Subject: Re: OpenEmbedded Dnia Thursday, 21 of February 2008, Ian Key napisaĆ: Following on from the How to detect Maemo for building..., Marcin Juszkiewicz specifies OE for package building. Using, say, Chinook SDK has anyone used OE to build a complete rootfs and flash on device or use the MMC? OpenEmbedded use 'chinook-compat' distro configuration to build packages compatible with OS2008. It is not used to build whole rootfs. I do not remember does OE already has kernel from OS2008 or not - if not then I will add it soon. This kernel it is present in Poky which is derivated from OE and used by OpenedHand. You can run Poky on any Nokia tablet - we (I work for OH) provide rootfs + kernel on http://pokylinux.org/ website (look into autobuilder output). If so, what BitBake configurations were used (I notice there are some N800 .bb files present). MACHINE=nokia800 supports N800 and N810. What toolchain is used for the compilation? CSL 3.4.4 - same as in Chinook SDK but built from source instead of using binaries. I'm new to OE and fairly new to Linux development, have been using Scratchbox for as long as I've done Linux devel (which isn't long), so any help is appreciated. Grab OE, setup and then set DISTRO=chinook-compat MACHINE=nokia800 and try to build software. -- JID: hrw-jabber.org OpenEmbedded developer/consultant BSD is for people who love Unix. Linux is for people who hate Microsoft. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers __ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.html___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Threads
Hi, I'm relatively new to this and looking to use threads. I have included pthread.h and using the cs2005q3.2-glibc2.5-arm toolchain. The following code won't compile, I get the following error: main.o: In function `main':/home/ikey/bob/fred/main.c:679: undefined reference to `pthread_create' :/home/ikey/bob/fred/main.c:680: undefined reference to `pthread_create' :/home/ikey/bob/fred/main.c:683: undefined reference to `pthread_join' :/home/ikey/bob/fred/main.c:684: undefined reference to `pthread_join' collect2: ld returned 1 exit status make: *** [bob] Error 1 // threads #include pthread.h #include sys/stat.h int main(int argc, char *argv[]) { // thread stuff pthread_t ctrl_t ; pthread_t supv_t ; ... ... ... /* Create resources and threads */ pthread_mutex_init (mutex, NULL); pthread_cond_init (cond, NULL); err = pthread_create (ctrl_t, NULL, ctrl_loop, r1) ; err = pthread_create (supv_t, NULL, supv_loop, r2) ; /* Wait for both threads to finish */ pthread_join (ctrl_t, NULL) ; pthread_join (supv_t, NULL) ; } Have I done anything stupid? Can you not do this with N800, if not, how do you do threads? Ian __ Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Threads
You're a star :) And I'm forgetful!!! Thanks - Original Message From: Binary Chen [EMAIL PROTECTED] To: Ian Key [EMAIL PROTECTED] Cc: maemo-developers@maemo.org Sent: Thursday, 6 December, 2007 10:52:38 AM Subject: Re: Threads On Thu, 2007-12-06 at 02:48 -0800, Ian Key wrote: (18:48 CST) Hi, I'm relatively new to this and looking to use threads. I have included pthread.h and using the cs2005q3.2-glibc2.5-arm toolchain. The following code won't compile, I get the following error: main.o: In function `main':/home/ikey/bob/fred/main.c:679: undefined reference to `pthread_create' :/home/ikey/bob/fred/main.c:680: undefined reference to `pthread_create' :/home/ikey/bob/fred/main.c:683: undefin You must link you program with -lpthread. __ Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers