1. Welcome to the official forum for MINIX devices!

X6 bricked after loading wrong recovery.img

Discussion in 'NEO X6 Custom ROMs, Kernels and Discussion' started by dagelf, Apr 22, 2015.

  1. dagelf

    dagelf New Member

    I have spent 2 evenings reading up on custom firmwares and there isn't much information about this board yet. My goal is to use it as a thin client, preferably by booting Gentoo, Arch or Ubuntu on it. There is the ODroid C1 from HARDKERNEL which makes it's source code freely available, so if their tools are compatible things look promising. I've also found some threads about people with various levels of success booting Arch on other S805 platforms.

    I found that I can boot into recovery mode by holding the reset button on the back (with a paper clip) while powering on the X6. (No need to hold down the power button). (If you boot up with a USB Keyboard plugged in, you can navigate the recovery.) Last night I tried to load a custom recovery.img by loading it onto an SD Card, and updating it from the recovery. Last night I booted into the recovery, with possibly a wrong recovery.img on the SD Card.

    I found that the X6 sometimes doesn't display to my 1080p HDMI display, and that I have to first plug it into my DVI 720p display via an adaptor cable, before it shows on the 1080p (in 720p mode). (It flashes pink a few times a second on the 720p DVI display.)

    But this time it didn't boot up at all. The blue light comes on, but then nothing happens. I opened it up and found a 3-pin DEBUG port behind the power button. Connecting a USB-to-TTL converter regardless of whether I hold the recovery button or not when powering it up, it boots up with the following:

    Code:
    QA5:A;SVN:B72;POC:1EF;STS:0;BOOT:0;INIT:0;READ:0;CHECK:0;PASS:0;
    no sdio debug board detected
    TE : 135473
    BT : 00:48:12 Jan 26 2015
    PMU:rn5t618
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    DC01 v:1100, 0x[36]: 00 -> 28
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    DC02 v:1150, 0x[37]: 00 -> 2c
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    DC03 v:1500, 0x[38]: 00 -> 48
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO01 v:2900, 0x[4c]: 00 -> 50
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO02 v:1800, 0x[4d]: 00 -> 24
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO03 v:1800, 0x[4e]: 00 -> 30
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO04 v:2850, 0x[4f]: 00 -> 4e
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO05 v:1800, 0x[50]: 00 -> 24
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO0a v:2700, 0x[56]: 00 -> 28
    -- i2c error, CTRL:
    0798d019
    -- i2c error, CTRL:
    0798d019
    LDO0b v:900, 0x[57]: 00 -> 00
    -- i2c error, CTRL:
    0798d019
    
    CPU clock is 1200MHz
    
    CPU type: M8
    While loop 1000times, error...
    
    PUB init fail! Reset...
    
    From what I have read searching for the above codes, unless there is some hardware problem, it looks like the wrong bootloader could has been flashed to the eMMC memory. (I'm not at the same computer now, but will update this when I check.)

    1) A comparison with a perfectly working X6 could clear this up. Could anyone be so kind so as to attach a USB-to-TTL converter to their X6 and post the POST and boot output?

    2) If I have indeed managed to overwrite the memory with a non-functional bootloader, will I need to reprogram the eMMC memory directly?

    3) Does anybody know if this is possible with the X6? The eMMC is a SAMSUNG chip and it seems to have 8 pins just barely exposed, 4 on either side. Can anybody assist to find the schematic or Pinout for these pins, and if they are indeed what I would need to reflash the eMMC?

    4) Does anybody know if it is possible still to force the board to boot of an SD Card prepared to contain U-Boot as per the instructions for similar S805 devices? Are there any pins I can short to accomplish this? (There is another device where it is recommended to short 2 pins on the SPI - are these exposed on this board, and based on the above output, will it work?)

    I will go and buy another unit in the meantime.
  2. alienhrgig

    alienhrgig New Member

    as far as i know from the finless rom documentation if you boot with reset and power for 10 seconds and a recovery.img file on sd card formated in fat32 it will default to the recovery from sd and not the internal
  3. Jurij Jurlits

    Jurij Jurlits New Member

    When i bricked my X6 i used "run update" command, it forces to load recovery.img from sdcard.
  4. cerise.anny

    cerise.anny Guest

    Hi! I had exactly the same problem. And it was indeed corrupt bootloader.
    It is possible to boot from SD card by shorting test point T7 to a ground. See a red mark on the image. You can use any ground on the board, but I used the one from debug1 ttl port marked GND.
    [​IMG]
    You will need to prepare a bootable SD card as described here http://www.slatedroid.com/topic/959...for-pretty-much-every-amlogic-8726-mx-device/ but instead 512mb partition make something bigger like 1gb.
    Get neo x6 firmware from http://www.minixforum.com/threads/x6-003-firmware-20141225.3066/
    And use bootloader.img found inside a zip instead of u-boot.bin as described in the thread of creating SD card.
    After that put recovery.img from here: https://drive.google.com/folder/d/0...teEdUMGdpZEVkc19wNHM1NmhaT0VIX2Y3YU1rTVU/edit on your SD card as well as the zip and aml files from the firmware archive you downloaded earlier.
    Insert SD card, short T7 to GND and power up the device. You don't need to hold the shortage after boot has started. It should install every thing automatically.
    I hope that helps you.
    Chavdar likes this.
  5. zdenek333

    zdenek333 New Member

    Hi I have a minix x6 is dead . blue LED is on. Can anyone send me a file on an SD card recovery. Create files as instructed to handle. please (n)
  6. dagelf

    dagelf New Member

    Sure, I'll mail you an SD Card with the recovery on it... if you still need it. Look me up on the web and send me your details.