Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by plavnostruev<br />What a gripping saga! Now, wouldn't tweaking CS void its warranty? YES!!!I am a UNIX programmer (Linux is a flavor) and I am curious if anyone has insights into how the GUI on CS was done - which technology was used? Also I'd love to see screen shots, as I have developed my own PC control program and I'd like to borrow some ideas [:p] Don't know how to make a screenshot from the CS, but the CS application seems to dump a screenshot in the file "/root/output.bmp". Don't know how to trigger this, but here it is (borrow - don't break copyright [^]) Mike, hoping that Bo would get his file. Got it - it works - thank you guys Edited by moderator 11 January 2011 16:11:11(UTC)
| Reason: Not specified |
HHJJ Bo Jensen
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by plutoodie@hotmail.com<br /> Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by plavnostruev <br />What a gripping saga!
Now, wouldn't tweaking CS void its warranty?
YES!!!
I am a UNIX programmer (Linux is a flavor) and I am curious if anyone has insights into how the GUI on CS was done - which technology was used? Also I'd love to see screen shots, as I have developed my own PC control program and I'd like to borrow some ideas [:p]
Don't know how to make a screenshot from the CS, but the CS application seems to dump a screenshot in the file "/root/output.bmp". Don't know how to trigger this, but here it is (borrow - don't break copyright [^])
Mike, hoping that Bo would get his file.
Got it - it works - thank you guys
Well - just figured out how to make a screenshot! Just use the "grab" command in the "/root" directory - it dumps a screendump in the output.bmp file. So here is a more interesting screendump:  Edited by moderator 11 January 2011 16:10:47(UTC)
| Reason: Not specified |
HHJJ Bo Jensen
|
|
|
|
Joined: 05/01/2005(UTC) Posts: 283 Location: Granby, Ct
|
Quote:[size=1" face="Verdana" id="quote]quote:could anybody email this file to me? Maybe this will teach me to make a backup [B)]
Bo, what does HHJJ stand for? Another question, have you figured how to reboot the CS with a new weichen.bin file (or any of the bin files located in the /root directory? I have made several different attempts to do this but it always goes back to the last version written by the CS. What I am doing is backing up weichen.bin which has all of the solenoid settings saved (switches, signals etc.) and want to be able to restore the latest copy in the event of a hard reset to the CS. There is nothing apparent in the script files or the init.d directory. My guess is it is part of the CS application that is doing a save before it does a reboot or shutdown. Let me know if you have any ideas. Thanks in advance |
Paul Granby, Ct. USA
|
|
|
|
Joined: 05/01/2005(UTC) Posts: 283 Location: Granby, Ct
|
My guess is it is part of the CS application that is doing a save before it does a reboot or shutdown. Let me know if you have any ideas. Thanks in advance
After playing some more, It does not save the file when shutting down/rebooting. I even did a "poweroff -d now" which stopped the CS (you have to remove the batteries to do this).
I noticed that the file date/time was created when the unit was booting up. Somewhere there is a backup file that is being referenced - maybe in the proc directory. I will keep looking.
|
Paul Granby, Ct. USA
|
|
|
|
Joined: 12/12/2005(UTC) Posts: 2,448 Location: Wellington, New_Zealand
|
Paul,
My experience is that by leaving the batteries out, a file (datenbank.bin weichen.bin etc ..) does not get overwritten during the powerdown save function (when the Go/Stop light stay on for a while) . They are therefore read duiring the power up and the changes I have made are noted.
e.g. I backed up the weichen.bin and tabs - reset CS - then restored. also I changed some of the values in the datenbank.bin - default icon etc. |
Peter
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by clapcott <br />Paul,
My experience is that by leaving the batteries out, a file (datenbank.bin weichen.bin etc ..) does not get overwritten during the powerdown save function (when the Go/Stop light stay on for a while) . They are therefore read duiring the power up and the changes I have made are noted.
e.g. I backed up the weichen.bin and tabs - reset CS - then restored. also I changed some of the values in the datenbank.bin - default icon etc.
Hi guys, There is a much easier way! After a little analysing and manually starting the "main" application as done in the "loop.sh" script (try that and all kinds of interesting stuff is printed to stdout  ) I discovered that the main application updated the following files, when it exits: Code:
loks.bin
ms*.bin (the Mobile Station files)
model.bin
weichen.bin
Then I created an easy way to restore my configuration on the Central Station - do the following (only if you dare change stuff on your CS that violates the warranty! be careful [:0]): 1. Create a "backup" directory in "/root" 2. Copy your "*.bin" and "daten/*.mcs" files to the backup directory 3. Add a little stuff to the "/root/loop.sh" file after the line with "cd /root/", so you get the following: Code:
#!/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
...
This means that everytime the Central Station is powered up it retrieves any ".bin" and ".mcs" file from the "backup" directory if you created the ".use_backup" file. This makes it easy to restore files and to have new (and altered) files introduced to the Central Station. After doing this I succeeded in doing a Factory Reset followed by a COMPLETE restore of ALL CS settings!!! BTW: It would be interesting if somebody analyzed the *.mcs files. Furthermore notice this trick of replacing .bin files should create a way for triggering the MS download! Yupiiiiii    |
HHJJ Bo Jensen
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by prc <br /> Bo, what does HHJJ stand for?
Happy Happy Joy Joy - a quote from the Ren & Stimpy cartoon  Today it should be Happy Happy New Year to you all - Happy New Year |
HHJJ Bo Jensen
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
ok - twiddeling a bit more with the "loop.sh" script I came up with a way to alter the behaviour of the factory reset [^] Alter the loop.sh script as described below and you have an easy way to choose if you want factory reset to behave as the real fatory reset or just restore a backup configuration you have stored in the "backup" directory. This is controlled by the presence of the ".factory_reset_is_my_reset" file in the "/root" directory. Furthermore this is useful for tweaking the *.bin (or .mcs) files. Just alter a specific .bin (or .mcs) file in the backup directory, make sure that the ".factory_reset_is_my_reset" file is present in the "/root" directory, hit factory reset and your file is copied to the "/root" directory and the CS application is restarted with the new .bin (or .mcs) files  To get the tweak to work do the following (again remember that you might render the CS useless and break the warranty if you do this [}:)]): 1. Create a "backup" directory in "/root" 2. Copy your "*.bin" and "daten/*.mcs" files to the backup directory 3. Add a little stuff to the "/root/loop.sh" file after the line with "5)", so you get the following: Code:
...
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
;;
...
If you create the file ".factory_reset_is_my_reset" in "/root", then the copying of the backup files is performed every time you press the "RESET" button  Remember to remove the file to have reset perform a normal factory reset  |
HHJJ Bo Jensen
|
|
|
|
Joined: 05/01/2005(UTC) Posts: 283 Location: Granby, Ct
|
Hi guys, There is a much easier way! After a little analysing and manually starting the "main" application as done in the "loop.sh" script (try that and all kinds of interesting stuff is printed to stdout  ) I discovered that the main application updated the following files, when it exits: Bo, I get the following error when I start main manually. Were you able to get it to execute with no error? root@uclibc:~#./main Hallo hier ist ein thread... terminate called after throwing an instance of 'sys::Device::Error' Aborted |
Paul Granby, Ct. USA
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by prc<br /> Hi guys, There is a much easier way! After a little analysing and manually starting the "main" application as done in the "loop.sh" script (try that and all kinds of interesting stuff is printed to stdout  ) I discovered that the main application updated the following files, when it exits: Bo, I get the following error when I start main manually. Were you able to get it to execute with no error? root@uclibc:~#./main Hallo hier ist ein thread... terminate called after throwing an instance of 'sys::Device::Error' Aborted No quite sure why you got this error  Did you remember to start the supporting processes? Two ways of manual start of the main application: 1. Alter the "/etc/init.d/S99startup" script and comment out the last line like so "#./loop.sh". After a fresh CS poweron (this means that the CS never gets beyond the point where the STOP button is light) you may start the application by executing the following: Code:
cd /root
udplisten &
nano-X &
main
You can stop the application with <ctrl-C> and re-execute it as described below. 2. Shutdown the application - this is easiest done by killing the "loop.sh" script and the "nano-X" process (in this order), then the main processes automatically fails and exits. Then execute the main application doing the following: Code:
cd /root
hc12/trkstop
hc12/trkstop -prg
nano-X &
main
Notice, that I did not kill the "udplisten" process, so there no need to re-execute this one. Furthermore, issuing the "hc12/trkstop" commands seems like a good thing (but not necessary) according to the "loop.sh" script. I suspect that these commands stops and resets the main and programming tracks, respectively. I get the following output with a manual start: Code:
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
As you see I have 19 loks with two of them in a consist, two Mobile Stations attached, but no solenoids configured  In order to stop the application just press <ctrl-C> and the main application produces the following output: Code:
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:~#
Enjoy  |
HHJJ Bo Jensen
|
|
|
|
Joined: 12/12/2005(UTC) Posts: 2,448 Location: Wellington, New_Zealand
|
weichen.bin is the file that hold the definitions for accessories. It appears to have a 4 byte header followed by X number of 56 byte records.
The header appears to be simply the count of records Each 56 byte accessory records have the accessory base address at offset 12/13 (ref starts at 0 for 1st byte). While the UI only permits 256 addresses it is possible to set a value higher, e.g. 1/1 = 257 2/1 =258 3/1=259 .......
A k83/k84 set to box 65 (- - 3 - - 6 - -) will recognise addresses 257-260.
|
Peter
|
|
|
|
Joined: 05/01/2005(UTC) Posts: 283 Location: Granby, Ct
|
No quite sure why you got this error  Did you remember to start the supporting processes? Thanks Bo, not I did that OK but I had a late night "common sense blackout". I killed the PID for nano-X but not for main so I was trying to run 2 instances of main - good reason to get the error! Later |
Paul Granby, Ct. USA
|
|
|
|
Joined: 29/08/2003(UTC) Posts: 1,915 Location: Netherlands
|
|
M-track with a CS2. |
|
|
|
Joined: 28/04/2003(UTC) Posts: 757 Location: Wawa, Ontario
|
Reminds me of the programmings days gone by, if this statement is true go here. Now that I am hear read this line and go there. Now I am right back where I started from. Repeat if necessary. 
|
|
|
|
Joined: 15/12/2005(UTC) Posts: 3,599 Location: Spain
|
Aw c'mon! How hard can it be to guess/crack -or- how much time will it take for the password to leak? According to the same forum, one should try with the word "root", or make an ftp-connection on another port, like 21 or 13. Tweak on! ;-) |
|
|
|
|
Joined: 25/07/2001(UTC) Posts: 11,165
|
If you read plutoodies first post again, he says "log in as root"... Usually this means root/no password, root/root or root/pass ... I know one member's company that usually uses root/pass in their devices...  |
Juhan - "Webmaster", at your service... He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb] |
|
|
|
Joined: 13/07/2004(UTC) Posts: 642
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by plutoodie<br /> Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by fredsaf <br /> Hi,
I sure could mail that file to you - if I could only download the #¤%#¤ thing... My ftp won't connect to the CS... [:(]
Fredrik.
I never could get FTP to work either, so I used the TFTP protocol instead - you may try the following (at your own risk of goofing up you CS beyond repair): 1. Install Pumpkin TFTP on your Windows PC (found it on http://www.download.com) 2. Use the following command to transfer the file to the PC tftp -p -l <filename> <hostname> You may use an IP-address as hostname. As an example executing "tftp -p -l output.bmp <ip-adr>", while in the /root directory will transfer the output.bmp file. (for some reason the Pumpkin TFTP server reports error if a path is given - probably due to UNIX/Windows pathname conventions  ) Isn't there ny easier way to download all files? If one could erase the whole CS by writing rm -r * then there should be a command to copy the root directory (recursively and thereby getting all other directories as well). My reason to do this are: 1 - being able to read whatever files are "onboard" (as I can't do this using the ftp-port) 2 - find out which of all items in the directories are files and which are sub-directories and so on... I have a simple ftp-connection which works but I can't possible se which item is what... neither can I open (read) any scripts. So if I could only donload the whole thing to a directory on my computer I'd be happy (for now)...  Fredrik. |
Fredrik.
*ECoS 2 + ECoSDetector + SwitchPilot + ECoSTerminal; *Z21 + Loconet + Digikeijs + MGP; **CS3+ + CdB (** coming soon...)
WWW: MJ-fjärren |
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by fredsaf<br />I have a simple ftp-connection which works but I can't possible se which item is what... neither can I open (read) any scripts. So if I could only donload the whole thing to a directory on my computer I'd be happy (for now)...  Fredrik. Hi Fredrik, Use the Linux 'tar' command for collecting files and directories. The following will collect the files from the "/root" directory and put them into the file "/tmp/root.tar": Code:
cd /
tar -cvf /tmp/root.tar root
If you wanna compress the file at the same time do the following: Code:
cd /
tar -zcvf /tmp/root.tar root
Transfer the file to your PC and untar it... To do this you have to find a tar-utility for you PC. I use WinZip as I already had it... Try searching for "tar" on http://www.download.com for a suitable utility - "PoedSoft Archiver 3.3 Build 20" is free and claims to be able to handle TAR files. I have not tried it though. Another way is to use cygwin (http://www.cygwin.com), which give you a set of unix commandline tools  Only bad thing about the tar command on the CS is that it does not collect symbolic links [:(] |
HHJJ Bo Jensen
|
|
|
|
Joined: 13/07/2004(UTC) Posts: 642
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by plutoodie<br /> Hi Fredrik, Use the Linux 'tar' command for collecting files and directories. The following will collect the files from the "/root" directory and put them into the file "/tmp/root.tar": Code:
cd /
tar -cvf /tmp/root.tar root
If you wanna compress the file at the same time do the following: Code:
cd /
tar -zcvf /tmp/root.tar root
Transfer the file to your PC and untar it... To do this you have to find a tar-utility for you PC. I use WinZip as I already had it... Try searching for "tar" on http://www.download.com for a suitable utility - "PoedSoft Archiver 3.3 Build 20" is free and claims to be able to handle TAR files. I have not tried it though. Another way is to use cygwin (http://www.cygwin.com), which give you a set of unix commandline tools  Only bad thing about the tar command on the CS is that it does not collect symbolic links [:(] Hi, thanx - the tar-command worked fine BUT... I still can't get my tftp to connect to my CS... [:(] So I can still see the files, just can't examine 'em... You couldn't mail the file? What size is that compressed file? Or the install-file for the tftp you use...? (must have got the wrong version) Regards, Fredrik. |
Fredrik.
*ECoS 2 + ECoSDetector + SwitchPilot + ECoSTerminal; *Z21 + Loconet + Digikeijs + MGP; **CS3+ + CdB (** coming soon...)
WWW: MJ-fjärren |
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by fredsaf <br /> thanx - the tar-command worked fine BUT... I still can't get my tftp to connect to my CS... [:(] So I can still see the files, just can't examine 'em...
Reading this it seems to me you're trying to tftp from the PC to the CS  This is the wrong way - the CS does not have a ftp or tftp server installed. You should log into the CS and tftp to your PC. Do the following to tftp the "output.bmp" (screenshot) to you PC: 1. Log in as root 2. Enter the following commands Code:
cd /root
tftp -p -l output.bmp <hostname>
BTW: If you're using the Pumpkin TFTP, then you may want to increase the "Confirmation timeout" in Options->Server (mine is 3/4 to the top). And change the "Default connection timeout" in Options->Network (mine is 60). Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by fredsaf <br /> You couldn't mail the file? What size is that compressed file? Or the install-file for the tftp you use...? (must have got the wrong version)
I have emailed you the Pumkpin TFTP |
HHJJ Bo Jensen
|
|
|
|
Joined: 28/04/2003(UTC) Posts: 757 Location: Wawa, Ontario
|
For anyone using a PC you may want to look at the following program. It is a tftp server, dhcp server all in one. Does not require installation, just expand and run. Recommended by Cisco, HP and other companies. Constantly updated. and it is free. I have used it and it works very well. http://perso.wanadoo.fr/...ippe.jounin/tftpd32.htmlMaxi
|
|
|
|
Joined: 25/10/2005(UTC) Posts: 9 Location: ,
|
Another alternative to transfering files is to use NFS. My CS has a file called "start" in /root that gives a clue as to how this was done at the factory and/or lab. If you have (or can setup) a system that acts as a NFS server (e.g., a PC running linux), you can mount a dir on the PC linux system to the CS fs. |
GEM |
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by plutoodie <br />
With respect to the "ledstop_on > /dev/mcs_ctrl": I figured this out by looking in the startup files for the Central Station ("/etc/init.d/S99startup") and for the CS Application ("/root/loop.sh" - triggered by the S99startup script).
A short summary of what I have found to be working with the "mcs_ctrl" device (aka the Märklin Central Station device) by looking in the devicedriver:
batt_on/batt_off: Turn the use of battery on and off. As long as the battery is "ON" the central station is still running even though the power is disconnected.
ledstop_on/ledstop_off: Light on/off in the "STOP" button.
ledgo_on/ledgo_off: Light on/off in the "GO" button.
backlight<number>: Set the backlight to the specified value. Seems like the range of legal values are 000-999. Unsure of the relation is to the "Backgroung lighting" option in the Central Station which has legal values 0-15.
...ups - the list is longer, but I have a slight problem - my CS is [xx(]
Even better - you can just read the help to the device driver: Code:
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:~#
and you can see the battery power left with: |
HHJJ Bo Jensen
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Funny enough there are two device device drivers, that are not loaded: "ecos_sound.ko" and "esu_gpio.ko".
Isn't it just a little too interesting that the CS has a device driver called "ECOS sound module..."??? I wonder what the similarity is with the upcomming ECoS?
The other driver is described as "ESU GPIO Driver" - could this be S88 support?
BTW: I did not notice any interesting changes by loading these drivers...
|
HHJJ Bo Jensen
|
|
|
|
Joined: 08/04/2006(UTC) Posts: 10 Location: Køge,
|
Is there anyone like that can't injoy all the twaeks these posts. The reason is that my CS seems to be upgraded to ver. 1.6.134 and the root login has been changed to require password [:(],or the login has been changed to another login name. Can anyone help.[:p] |
BigOne |
|
|
|
Joined: 21/10/2004(UTC) Posts: 31,704 Location: United Kingdom
|
Hi Reb, Welcome to the forum.  |
Large Marklinist 3- Rails Layout with CS2/MS2/Boosters/C-track/favorites Electric class E03/BR103, E18/E118, E94, Crocodiles/Steam BR01, BR03, BR05, BR23, BR44, BR50, Big Boy. |
|
|
|
Joined: 21/01/2004(UTC) Posts: 1,276
|
Hi all,
Is anyone still working/playing with this? On Ecos you can log on via telnet using 'default' as user and I was wondering if we could try to find similarities/differences between ecos/cs. My objective is to enable mfx on ecos (which is supposed to be inside).
At first sight everything is awfully similar (which I expected). The device drivers and other files still have the same names.
I have some experience with embedded Linux/Busybox from work. Any help is greatly appreciated!
Bert
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by DasBert33 <br />Hi all,
Is anyone still working/playing with this? On Ecos you can log on via telnet using 'default' as user and I was wondering if we could try to find similarities/differences between ecos/cs. My objective is to enable mfx on ecos (which is supposed to be inside).
At first sight everything is awfully similar (which I expected). The device drivers and other files still have the same names.
I have some experience with embedded Linux/Busybox from work. Any help is greatly appreciated!
Bert
Sounds interesting - did you log in as root? Could you try and look in the following files and report what they say? I would like to see what the differences are to the CS: To see what CPU: more /proc/cpuinfo How much memory: more /proc/meminfo Linix version: more /proc/version I god the following last I tried (copied from a previous post) more /proc/cpuinfo:Code:
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
more /proc/meminfo:Code:
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
more /proc/version:Of the top of my head I can't rememer how to see the version number of the CS application... This is exiting - if they are really similar - and you actually can log into the ECoS with root permissions - then I might actually have to buy one!!!!!!! |
HHJJ Bo Jensen
|
|
|
|
Joined: 21/01/2004(UTC) Posts: 1,276
|
Quote:[size=1" face="Verdana" id="quote]quote: Originally posted by plutoodie<br /> Sounds interesting - did you log in as root? Could you try and look in the following files and report what they say? I would like to see what the differences are to the CS: To see what CPU: more /proc/cpuinfo How much memory: more /proc/meminfo Linix version: more /proc/version I god the following last I tried (copied from a previous post) more /proc/cpuinfo:Code:
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
more /proc/meminfo:Code:
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
more /proc/version:Of the top of my head I can't rememer how to see the version number of the CS application... This is exiting - if they are really similar - and you actually can log into the ECoS with root permissions - then I might actually have to buy one!!!!!!! I did not check right now but on stummi.de they already tried the same thing and the boards are exactly the same. You can verify there, but I will also post here later when I have more time... 'root' doesnt work as login, 'default' does... Even if I don't have privileges to change things, I might be able to copy some files and get them to you or something? Bert
|
|
|
|
Joined: 13/07/2004(UTC) Posts: 642
|
I agree with Bo,
I'll order an ECoS to, just to compare (and program for). "Default" does work on the CS (as username) too (at least on my CS), although it off course does not give root-privilegies. |
Fredrik.
*ECoS 2 + ECoSDetector + SwitchPilot + ECoSTerminal; *Z21 + Loconet + Digikeijs + MGP; **CS3+ + CdB (** coming soon...)
WWW: MJ-fjärren |
|
|
|
Joined: 21/01/2004(UTC) Posts: 1,276
|
As promised, here the info from ecos (search the differences ;) )
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 : 0000000002050601
MemTotal: 30664 kB MemFree: 18328 kB Buffers: 0 kB Cached: 6264 kB SwapCached: 0 kB Active: 7088 kB Inactive: 2028 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 30664 kB LowFree: 18328 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB Mapped: 4488 kB Slab: 2024 kB CommitLimit: 15332 kB Committed_AS: 11432 kB PageTables: 172 kB VmallocTotal: 614400 kB VmallocUsed: 464 kB VmallocChunk: 4136960 kB
Linux version 2.6.11
|
|
|
|
Joined: 25/07/2001(UTC) Posts: 11,165
|
If you think about it, it should be possible to replace the Linux with WinCE and use it as PDA...  I just wonder how much is "in-house" hardware, ie not standard i/o chips, or if it is mostly just software that controls the i/o ports via standard interface logic chips to the display, control knob reading, Ethernet interface and so on... If mostly standard chips are used, it should be possible to make your own OS/Software to tailor the unit for your needs... Just too bad the processor is not of the x86 type, then I could have made some fancy WinXP embedded OS for it...  Has anyone seen the inside of it yet? I just wonder if the flash memory inside is a circuit soldered to the board or if it is a removable/exchangable flash module connected to a pinned interface as IDE, USB, SD/CF-card socket or such... |
Juhan - "Webmaster", at your service... He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb] |
|
|
|
Joined: 26/03/2006(UTC) Posts: 1,423 Location: Brisbane, QLD
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by DasBert33 <br />As promised, here the info from ecos (search the differences ;) )
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 : 0000000002050601
<snip>
Linux version 2.6.11
Any idea what brand the MCU is? Lots of companies make ARM-cored MCUs. I'd guess an ST, Märklin and ESU being German. Philips do a range using the ARM7TDMI-S core, but I don't know how Linux would report it. |
Cheers, Damon |
|
|
|
Joined: 17/04/2005(UTC) Posts: 13 Location: ,
|
|
Mit freundlichen Gruessen / Best Regards
Helmut Brettschneider
|
|
|
|
Joined: 17/04/2005(UTC) Posts: 13 Location: ,
|
|
Mit freundlichen Gruessen / Best Regards
Helmut Brettschneider
|
|
|
|
Joined: 09/02/2005(UTC) Posts: 211 Location: Abu Dhabi
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by DasBert33 <br />As promised, here the info from ecos (search the differences ;) )
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 : 0000000002050601
MemTotal: 30664 kB MemFree: 18328 kB Buffers: 0 kB Cached: 6264 kB SwapCached: 0 kB Active: 7088 kB Inactive: 2028 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 30664 kB LowFree: 18328 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB Mapped: 4488 kB Slab: 2024 kB CommitLimit: 15332 kB Committed_AS: 11432 kB PageTables: 172 kB VmallocTotal: 614400 kB VmallocUsed: 464 kB VmallocChunk: 4136960 kB
Linux version 2.6.11
I would say that the only difference is that ECos has a different serial: Hardware : ESU LH79525 Board Revision : 0000 Serial : 0000000002050601 CS: Hardware : ESU LH79525 Board Revision : 0000 Serial : 0000000006090501 Sounds like they are almost completely the same - great! |
HHJJ Bo Jensen
|
|
|
|
Joined: 12/10/2006(UTC) Posts: 11 Location: Vienna, Austria
|
Hi!
Is there anybody who could send me the 67 bmp pictures in the loksymbole map? Because in my CS version SW 1.6.134 there are only 11 pictures. Tanks in advance. Greetings Claes
|
|
|
|
Joined: 13/07/2004(UTC) Posts: 642
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by b-earl <br />Hi!
Is there anybody who could send me the 67 bmp pictures in the loksymbole map? Because in my CS version SW 1.6.134 there are only 11 pictures. Tanks in advance. Greetings Claes
Hi, I haven't downloaded them from mine, but all 67 are there - although the CS only shows the same 11 you probably have. There's some internal block from using them all... (so my guess is that your CS contain all of them also) Fredrik. |
Fredrik.
*ECoS 2 + ECoSDetector + SwitchPilot + ECoSTerminal; *Z21 + Loconet + Digikeijs + MGP; **CS3+ + CdB (** coming soon...)
WWW: MJ-fjärren |
|
|
|
Joined: 12/10/2006(UTC) Posts: 11 Location: Vienna, Austria
|
Hi Fredrik!
Can you, if you log on the CS (I can only do it as "default") see all the 67 bitmaps in the map loksymbole or only 11. The problem is that i only see 11 bitmap pictures.
Greetings Claes
|
|
|
|
Joined: 21/10/2004(UTC) Posts: 31,704 Location: United Kingdom
|
Hello and welcome to the forum Claes.  |
Large Marklinist 3- Rails Layout with CS2/MS2/Boosters/C-track/favorites Electric class E03/BR103, E18/E118, E94, Crocodiles/Steam BR01, BR03, BR05, BR23, BR44, BR50, Big Boy. |
|
|
|
Joined: 12/12/2005(UTC) Posts: 2,448 Location: Wellington, New_Zealand
|
Quote:[size=1" face="Verdana" id="quote]quote:Originally posted by b-earl <br />Hi!
Is there anybody who could send me the 67 bmp pictures in the loksymbole map? Because in my CS version SW 1.6.134 there are only 11 pictures. Tanks in advance. Greetings Claes
I posted this a while ago FYI - other .BMPs listed @ http://pws.prserv.net/pjc/trains/loksymbole.htmlThe bmps are in your version of sw BUT the UI (user interface) only lets you see 11. By renaming the files it is possible to tune the 11 that are visible. And/Or (as in the case of my playing with the Function Car ) edit them by GET/PUTs. This may not be available with the 'default' signin at your level. |
Peter
|
|
|
|
Joined: 02/10/2003(UTC) Posts: 111
|
I bought a new tv today and this just hit me because the tv came with documentation for busybox, gcc and libc.so source code to be found on the company's website.
Since we've established in this thread that the CS is using busybox, has anybody found the source code? Under the GPL, the source code for the open source software is required to be freely available. It should include documentation on how to obtain it, etc. Any ideas?
|
|
|
|
Joined: 19/10/2005(UTC) Posts: 393 Location: Aarhus C, DK
|
The source code for busybox can be found here http://www.busybox.net/They don't have to release the source code for the special programs used to control trains and so on. Michael |
Märklin C-tracks, Mobile Station, Danish Ep 4 |
|
|
|
Joined: 25/07/2007(UTC) Posts: 11 Location: Home,
|
Did anyone try this on an updated cs?
Would be cool if it was possible to alter some files or copy stuff to the CS :)
Maybe create new languages or change the display |
|
|
|
|
Joined: 29/04/2007(UTC) Posts: 109 Location: NRW, Germany
|
Hi bibihest,
at the moment it looks for me that either Telnet and FTP are password-blocked. Would be great to hear about succesfull FTP-connection to the new updated CS. I failed to do it....
Mafi |
Don't be too proud of the new high tech terror you just have invented! (Darth Vader, Episode IV) |
|
|
|
Joined: 25/07/2007(UTC) Posts: 11 Location: Home,
|
Have tried about 10000 telnet passwords but no luck. Probably impossible to guess :) but would be great to get full access somehow.
My bruteforce software said it would take a couple of milleniums to find, so I gave up |
|
|
|
|
Joined: 25/07/2002(UTC) Posts: 826 Location: Tallahassee, FL USA
|
If the central station is a Linux box, is there a way to run a virtual central station on a Linux box w/o having to buy the station?--MM |
Michael Mascagni, Tallahassee
If I weren't a Mathematician, I'd be a Violinist.--Albert Einstein |
|
|
|
Joined: 15/04/2003(UTC) Posts: 2,734 Location: ,
|
Not really; only if you also have the mandatory development tools and aditional hardware which is included in this box.
|
|
|
|
Joined: 25/07/2002(UTC) Posts: 826 Location: Tallahassee, FL USA
|
I agree that you need specialized hardware, but a PC can send output to an IB, for example, and so a Linux program could look very much like the CS, I imagine. However, I doubt if the code for the CS is open source  .--MM |
Michael Mascagni, Tallahassee
If I weren't a Mathematician, I'd be a Violinist.--Albert Einstein |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.