Re: [uClinux-dev] Problems loading uClinux from some 2GB SD cards
Microbit_Ubuntu wrote: My problem is not with the SD card quality, but, with the way they have been partitioned. Linux/dumpe2fs showed that the bootable [Fedora-2.6.15] 2GB SD cards had inode_size = 128, whereas the delinquent [Ubuntu-2.6.27] SD cards had inode_size = 256. Adding a -I 128 switch to mkfs.ext3 in the script that prepares and loads the SD cards solved the problem. That is, our SBCs can now boot from Ubuntu prepared SD cards. However, this brings up the point that, somewhere along the line, the default inode_size for SD cards is no longer 128 bytes. It could be double, quadruple or more. There is some suspicious code in the U-Boot ext2fs.c/ext2fs_read_inode(): inodes_per_block = EXT2_BLOCK_SIZE (data) / 128; However, when this was replaced by inodes_per_block = EXT2_BLOCK_SIZE (data) / INODE_SIZE(data); ..the 2GB/128 byte inode SD cards booted and the 2GB/256 byte inode SD cards didn't. Obviously there is something else at play which eludes me. I have posted on the http://www.denx.de/wiki/U-Boot mailing list, in the hopes they can shed some light on the subject. I shall keep you informed if there is any progress. Bfn, Bob Furber Hi Bob, On Sun, 2009-08-09 at 17:22 -0700, Bob Furber wrote: I am not sure where to turn on this baffling problem. It seems that ext2fs partition layout or information on 2GB SD cards has changed over time. I have been using an old Fedora Linux PC (Fedora Core 2.6.15) to partition SD cards and load uClinux onto them and our SBCs are quite happy booting uClinux from these cards; even 2GB SD cards. The problem started when we started using a new Ubuntu LinuxPC (2.6.27). Our SBCs are quite happy booting uClinux from these cards ..EXCEPT for 2GB SD cards. A SD card partitioned on the old Fedora Linux PC is unreadable on the new UbuntuPC A SD card partitioned on the UbuntuPC is READABLE on the old Fedora Linux PC Our SBCs cannot find /boot/linix.bin on a 2GB SD card prepared (partitioned loaded with uClinux) on the new UbuntuPC Our SBCs CAN find /boot/linix.bin on a 256MB SD card prepared on the new UbuntuPC Our SBCs CAN find /boot/linix.bin on a 2GB SD card prepared on the old Fedora Linux PC And, yes, the same scripts are used on both Linux PCs and we have taken into account the csd.rd_bl_len kludge used by 2GB SD cards to represent the greater capacity. This is why 2GB SD cards loaded on our old Fedora Linux PC happily boot on our PCs. The SBCs use a modified dBUG monitor to boot uClinux from an SD card. The modifications to dBUG were carried out in 2005 and consisted of adding some SD card APIs and files lifted from U-boot and massaged: cmd_ext2.c, ext2fs.c, dev.c, part.c part_dos.c. Has anyone come across this problem? Thanks, Bob Furber ___ 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 I can't really give any specific help other than what you already tried, but I have been in a similar situation. I got some Olin 2 GB cards a little while ago and existing firmware I had running (using SPI) totally refused to run properly. Like you, I allowed the hack on the block length in CSD. My good old trusty card reader doesn't like the cards either. I spent a bit of time stepping around further in my code but I never pinned it down as to where these 2 GB cards went to lala land. I gave up I must say... too irritating. A look at the card vendor's URL revealed they expect the consumer to buy their card reader products, which of course is a joke. The last I checked, the consensus is/was that the 2 GB cards arena is a big mess. Apparently, more don't work than ones that actually do Seemed to me might as well move to HC... ? I certainly appreciate/sympathise - I found it very irritating to say the least : These cards are sold with the SD spec logo - but they don't __comply__ !!! ___ 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] Problems loading uClinux from some 2GB SD cards
I am not sure where to turn on this baffling problem. It seems that ext2fs partition layout or information on 2GB SD cards has changed over time. I have been using an old Fedora Linux PC (Fedora Core 2.6.15) to partition SD cards and load uClinux onto them and our SBCs are quite happy booting uClinux from these cards; even 2GB SD cards. The problem started when we started using a new Ubuntu LinuxPC (2.6.27). Our SBCs are quite happy booting uClinux from these cards ..EXCEPT for 2GB SD cards. A SD card partitioned on the old Fedora Linux PC is unreadable on the new UbuntuPC A SD card partitioned on the UbuntuPC is READABLE on the old Fedora Linux PC Our SBCs cannot find /boot/linix.bin on a 2GB SD card prepared (partitioned loaded with uClinux) on the new UbuntuPC Our SBCs CAN find /boot/linix.bin on a 256MB SD card prepared on the new UbuntuPC Our SBCs CAN find /boot/linix.bin on a 2GB SD card prepared on the old Fedora Linux PC And, yes, the same scripts are used on both Linux PCs and we have taken into account the csd.rd_bl_len kludge used by 2GB SD cards to represent the greater capacity. This is why 2GB SD cards loaded on our old Fedora Linux PC happily boot on our PCs. The SBCs use a modified dBUG monitor to boot uClinux from an SD card. The modifications to dBUG were carried out in 2005 and consisted of adding some SD card APIs and files lifted from U-boot and massaged: cmd_ext2.c, ext2fs.c, dev.c, part.c part_dos.c. Has anyone come across this problem? Thanks, Bob Furber ___ 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] SD card corruption upon reboot and de-power
Bobby Clark wrote: Did a little bit more checking. The smallest block size appears to be 512 bytes. The more common block size is 1024 bytes to 2048 bytes for the larger cards. While they may exist, I have not yet encountered a SD card with a block length 512 bytes. A 2GB SD card is accessed 512 bytes at a time even though the block length is stated as 1024 bytes as a hack to calculate the total number of bytes. The spec for SDHC cards is a fixed block length = 512 bytes: Simplified physical layer specification http://www.sdcard.org/developers/tech/sdcard/pls/Simplified_Physical_Layer_Spec.pdf (http://www.sdcard.org/developers/tech/sdcard/pls/Simplified_Physical_Layer_Spec.pdf) pg 41: In High Capacity Cards, the 32-bit argument of memory access commands uses the memory address in block address format. Block length is fixed to 512 bytes,.. Keep in ming that it is getting increasingly difficult to purchase SC cards that are smaller than 2GB. Tomorrow it will be difficult to purchase SD cards that are smaller than 4GB. So we may want to think about getting used to SDHC cards. Bob Furber ___ 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] SD card corruption upon reboot and de-power
Tom, My SD card is getting corrupted after issuing the reboot command and de-powering the board. And I must de-power the board to save power. Here is the sequence: 1) From uClinux, issue reboot command 2) Exits uClinux and enters to DEBUG prompt 3) De-power entire board. Not every time, but sometimes the SD card is getting corrupted from this. Does anyone have any advice or know of a better method? Would it be better just to 'umount' the drive, and then de-power, skipping the reboot step? Steve Bennett implemented a uClinux 'poweroff' command that turns the power off on a WildFire board with the RTC option (and no short across the Wakeup pads). It appears to do quite a bit of background work before turning off the power. Perhaps it closes any open files, etc..? Bfn, Bob Furber Thanks, Tom ___ 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 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] trouble with getty and stty
Erwin, it looks like you have symlinks from getty and stty to busybox, but those apps aren't included in your busybox configuration. I built the uClinux image for Tom by first enabling getty and stty through make xconfig - Customize Vendor/User Settings - BusyBox. This is how we have enabled other BusyBox services in the past. Could there be problems with these BB services? Thanks, Bob Furber -Erwin Am Sonntag, den 15.03.2009, 13:29 -0500 schrieb Tom Stalcup: Hello, I'm having trouble with getty and stty. Basically, I need to have the uClinux board boot up at a specific baud rate for the Console (ttyS0). On the Atmel NGW100, the following code in our /etc/inittab file worked (changed to 9600 baud after booting): ttyS0::respawn:/sbin/getty -L 9600 ttyS0 But now on a different board, I'm getting an 'L: applet not found' error. An when I remove 'L', I get the error '9600: applet not found'. Also having the same problem with stty. Does anyone recognize the problem? Thank you, Tom -- Tom Stalcup Upward Innovations Inc. www.UpwardInnovations.com Phone: (877) 943-4328 ext. 701 Fax: (508) 495-0956 ___ 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 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] trouble with getty and stty
Bob Furber wrote: H # busybox BusyBox v1.00 (2007.08.01-18:03+) multi-call binary Usage: busybox [function] [arguments]... or: [function] [arguments]... BusyBox is a multi-call binary that combines many common Unix utilities into a single executable. Most people will create a link to busybox for each function they wish to use, and BusyBox will act like whatever it was invoked as. Currently defined functions: [, basename, busybox, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, date, dd, df, dirname, du, echo, env, expr, false, find, free, ftpget, ftpput, getopt, grep, halt, head, hostname, hwclock, id, ifconfig, insmod, kill, ln, ls, lsmod, mkdir, mknod, mktemp, modprobe, more, mount, msh, mv, passwd, ping, poweroff, printf, ps, pwd, reboot, rm, rmdir, rmmod, route, sed, sh, sleep, stty, sync, tail, tee, test, time, top, touch, traceroute, true, tty, umount, vi, wget, whoami Obviously getty and stty did not take. I will have to do a little digging around. Bfn, Bob Furber Erwin, it looks like you have symlinks from getty and stty to busybox, but those apps aren't included in your busybox configuration. I built the uClinux image for Tom by first enabling getty and stty through make xconfig - Customize Vendor/User Settings - BusyBox. This is how we have enabled other BusyBox services in the past. Could there be problems with these BB services? Thanks, Bob Furber -Erwin Am Sonntag, den 15.03.2009, 13:29 -0500 schrieb Tom Stalcup: Hello, I'm having trouble with getty and stty. Basically, I need to have the uClinux board boot up at a specific baud rate for the Console (ttyS0). On the Atmel NGW100, the following code in our /etc/inittab file worked (changed to 9600 baud after booting): ttyS0::respawn:/sbin/getty -L 9600 ttyS0 But now on a different board, I'm getting an 'L: applet not found' error. An when I remove 'L', I get the error '9600: applet not found'. Also having the same problem with stty. Does anyone recognize the problem? Thank you, Tom -- Tom Stalcup Upward Innovations Inc. www.UpwardInnovations.com Phone: (877) 943-4328 ext. 701 Fax: (508) 495-0956 ___ 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 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 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] trouble with getty and stty
Gavin Steve, Thanks! Bob Furber Quoth Bob Furber: Currently defined functions: [, basename, busybox, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, date, dd, df, dirname, du, echo, env, expr, false, find, free, ftpget, ftpput, getopt, grep, halt, head, hostname, hwclock, id, ifconfig, insmod, kill, ln, ls, lsmod, mkdir, mknod, mktemp, modprobe, more, mount, msh, mv, passwd, ping, poweroff, printf, ps, pwd, reboot, rm, rmdir, rmmod, route, sed, sh, sleep, stty, sync, tail, tee, test, time, top, touch, traceroute, true, tty, umount, vi, wget, whoami Obviously getty and stty did not take. I will have to do a little digging around. When you change the BusyBox config, often you need to do a clean rebuild before it'll notice that it needs to build new applets into it. That's probably your problem. ___ 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 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] uCLinux and RTAI
Brendon, I am looking at various realtime linux solutions for use in a personal embedded application. I understand that uCLinux is not a RTOS, but I have read posts on the Internet talking about using RATI with uCLinux. In particular I am looking at the Microblaze and Blackfin architectures. I have not found any concrete answers. Is it possible to use RTAI and/or LXRT with uCLinux on these architectures (or any other architectures for that matter)? My understanding is that there are some licensing problems that halted RTAI use. These and other RTAI problems have been addressed by Xenomai (www.*xenomai*.org). There is also Xenomai support for the Blackfin (http://osdir.com/ml/linux.real-time.xenomai.devel/2007-10/msg00114.html). Bfn, Bob Furber ___ 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] uCLinux and RTAI
Brendon, Is there any stable realtime support for Microblaze at all using the uClinux-microblaze port (It does not seem like there is for Xenomai, but maybe for RTAI)? A post to the Xenomai list would clarify this. They are very familiar with their RTAI predecessor. I have considered adding a BF DSP to my project which is why I was asking about it, but I currently have an FPGA on the board and would like to try using a Microblaze soft-core first to see if it will achieve what I need before looking at adding the extra chip to the board (BF DSP). As a ball-park figure, allow about 20 to 30K$ to port Xenomai to a new platform. It was estimated at a couple of man-months to port Xenomai to Coldfire/uClinux platforms. The fly in the ointment is that it takes a very smart developer with considerable Xenomai and target platform expertise ..all under the same hat ..and you pay for this. Good luck, Bob Furber ___ 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] ( subshell ) | telnet -- not working on WildFireucLinux
Hi Tom, Thanks for the help. I tried enabling msh (I think it was already enabled...when it boots up it says BusyBox...(msh)). And I put the #!/bin/msh as the header, but it still didn't work. Could we ask you to be a little more specific: Can you tell us what part of your script did not work by removing lines? The script you claim is causing grief was: #!/bin/sh sleep 1; echo username; sleep 1; echo pwd; sleep 1; echo [various commands]; sleep 1; echo exit | telnet 10.0.0.25 23 -- Not sure about this line Does it sleep? Does it echo? What happens if you remove the last line? Although there are numerous scripts in .../Vendors/Intec/WildFireMod/ which are happily executed by the WildFireMod/uClinux, I could not find any that sleep and there are none that telnet. So, some experimentation is in order to narrow down the services that have not been enabled. Bfn, Bob Furber Would appreciate any more advice, also in regards to what version of Linux I should load onto one of our PC's in order to tweak the kernel, and if creating a dual-boot XP/Linux PC would be OK. Thanks, Tom - Original Message - From: Bob Furber b...@steroidmicros.com To: uClinux development list uclinux-dev@uclinux.org Sent: Monday, March 09, 2009 7:41 PM Subject: Re: [uClinux-dev] ( subshell ) | telnet -- not working on WildFireucLinux Tom, I'm having difficulty telneting withing a subshell script like this: #!/bin/sh ( sleep 1; echo username; sleep 1; echo pwd; sleep 1; echo [various commands]; sleep 1; echo exit ) | telnet 10.0.0.25 23 The above worked fine on our Atmel board running uClinux, but it isn't working on our Motorola board (specifically the WildFire board which uses the MCF5282). The WildFire board is running firmware from here: ftp://ftp.sbctools.com/pub/uClinux/WildFire/wildfire-uC-firmware.zip And here are the two files I put on, following the above instructions: For anyone wishing to help Tom, 1) linux.gz.bin The linux image to load in flash 2) jffs2.img.bin The romfs image to load in flash ..using dBUGdnfl linux.gz.bin jffs2.img.bin ..which install both these images in flash using TFTP. I can telnet just fine manually, but need to have the board to do it automatically via a subshell script. Does anyone know why the subshell script wouldn't be working? My guess is that the BUSYBOX_MSH needs to be tweaked to offer the services you need. On a LinuxPC make a copy of your uClinux source tree. Then run make xconfig. Select Vendor Intec platform WildFireMod. Then go into the Kernel/Library/Defaults section and select 'y' for Customize Vendor/Users Settings and, possibly Update Default Vendor Settings. Then click Main Menu which will return you to the main menu where you can Save and Exit. But now you will be prompted with a lengthy kernel configuration dialog. A lot of the options here are self explanatory, and they also contain some documentation. See the bottom of the window when you select and option for more information. The key concept here is if in doubt leave out ..or leave it as it is. After going through all of these options carefully (using the existing boards as a template) you can exit this part of the configuration by selecting File?Quit and then saying Yes to save changes. After this dialog disappears another dialog with a bunch of buttons appears for selecting the user applications to include by default in the final image ..such as BusyBox, Network Applications, etc.. Each of these buttons contains lists of applications that can be included by default. Same as before, use the existing Intec board as a template for selecting these applications. You can see the existing configurations for other boards by performing a make xconfig on an existing directory. The trick here is knowing which options to enable and what dependencies there might be. Here is where this uClinux list can be very helpful. There are comments in uClinux.../Vendors/Intec/WildFireMod/Makefile which help you configure this makefile to either build a SD-card image or a flash image. I recommend the flash image because this leaves your SD card exclusively for datalogging and data storage. Once you think the kernel is configured the way you want, enter make and your PC will grind away for a long time as it builds the updated linux and romfs images. Forgive me for this very brief summary. If you need more support in the mechanics of configuring and building your kernel, please contact me directly. But, if you need support figuring out what services to include and how to configure them, this list could be very helpful. Bfn, Bob Furber Thank you, Tom ___ 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] ( subshell ) | telnet --not workingon WildFireucLinux
Hi Tom, No telneting isn't a problem if I do it manually. And I can run other multi-line scripts just fine. How about sleep? Is the problem as Jamie mentioned that busybox-msh telnet cannot be used with input from a pipe? To list at large: Is there a way around this? The board I was using before that could run the telnet subshell script was the Atmel NGW100. I have a few of them here and it seems all have failed one way or another. I was able to get one to boot long enough to get the following info about the kernel used: Board: Atmel NGW100 Image Name: Linux-2.6.18-atngw Image Type: AVR32 Linux Kernel Image (gzip compressed) Data Size:912607 Bytes = 891.2 kB Regrettably, this not tell us how its Linux was configured. It does not tell us what services were enabled/disabled. However.. If you have the source tree, you should be able to run make xconfig to get a blow by blow description of your Linux-2.6.18-atngw's configuration. To be on the safe side, run make xconfig on a copy of your source tree. Bob Furber Tom - Original Message - From: Bob Furber b...@steroidmicros.com To: uClinux development list uclinux-dev@uclinux.org Sent: Tuesday, March 10, 2009 1:40 PM Subject: Re: [uClinux-dev] ( subshell ) | telnet --not workingon WildFireucLinux Hi Tom, I used the subshell like this (I think the parens are necessary): ( sleep 1; echo username; sleep 1; etc... ) | telnet 10.0.0.24 23 I am not familiar with scripts in brackets. In fact, I know little about scripting. And I do not have access to a uClinux board right now. However, I do know that the uClinux loaded on the WildFireMod happily executes scripts. On startup it executes /etc/rc. If you have uClinux loaded in flash, try running prep-sdcard.sh which will partition a SD card and echo its progress. And I need the last line to tell where to telnet to. When I telnet in manually, I can do it successfully with or without the port number (23) at the end. So, telnetting is NOT a problem? To answer you question, it seems nothing works in the subshell. I tried putting sleep 1000; in there and it still took about a half second to return the prompt, with no error reported. So, sleep may be the problem? Also thought it may just be telneting in really fast, so I put in a command to cp a file that exits on the remote server to a new filename, but it didn't work, so I don't think it's telneting or sleeping. I don't see anything printed to the console, so I don't think echo is working in the subshell either. ..yet etc/rc merrily echos every time you boot uClinux... For example, say I call my scrip t-net, here's what my session looks like: # ./t-net # only after about 1/2 second or so after entering 't-net' Forgive my ignorance, but, could the bracketed script be part of the problem? Can you test a couple of conventional multi-line scripts? On a different uClinux system I could watch the whole telnet session in real time on the console as the script ran. What shell was it running? Do you have access to its uClinux configuration? What shell does it use? What services are enabled/disabled? If you can figure all this out, you should be able to configure uClinux for the WildFireMod exactly the same. Bfn, Bob Furber Tom - Original Message - From: Bob Furber b...@steroidmicros.com To: uClinux development list uclinux-dev@uclinux.org Sent: Tuesday, March 10, 2009 11:49 AM Subject: Re: [uClinux-dev] ( subshell ) | telnet -- not workingon WildFireucLinux Hi Tom, Thanks for the help. I tried enabling msh (I think it was already enabled...when it boots up it says BusyBox...(msh)). And I put the #!/bin/msh as the header, but it still didn't work. Could we ask you to be a little more specific: Can you tell us what part of your script did not work by removing lines? The script you claim is causing grief was: #!/bin/sh sleep 1; echo username; sleep 1; echo pwd; sleep 1; echo [various commands]; sleep 1; echo exit | telnet 10.0.0.25 23 -- Not sure about this line Does it sleep? Does it echo? What happens if you remove the last line? Although there are numerous scripts in .../Vendors/Intec/WildFireMod/ which are happily executed by the WildFireMod/uClinux, I could not find any that sleep and there are none that telnet. So, some experimentation is in order to narrow down the services that have not been enabled. Bfn, Bob Furber Would appreciate any more advice, also in regards to what version of Linux I should load onto one of our PC's in order to tweak the kernel, and if creating a dual-boot XP/Linux PC would be OK. Thanks, Tom - Original Message - From: Bob Furber b...@steroidmicros.com To: uClinux development list uclinux-dev@uclinux.org Sent: Monday, March 09, 2009 7:41 PM Subject: Re: [uClinux-dev] ( subshell ) | telnet -- not working on WildFireucLinux Tom, I'm having difficulty telneting withing
Re: [uClinux-dev] ( subshell ) | telnet -- not working on WildFire ucLinux
Tom, I'm having difficulty telneting withing a subshell script like this: #!/bin/sh ( sleep 1; echo username; sleep 1; echo pwd; sleep 1; echo [various commands]; sleep 1; echo exit ) | telnet 10.0.0.25 23 The above worked fine on our Atmel board running uClinux, but it isn't working on our Motorola board (specifically the WildFire board which uses the MCF5282). The WildFire board is running firmware from here: ftp://ftp.sbctools.com/pub/uClinux/WildFire/wildfire-uC-firmware.zip And here are the two files I put on, following the above instructions: For anyone wishing to help Tom, 1) linux.gz.bin The linux image to load in flash 2) jffs2.img.bin The romfs image to load in flash ..using dBUGdnfl linux.gz.bin jffs2.img.bin ..which install both these images in flash using TFTP. I can telnet just fine manually, but need to have the board to do it automatically via a subshell script. Does anyone know why the subshell script wouldn't be working? My guess is that the BUSYBOX_MSH needs to be tweaked to offer the services you need. On a LinuxPC make a copy of your uClinux source tree. Then run make xconfig. Select Vendor Intec platform WildFireMod. Then go into the Kernel/Library/Defaults section and select 'y' for Customize Vendor/Users Settings and, possibly Update Default Vendor Settings. Then click Main Menu which will return you to the main menu where you can Save and Exit. But now you will be prompted with a lengthy kernel configuration dialog. A lot of the options here are self explanatory, and they also contain some documentation. See the bottom of the window when you select and option for more information. The key concept here is if in doubt leave out ..or leave it as it is. After going through all of these options carefully (using the existing boards as a template) you can exit this part of the configuration by selecting File?Quit and then saying Yes to save changes. After this dialog disappears another dialog with a bunch of buttons appears for selecting the user applications to include by default in the final image ..such as BusyBox, Network Applications, etc.. Each of these buttons contains lists of applications that can be included by default. Same as before, use the existing Intec board as a template for selecting these applications. You can see the existing configurations for other boards by performing a make xconfig on an existing directory. The trick here is knowing which options to enable and what dependencies there might be. Here is where this uClinux list can be very helpful. There are comments in uClinux.../Vendors/Intec/WildFireMod/Makefile which help you configure this makefile to either build a SD-card image or a flash image. I recommend the flash image because this leaves your SD card exclusively for datalogging and data storage. Once you think the kernel is configured the way you want, enter make and your PC will grind away for a long time as it builds the updated linux and romfs images. Forgive me for this very brief summary. If you need more support in the mechanics of configuring and building your kernel, please contact me directly. But, if you need support figuring out what services to include and how to configure them, this list could be very helpful. Bfn, Bob Furber Thank you, Tom ___ 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 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] XIP on uclinux 2.6, fantasy or reality?
Jun Sun wrote: We recently built the latest uclinux (2.6 kernel) and tried userland : That seems to indicate XIP does not work at all for 2.6. Can someone confirm? Hmm... I understand that Steve Bennett got uClinux to run XIP from ***SERIAL*** flash on a WildFire SBC. This was back a while on 2.6.19. Perhaps it has broken since? Bob Furber ___ 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] uCLinux web site down?
May I ask what kind of storage and bandwidth we are talking about? Would it help to have a couple of mirror sites? If so, any thoughts as to the capabilities required of these sites? When you mention the desire for additional bandwidth, can I ask what exactly are you referring to? Dreaming in Technicolor, what would you like to see? Thanks, Bob Furber Michael Durrant wrote: Claude wrote: Hi to uClinux web masters. Howdy Claude, For some months ago I have noticed that there are periods of time in which accessing to uClinux web site is slow and often impossible. Is there any problem with the uClinux site server? Well, maybe the reason is that, since uClinux is a fantastic creation, there are more and more developers that are discovering it and, thus, overloading the website to download the code. In that case, if there is any developer that has taken profit of uClinux and owns a web hosting business, please donate some servers to uClinux.org!!! :-) Donation to increase bandwidth for the project are always welcome. We have paid for additional bandwidth with iPower in the past to off load some uClinux-dist traffic but iPower shut down all large file transfers as our bandwidth use was being reported as impacting other users of there webservers. That was a sad day! Turns out several users in China and in Europe had been using aggressive transfer methods and resulted in a denial of service for iPower perhaps? I am not sure as iPower was not helpful in resolving the issue. Their solution was to just disable our account. Again .. very sad. To those who are already donating time, servers and band width: our thanks goes to Analog Devices, Arcturus Networks Inc. and Secure Computing (SnapGear). So if anyone knows of others who are willing to provide addition bandwidth for the large file transfers please drop me an email [EMAIL PROTECTED] or give me a call at (416) 621 0125 Cheers, Michael [EMAIL PROTECTED] Cheers. Claude ___ 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 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 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] CGI template html.. - SourceForge License vs. GPL
Michael Schnell wrote: Haserl http://haserl.sourceforge.net/ ? Haserl does come with the uClinux-dist. I only did not suppose this could be what I am searching for. Pardon my ignorance and getting a little off topic, but how does one reconcile GPL and the SourceForge license? “By submitting, posting or displaying Content on or through SourceForge.net, you grant Company a worldwide, non-exclusive, irrevocable, perpetual, ...rent, resell and distribute...”. Also, I understand that numerous commercial software products were incubated at SourceForge. Does this mean that projects hosted on SourceForge cannot be GPL? Sorry, but this is an area where I am totally ignorant. Yet, I have been seriously considering posting a project on SourceForge ..but I want it to be GPL OSS. Put another way What's in it for SourceForge? Thanks for any comments, Bob Furber ___ 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] Is there a delay function in uClinux?
Is there a function that can cause a small programmable delay under uClinux? For instance, to blink LEDs or create a square wave? Thanks, Bob Furber ___ 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] Coldfire 5282 - suitable?
Hi Allon, You might want to consider posting on the WildRice user list which is the unofficial Coldfire list: [EMAIL PROTECTED] Join the list. [EMAIL PROTECTED]Join the list in digest mode. [EMAIL PROTECTED] Send a post to the list. [EMAIL PROTECTED] Leave the list. We're planning a new design for what amounts to a data bridge between ethernet and a 32 bit memory mapped device. This is in a battery-powered device, so low power consumption is critical. The 5282 seems like a reasonable choice; it's pretty mature, though, and I was wondering if anyone might be in the know, or have opinions on its suitability for a new design, and maybe what alternatives might be good to consider. May I suggest the MCF5208 with 1.8v DDR and Flash. It does not do very much, but it does it very quickly and it draws a fraction of the power consumed by the MCF5282. You can get a M5208EVBe evaluation board for little more than the cost of the USB-BDM pod included in the kit. I believe it is available through major distributors and even DigiKey. Just make sure you get the M5208EVBe and not the M5208EVB (sans 'e') which is older and consumes more power. If you could talk to your 32bit mm device with only 16 bits, you could just copy and paste the M5208EVBe into your product. Bfn, Bob Furber ___ 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] problems with serial port on MCF5373 (MCF532x) - or yet another stupid programming fault by me?
Gavin Lambert wrote: ...YMMV. -- Whazzat? Bob Furber ___ 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] Real-Time uClinux/ColdFire
Is anyone interested? There are dozens of ways to add real-time capabilities to Linux based systems (http://www.linuxdevices.com/articles/AT8073314981.html). Xenomai (http://en.wikipedia.org/wiki/Xenomai) is, arguably, the most appropriate. Xenomai has been successfully ported to the Blackfin/uClinux. There is no doubt this this could be done for the ColdFire. But, first, we must find out if there is any interest in such an initiative. Can we have a straw poll? 1. Would a Xenomai/ColdFire/uClinux port be of any use to you? 2. How many hours per month would you consider contributing to maintaining such a port? 3. How much money would you consider contibuting to the initiative? 4. Would you consider contibuting to the initiative in any other way? Time? Expertise? Thanks, Bob Furber ___ 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] Calling all M5208EVB Kit owners.
Hi Shantur, Great initiative! Count me in. I am not very helpful when it comes to uClinux, so I would have no idea how to catch and handle interrupts triggered by the MC13192 under uClinux. But I can certainly help with the low level s/w that talks to the h/w, having done it. As a start, aside from handling interrupts, it should be very simple to port put the DemoSMAC_host and DemoSMAC_remote dBUG demo programs to run under uClinux. We could also throw in the library functions that support these [dBUG] demos. Of course, receiveing and transmitting messages is a long way from ZibBee ..but it is a start. RF -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Shantur Rathore Sent: September 1, 2007 10:11 PM To: uClinux development list Subject: [uClinux-dev] Calling all M5208EVB Kit owners. hi ! I am calling all the M5208EVB users who are interested in building the driver for ZigBee RF Transceiver (MC13912). Lets combine and work for the driver. Thanks. -shantur ___ 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] uClinux-2.6 RTAI-3.5
I wonder if anyone has used the new RTAI with uClinux-2.6? On a ColdFire? Care to share your experiences? Thanks, RF ___ 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] how to use ftp client to upload a file from target to server?
I am having difficulty figuring out how to use ftp client to upload a file from a uClinux target to server. In fact, I am having difficulty figuring out how to log into a server and give it a username and password. Unlike Linux, uClinux does not request a username and password. # ftp ftp.sbctools.com ftp: ftp.sbctools.com: ftp user sbctools ftp ..connects, but, does not ask for username and password. But, now the trick is to give the server a username and password. # ftp ftp.sbctools.com ftp: ftp.sbctools.com: ftp user sbctools Not connected ftp This is the kind of Linux session I am trying to repicate from a uClinux target: [EMAIL PROTECTED] bin]$ ftp ftp.sbctools.com Connected to ftp.sbctools.com (67.55.39.12). 220 ftp.sbctools.com FTP Server ready Name (ftp.sbctools.com:intec): sbctools 331 Password required for sbctools. Password: 230 User sbctools logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp cd /var/www/html/downloads/V3 250 CWD command successful ftp ls 227 Entering Passive Mode (67,55,39,12,109,83). 150 Opening ASCII mode data connection for file list -rw-r--r-- 1 sbctools sbctools 9979668 Mar 12 21:15 M5208EVBE_dbug.zip : -rw-r--r-- 1 sbctools sbctools 667828 Apr 30 15:55 wildfire_iflash.s19 226 Transfer complete. ftp send partitionSD local: partitionSD remote: partitionSD 227 Entering Passive Mode (67,55,39,12,109,23). 150 Opening BINARY mode data connection for partitionSD 226 Transfer complete. 129 bytes sent in 0.0345 secs (3.6 Kbytes/sec) ftp ls 227 Entering Passive Mode (67,55,39,12,109,83). 150 Opening ASCII mode data connection for file list -rw-r--r-- 1 sbctools sbctools 9979668 Mar 12 21:15 M5208EVBE_dbug.zip -rw-r--r-- 1 sbctools sbctools 129 May 3 22:49 partitionSD : -rw-r--r-- 1 sbctools sbctools 667828 Apr 30 15:55 wildfire_iflash.s19 226 Transfer complete. ftp close 221 Goodbye. ftp quit [EMAIL PROTECTED] bin]$ Has anyone done this? Care to share? Thanks, Bob Furber ___ 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] how to use ftp client to upload a file from targetto server?
Thanks Steve Try 'ping ftp.scbtools.com' and you will see. uClinux[-2.6.6] responds that sbctools.com is alive! How did you get it to resolve the IP address? Try with the IP address instead: # ftp 67.55.39.12 Ftp went catatonic. Not even a ftp prompt. It required a ^C to exit to the uClinux '#' prompt. I have the feeling that I am missing something. Bob F. Cheers, Steve On 04/05/2007, at 9:11 AM, Bob Furber wrote: I am having difficulty figuring out how to use ftp client to upload a file from a uClinux target to server. In fact, I am having difficulty figuring out how to log into a server and give it a username and password. Unlike Linux, uClinux does not request a username and password. # ftp ftp.sbctools.com ftp: ftp.sbctools.com: ftp user sbctools ftp ..connects, but, does not ask for username and password. But, now the trick is to give the server a username and password. # ftp ftp.sbctools.com ftp: ftp.sbctools.com: ftp user sbctools Not connected ftp This is the kind of Linux session I am trying to repicate from a uClinux target: [EMAIL PROTECTED] bin]$ ftp ftp.sbctools.com Connected to ftp.sbctools.com (67.55.39.12). 220 ftp.sbctools.com FTP Server ready Name (ftp.sbctools.com:intec): sbctools 331 Password required for sbctools. Password: 230 User sbctools logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp cd /var/www/html/downloads/V3 250 CWD command successful ftp ls 227 Entering Passive Mode (67,55,39,12,109,83). 150 Opening ASCII mode data connection for file list -rw-r--r-- 1 sbctools sbctools 9979668 Mar 12 21:15 M5208EVBE_dbug.zip : -rw-r--r-- 1 sbctools sbctools 667828 Apr 30 15:55 wildfire_iflash.s19 226 Transfer complete. ftp send partitionSD local: partitionSD remote: partitionSD 227 Entering Passive Mode (67,55,39,12,109,23). 150 Opening BINARY mode data connection for partitionSD 226 Transfer complete. 129 bytes sent in 0.0345 secs (3.6 Kbytes/sec) ftp ls 227 Entering Passive Mode (67,55,39,12,109,83). 150 Opening ASCII mode data connection for file list -rw-r--r-- 1 sbctools sbctools 9979668 Mar 12 21:15 M5208EVBE_dbug.zip -rw-r--r-- 1 sbctools sbctools 129 May 3 22:49 partitionSD : -rw-r--r-- 1 sbctools sbctools 667828 Apr 30 15:55 wildfire_iflash.s19 226 Transfer complete. ftp close 221 Goodbye. ftp quit [EMAIL PROTECTED] bin]$ Has anyone done this? Care to share? Thanks, Bob Furber ___ 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 -- WorkWare Systems Pty Ltd W: www.workware.net.au P: 0434 921 300 F: 07 3102 9221 E: [EMAIL PROTECTED] ___ 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] How to set RTC? -- Answer
Duh! The answer was in the first google hit on linux set time (http://www.linuxsa.org.au/tips/time.html): Set the [soft] system clock with date: # date 042716452007 Fri Apr 27 16:44 UTC 2007 ..and then set the RTC from the system clock: # hwclock --systohc Fri Apr 27 16:44:58 2007 -0.925760 seconds RF -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bob Furber Sent: April 26, 2007 5:06 PM To: uClinux development list Subject: [uClinux-dev] How to set RTC? I am having difficlty setting the [pcf8563] RTC on a WildFireMod, from uClinux-2.6.6: # hwclock --set --date=04/26/07 13:00:00 The date command issued by hwclock returned unexpected results The command was date -d 04/26/07 13:00:00 + seconds-into-epoch=%s The response was No usable set-to-timeCannot set clock # hwclock --set 042613002007 ..fared no better. However, I am able to read the RTC: # hwclock --show Thu Apr 26 15:03:12 2007 -0.909022 seconds I should mention that I have no difficulty setting the RTC from dBUG, so I know it can be done. I have the feeling that is is a Duh! situation, but for the life of me, I do not see it. Thanks, RF ___ 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 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] RE: page_offset.h incorrect for M5208EVB
While I'm not familiar with the 5208, isn't dBUG in Flash, not SDRAM? Once it stops running (by passing control to Linux) then any RAM it was using should be fair game, provided that all its hooks (interrupt vectors etc) are removed (which they should be). My first reaction was Duh! Why didn't I ever question this. I believe that amongst other things, the dBUG stack is near the bottom of SDRAM. So, it becomes a bit of a philosophical question: What do we want to happen when uClinux is shut down? Return to the dBUG prompt? Perhaps if uClinux could trigger a soft reset on exit, this would result in dBUG booting without the need of values/context stored in SDRAM from prior to booting uClinux. RF ___ 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] SD-WiFi
Every year I ask around in the hope of finding out if anyone has figured out how to talk to a SD-WiFi card ..ideally through a Linux driver. Bob F. ___ 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