VU+ Duo2 JTAG / I2C

Discussion in 'VuPlus Duo2 Hardware troubles and Repair support' started by Hade, Sep 5, 2020.

  1. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Hello at All,

    After I came back from holiday my VU+ Duo2 suddently did not work anymoe . On VFD there is nothing when switching on and on serial you see this "... Feeeeeeeeeeeeeee" error.

    Voltages have been checked and look all fine. Thus I expect a flash issue. I already found all needed software and the required USB-I2C adapter to work with BroadbandStudio 3.

    Remaining question is: Where to connect the "JTAG" cable (what is actually I2C according to signal names and not real JTAG)? From nnumber of pins I guess P301, but would like get confirmation before connecting something there.

    Another question: My box is used via SatIP only. In this case I don't need any DVBS2 tuner. Will it work / boot correctly if there is no tuner installed? I read about issues with power supply and tried first to operate the box without anything, what is not crucial for basic operation (tuners/HDD), to reduce power needs.

    Regards, Hade
     
  2. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    The P301 could be indeed the four pins, just measure if it has 3.3v on pin 1, the other following pins should give something as 3.2v, and pin four is (of course) the ground.
    Vcc/Scl/Sda/Gnd
    1 2 3 4

    Q: SatIP only..
    A: Box should starting up fine when there is any tuner connected.

    --------------------------- UPDATE -------------------------
    Jtag/I2c Solved, see here for more info..
     
    raza05 likes this.
  3. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Thanks a lot for confirmation. I will post when it was successful. Now I just have to wait until the I2C adapter arrives, before I can test.
     
    Johnny B. likes this.
  4. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Finally the "JTAG"-Adapter arrived and after installing VirtualBox and WinXP I managed to run Broadband Studio together with drivers for this "JTAG"-dongle. I got reply from the CPU as image below shows. Unfortunately I don't have BCM97425 plugin for BB3 and could not find it so far. I found an old post from 2 years ago about a missing BCM97424 or BCM97425. Did anyone find this file in between and could give me a copy? So far I have only plugins for 97346 and 97413.

    VU+Duo2_JTAG-Reply.png
     
  5. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    BCM97425
    Sorry, Link to it removed, because it was not the BCM97425, but the BCM97325
    I probably not have it, but if I have it than I need to check it on another location, which I can do on Friday in the evening.

    As for the BCM97424, for the Bbs, sorry I do not have that.
     
    Last edited: Oct 8, 2020
    raza05 and Hade like this.
  6. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    No, sorry to say, but at the moment I only have these BBS devices in my list.
    And so far I haven't been able to find the BCM97424 or BCM97425 download.

    Snap1.jpg
     
    raza05 likes this.
  7. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Thank you very much for checking for 7424/5. I will continue trying to get these files and can give you a copy when I find them.

    In between I need to try to find another way to get life into my box again.
     
    Johnny B. likes this.
  8. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    I managed to patch dll files from another BCM9xxxx to at least get a connect. I can see some register values, but were not able to get flash access so far. Which of your BCM9xxxx files could be most close to BCM7425 used in Vu+Duo2 ?

    If it is a variant with some features less or more, it could have some similarities for common components.

    I just hope flash interface is accessable in same way and don't care about other components, what will not work.
     
  9. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    Yeah I think you need to use a bcm bbs script which is close to the duo2 cpu and also use the Samsung K9K8G08U0D nand chip.
    However, I have no idea which bcm is closest to the 7425, my closest it I think the Bcm97429.
    But it is interesting that you succeeded to connect to it.
     
    raza05 likes this.
  10. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    I could give it a last try for the time being, if you could send me BCM97429 files. Patching should be easy.
    I used : https://github.com/0xd4d/dnSpy to modify base.ProductId from one of the Bcm7XXXXX classes. ProductId is the CPU reply seen in above oszilloscope image or the first line on serial interface during boot without "BCM". I expected something like this, because this was one of the two replies before getting a connect on I2C-bus. Maybe the other is revision, but I did not check for it in more detail, after it worked.

    Do you have XML file for Samsung K9K8G08U0D nand chip? I'm sure, I saw it somewhere, but unfortunately did not download. What will happen, if selected NAND does not fit? Will there be some data readable? So far it did not work at all., but I only tried with modified 7346 and 7413. In both cases I got an IO-error.
     
    Johnny B. and toysoft like this.
  11. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    Well as for the BCM97429 file(s), I already had it posted into a vu SoloSE post under the file BCM97421.zip
    No clue why it has called the bcm97421, but in the zip file you also find the BCM97429.
    Anyways, see here...

    As for the K9K8G08U0D xml script for the bbs, I have never made this , nor posted.
    And so, I need to do some examining to it to make one.
     
    raza05 and Hade like this.
  12. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    As for the bbs K9K8G08U0D nand chip script,

    I think that this script settings should be correct, based on the datasheet information and that it's a 4Gbit chip.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Flash maker="Samsung" name="Samsung K9K8G08U0D" type="NAND" technology="SLC">
      <Command type="Nand" programmode="Block" maxbyte="2048"/>
      <ID>
        <Maker maxbyte="1" offset="0x00">0xEC</Maker>
        <Device maxbyte="1">
          <DevId offset="0x01">0xD3</DevId>
        </Device>
      </ID>
      <Size unit="gbit">4</Size>
      <Sector uniform="true" secure="false">
        <MaxSector>4096</MaxSector>
        <Size unit="kbyte">128</Size>
      </Sector>
    </Flash>
    
    Just copy/paste it with notepad or other text editor and call the file K9K8G08U0D.xml and save/place it into the c:\Program Files\Broadcom\Broadband Studio 3\Flashes directory.

    New edited/Tested at 21 Dec-2020 with successfully and working results.
     
    Last edited: Dec 21, 2020
    Hade and raza05 like this.
  13. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Thanks a lot for this XML code. I checked the numbers and replaced
    Code:
    <Size unit="kbyte">4069</Size>
    with
    Code:
    <Size unit="kbyte">128</Size>
    Unfortunately patching BCM97429CB did not work so far and with patched BCM97346 I cannot get access to NAND controller. I will keep trying...
     
    toysoft and Johnny B. like this.
  14. slcopy

    slcopy New Member

    Messages:
    5
    Likes Received:
    4
    Trophy Points:
    3
    Gender:
    Male
  15. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    @slcopy
    Thanks for it, but the file / forum can only be accessed with a login account.
    And I tried, but in my case I failed to make one.
     
    Aliraza63 likes this.
  16. Aliraza63

    Aliraza63 Active Member

    Messages:
    117
    Likes Received:
    206
    Trophy Points:
    43
    Gender:
    Male
    Johnny B. and Hade like this.
  17. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Thanks a lot for providing this file. Now I successfully was able to get flash access.
    Unfortunately it looks like the first block of my flash IC is bad. I could erase it, but not write a new image.

    Any idea, where I can get a new compatible flash IC?
     
  18. slcopy

    slcopy New Member

    Messages:
    5
    Likes Received:
    4
    Trophy Points:
    3
    Gender:
    Male
  19. Hade

    Hade New Member

    Messages:
    9
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    After restarting the box it now suddenly works. It's flashing .... slowly... 3.6% after ~2hours.
    May I interrupt it and just hope the bootloader is already ok again and flash afterwards via USB? How much is needed for a working bootloader?
     
  20. Johnny B.

    Johnny B. Technical Support Staff Member Moderator

    Messages:
    2,822
    Likes Received:
    1,504
    Trophy Points:
    113
    Gender:
    Male
    Location:
    Netherlands
    Home Page:
    Bast is to wait until it's finished I think, that's at least what I would do to see what the end result could be.