 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > Mac/Linux/Windows IDE - Ver 0.18.4 - The "Who'll stop the rain?" release | Forum Quick Jump
|
           |  jazzed Registered Member
        Date Joined Jan 2008 Total Posts : 2348 | Posted 10/21/2009 4:37 PM (GMT -8) |   | | I've used BST with Hardy Heron (8.04) no problem. | | Back to Top | | |
 |  BradC Gronk

       Date Joined Jul 2007 Total Posts : 1996 | Posted 10/24/2009 12:11 AM (GMT -8) |   | Peter Jakacki said... Brad,
Something that has been bothering me about this whole Ubuntu serial port thing. It seems if I open the BST terminal that it doesn't work. Sure, if I say reset I can see that the target has been reset so the port is connected ok but I do not receive any serial traffic from my menu system on the target. Now if I open GtkTERM I can communicate with it fine and I can also toggle the DTR and reset the Prop etc. So Ubuntu seems to be behaving fine, but not with BST. BST seems to behave fine with SimplyMEPIS and other platforms, but BST and Ubuntu don't seem to like each other.
Ok, here's the deal. I've just spent about 4 hours working on this bug and I now know precisely what the issues are. As a side effect, I also found the bug heater was seeing with the kernel oops.
Peter, your bug is with the Ubuntu kernel. It was broken in the very early .31-rc process (months ago) and the fix only went into 2.6.31.5 on the 17th of Oct. The last Ubuntu kernel update was on the 16th, so the bug is still in the Ubuntu kernels. The bug does not manifest itself if you open the serial port with the O_NONBLOCK flag set (which is what minicom and gtkterm do). I, on the other hand, open the port without that flag. Ordinarily you can open the port without the O_NONBLOCK flag and then fcntl() the port to set the O_NONBLOCK flag afterwards. In this particular instance, this does not work around the bug. I found I could work around it by changing the serial code to open the port O_NONBLOCK, but that then has the knock on effect of me having to completely re-work some of the serial timing handling. I'd much rather just wait for the new kernels to flow upstream. The current broken behaviour is not consistent and occasionally it will let data though, which might explain why you occasionally saw it work.
Heater, your bug was present until about the 2.6.30 kernel and involves a bad refcount on the port. If the ftdi hardware goes away while it's still open, the kernel can oops. Prior to the latest -Pre of bst, if the port actually went away in that fashion (due to a kernel oops) bst would try and close the non-existent port and would crash. I've fixed it in bst, but if you are still using an older kernel and you have a flaky usb cable you might still see the odd kernel oops. lt's not particularly silly, is it? | | Back to Top | | |
 |  Andrey Demenev Registered Member
        Date Joined Oct 2009 Total Posts : 45 | Posted 10/27/2009 3:18 AM (GMT -8) |   | Brad, thanks for this excellent tool! I use it under Debian 5 - works just fine. Actually, I am mostly interested in command-line tool, since I use VIM for all my code editing. I setup a makefile for project, and just call make from VIM. But there is a small problem that makes this style of work annoying - VIM cannot interpret the messages bstc writes to stdout. Even if the compilation is successfull, VIM interprets the messages as errors, resulting in opening a blank file. For example, seeing this:
Compiled for i386 Linux at 09:14:50 on 2009/05/08 VIM thinks there is an error in file named "Compiled for i386 Linux" :)
Is it possible to make bstc to output nothing on successfull compilation, and report warnings and errors in same format as GCC does? By default, this mode would be off, and turned on with a command-line switch. | | Back to Top | | |
 |  BradC Gronk

       Date Joined Jul 2007 Total Posts : 1996 | Posted 10/27/2009 6:12 AM (GMT -8) |   | Andrey Demenev said...Brad, thanks for this excellent tool! I use it under Debian 5 - works just fine. Actually, I am mostly interested in command-line tool, since I use VIM for all my code editing. I setup a makefile for project, and just call make from VIM. But there is a small problem that makes this style of work annoying - VIM cannot interpret the messages bstc writes to stdout. Even if the compilation is successfull, VIM interprets the messages as errors, resulting in opening a blank file. For example, seeing this: Compiled for i386 Linux at 09:14:50 on 2009/05/08 VIM thinks there is an error in file named "Compiled for i386 Linux" :)
I use and love vim, but I'm a firm believer in "the right tool for the right job" and apparently vim is just too inflexible to interpret a sane output. I can't believe it relies on stdout to determine an error status. That's what result codes were made for. Maybe you should switch to Emacs ;)
If you send me a good example of precisely the format gcc outputs that vim is going to sanely interpret I'll try to get something working for you.
Even better, in addition to that, send me a test project with all the vim automation I can test with locally here and I'll make sure it works properly too :)
I use Ubuntu 8.04 on my desktop and laptop, and whatever the current Debian stable is on my servers. I do test all the tools on i386 and x86_64 Debian before I release them. I used Debian exclusively on my desktops until Ubuntu 6.06 was released (I used to just use Windowmaker and heaps of automation) but after trying Ubuntu and having Gnome pretty much just work for me, I've kinda stuck with that on my daily drivers. My TV box still uses Debian and WindowMaker, but it PXE boots with an NFS root. Nice to keep it small and fast. lt's not particularly silly, is it? | | Back to Top | | |
           | 1111 posts in this thread. Viewing Page : | | Forum Information | Currently it is Monday, February 08, 2010 6:11 PM (GMT -8) There are a total of 415,872 posts in 57,629 threads. In the last 3 days there were 78 new threads and 858 reply posts. View Active Threads
| | Who's Online | This forum has 18513 registered members. Please welcome our newest member, SEL. 56 Guest(s), 11 Registered Member(s) are currently online. Details Peter Jakacki, W9GFO, Bob Lawrence (VE1RLL), Computer Geek 101, tonyp12, Harley, Jimm2, ciamo, Bane, Peter KG6LSE, atlstang |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|