Difference between revisions of "Didj Common Commands"

From eLinux.org
Jump to: navigation, search
(Added to category didj)
(fixed wiki links and wiki formatting)
Line 1: Line 1:
This is a collection of useful commands to have when accessing your Didj from the command prompt. Its meant as a quick reference guide, for more complex procedures look in the [http://www.elinux.org/Didj#Tutorials.2FHow_To.27s Tutorials/How To's]section of the Didj Wiki main page.
+
This is a collection of useful commands to have when accessing your Didj from the command prompt. Its meant as a quick reference guide, for more complex procedures look in the [[Didj#Tutorials.2FHow_To.27s Tutorials|How To's]]section of the Didj Wiki main page.
  
 
== AppManager ==
 
== AppManager ==
Line 5: Line 5:
 
''Shutdown or Start up AppManger''
 
''Shutdown or Start up AppManger''
  
/etc/init.d/lightning (start | stop | restart)
+
/etc/init.d/lightning (start | stop | restart)
  
 
== USB ==
 
== USB ==
Line 13: Line 13:
 
''enable/disable''
 
''enable/disable''
  
usbctl -d mass_storage -a enable
+
usbctl -d mass_storage -a enable
 
+
usbctl -d mass_storage -a disable
usbctl -d mass_storage -a disable
+
  
 
''unlock''
 
''unlock''
  
usbctl -d mass_storage -a unlock
+
usbctl -d mass_storage -a unlock
  
 
Use enable and unlock to make USB drive accessible from host computer.
 
Use enable and unlock to make USB drive accessible from host computer.
Line 31: Line 30:
 
''Mount the Manufacturers partition''
 
''Mount the Manufacturers partition''
  
mount -t jffs2 $mfgdatamnt /mnt2/mfg
+
mount -t jffs2 $mfgdatamnt /mnt2/mfg
  
  
 
''Remount the Manufactures partition as RW''
 
''Remount the Manufactures partition as RW''
  
mount -o remount,rw /mfgdata
+
mount -o remount,rw /mfgdata
  
  
 
''Remount the root fs as R''W
 
''Remount the root fs as R''W
  
mount -o remount, rw /
+
mount -o remount, rw /
  
 
-or-
 
-or-
  
mount /dev/root / -o remount,rw
+
mount /dev/root / -o remount,rw
  
 
Mount the /Didj file system
 
Mount the /Didj file system
Line 53: Line 52:
  
 
''Power off the screen''
 
''Power off the screen''
 
+
mlc-control /dev/mlc s enable off
+
mlc-control /dev/mlc s enable off
  
  
 
[[Category:didj]]
 
[[Category:didj]]

Revision as of 22:09, 13 April 2011

This is a collection of useful commands to have when accessing your Didj from the command prompt. Its meant as a quick reference guide, for more complex procedures look in the How To'ssection of the Didj Wiki main page.

AppManager

Shutdown or Start up AppManger

/etc/init.d/lightning (start | stop | restart)

USB

mass_storage

enable/disable

usbctl -d mass_storage -a enable
usbctl -d mass_storage -a disable

unlock

usbctl -d mass_storage -a unlock

Use enable and unlock to make USB drive accessible from host computer.

Mounting Commands in Didj

(note) NAND partitions can not be shared by USB host and device simultaneously. Developers should use the usbctl command judiciously to avoid corrupting NAND.


Mount the Manufacturers partition

mount -t jffs2 $mfgdatamnt /mnt2/mfg


Remount the Manufactures partition as RW

mount -o remount,rw /mfgdata


Remount the root fs as RW

mount -o remount, rw /

-or-

mount /dev/root / -o remount,rw

Mount the /Didj file system

mount -t vfat -o async,noatime /dev/mtdblock9 /Didj

Display Commands

Power off the screen

mlc-control /dev/mlc s enable off