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 dBUG>dnfl 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