Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I m having lots of trouble with a TS-7260 Single Board computer that is somehow equipped with a small UNIX version for hardwre devices called BusyBox v1.0.
This device is hooked up with an old accelerometer and a GPS Engine in order to log seismic events.
Since I got this acquisition system as a present, I have wether README files nor manuals on this and I may not change any settings or pre-installed operational systems. the thing is, that a usb flash drive is hooked up to the ts-7260 board but I donīt know what is on there since canīt mount it or read it with any other OS.
If I am logged in via ssh and try to mount it with
$ mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/cf/
as suggested in a really old manual I get an error like this:
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/cf failed: Device or resource busy
All commands that are available on BusyBox v1.0 are listed bellow:
Built-in commands:
-------------------
. : alias bg break cd chdir continue eval exec exit export false
fg hash help jobs kill let local pwd read readonly return set
shift times trap true type ulimit umask unalias unset wait [
addgroup adduser adjtimex ar ash awk basename bunzip2 busybox
bzcat cat chgrp chmod chown chroot chvt clear cmp cp crond cut
date dc dd deallocvt delgroup deluser devfsd df dirname dmesg
dpkg dpkg-deb du dumpleases echo egrep env expr false fbset fdisk
fgrep find free ftpget ftpput getty grep gunzip gzip halt hdparm
head hostid hostname hwclock id ifconfig ifdown ifup inetd insmod
install kill killall klogd ln logger login logread ls lsmod makedevs
md5sum mkdir mknod mkswap mktemp modprobe more mount mv openvt
passwd pidof ping pivot_root poweroff ps pwd reboot reset rm
rmdir rmmod route sed sh sleep sort start-stop-daemon strings
su sulogin swapoff swapon sync syslogd tail tar tee telnet telnetd
test tftp time touch tr traceroute true tty udhcpc udhcpd umount
uname uncompress uniq unzip uptime usleep vi wc wget which whoami
xargs yes zcat
Is it possible to add new commands to the system and see what is on the USB drive?
The TS7200 should be similar to the 7260 and by default the USB modules are not loaded. Try running loadUSBModules.sh. Once the script completes the device ID for the USB drive should be created and you can then mount it.
Also make sure your not actually in the /mnt/cf directory when trying to mount the drive.
Thanks alot for your advice. But this is what I get:
$ pwd
/root
$ /usr/bin/loadUSBModules.sh
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/usbcore.o
insmod: A module named usbcore already exists
Using /lib/modules/2.4.26-ts11/kernel/arch/arm/common/pcipool.o
insmod: A module named pcipool already exists
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/host/usb-ohci.o
insmod: A module named usb-ohci already exists
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/host/usb-ohci-ep93xx.o
insmod: A module named usb-ohci-ep93xx already exists
Using /lib/modules/2.4.26-ts11/kernel/drivers/scsi/scsi_mod.o
insmod: A module named scsi_mod already exists
Using /lib/modules/2.4.26-ts11/kernel/drivers/scsi/sd_mod.o
insmod: A module named sd_mod already exists
Using /lib/modules/2.4.26-ts11/kernel/drivers/usb/storage/usb-storage.o
insmod: A module named usb-storage already exists
$ pwd
/root
$ fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 8004 MB, 8004304896 bytes
35 heads, 21 sectors/track, 21269 cylinders
Units = cylinders of 735 * 512 = 376320 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 21270 7816688 b Win95 FAT32
$ mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/cf
mount: Mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/cf failed: Device or resource busy
$ mount
/dev/root on / type yaffs (rw)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/cf type ext2 (rw)
No problem. So have you looked at the /mnt/cf directory to see what is there? If it came with the board I suspect it is the development system which should be debian. It is a complete OS but does contain the headers etc so you can compile programs for the SBC.
The /mnt/cf/ only contains one folder, where the ring buffers and current acquired data of the accelerometer are stored.
I can also look them up even though the USB hard drive is not mounted (or hooked up). I ve no clue what this drive is good for since everything seems to work without it as well.
Is the data acquisition software configured to write to /mnt/cf/folder? It appeases that even if the drive was not mounted the software will still write to the same destination directory and the only difference is it will be written to the on board flash memory instead of the USB drive. The flash memory isn't very big which is why you would want the USB drive. Since the flash memory is formatted as ext2 windows cat not read it without additional software.
thanks a lot! I could figure out from the directory structure that the acquisition software is calles SEISLOG but I can't start it because the commands are not supported by the OS. Nevertheless I think it writes data automatically in the /mnt/cf/ folder and triggers itself. the thing I don t understand is, why there is a USB hooked up to the system. the folders on cf are not really big so it s possible, that theyre stored on the TS-7260:
the data is acquired by a modified SSA-2 by Kinematrics accelerometer.
btw, I use a mac to connect to the ts-7260. how do you know, that the flash drive as ext2 windows?
for me it is really important to make a copy of the usb stick and know what is on there.
btw: the system is triggered by an external gps antenna. nevertheless ewhen I type date: it says
$ date
Thu Jan 1 02:27:49 UTC 1970
nevertheless, the data has the correct date as a name but the wrong time stamping so I guess the CPU clock is not connected with the GPS. do you know how I can syncronise them as well?
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/cf type ext2 (rw)
The SBC does not have a real time clock so the system clock is set at boot up to the default time of 00:00 1 Jan 1970 (unix epoch time). You would need to write some software to read time from the GPS receiver to set the clock.
The on board flash memory is only 32MB so the OS and the data acquisition software would reside there but the logs could fill it up which would not be good which is why you want the USB drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.