marklin-users.net community | Forum
Edited by moderator 11 January 2011 16:11:11(UTC) | Reason: Not specified
Edited by moderator 11 January 2011 16:10:47(UTC) | Reason: Not specified
loks.bin ms*.bin (the Mobile Station files) model.bin weichen.bin
#!/bin/sh -x cd /root/ #-------------------------------------------------- # Use backup files if the ".use_backup" file exists #-------------------------------------------------- if [ -f .use_backup ]; then cp backup/*.bin . cp backup/*.mcs daten rm .use_backup fi ...
... 5) echo RESET ./hc12/trkstop ./hc12/trkstop -prg sleep 2 #------------------------------------------------------------------ # If the file ".factory_reset_is..." exists then restore from the # backup directory. Otherwise perform normal factory reset. #------------------------------------------------------------------ if [ -f .factory_reset_is_my_reset ]; then { echo MY RESET cp backup/*.bin . cp backup/*.mcs daten } else { echo FACTORY RESET rm -f loks.bin rm -f weichen.bin rm -f daten/* rm -f ms*.bin cp setup_init.mcs daten/setup.mcs } fi echo dhcp > /etc/network/ip-nr rm -f /tmp/ip-nr ;; ...
cd /root udplisten & nano-X & main
cd /root hc12/trkstop hc12/trkstop -prg nano-X & main
root@uclibc:~#hc12/trkstop root@uclibc:~#hc12/trkstop -prg root@uclibc:~#nano-X & root@uclibc:~#kbd_cs: open Keyboard...opened mou_tochscreen: open Touchscreen...opened root@uclibc:~#main read startup=0 Hallo hier ist ein thread... wrote startup=0 Reading track switches from FS... No track switches in weichen.bin Reading Loks from FS... anzLoks 19 appending lok appending lok appending lok appending lok appending lok appending lok appending lok appending lok appending lok appending lok appending lok CMulti::readFS: lm ptr=0x94db8 CMulti: 2 loks in Multi 14608 14608 appending lok CMulti without loks appending lok appending lok appending lok appending lok appending lok appending lok appending lok Lok for Multi found Lok for Multi found readLoks finished keys[4]=0 keys[6]=0 setBlockStopGo(0) called... CModel::go called getIPaddr: dhcp selected by ip-nr IP: 192.168.1.103 getIPstate: dhcp selected by ip-nr Acknowledge 0x31: 0 CMSmanager::getMS(0x20fa4) MS: same name CMSmanager::getMS(0x2a53c) MS: same name
CMobileStation::writefs called... release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl CMobileStation::writefs called... release but not controlled in CLok::CControl release but not controlled in CLok::CControl release but not controlled in CLok::CControl release not from controlling observer release but not controlled in CLok::CControl wrote startup=0 Writing track switches on FS... Writing 19 Loks on FS... CMSmanager::writefs() called... [1] + Done nano-X root@uclibc:~#
cd / tar -cvf /tmp/root.tar root
cd / tar -zcvf /tmp/root.tar root
cd /root tftp -p -l output.bmp <hostname>
root@uclibc:~#more /sys/devices/mcs_ctrl/help batt_on batt_off 12V_on 12V_off ledstop_on ledstop_off ledgo_on ledgo_off backlight___ set backlight PWM to ___ lcdpwm___ set LCD voltage PWM to ___ resethc12 short high-low pulse to reset HC12 reshc12_hi reshc12_lo adc show A/D values lcdtim0= lcdtim1= lcdtim2= nand not working with JFFS2 file system root@uclibc:~#
root@uclibc:~#more /sys/devices/mcs_ctrl/battery 5632mV root@uclibc:~#
Processor : ARM720T rev 3 (v4l) BogoMIPS : 37.99 Features : swp half thumb CPU implementer : 0x41 CPU architecture: 4T CPU variant : 0x00 CPU part : 0x720 CPU revision : 3 Hardware : ESU LH79525 Board Revision : 0000 Serial : 0000000006090501
MemTotal: 30572 kB MemFree: 20016 kB Buffers: 0 kB Cached: 4460 kB SwapCached: 0 kB Active: 6360 kB Inactive: 1336 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 30572 kB LowFree: 20016 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB Mapped: 4620 kB Slab: 1660 kB CommitLimit: 15284 kB Committed_AS: 11816 kB PageTables: 176 kB VmallocTotal: 614400 kB VmallocUsed: 408 kB VmallocChunk: 4136960 kB
Linux version 2.6.11