|
|
![]() |
|
|
|
|
|
#1201 | Link |
|
|
New Member
|
J7 connector
I'm really impressed to see how far you've already come debugging the MG-35. I don't own one by myself but some information on the J7 connector might be helpful for you.
1) connector J7: I'm very confident that this is the JTAG connector for the Altera CPLD EPM3032. The pinning fits to the Altera-programming-adaptor like Byte-Blaster, USB-Blaster etc. The purpose here is to flash the CPLD via the Blaster. This can be done during development or in production-line as well. I guess is takes about 10..20 sec. for erase+program+verify, so production-line would still be possible. 2) purpose of EPM3032: As mentioned earlier the EPM3032 is a CPLD that is electrically erasable and programmable. It contains only 32 macrocells and thus makes it very unlikely to be the glue-logic in order to flash the parallel flashes. 2x16MBit flashes of x16 organization would need more than 32 flip-flops in order to allow serial-to-parallel conversion, address-counter, flashing-state machine, etc. So, some glue-logic for eg. address-decoder is more likely. 3) JTAG i/f to EM8511: In theory it's possible to do a JTAG chain between EPM3032 and EM8511 and also to use the J7. But that would mean the debug-interface to the EM8511 (ARM) would rely on an Altera standard-connector and interface - very unlikely. One could verify this by using an USB-Balster and the QuartusII-programmer ("Scan chain" button), but I don't think it's worth the effort. So, if there is any JTAG-i/f to the EM8511 it must be somewhere else - maybe TP45 ff. as mentioned by Ian earlier. 4) parallel flash: I would bet that the parallel flashes will be populated pre-programmed. Flashing the device within the production-line would need too much time for an efficient production process. The normal flash update from a functional system is well known to all MG-35 owners, but assuming something goes wrong and the flash gets totally corrupted (incl. flash-loader) there should be some way to reflash the system easily (without soldering). Because J7 is unlikely from above assumption there is only J9 left - and Ian seems on the right track already. I'm quite sure that there is also a mechanism of bootstrapping the system with something useful even if the flash-loader is corrupted. Normally this bootstrap will be initiated by sending some magic bytes via the serial short after reset. But to get this information without a datsheet seems to be almost impossible. Hope this helps a little bit - and good luck on debugging. |
|
|
|
|
|
|
#1202 | Link | |
|
Senior Member
|
Quote:
But maybe we could scavenge some software from other Sigma Designs EM8511 based players (and maybe include EM8510 based players, I don’t know how compatible they might be)? They all look pretty similar in design and function (even using the same OEM remote control). Here is my start of a list of Sigma Designs EM8511 based players: Mediagate MG-35 Freecom Network Media Player-35 MODIX HD-3510 TViX mini C-2000U / C-2000U Lite AivX (DVP-254) LaCie SliverScreen iZak Portable Media Device Vantec AVOX Jukebox
__________________
The answer is technology! What was the question? |
|
|
|
|
|
|
#1203 | Link |
|
Senior Member
|
The above Sigma Designs EM8511 based media players got to have some hardware similarities, the same for the GUI even though there are a lot of differences too (I bet mainly design wise, not functionality)...
LaCie SliverScreen: Modix HD-3510: ![]()
__________________
The answer is technology! What was the question? |
|
|
|
|
|
#1206 | Link |
|
British American
|
@EmuMannen
Cant find that one yet , but LG also do another MG25 clone - F/w in the same format and extracts with PB's tools... http://www.lgnetwork.com/lgnetwork/d...q=70&ca_no=021
__________________
DO NOT BUY THE mg-m2tv - ITS A TOTAL PILE OF JUNK! MG-35 & MG-45 Yahoo Support Group: http://groups.yahoo.com/group/mg-35_firmware_mods/ |
|
|
|
|
|
#1207 | Link |
|
British American
|
@EmuMannen
Took some finding but here it is - firmware for Vantec AVOX Jukebox - This is Chineese , but reading various forums its the only one around , and does display in English.. Hope this helps.. http://rapidshare.de/files/28460567/...7_CHN.zip.html Interesting point here is that this MG-25 clone has a screensaver , so it must be super easy for al Tech to add one to the MG-35?
__________________
DO NOT BUY THE mg-m2tv - ITS A TOTAL PILE OF JUNK! MG-35 & MG-45 Yahoo Support Group: http://groups.yahoo.com/group/mg-35_firmware_mods/ Last edited by teddystacker; 08-06-06 at 08:42 PM.. |
|
|
|
|
|
#1208 | Link | |
|
DIY Guy
|
Quote:
Joe L. |
|
|
|
|
|
|
#1209 | Link | |
|
Senior Member
|
Quote:
The MG-25 in particular has firmware V 1.4.6 out already, and it has a readme that mentions the JPEG fade-in/fade-out that we got with the MG-35 1.4.5 firmware. It would be very interesting if the MG-25 firmware could handle the media that's troubling my MG-35. ![]() |
|
|
|
|
|
|
#1210 | Link | |
|
Senior Member
|
Thanks all! Looks like we got another "clone" (with built in networking) in the "DIGITAL/MOVIE COWBOY":
![]() ![]() Take a look at the following page, it hosts firmwares for several models, DC-MC35UL2, DC-MC35UL/N and DC-MC35UL etc...
__________________
The answer is technology! What was the question? |
|
|
|
|
|
|
#1211 | Link | ||
|
Advanced Member
|
Quote:
The parallel flashes have paint blobs, presumably to show they are programmed and to mark high and low. Let's just say that I have lost interest in J7 and am now planning to sniff around the set of pads by the EM8511 marked "D" - hires pictures in the yahoo group. Quote:
Ian |
||
|
|
|
|
|
#1212 | Link |
|
Advanced Member
|
A few thoughts -
1) We really need an FAQ and ideally on a wiki page. I'm finding myself having to look back through this thread to find stuff, and it isn't easy! 2) I suspect the romfs is loaded at 0x1400000 so that the kernel can be decompressed to 0x1008000 and the cramFS then placed (uncompressed) after it in RAM. This means we'll only lose as much ram as the cramFS takes. The serial loader will take care of passing the new cramFS arena address into the kernel (it must as the existing kernel doesn't know where it was decompressed from without something passing in such information) 3) The config data seems rather large. And I seem to have lots of copies already. This leads me to believe that the serial loader NV data and the kernel NV data are in the same area. Is it khwl.o that provides access to this? If so, then I'm sure there is spare room, and if we can figure out the driver calls, we can then get NV data of our own to configure our customisations. I'll hunt for docs on khwl and/or an intercept driver to capture all access to khwl. Ian |
|
|
|
|
|
#1213 | Link |
|
Member
|
Hi All,
My box is working again.. What I did was this: 1) Use the serial port to access the bootloader. 2) download serial romfs 3) flash romfs The "romfs" file format is composed of the following parts: 1) 4 bytes locating the offset of the cramfs image. 2) Linux.bin.gz 3) Cramfs.img The 4 byte "header" can be found in the complete firmware image. To get the correct one, I took a ".upgrade" firmware image and deleted everything up to 4bytes before the start of the compressed kernel. In fact, the ".upgrade" image has a section called "ROFS" and requires a checksum in the firmware image for /bin/upgrader to accept it as valid. The ROFS section is exactly the same as the ROMFS that the bootloader is looking for. Hope that makes sense. ------------------------------------------------------- @Gadgetmind.. How did you determine that it was looking at 0x40004 for the kernel? That was the clincher. I kept loading the kernel image at 0x40000 and it kept failing to boot. To be honest, I'm not sure if the initial 4 bytes are just padding or not. I should probably zero out that first dword and try again, but for now, I'm happy with my working MG35. ---------------------------------------------------- @EmuMannen, Your custom graphics are great. A hell of a lot nicer on the eyes than the boring grey. I do have a few comments though.. 1) The logon image doesn't really fit with the rest of the Blue/Yellow theme. 2) The smiley face selection circle is a bit much. How about just a circle? 3) Images with rounded edges have an odd scan-shift problem. The last is difficult to describe, so I'll take some pictures when I get home. Otherwise, great job! The graphics work fine, look a lot better, and my palette injection works. ------------------------------------------------------- @All, I now know why my firmware flash killed my new box. I created a new cramfs image using mkcramfs in debian emulated through QEMU. The cramfs image checked out fine with cramfsck on debian and cygwin. It even opened fine with FSExtractor. But when I tried to extract a file with FSExtractor, the extracted file would be 0 bytes every time. So, somehow I made a cramfs image that appeared to be OK, but extracted as 0byte files. Needless to say, the MG35 didn't like that very much. From now on, I'm sticking with mkcramfs in cygwin. The cygwin generated cramfs images work fine. pb |
|
|
|
|
|
#1214 | Link |
|
New Member
|
Sigma em8511 based players:
- zioncom hv0102 - Auvisio HV0102A by Pearl - MV-4000U by Mvix - MV-4000U by Unicorn - playTIME H35 by EFM - MV-160 by MS-Tech - BX-NMP101 by SUZA - TMV-100 by Techsolo - Auvisio HV0102B by Pearl - MV-5000U by Mvix - MV-5000U by Unicorn Skins, firmware and link to a dedicated forum at: mediabox_dnsalias_com (sorry, I can't post urls). |
|
|
|
|
|
#1215 | Link | |||||
|
Advanced Member
|
Quote:
Quote:
BTW, did you try "boot image"? This should boot the new romfs without flashing it. Quote:
[quote] The ROFS section is exactly the same as the ROMFS that the bootloader is looking for. [/QUOTE/ Great, so we should be able to use a command line tool to extract these? No, scratch that, we only need to distribute one for people to use for recovery. If you make one available for your new version with fancy graphics I can experiment with booting without flashing. Quote:
My guess is that if you zero out this dword, the kernel will boot but won't find its cramFS. I think the "boot flash" command will play with this pointer after it decompresses the kernel to ram and copies the cramFS after it in ram. But the behaviour of "boot flash" is guesswork at the moment. Quote:
Anyway, great progress. So far you have - Sussed the .upgrade format Created and flashed the first home-brew upgrade Sussed the pallette Worked out the serial pinout Worked out the serial password Sussed the serial download and reflash procedure. And much more. Slow down - you're making us all look bad. :-) I'm going to play with tftp tonight and try and get a new romfs into the beast this way. Should make development faster and less risky. We can then take the big step of trying to build a working kernel! Ian |
|||||
|
|
|
|
|
#1216 | Link |
|
Advanced Member
|
I guess what I'd really like is a tool that takes a kernel and a cramFS and builds either/both a .upgrade file and a romfs.m35 file complete with all headers and checksums. I'd like this to be multi-platform and ideally not need someone to install .net, python, etc.
It should also cope with larger/smaller kernels and cramFS and warn if the size of the whole lot exceeds 4MBytes-256KBytes (which is what I think our maximum size is) The tool will need to either compress the kernel as part of the process or use zlib to find the uncompressed size and checksum (is it a zlib checksum?) We seem to have some C coders raring to go, so maybe we can draw a diagram to specify the output file formats that are required and someone can knock something together? Ian |
|
|
|
|
|
#1217 | Link | |
|
Advanced Member
|
Quote:
The "download <media> romfs" command loads to ram at 0x1400000 The "flash romfs" then programs this into flash. I think the "boot romfs" command should boot it, but the more I think about it, the more I'm convinced that what I was putting into memory yesterday should have booted if this theory is correct. I tried memcpy 0x1400000 0x40000 0x3C0000 boot image and it failed to deflate. Or maybe I typed it wrong. Will try again BTW, the 0x3C0000 is 4MBytes (end of ROM - 0x400000) - 256KBytes (start of kernel+cramFS in ROM - 0x40000) I think the serial loader is in the first 64k (0 - 0x10000) with NV data after it. I guess much of the serial loader is copied to ram (probably at 0x1000000) to run as otherwise it would struggle when reflashing. Ian |
|
|
|
|
|
|
#1218 | Link |
|
Advanced Member
|
OK, how's this for a summary of what we know so far regards the format of .upgrade and romfs.m35 files.
---------------------------------------------------------------------- "UPGI" ascii "XM02" ascii dword = version (0x00010404 = version 1.44) This next section seems to be optional "BOOT" ascii dword = checksum of bootloader (sum of dwords) dword = 0 = flash location for bootloader? dword = size of bootloader bootloader data This next section to EOF is the romfs.m35/image file that is used with the serial bootloader (but without the "ROFS" ID string) "ROFS" ascii dword = checksum of rom filesystem (sum of dwords) dword = 0x00040000 - location to program in flash dword = size of rom filesystem --- from here to end of file is the rom file system dword = location in flash of cramfs (0x40000 + size of compressed kernel + 4) linux.gz (last 8 bytes are - crc32 and uncompressed size of kernel) cramfs.img (last 8 bytes as for above) ---------------------------------------------------------------------- It looks like my copying and "boot image" failed as I needed an extra 12 byte header that's used for flashing but (I guess) not booting. Will try 12 bytes of junk tonight. I guess we now have everything required to write a utility that will take an arbitrary Linux.gz and cramFS.img and make an output file with all checksums and sizes correct. I suggest command line options for whether to build a romfs or to include the full .update header and in the latter case for which version to inject. I suggest we *don't* include the boot data! Ian Last edited by gadgetmind; 08-07-06 at 09:58 AM.. Reason: Correction - the kernel crc and size are part of gzip |
|
|
|
|
|
#1219 | Link | |||||||
|
Senior Member
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
__________________
The answer is technology! What was the question? |
|||||||
|
|
|
|
|
#1220 | Link |
|
Member
|
just fyi you can safely flash the Mediagate MG-35 to the "Digital Cowboy" firmware 1.4.5.
tried it, it works, but DC version is even uglier than AL Tech's version of 1.4.5 and doesn't seem to add any new features or bugfixes so i flashed it back. >> i don't know if others have this problem, but my MG-35 can't seem to play 2GB avi files (Xvid/AC3 coded with AutoGK)... while the same files play fine on my PC and the TViX 3000. the MG-35 always starts at the last ~30 seconds of the file and i can't even time search to the beginning. suxx |
|
|
|
|
|
#1221 | Link |
|
Advanced Member
|
My message 1218 has been edited 3-4 times now as I've found cockups.
Depending on where you get the info from, the compressed size of the kernel either includes the size and crc dwords on the end or it doesn't. The most useful number is the one with these extra 8 bytes. I'm really hoping that tftp and "boot image" will work - developing without reflashing will be *really* nice. pbarrette: Any chance I can get the ROMFS section for your new firmware with pretty graphics? Ian |
|
|
|
|
|
#1222 | Link |
|
British American
|
@austinv
Can you please post a url for the "digital Cowboy" 1.4.5 Firmware..
__________________
DO NOT BUY THE mg-m2tv - ITS A TOTAL PILE OF JUNK! MG-35 & MG-45 Yahoo Support Group: http://groups.yahoo.com/group/mg-35_firmware_mods/ |
|
|
|
|
|
#1223 | Link |
|
Senior Member
|
EmuMannen posted it above. It's http://www.digitalcowboy.jp/support/index.html
|
|
|
|
|
|
#1224 | Link | |
|
Member
|
Have been following the work you guys have done. I cant believe what you have accomplished!!
I understand almost nothing of the details :-) But it seems to me that we may have some home-brew firmware for our MG-35 sometime in the future and that is awesome!!! I really like my MG-35 but hope it can be improved. Quote:
Anybody here know how to set up a wiki? Is there anyway we non-programers can help support the work? I think I'll go ahead an send a donation for the test box. I think there are many mg-35 owners that are watching to see what happens here, but not commenting because this is (technically) way over our heads. Keep up the good work! |
|
|
|
|
|
|
#1225 | Link | ||
|
Advanced Member
|
Quote:
How about "MediaGate" for the name of our wiki, with flyduck as a password and the first page called, "Mg35Faq"? I'm happy to kick it off but am aware there are a lot of other enthusiastic people out there and I'm already tackling a few technical areas. Quote:
There are still a few risky stages and we're really lucky that no-one has had a box out of action for too long yet. Getting a development MG-35 to send to whoever most has the need at the time will help a lot.If we do start a wiki, there are lots of non-technical issues that can go into an FAQ. Ian |
||
|
|
|
|
|
#1226 | Link |
|
British American
|
I would be papared to get a "archive of what we have found" on a wiki page , but would need some of the more techie guys to write this all out first.I could go back thru alot of the old messages , but not really sure what has chanced and what has not.I have some techie knowledge but dont want to mess things up and publish incorrect data/findings
__________________
DO NOT BUY THE mg-m2tv - ITS A TOTAL PILE OF JUNK! MG-35 & MG-45 Yahoo Support Group: http://groups.yahoo.com/group/mg-35_firmware_mods/ |
|
|
|
|
|
#1227 | Link | ||
|
Advanced Member
|
Quote:
Quote:
I do a lot of thinking out loud on this forum. Some is right, some is wrong, but even the wrong bits can get someone's mental cogs whirring, and before too long they will have put me right. Ian |
||
|
|
|
|
|
#1228 | Link |
|
British American
|
Ok I will get something going later or tomorrow , off out for the day now..
__________________
DO NOT BUY THE mg-m2tv - ITS A TOTAL PILE OF JUNK! MG-35 & MG-45 Yahoo Support Group: http://groups.yahoo.com/group/mg-35_firmware_mods/ |
|
|
|
|
|
#1229 | Link |
|
Senior Member
|
I have unpacked several firmwares (just for fun) and compared the content. As already noted, the “Digital Cowboy” is more or less identical (if not) to MG-35. It has a “bluish” theme but rather ugly if you ask me.
The Vantec AVOX Jukebox has the nicest GUI but it’s a bit different set of graphics. Took a look at the device and it’s a 2.5” device without a RJ45 socket. So I assumed that there are EM8511 based media players (based on the same development kit) that are network enabled like MG-35, Freecom & Digital Cowboy. And that there are the ones without network support like MG-25, Modix HD-3510, Vantec AVOX Jukebox etc. Reasonable assumption I guess and maybe that’s why the following lines in \CRAMFS\etc\sashrc in the Vantec AVOX Jukebox firmware are commented out: Code:
#!/bin/sh echo echo "Welcome to the EM85xx Shell" echo #mount -t proc proc /proc #mount -t ramfs ramfs /hosts #mount -t ramfs ramfs /net /dvdplayer.bin & #sleep 3 #/sbin/ifconfig eth0 192.168.0.222 up This made me all confused and I can’t find a users manual for the Vantec AVOX Jukebox so I can’t verify if the GUI got support for LAN configuration or not (but why should it if the unit doesn’t have a network connector)? I wonder if the graphics are leftovers from a development kit…
__________________
The answer is technology! What was the question? |
|
|
|
|
|
#1230 | Link | |
|
Advanced Member
|
MediaGate wiki
OK, I decided to take my own advice and have created a wiki.
The first page is at - http://mediagate.pbwiki.com Not much content yet! [later] OK, I've added an embryonic FAQ and an unfinished page on serial reflash. It's a pretty fast wiki and the adverts down the RHS are from Google and don't get in your face. Ian Last edited by gadgetmind; 08-07-06 at 10:45 AM.. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|