VU+ Duo2 JTAG / I2C

Discussion in 'VuPlus Duo2 Schematic drawings, Pcb images etc..' started by Hade, Sep 5, 2020.

  1. Hade

    Hade New Member

    Messages:
    7
    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,225
    Likes Received:
    970
    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.
     
    raza05 likes this.
  3. Hade

    Hade New Member

    Messages:
    7
    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:
    7
    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,225
    Likes Received:
    970
    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,225
    Likes Received:
    970
    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:
    7
    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:
    7
    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,225
    Likes Received:
    970
    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:
    7
    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,225
    Likes Received:
    970
    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,225
    Likes Received:
    970
    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 8Gbit 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="8192"/>
      <ID>
        <Maker maxbyte="1" offset="0x00">0xEC</Maker>
        <Device maxbyte="1">
          <DevId offset="0x01">0xD3</DevId>
        </Device>
      </ID>
      <Size unit="gbit">8</Size>
      <Sector uniform="true" secure="false">
        <MaxSector>8192</MaxSector>
        <Size unit="kbyte">4069</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.

    When it not works, then you could also use tha 4gbit version, which is then this script code,
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Flash maker="Samsung" name="Samsung K9K8G08U0D" type="NAND" technology="SLC">
      <Command type="Nand" programmode="Block" maxbyte="4096"/>
      <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">2048</Size>
      </Sector>
    </Flash>
    
    But I think that the first one should be correct.
     
    Hade and raza05 like this.
  13. Hade

    Hade New Member

    Messages:
    7
    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.