LCD screen for your dockstar (cheap! <$5) November 17, 2010 07:53PM |
Registered: 13 years ago Posts: 261 |
# st2205tool wget http://www.neophob.com/files/st2205tool-1.4.3.tar.gz tar xvfz st2205tool-1.4.3.tar.gz apt-get install libgd2-xpm-dev cd st2205tool && make && make install # LCD4Linux wget http://ssl.bulix.org/projects/lcd4linux/raw-attachment/wiki/Download/lcd4linux-0.11.0-SVN.tar.bz2 tar xvfj lcd4linux-0.11.0-SVN.tar.bz2 cd lcd4linux-0.11.0-SVN ./configure && make2. Plug in your picture frame into a USB port & select 'Upgrade' or 'Update' if prompted (some do, some dont)
# lsusb Bus 001 Device 029: ID 1403:0001 Sitronix Digital Photo Frame ... # dmesg | tail -12 usb 1-1.3: new full speed USB device using orion-ehci and address 29 scsi24 : usb-storage 1-1.3:1.0 scsi 24:0:0:0: Direct-Access SITRONIX MULTIMEDIA 0.09 PQ: 0 ANSI: 0 CCS sd 24:0:0:0: Attached scsi generic sg1 type 0 sd 24:0:0:0: [sdb] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB) sd 24:0:0:0: [sdb] Write Protect is off sd 24:0:0:0: [sdb] Mode Sense: 0b 00 00 08 sd 24:0:0:0: [sdb] Assuming drive cache: write through sd 24:0:0:0: [sdb] Assuming drive cache: write through sdb: unknown partition table sd 24:0:0:0: [sdb] Assuming drive cache: write through sd 24:0:0:0: [sdb] Attached SCSI removable disk4. Hack your device
cd st2205tool ./hackfw.sh /dev/sdXIf the hack script finds a known hack for your device and prompts if it should go ahead and perform the hack...
cd ../lcd4linux-* # Download example lcd4linux.conf (looks like this) wget -O lcd4linux.conf http://www.shrani.si/f/1c/J7/ynfJw3W/text.htm # edit out HTML cruft # change device in config to be /dev/sdX6) Start LCD4Linux
./lcd4linux -F -v -f ../lcd4linux.conf
Re: LCD screen for your dockstar (cheap! <$5) November 17, 2010 10:44PM |
Registered: 13 years ago Posts: 261 |
apt-get install crasm subversion subversion-tools2. Compile da65 dissassembler
svn checkout svn://svn.cc65.org/cc65/trunk cc65 cd cc65 && make -f make/gcc.mak3. put generate-hack.pl script in st2205tool directory and run it (edit path to da65 in script if necessary)
cd st2205tool/hack for x in `ls -1d m_* | grep -v m_coby_dp151`; do mv $x xxx_$x; done # disable unecessary hacks cd .. ./generate-hack.pl /dev/sdX hack/m_my_new_hackIt will dump device firmware, chop it up, do all the steps in hack/newhack.txt, create a spec file, and recompile everything using assembleme/crasm
Re: LCD screen for your dockstar (cheap! <$5) November 18, 2010 07:43AM |
Registered: 14 years ago Posts: 166 |
Re: LCD screen for your dockstar (cheap! <$5) November 18, 2010 10:25AM |
Admin Registered: 14 years ago Posts: 304 |
Re: LCD screen for your dockstar (cheap! <$5) November 18, 2010 03:05PM |
Registered: 13 years ago Posts: 20 |
Re: LCD screen for your dockstar (cheap! <$5) November 18, 2010 04:23PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) November 18, 2010 04:35PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) November 19, 2010 11:32AM |
Registered: 13 years ago Posts: 9 |
Maxi
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 06:13AM |
Locating CMP_VAR1 & CMP_VAR2... Eeek! expected single match but found 0 - dont know what to do!
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 06:56AM |
Registered: 13 years ago Posts: 261 |
L6DEC: LDA $037c CMP #$31 BNE L73c1 LDA $037d CMP #$00 BNE L73c1 BRA L73d3Its possible the da65 version from the .deb file installs with some different formatting options that might stop the script working (i.e. if "LDA $037c" is output as "LDA D037c").
da65 -S 0x4000 --cpu 65C02 fwimage-seg0.bin > fwimage-seg0.txt-PG
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 06:59AM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 05:16PM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 10:10PM |
Registered: 13 years ago Posts: 261 |
wget -O - 'http://forum.doozan.com/file.php?2,file=31,filename=generate-hack.pl,download=1'; > generate-hack.pl chmod +x generate-hack.pl
Re: LCD screen for your dockstar (cheap! <$5) November 20, 2010 10:54PM |
Registered: 13 years ago Posts: 92 |
maxii
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 02:26AM |
user/st2205tool# svn checkout svn://svn.cc65.org/cc65/trunk cc65i get..
svn: Network connection closed unexpectedly
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 08:07AM |
Registered: 13 years ago Posts: 261 |
# apt-get install ftp # ftp ftp.musoftware.de Name (ftp.musoftware.de:root): anonymous ftp> passive ftp> cd /pub/uz/cc65/snapshot/ ftp> get cc65-snapshot-sources-2.13.9.20101115.tar.bz2 ftp> quit tar xvfj cc65-snapshot-sources-2.13.9.20101115.tar.bz2 mv cc65-snapshot-2.13.9.20101115 cc65> thats why i went to the cc65.org site and get the
# hexdump fwimage-seg0.bin | head -10 0000000 a085 32a5 a548 4833 40a9 a948 4841 18da 0000010 bdba 0106 a285 0469 069d bd01 0107 a385 0000020 0069 079d fa01 a184 04a0 a2b1 8848 a2b1 0000030 8848 a2b1 8848 a2b1 3285 8568 a533 a4a0 0000040 60a1 8568 6833 3285 7860 3e64 3f64 3c64 0000050 3d64 3864 ffa2 209a 424d 5820 2042 41ec 0000060 4220 2042 4243 4c20 2042 4276 9620 2041 0000070 42ac 5520 a543 2994 090f 8500 4894 03a9 0000080 3585 2068 0820 0001 55d2 2020 0108 3800 0000090 2054 0820 0001 5628 d020 2056 41bb bb20> oh, hardware info:
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 08:14AM |
Registered: 13 years ago Posts: 261 |
cp m_coby_dp152 st2205tool/hack/ cd st2205tool ./hackfw.sh /dev/sdX> Thanks Peter for helping us out on this.
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 08:54AM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 12:34PM |
Registered: 13 years ago Posts: 261 |
cd st2205tool/hack wget -O - 'http://forum.doozan.com/file.php?2,file=37,filename=m_coby_dp152.tar.gz,download=1'; > m_coby_dp152.tar.gz tar xvfz m_coby_dp152.tar.gz cd .. perl -pi -e 'undef $/; $_=<>; s/\nint is_photoframe\(int f\) {\n/$&return 1;\n/; print' main.c make ./hackfw.sh /dev/sdX # you have to change sdX to be the right device as shown in dmesg
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 01:33PM |
Registered: 13 years ago Posts: 92 |
Quote
cd ../lcd4linux-*
# Download example lcd4linux.conf (looks like this)
wget -O lcd4linux.conf http://www.shrani.si/f/1c/J7/ynfJw3W/text.htm # edit out HTML cruft
# change device in config to be /dev/sdX
could you make it more like real file names and stuff, seems like you are giving examples but that part seems confusing as to what we actually are suppose to do.
I'm happy at least I hacked it , first part done! :)
Now I have to figure out what to do with it! :)
Edited 3 time(s). Last edit at 11/21/2010 01:45PM by rgtaa.
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 01:39PM |
Registered: 13 years ago Posts: 261 |
./phack -df original-fwimage.bin /dev/sdX
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 02:07PM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 02:11PM |
Registered: 13 years ago Posts: 261 |
wget -O - 'http://forum.doozan.com/file.php?2,file=38,filename=lcd4linux.conf,download=1'; > lcd4linux.conf # edit the /dev/sdX line so it uses the right device chmod 600 ./lcd4linux.conf ./lcd4linux -F -v -f ./lcd4linux.conf
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 02:18PM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 02:36PM |
Registered: 13 years ago Posts: 261 |
chmod 600 lcd4linux.conf
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 03:04PM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 03:28PM |
Registered: 13 years ago Posts: 261 |
# at end of /etc/rc.local ... lcd4linux -f /path/to/config/lcd4linux.conf # start up picframe display startx < /dev/null > /dev/null 2>&1 & # start up displaylink monitor exit 0
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 04:38PM |
Registered: 13 years ago Posts: 92 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 05:08PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) November 21, 2010 05:27PM |
Registered: 13 years ago Posts: 92 |