ts-7000
[Top] [All Lists]

[ts-7000] Re: Using I/O while shutting Linux down...

To:
Subject: [ts-7000] Re: Using I/O while shutting Linux down...
From: "naturalwatt" <>
Date: Sat, 08 Mar 2008 19:18:03 -0000
There is a script called ts7xxx.subr somewhere on the FTP server.  Once you 
source this 
script, various function are available to you, including setting DIO pins.

Example

$ . /usr/local/bin/ts7xxx.subr
$ tshelp
Technologic Systems TS-7xxx Linux miniroot commands:
====================================================

'save' - save current miniroot initrd configuration to flash
'exit' - start full Linux boot or exits telnet session
'dio_dir_get DIO_NUM' - Get Data Direction Register
'dio_dir_set DIO_NUM DIR' - Set Data Direction Register
'dio_data_get DIO_NUM' - Get Data Register
'dio_dat_set DIO_NUM DATA - Set Data Register
'usb_init' - Initialize USB
'usb_off' - Disable USB Clock
'usb_num_ports' - Get number of USB ports
'usb_port_devexists' - Check if a USB device is present
'eth_off' - Disable Ethernet(power down phy)
'eth_on' - Enable Ethernet
'led0 STATE' - Turn on/off green LED
'led1_STATE' - Turn on/off red LED
'temp_read' - Print temp (requires optional temp sensor)
$ 

--- In  "j.chitte" <> wrote:
>
> --- In  "Daniel Souza" <paraosouza@> 
> wrote:
> >
> > Hi
> > 
> > I need the board to send a signal after umount the file system. 
> This
> > signal (or pulse) will be sent to one circuit that will cut the 
> power
> > of the board. The idea is to make linux shutdown first and then cut
> > the power of the board.
> > 
> > Thanks,
> > 
> > Daniel
> >
> 
> 
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU