From: Stucker, B. M <bri...@uk...> - 2008-11-18 16:52:53
|
Dave Are you then running everything from the command line interface then? What do i need to have downloaded besides gcc and winavr to run this from the command line on a windows xp box. If this is not able to work on windows xp as you have described i also have ubuntu installed on another machine. But to sum up, if i stick with how the folders are layed out now then i just have to type make from within the folder i want to build the hex file. So if i want to create a new project i create a new folder and my files, then create a makefile as you have done for the simple-flasher program and that should work? Thankyou, Brian Sent from my AT&T Windows Mobile phone. -----Original Message----- From: Dave Hylands <dhy...@gm...> Sent: Tuesday, November 18, 2008 11:11 AM To: General mailing list for gumstix users. <gum...@li...> Subject: Re: [Gumstix-users] Programing Robostix Hi Brian, On Mon, Nov 17, 2008 at 10:37 PM, Stucker, Brian M <bri...@uk...> wrote: > I see what you mean in the makefile for the included simple-flasher folder, but within avrstudio the makefile is automatically created. So are you saying that avrstudio might not be making the makefile correctly? I don't want to have to use gcc to manually compile every time I code, that's what I thought the benefit was to use avrstudio. Below is the contents of the makefile that avrstudio generated. To build, I just cd into the directory Flash-LED and type make The Makefile that you created for avrstudio only has a single file in it. To build the Flash-LED sample, you'll need all of the following files: robostix/Common/a2d_8.c robostix/Common/Delay.c robostix/Common/Timer.c robostix/Common/UART.c robostix/Flash-LED/Hardware.c robostix/Flash-LED/Flash-LED.c I've never built anything using avr studio, so I'm not sure if that's enough or not. The Makefile system that's included in the robostix tree is already complete and works, so you may want to try that first. Sometimes, files will need particular options. make v=1 will cause the complete command line for each program which is executed (ie compiler, linker) to be displayed. make clean is normally not required, but it will remove all generated files. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: AndrzejB <an...@bo...> - 2008-11-20 21:18:07
|
Hi Brian, To use AVR Studio (or other IDEs like Code::Blocks) you will have to have WinAVR installed, I assume that you already have that installed. In AVR Studio start a new project and choose AVR GCC. 2. Select project directory, in my case c:\AVR\robostix\Flash-LED\ 3. Choose processor, Atmega128 4. Add all .c and .h files - right click on the project tree, in my case Flash-LED(default) and choose and choose "Add Existing File(s)". - make sure to add all the files that appear in the Makefile At this point if you try to compile you will likely get errors like ../Flash-LED.c:39: error: 'UART0_GetCharStdio' undeclared (first use in this function) etc 5. Under project tree, right click on Other Files and select "Edit configuration options". This will bring up pretty busy dialog box 6. Click on to the Include Directories icon on the left side of the screen and add Common and Shared directories (the add icon is located on the upper right corner). Note you will also have to add the directory where your project is stored or you will get this error: D:\AVR\robostix\Flash-LED\..\Common/a2d.h:29:20: error: Config.h: No such file or directory This should compile your AVR code. Hope this helps. Andrzej Dave Hylands wrote: > > Hi Brian, > > On Mon, Nov 17, 2008 at 10:37 PM, Stucker, Brian M > <bri...@uk...> wrote: >> I see what you mean in the makefile for the included simple-flasher >> folder, but within avrstudio the makefile is automatically created. So >> are you saying that avrstudio might not be making the makefile correctly? >> I don't want to have to use gcc to manually compile every time I code, >> that's what I thought the benefit was to use avrstudio. Below is the >> contents of the makefile that avrstudio generated. > > To build, I just cd into the directory Flash-LED and type > > make > > The Makefile that you created for avrstudio only has a single file in > it. To build the Flash-LED sample, you'll need all of the following > files: > > robostix/Common/a2d_8.c > robostix/Common/Delay.c > robostix/Common/Timer.c > robostix/Common/UART.c > robostix/Flash-LED/Hardware.c > robostix/Flash-LED/Flash-LED.c > > I've never built anything using avr studio, so I'm not sure if that's > enough or not. The Makefile system that's included in the robostix > tree is already complete and works, so you may want to try that first. > Sometimes, files will need particular options. > > make v=1 > > will cause the complete command line for each program which is > executed (ie compiler, linker) to be displayed. > > make clean > > is normally not required, but it will remove all generated files. > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Programing-Robostix-tp20546864p20565227.html Sent from the Gumstix mailing list archive at Nabble.com. |
From: Dave H. <dhy...@gm...> - 2008-11-18 18:18:21
|
Hi Brian, > Are you then running everything from the command line interface then? What do i need to have downloaded besides gcc and winavr to run this from the command line on a windows xp box. If this is not able to work on windows xp as you have described i also have ubuntu installed on another machine. Yep this works fine from the windows command line. I use XP and/or Vista, or ubuntu linux for that matter. I happen to use cygwin, but I've tested this from the cmd.exe command line as well. My make system requires make version 3.81, but the newer versions of WinAVR come with that version. Make sure that c:\WinAVR-20080610\bin and c:\WinAVR-20080610\utils\bin are both listed in the PATH (the WinAVR-20080610 portion may change depending on the version of WinAVR you have installed). > But to sum up, if i stick with how the folders are layed out now then i just have to type make from within the folder i want to build the hex file. So if i want to create a new project i create a new folder and my files, then create a makefile as you have done for the simple-flasher program and that should work? Pretty much. You can look at the Makefiles for all of the other projects and you'll see that they're all pretty similar. I generally just retrieve the entire robostix tree using the following svn command: svn co http://svn.gumstix.com/gumstix-buildroot/branches/projects/robostix robostix If you're building with buildroot, then the robostix directory should be in the same directory as gumstix-buildroot. Things that you'll want from an old project are the Hardware.h, Hardware.c and Config.h files. I generally pick a project that's similar to what I'm doing. What's important is to make sure that your project directory is in the robostix directory. The Common and Shared directories are automatically searched for header files and source files. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |
From: David W. <dw...@da...> - 2008-11-18 19:05:25
|
Hi Dave, svn is asking for username and password. The instructions on the Robostix Samples page do not mention this. Do I need to register on the old site to do this or is there a common logon? David Warman Computer Systems Architect dw...@da... http://www.davidwarman.net http://www.linkedin.com/in/davidjwarman P: 206-780-9963 M: 206-407-7050 F: 206-842-4958 Skype: david.warman On Nov 18, 2008, at 10:18 AM, Dave Hylands wrote: > > I generally just retrieve the entire robostix tree using the following > svn command: > svn co http://svn.gumstix.com/gumstix-buildroot/branches/projects/ > robostix > robostix |
From: Dave H. <dhy...@gm...> - 2008-11-18 19:56:08
|
Hi David, On Tue, Nov 18, 2008 at 11:05 AM, David Warman <dw...@da...> wrote: > Hi Dave, > svn is asking for username and password. The instructions on the Robostix > Samples page do not mention this. Do I need to register on the old site to > do this or is there a common logon? It used to work with no username password. I seem to recall that using root and root works. If not, the other one is gumstix and gumstix, although I think that this was for websvn. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |
From: David W. <dw...@da...> - 2008-11-18 20:04:24
|
Dave, Thanks, root did it. I was not expecting to use root on a remote system. Might that not present a security hole?More so than no password? David Warman Computer Systems Architect dw...@da... http://www.davidwarman.net http://www.linkedin.com/in/davidjwarman P: 206-780-9963 M: 206-407-7050 F: 206-842-4958 Skype: david.warman On Nov 18, 2008, at 11:54 AM, Dave Hylands wrote: > Hi David, > > On Tue, Nov 18, 2008 at 11:05 AM, David Warman > <dw...@da...> wrote: >> Hi Dave, >> svn is asking for username and password. The instructions on the >> Robostix >> Samples page do not mention this. Do I need to register on the old >> site to >> do this or is there a common logon? > > It used to work with no username password. I seem to recall that using > root and root works. If not, the other one is gumstix and gumstix, > although I think that this was for websvn. > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2008-11-18 20:11:15
|
Hi David, > Thanks, root did it. I was not expecting to use root on a remote system. > Might that not present a security hole?More so than no password? I don't know. The people at gumstix have been aware of this for quite a while, but nothing has been done. I'm not sure if the root user has commit privledges or not (that would be bad). It started happening after one of the "outages" when something went bad with the servers, and things never quite got recovered properly. The way it used to be setup, you didn't need a password to retrieve the contents, only to commit. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |
From: David W. <dw...@da...> - 2008-11-18 21:02:33
|
Being a new user, I have the OE tree under gumstix-oe/. I svn'd the robostix tree into robostix/ beside gumstix-oe. In robostix, make built all the sample code modules without error. However, make in robostix/gumstix/ failed because that is expecting a buildroot environment. How do I get the gumstix side built and installed under OE? What is different? Note: I am booting from SD card rather than from the gumstix flash. This way I always have the built-in as a fall-back and do not brick my gumstix if there is a filesys corruption problem. The rootfs on the card has been added to using ipkg and modifying some /etc config files. This brings up another issue: rootfs management. Which breaks down into several questions (sorry, especially about the dumb ones) about tool chain and workflow: 1:once I have a rootfs on the card, which I then enhance by using ipkg to add stuff, am I then prohibited from using bitbake on the devsys or else lose all the ipkg additions and config file changes? 2:What is the equivalent to ipkg if I stay on the devsys side? 3:How do I change the bitbake image configuration to include or exclude modules? On other systems I used something like 'make menuconfig'. What is the equivalent and in which directory do I run it? 4:Is there a rootfs merge utility? Currently I keep a log of ipkg and /etc changes and re-do them manually if I reflash the card or set up another system. Laborious. 5:Can I run gcc effectively on the gumstix for my custom code? or avr- gcc? 6: I see there are some u-boot changes. Can I just add them to the card uboot script? Then I would have one card for LCD and one for Robostix use and not have to pre-commit the gumstix itself to one or the other. (I could probably figure this one out for myself :) Thanks for your help on this, David Warman Computer Systems Architect dw...@da... http://www.davidwarman.net http://www.linkedin.com/in/davidjwarman P: 206-780-9963 M: 206-407-7050 F: 206-842-4958 Skype: david.warman On Nov 18, 2008, at 10:18 AM, Dave Hylands wrote: > Hi Brian, > >> Are you then running everything from the command line interface >> then? What do i need to have downloaded besides gcc and winavr to >> run this from the command line on a windows xp box. If this is >> not able to work on windows xp as you have described i also have >> ubuntu installed on another machine. > > Yep this works fine from the windows command line. I use XP and/or > Vista, or ubuntu linux for that matter. > > I happen to use cygwin, but I've tested this from the cmd.exe command > line as well. My make system requires make version 3.81, but the newer > versions of WinAVR come with that version. > > Make sure that c:\WinAVR-20080610\bin and c:\WinAVR-20080610\utils\bin > are both listed in the PATH (the WinAVR-20080610 portion may change > depending on the version of WinAVR you have installed). > >> But to sum up, if i stick with how the folders are layed out now >> then i just have to type make from within the folder i want to >> build the hex file. So if i want to create a new project i create >> a new folder and my files, then create a makefile as you have done >> for the simple-flasher program and that should work? > > Pretty much. You can look at the Makefiles for all of the other > projects and you'll see that they're all pretty similar. > > I generally just retrieve the entire robostix tree using the following > svn command: > svn co http://svn.gumstix.com/gumstix-buildroot/branches/projects/ > robostix > robostix > > If you're building with buildroot, then the robostix directory should > be in the same directory as gumstix-buildroot. > > Things that you'll want from an old project are the Hardware.h, > Hardware.c and Config.h files. I generally pick a project that's > similar to what I'm doing. > > What's important is to make sure that your project directory is in the > robostix directory. The Common and Shared directories are > automatically searched for header files and source files. > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2008-11-18 22:44:36
|
Hi David, On Tue, Nov 18, 2008 at 1:02 PM, David Warman <dw...@da...> wrote: > Being a new user, I have the OE tree under gumstix-oe/. I svn'd the robostix > tree into robostix/ beside gumstix-oe. In robostix, make built all the > sample code modules without error. However, make in robostix/gumstix/ failed > because that is expecting a buildroot environment. How do I get the gumstix > side built and installed under OE? What is different? I'm not sure, since I still haven't had time to play with OE. I'd do a search on the OE tree to see if the source files are already there. They might be since there are packages available. I don't know the answers to most of your questions, so I've snipped them. > 6: I see there are some u-boot changes. Can I just add them to the card > uboot script? Then I would have one card for LCD and one for Robostix use > and not have to pre-commit the gumstix itself to one or the other. (I could > probably figure this one out for myself :) Sounds reasonable to me. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |