o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.51k stars 417 forks source link

manual flashing: HDMI Interface Board DaVinci DM368 firmware #38

Open MrBurnsAT opened 7 years ago

MrBurnsAT commented 7 years ago

Hello

I have an non working HDMI module from an early Inspire1 Remote Which was long not used and so NAND run full of bad blocks. Was my First thought.

Board is labeled "WM610_GRCP_MFI368_V1" Interface Board is "WM610_GRCP_INTERFACE_V3"

20170703_192224 20170703_192242

I Hooked it Up to serial Adapter

20170703_233935

And got this

DM36x initialization passed! UBL Product Vesion : DJI-GRC-SUPER-UBL-1.0-rc0(2014-09-19) Dji UBL Version: 1.51(Sep 19 2014 - 16:13:09) Booting Catalog Boot Loader BootMode = NAND Starting NAND Copy... Valid magicnum, 0xA1ACED66, found in block 0x00000019. Valid magicnum, 0xA1ACED66, found in block 0x0000001D. No valid boot image found! NAND Boot failed. Aborting...

Now my question

Can we extract Firmware for this Board? Maybe something like uboot image like at Lightbridge hack

Bootloader looks intact

ruckusman commented 6 years ago

Only thing I can offer is that the HDMI board that I recovered may have been a recoverable error with my process, though the symptoms of not registering on the USB port is a common symptom, it may have different root causes.

What colour is the status LED when you power the remote normally - without and buttons pressed?

rufiooo commented 6 years ago

LED is red, when I power up craft than it becomes green and operates as it should (I can start motors etc). Just USB and HDMI ports are dead.

ruckusman commented 6 years ago

OK then it sounds as though you need to re-initiate the process, try the four button reset followed by loading the GS_OFMDM.bin on a USB key.

From that point depending on which version is cached as to if it will respond to firmware on a USB key or needs to be connected to a tablet or phone.

I don't recall if there was recognition on the device after resetting - using the downgrade on the device will inform you if the device recognises it and which versions are available to downgrade to, before then upgrading again.

The pair which I recovered were done using an android device and the ten second hold on the three bars in the splash screen, so clearly the cached firmware required interaction with a tablet

ruckusman commented 6 years ago

I was just downgrading a remote and craft and have a simplified process for you

Put the GS_OFDM.bin on a USB key and with the remote turned off put it into the USB.

Power on the remote normally - then do the four button press, after up to 10 seconds the status LED will turn white and it should then proceed to load the GS_OFDM.bin from the USB key.

Let that process complete, it will pause several times during the process.

Once finished power off the remote, remove USB key, power back on and connect device.

Then using the downgrade option from the splash screen to reload firmware.

One tip, if the large ribbon cable isn't inserted correctly the C1 & C2 buttons will not work correctly.

Other than the above process failing to recover the HDMI board I cannot suggest any further actions

hope this helps

rufiooo commented 6 years ago

No luck with this, USB is dead no matter what I do. But just another thought: what about microUSB port located next to HDMI? When I plug it into my desktop then it starts to install drivers - so this port works. And when I connect it to my android tablet via OTG USB adaptor then SimpleBGC (installed for alexmos gimbal config) app is trying to use this port.

Is there any option to use this microUSB to update firmware on I1 controller? I was trying to put in it OTG with pendrive with different bin files and start 4 button sequence but without any effect. DJI GO on tablet nor DJI Assistant 2 on desktop does not recognizes it.

ruckusman commented 6 years ago

The only reference I ever saw of the other USB was it being listed in a user manual for future expansion - that was many years ago and I've never seen or read of anything being manufactured for it since then.

There's a bunch of serial connection on the upper side of the HDMI Module, I can't offer any guidance on their use to you, however this thread delves into the intricacies of flashing firmware onto lightbridge modules with errors and may be a good starting place. It mentions bridging the BSEL and 3v3 pins on a lightbridge unit, both of which are also present on the HDMI board, which is a good thing.

https://phantompilots.com/threads/lightbridge-firmware-problem-and-solution-firmware-version-not-found-by-dji-assistant-tool.77073/

mefistotelis commented 6 years ago

Back to what @MrBurnsAT tried to achieve - I think I get it now.

The firmware on the NAND flash consists of:

With the commands @MrBurnsAT used, he fixed u-boot and ubifs. The failsafe kernel image was functional, so he was also able to boot the board. But primary kernel image was damaged. Since the failsafe kernel is based on lightbridge firmware, the device was recognized as lightbridge and acted as host over USB instead of as client.

We need a way to flash the primary kernel.

ruckusman commented 6 years ago

This may or may not be of assistance - I had four Inspire remotes I was modifying to enable the Can bus port for use with the focus handwheel.

Three went smoothly, the fourth remote had the same connection issues on the USB port before I began the modification, it would intermittently connect on the USB, but only one in 10 reboots at best.

I tried switching the module, which had corrupted firmware and was easily recovered on another remote with the 4 button reset. On the troublesome remote the HDMI board(s) from other remotes worked intermittently.

The simplest way to determine if the USB port was active or not was to check for the ~5 volts from the main board.

It ended up being poor connection across the ribbon cable - it was difficult to determine which end.

The solution was add some thin sticky tape on the end to increase it's thickness marginally - I would counsel thinner tape rather than thicker as a first step so as not to stress the connector itself.

So the takeaway is to check for the 5 volts going to the USB to see if the issue is connection or firmware related

mefistotelis commented 6 years ago

Ahh f#!&k. I found a way to write the kernel, but I used size as decimal integer - and it turned out the "nand write" command arbitrary decided it was a hex number. I cleared the part of flash (ubifs) which contained private key for encryption.

MrBurnsAT commented 6 years ago

Let me know if u figure it out how i can reflash the kernel.

Had no time to play with this since i flashed ubifs and uboot. But reed somthing about tftp or so for flashing the kernel

mefistotelis commented 6 years ago

In short:

Press ESC to abort autoboot in 1 seconds ##<--DO IT! KEEP PRESSING!
Dji-Pro #
Dji-Pro # loady 0x80008000 115200 ##<-- YOU NEED TERMINAL WITH MODEMY SUPPORT, LIKE ExtraPuTTY
## Ready for binary (ymodem) download to 0x80008000 at 115200 bps...
xyzModem - CRC mode, 1(SOH)/3971(STX)/0(CAN) packets, 4 retries
## Total Size      = 0x003e09c0 = 4065728 Bytes
Dji-Pro # nand erase 0x04a0000 0x500000 ## <-- DO NOT MAKE ANY MISTAKE
Dji-Pro # nand write 0x80008000 0x04a0000 [file_size_in_hex] <-- DO NOT MAKE ANY MISTAKE, PASTE YOUR KERNEL SIZE, MUST BE HEX!
mefistotelis commented 6 years ago

I need UbiFS partition image now. It uses up most of the flash, so it won't be easy to get it via serial. I will try to recover it ... but not sure whether that's even possible. If anyone of you can enable logging in putty and do cat /dev/mtd2 | hexdump -Cv, in the recovery kernel, would be nice. (note: the transfer over serial will take hours)

MrBurnsAT commented 6 years ago

Ill try that today.

Have set up now an Raspberry (Banana Pi M3) with Ubuntu. So Now ive an running linux system. Think thats better than with windows.

I think all u need is in the firmware bin Ubifs, uboot and kernel Thats all there

mefistotelis commented 6 years ago

I think all u need is in the firmware bin. Ubifs, uboot and kernel

No. That's a mistake I made earlier too - the "ubl" partition is just a part of u-boot and has nothing to do with UbiFS. UbiFS is never updated; it actually stores (amongst other things) firmware update when it is being decrypted and applied to other partitions.

When the recovery kernel is running, I'm sure you can connect SD-card reader to the USB slot and it will be visible within DaVinci. Maybe you could dd if=/dev/mtd2 of=file_on_sdcard bs=1048576 this partition for me?

mefistotelis commented 6 years ago

Map of the whole flash:

0020000: ubl?.img, a copy every 0x20000 bytes 0320000: u-boot.img, a copy every 0x60000 bytes 04a0000: Primary kernel 0500000: Nothing 0900000: Recovery kernel 0960000: Nothing ????: A small block of important encrypted data(?) 0e00000: UbiFS 7f00000: End of flash

mefistotelis commented 6 years ago

Good news! EDIT: the good news is that I have UBI image, not that I made the board work!

I got another board, pressed ESC to get into uboot and did:

nboot 80700000 0 900000
bootm 80700000

This booted the recovery kernel, which accepts USB sticks. After it booted:

root@Dji-Pro:~# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 05e3:0608

Here I connected SD-card to USB:

root@Dji-Pro:~# [  175.390000] usb 1-1.1: new high speed USB device using musb_hdrc and address 3
[  175.490000] usb 1-1.1: configuration #1 chosen from 1 choice
[  175.510000] scsi0 : SCSI emulation for USB Mass Storage devices
root@Dji-Pro:~# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 05e3:0608
Bus 001 Device 003: ID 05e3:0749
root@Dji-Pro:~# [  180.520000] scsi 0:0:0:0: Direct-Access     Generic  STORAGE DEVICE   1532 PQ: 0 ANSI: 6
[  180.550000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  180.910000] sd 0:0:0:0: [sda] 3842048 512-byte logical blocks: (1.96 GB/1.83 GiB)
[  180.920000] sd 0:0:0:0: [sda] Write Protect is off
[  180.920000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  180.930000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  180.940000]  sda:
[  180.970000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  180.970000] sd 0:0:0:0: [sda] Attached SCSI removable disk
root@Dji-Pro:~# ls /
bin   dev   etc   home  lib   mnt   opt   proc  sbin  sys   tmp   usr   var
root@Dji-Pro:~# cd /mnt
root@Dji-Pro:/mnt# ls
root@Dji-Pro:/mnt# mkdir sdcard
root@Dji-Pro:/mnt# mount /dev/sda sdcard
root@Dji-Pro:/mnt# cd sdcard
root@Dji-Pro:/mnt/sdcard# ls
DCIM                  P3X_FW_RESULT_AB.txt
MISC
root@Dji-Pro:/mnt/sdcard# df
Filesystem           1K-blocks      Used Available Use% Mounted on
ubi0:rootfs              98972     20628     78344  21% /
none                     22480         0     22480   0% /tmp
mdev                     22480         0     22480   0% /dev
tmpfs                    22480         0     22480   0% /dev/shm
/dev/sda               1916928     67932   1848996   4% /mnt/sdcard
root@Dji-Pro:/mnt/sdcard# dd if=/dev/mtd3 of=wholedump.bin bs=1048576
128+0 records in
128+0 records out
134217728 bytes (128.0MB) copied, 135.257060 seconds, 969.1KB/s
root@Dji-Pro:/mnt/sdcard# cd ..
root@Dji-Pro:/mnt# umount sdcard
root@Dji-Pro:/mnt# halt
root@Dji-Pro:/mnt# umount: mdev busy - remounted read-only
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system halt
[  530.690000] System halted.
MrBurnsAT commented 6 years ago

UR genious

U copied the ubifs right!?

Could u send it to me?

PS ive too a second working unit but wont disassemble and solder it again. Tryed what u did but had no idea how.

MrBurnsAT commented 6 years ago

Tried what u did with my faulty board

Good news! I got another board, pressed ESC to get into uboot and did:

nboot 80700000 0 900000 bootm 80700000

but only got same problem if i would let it start normaly at the end always

DummyRead68013 0.000000kb !!!!!!!!!!!!!!!!!!!!!!! open 68013 failed VENDOR_ID = 0x0547 !!!!!!!!!!!!!!!!!!!!!!! open 68013 failed VENDOR_ID = 0x0547

MrBurnsAT commented 6 years ago

USB Port have definatly power

20171031_214718

mefistotelis commented 6 years ago

Tried what u did with my faulty board but only got same problem if i would let it start normaly

Yes, sure. Recovery kernel is not there to make it work. To do that, update your primary kernel so that it will boot.

btw, u-boot has thumb drives support too - now I'm using these instead of binary transfers over serial.

For UbiFS - this is complex stuff. I worked on it all day. Read dozens of wikis. Tried many methods. I know the issue, but solution is hard. If you just burn UbiFS with DD, it will corrupt itself over time. So the image - I have, but you wouldn't have any use of it. Just try not to damage yours.

Also, there is another important block of data between recovery kernel and ubifs - small, but important enough to stop booting if it gets damaged. The block looks encrypted.

MrBurnsAT commented 6 years ago

My newest idea.

Would it be possible to dump the whole NAND from an working unit dirctly to a faulty one?

Like copy data from an sd card to another one

MrBurnsAT commented 6 years ago

I think ubifs and the rest is all ok because it boots normally.

But only primary kernel is corupted. And only Recovery Kernel is alive.

How to update the primary kernel. Reed many instructions but cant find out how to do that

MrBurnsAT commented 6 years ago

Like this?

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/7898

ruckusman commented 6 years ago

I did something similar to this recently with an Osmo on which I had inadvertently transferred an RC script using FTP which inserted DOS line endings - happened on Linux so it caught me out.

you should be able to use DD to duplicate the working backup kernel partition to the normal boot partition.

This may not be applicable to you if there are no utilities available as part of the kernel

MrBurnsAT commented 6 years ago

Thats interesting

20171101_093330

MrBurnsAT commented 6 years ago

Mefistotelis ur using linux right?

How do u usw serial tools because these are for windows systems. Are u exagear or somthing like this for running x86 programs?

MrBurnsAT commented 6 years ago

USB OTG is not working

20171101_102656

MrBurnsAT commented 6 years ago

My next idea

Ill try that now

20171101_111549

MrBurnsAT commented 6 years ago

Dont working too

20171101_112849

20171101_112912

mefistotelis commented 6 years ago

Would it be possible to dump the whole NAND from an working unit dirctly to a faulty one?

you should be able to use DD to duplicate the working backup kernel partition to the normal boot partition.

These solutions won't work. Not with UbiFS. UbiFS is like hardware-dependent file system. It is not just a simple partition.

To properly flash UbiFS, I have to boot to Linux with different rootfs, then use the linux ubiformat to flash the partition with correct values of EC blocks.

mefistotelis commented 6 years ago

How to update the primary kernel. Reed many instructions but cant find out how to do that

If my notes for before (these involving pressing ESC just after the board gets power) are not enough, you'll have to wait until I finish. Then I'll update wikis with instructions.

MrBurnsAT commented 6 years ago

Ill try that later

screenshot_20171101-134135

MrBurnsAT commented 6 years ago

Found somthing out

20171101_141004

20171101_141010

mefistotelis commented 6 years ago

I did it! Fixed my UbiFS!

Though if I worked for money the time I spent on this, I could buy a brand new controller.

To simplify - I created a very small alternate rootfs, and overwritten primary kernel with it. Then I asked the recovery kernel to use the alternate rootfs. When it booted, the primary rootfs (which is UbiFS) was unused, and I had tools (ubiformat) to properly load a new image from USB to the primary rootfs.

mefistotelis commented 6 years ago

Found somthing out

That's interesting. So you can enable USB host on primary kernel? Is it the same USB you have at back? There are two USBs - the other goes to Cypress.

MrBurnsAT commented 6 years ago

That's interesting. So you can enable USB host on primary kernel?

Yes. But it doesnt recognize the usb stick. Only the host

Is it the same USB you have at back?

I think so. Because if i switch the USB+ and USB- Cables ill get this

20171101_164032

MrBurnsAT commented 6 years ago

I did it! Fixed my UbiFS!

could u write a little tut for this pls. i would really be thankfull because i wanna make this thing work too for my second rc

mefistotelis commented 6 years ago

could u write a little tut for this pls.

I will. But what you need is primary kernel, not UbiFS.

MrBurnsAT commented 6 years ago

So it should work with the tftp method too 🤔🤔🤔

MrBurnsAT commented 6 years ago

Interested in this???

Its the SDI Module from an LB2 RC

20171101_165220

20171101_165231

20171101_165242

20171101_165253

MrBurnsAT commented 6 years ago

Kernel should be the uImage file in the firmware bin right?

20171101_170358

Do u know if there should be deleted the first 800bytes like at ubl1 and uboot

MrBurnsAT commented 6 years ago

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Dji-Pro # loady 0x80008000 115200
## Ready for binary (ymodem) download to 0x80008000 at 115200 bps...
CCCxyzModem - CRC mode, 1(SOH)/3971(STX)/0(CAN) packets, 5 retries
## Total Size      = 0x003e09c0 = 4065728 Bytes
Dji-Pro # nand erase 0x04a0000 0x500000

NAND erase: mtdparts variable not set, see 'help mtdparts'
incorrect device type in 0x04a0000
Dji-Pro # nand erase 0x04a0000 0x500000 ##

NAND erase: mtdparts variable not set, see 'help mtdparts'
incorrect device type in 0x04a0000
MrBurnsAT commented 6 years ago

ok i managed it

Dji-Pro # loady 0x80008000 115200
## Ready for binary (ymodem) download to 0x80008000 at 115200 bps...
CxyzModem - CRC mode, 1(SOH)/3971(STX)/0(CAN) packets, 3 retries
## Total Size      = 0x003e09c0 = 4065728 Bytes
Dji-Pro # nand erase 0x04a0000 0x500000

NAND erase: device 0 offset 0x4a0000, size 0x500000
Erasing at 0x980000 -- 100% complete.
OK
Dji-Pro # nand write 0x80008000 0x04a0000 0x003e09c0

NAND write: device 0 offset 0x4a0000, size 0x3e09c0
 4065728 bytes written: OK

but same as bevore


Dji-Pro # DM36x initialization passed!
UBL Product Vesion : DJI-486M-UBL-1.0-rc0(2015-10-30)
Dji UBL Version: 1.51(Nov  2 2015 - 15:46:28)
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000019.
   DONE
Jumping to entry point at 0x81080000.

U-Boot Product Vesion : DJI-GRC-Uboot-1.0-rc1(2015-01-27)
U-Boot 2010.12-rc2-svn-Dji (Jan 27 2015 - 18:45:11)
Cores: ARM 486 MHz
DDR:   360 MHz
I2C:   ready
DRAM:  128 MiB
NAND:  128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
*** Warning - bad CRC, using default environment

Net:   Ethernet PHY: GENERIC @ 0xff
DaVinci-EMAC
Press ESC to abort autoboot in 1 seconds

Loading from nand0, offset 0x4a0000
   Image Name:   Linux-2.6.32.17-davinci1
   Created:      2015-06-23   9:37:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4065664 Bytes = 3.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.32.17-davinci1
   Created:      2015-06-23   9:37:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4065664 Bytes = 3.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Kernel Product Vesion : DJI-GRC-Kernel-1.1-rc0(2015-06-23)
[    0.000000] Linux version 2.6.32.17-davinci1 (root@dji) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #6 PREEMPT Tue Jun 23 17:37:03 HKT 2015
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: DaVinci DM36x EVM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] DaVinci dm36x_rev1.2 variant 0x8
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 12192
[    0.000000] Kernel command line: console=ttyS0,115200n8 rw dm365_imp.oper_mode=0 video=davincifb:vid0=0,10K:vid1=0,10K:osd0=1920x1080X16,8100K mem=48MB davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs ip=off lpj=1077248
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 48MB = 48MB total
[    0.000000] Memory: 44424KB available (3672K code, 444K data, 116K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:245
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] CPU: Testing write buffer coherency: ok
[    0.000000] DaVinci: 8 gpio irqs
[    0.000000] NET: Registered protocol family 16
[    0.090000] bio: create slab <bio-0> at 0
[    0.100000] DM365 IPIPE initialized in Continuous mode
[    0.100000] SCSI subsystem initialized
[    0.100000] usbcore: registered new interface driver usbfs
[    0.100000] usbcore: registered new interface driver hub
[    0.100000] usbcore: registered new device driver usb
[    0.110000] vpss vpss: dm365_vpss vpss probed
[    0.110000] vpss vpss: dm365_vpss vpss probe success
[    0.110000] ch0 default output "COMPOSITE", mode "PAL"
[    0.110000] pinmux1:0x00145555
[    0.110000] VPBE Encoder Initialized
[    0.120000] cfg80211: Using static regulatory domain info
[    0.120000] cfg80211: Regulatory domain: US
[    0.120000]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    0.120000]  (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[    0.120000]  (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[    0.120000] cfg80211: Calling CRDA for country: US
[    0.120000] Switching to clocksource timer0_1
[    0.120000] musb_hdrc: version 6.0, pio, host, debug=0
[    0.150000] musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 12
[    0.150000] musb_hdrc musb_hdrc: MUSB HDRC host driver
[    0.150000] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
[    0.150000] usb usb1: configuration #1 chosen from 1 choice
[    0.150000] hub 1-0:1.0: USB hub found
[    0.150000] hub 1-0:1.0: 1 port detected
[    0.150000] NET: Registered protocol family 2
[    0.150000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.150000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.150000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.150000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.150000] TCP reno registered
[    0.150000] NET: Registered protocol family 1
[    0.150000] RPC: Registered udp transport module.
[    0.150000] RPC: Registered tcp transport module.
[    0.150000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.160000] kfile init
[    0.160000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.160000] msgmni has been set to 86
[    0.160000] alg: No test for stdrng (krng)
[    0.160000] io scheduler noop registered (default)
[    0.200000] davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
[    0.200000] davincifb davincifb.0: dm_osd0_fb: 1920x1080x16@0,0 with framebuffer size 8100KB
[    0.200000] davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.210000] davincifb davincifb.0: dm_osd1_fb: Initial window configuration is invalid.
[    0.220000] davincifb davincifb.0: dm_osd1_fb: 1920x1080x4@0,0 with framebuffer size 4050KB
[    0.220000] davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.270000] venc off init
[    0.270000] hdmi status init
[    0.270000] DM365 IPIPEIF probed
[    0.280000] imp serializer initialized
[    0.280000] davinci_previewer initialized
[    0.280000] davinci_resizer initialized
[    0.280000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.280000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    0.750000] console [ttyS0] enabled
[    0.750000] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[    0.760000] brd: module loaded
[    0.770000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit)
[    0.780000] Creating 4 MTD partitions on "davinci_nand.0":
[    0.780000] 0x000000000000-0x0000004a0000 : "bootloader"
[    0.790000] 0x0000004a0000-0x000000e00000 : "kernel"
[    0.800000] 0x000000e00000-0x000007f00000 : "filesystem"
[    0.810000] 0x000000000000-0x000008000000 : "all"
[    0.820000] davinci_nand davinci_nand.0: controller rev. 2.3
[    0.830000] UBI: attaching mtd2 to ubi0
[    0.830000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.840000] UBI: logical eraseblock size:    126976 bytes
[    0.840000] UBI: smallest flash I/O unit:    2048
[    0.850000] UBI: sub-page size:              512
[    0.850000] UBI: VID header offset:          2048 (aligned 2048)
[    0.860000] UBI: data offset:                4096
[    1.030000] usb 1-1: new high speed USB device using musb_hdrc and address 2
[    1.180000] usb 1-1: configuration #1 chosen from 1 choice
[    1.180000] hub 1-1:1.0: USB hub found
[    1.190000] hub 1-1:1.0: 2 ports detected
[    1.310000] UBI: attached mtd2 to ubi0
[    1.310000] UBI: MTD device name:            "filesystem"
[    1.320000] UBI: MTD device size:            113 MiB
[    1.320000] UBI: number of good PEBs:        904
[    1.330000] UBI: number of bad PEBs:         0
[    1.330000] UBI: max. allowed volumes:       128
[    1.340000] UBI: wear-leveling threshold:    4096
[    1.340000] UBI: number of internal volumes: 1
[    1.350000] UBI: number of user volumes:     1
[    1.350000] UBI: available PEBs:             0
[    1.360000] UBI: total number of reserved PEBs: 904
[    1.360000] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.370000] UBI: max/mean erase counter: 65/1
[    1.370000] UBI: image sequence number: 106103982
[    1.380000] UBI: background thread "ubi_bgt0d" started, PID 342
[    1.390000] console [netcon0] enabled
[    1.390000] netconsole: network logging started
[    1.390000] Initializing USB Mass Storage driver...
[    1.400000] usbcore: registered new interface driver usb-storage
[    1.410000] USB Mass Storage support registered.
[    1.410000] usbcore: registered new interface driver usbtest
[    1.420000] i2c /dev entries driver
[    1.420000] Linux video capture interface: v2.00
[    1.430000] hdmi_i2c_probe
[    1.440000] vpfe-capture: vpss clock vpss_master enabled
[    1.440000] vpfe-capture vpfe-capture: v4l2 device registered
[    1.450000] vpfe-capture vpfe-capture: video device registered
[    1.460000] No sub devices registered
[    1.460000] Trying to register davinci display video device.
[    1.470000] layer=c1feb000,layer->video_dev=c1feb164
[    1.470000] Trying to register davinci display video device.
[    1.480000] layer=c1feb400,layer->video_dev=c1feb564
[    1.480000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
[    1.490000] watchdog watchdog: heartbeat 1 sec
[    1.500000] usbcore: registered new interface driver usbmouse
[    1.500000] usbmouse: v1.6:USB HID Boot Protocol mouse driver
[    1.510000] TCP cubic registered
[    1.510000] NET: Registered protocol family 17
[    1.520000] lib80211: common routines for IEEE802.11 drivers
[    1.520000] ksocket init
[    1.550000] encrypt device:atsha204 found
[    1.630000] mfi_i2c_client addr:17
[    1.640000] Clocks: disable unused mmcsd0
[    1.640000] Clocks: disable unused mmcsd1
[    1.640000] Clocks: disable unused spi0
[    1.640000] Clocks: disable unused spi1
[    1.640000] Clocks: disable unused spi2
[    1.640000] Clocks: disable unused spi3
[    1.640000] Clocks: disable unused spi4
[    1.640000] Clocks: disable unused pwm0
[    1.640000] Clocks: disable unused pwm1
[    1.640000] Clocks: disable unused pwm2
[    1.640000] Clocks: disable unused pwm3
[    1.640000] Clocks: disable unused timer1
[    1.640000] Clocks: disable unused timer3
[    1.640000] Clocks: disable unused emac
[    1.640000] Clocks: disable unused voice_codec
[    1.640000] Clocks: disable unused asp0
[    1.640000] Clocks: disable unused rto
[    1.640000] Clocks: disable unused mjcp
[    1.710000] davinci_emac_probe: using random MAC addr: 7a:2c:d1:f1:4f:be
[    1.720000] emac-mii: probed
[    1.760000] UBIFS: recovery needed
[    1.820000] UBIFS: recovery completed
[    1.820000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.830000] UBIFS: file system size:   110342144 bytes (107756 KiB, 105 MiB, 869 LEBs)
[    1.840000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    1.840000] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    1.850000] UBIFS: default compressor: lzo
[    1.850000] UBIFS: reserved for root:  0 bytes (0 KiB)
[    1.860000] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    1.870000] Freeing init memory: 116K

Filesystem Product Vesion : DJI-Filesystem-1.0-rc2
Runing /etc/init.d/rcS
[    3.450000] CMEMK module: built on Jul 30 2014 at 10:21:45
[    3.470000]   Reference Linux version 2.6.32
[    3.470000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[    3.490000] allocated heap buffer 0xc7000000 of size 0x4400000
[    3.510000] heap fallback enabled - will try heap if pool buffer is not available
[    3.520000] CMEM Range Overlaps Kernel Physical - allowing overlap
[    3.530000] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[    3.540000] cmemk initialized
[    3.560000] IRQK module: built on Jul 30 2014 at 10:21:09
[    3.580000]   Reference Linux version 2.6.32
[    3.580000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[    3.600000] irqk initialized
[    3.650000] EDMAK module: built on Jul 30 2014 at 10:19:34
[    3.650000]   Reference Linux version 2.6.32
[    3.670000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[    3.870000] exFAT: Version 1.2.9
settime failed
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
sulogin: no password entry for root
login[491]: root login on 'ttyS0'
#Process /etc/profile...
root@Dji-Pro:~# encrypt check ok
init  libusb successed!!!
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
usbsocket_init OK
usbsocket_create_handle ok, port:22345, bCanRecv:1
latency1:33332
latency2:33000
latency3:30000
displaybuffnum1:4
displaybuffnum2:9
start decode stream from 68013
decode init ok, main thread exit
usbsocket_create_handle ok, port:22346, bCanRecv:0
watchdog timeout:5
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
Osd_Init_Font succeed
[   12.260000] pinmux1:0x00145555
[   12.270000] pinmux1:0x00145555
[   12.330000] pinmux1:0x00145555
[   12.330000] pinmux1:0x00145555
[   12.340000] pinmux1:0x00145555
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
[   12.490000] PCLK = 0 -> 0
[   12.490000] HTotal = 0 -> 1650
[   12.500000] VTotal = 0 -> 750
[   12.500000] ScanMode = I -> P
[   12.500000] PCLK = 0,(1650x750) PROGRESS CHANGE MODE
[   12.510000] VIC = 4
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
umount: can't umount /mnt/usb: No such file or directory
rmdir: '/mnt/usb': No such file or directory
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
mefistotelis commented 6 years ago

I updated the wiki: https://github.com/mefistotelis/phantom-firmware-tools/wiki/Firmware-m1300#flashing

For the error "mtdparts variable not set", here are the correct values:

env set mtdids 'nand0=davinci_nand.0'
env set mtdparts 'mtdparts=davinci_nand.0:4736k(bootloader)ro,4480k(kernel),4480k(kernel_recv),640k(secret),114m(filesystem)'
mtdparts
MrBurnsAT commented 6 years ago

ok a new try with that

Dji-Pro # env set mtdids 'nand0=davinci_nand.0'
Dji-Pro # env set mtdparts 'mtdparts=davinci_nand.0:4736k(bootloader)ro,4480k(kernel),4480k(kernel_recv),640k(secret),114m(filesystem)'
Dji-Pro # mtdparts

device nand0 <davinci_nand.0>, # parts = 5
 #: name                size            offset          mask_flags
 0: bootloader          0x004a0000      0x00000000      1
 1: kernel              0x00460000      0x004a0000      0
 2: kernel_recv         0x00460000      0x00900000      0
 3: secret              0x000a0000      0x00d60000      0
 4: filesystem          0x07200000      0x00e00000      0

active partition: nand0,0 - (bootloader) 0x004a0000 @ 0x00000000

defaults:
mtdids  : nand0=davinci_nand.0
mtdparts: mtdparts=davinci_nand.0:25m(bootloader)ro,4m(kernel),118m(filesystem)
Dji-Pro #
mefistotelis commented 6 years ago

Wait, what exactly are you fixing? I see nothing wrong in your log.

MrBurnsAT commented 6 years ago

thats my problem

!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
umount: can't umount /mnt/usb: No such file or directory
rmdir: '/mnt/usb': No such file or directory
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
MrBurnsAT commented 6 years ago

at working unit this will not show "!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed VENDOR_ID = 0x0547"

MrBurnsAT commented 6 years ago

Tried now with ur variables


Dji-Pro # mtdparts

device nand0 <davinci_nand.0>, # parts = 5
 #: name                size            offset          mask_flags
 0: bootloader          0x004a0000      0x00000000      1
 1: kernel              0x00460000      0x004a0000      0
 2: kernel_recv         0x00460000      0x00900000      0
 3: secret              0x000a0000      0x00d60000      0
 4: filesystem          0x07200000      0x00e00000      0

active partition: nand0,0 - (bootloader) 0x004a0000 @ 0x00000000

defaults:
mtdids  : nand0=davinci_nand.0
mtdparts: mtdparts=davinci_nand.0:25m(bootloader)ro,4m(kernel),118m(filesystem)
Dji-Pro # loady 0x80008000 115200
## Ready for binary (ymodem) download to 0x80008000 at 115200 bps...
CxyzModem - CRC mode, 1(SOH)/3971(STX)/0(CAN) packets, 3 retries
## Total Size      = 0x003e09c0 = 4065728 Bytes
Dji-Pro # nand erase 0x04a0000 0x500000

NAND erase: device 0 offset 0x4a0000, size 0x500000
Erasing at 0x980000 -- 100% complete.
OK
Dji-Pro # nand write 0x80008000 0x04a0000 0x003e09c0

NAND write: device 0 offset 0x4a0000, size 0x3e09c0
 4065728 bytes written: OK

But same Problem as bevore

Dji-Pro # DM36x initialization passed!
UBL Product Vesion : DJI-486M-UBL-1.0-rc0(2015-10-30)
Dji UBL Version: 1.51(Nov  2 2015 - 15:46:28)
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000019.
   DONE
Jumping to entry point at 0x81080000.

U-Boot Product Vesion : DJI-GRC-Uboot-1.0-rc1(2015-01-27)
U-Boot 2010.12-rc2-svn-Dji (Jan 27 2015 - 18:45:11)
Cores: ARM 486 MHz
DDR:   360 MHz
I2C:   ready
DRAM:  128 MiB
NAND:  128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
*** Warning - bad CRC, using default environment

Net:   Ethernet PHY: GENERIC @ 0xff
DaVinci-EMAC
Press ESC to abort autoboot in 1 seconds

Loading from nand0, offset 0x4a0000
   Image Name:   Linux-2.6.32.17-davinci1
   Created:      2015-06-23   9:37:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4065664 Bytes = 3.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Linux-2.6.32.17-davinci1
   Created:      2015-06-23   9:37:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4065664 Bytes = 3.9 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Kernel Product Vesion : DJI-GRC-Kernel-1.1-rc0(2015-06-23)
[    0.000000] Linux version 2.6.32.17-davinci1 (root@dji) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #6 PREEMPT Tue Jun 23 17:37:03 HKT 2015
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: DaVinci DM36x EVM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] DaVinci dm36x_rev1.2 variant 0x8
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 12192
[    0.000000] Kernel command line: console=ttyS0,115200n8 rw dm365_imp.oper_mode=0 video=davincifb:vid0=0,10K:vid1=0,10K:osd0=1920x1080X16,8100K mem=48MB davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs ip=off lpj=1077248
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 48MB = 48MB total
[    0.000000] Memory: 44424KB available (3672K code, 444K data, 116K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:245
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] CPU: Testing write buffer coherency: ok
[    0.000000] DaVinci: 8 gpio irqs
[    0.000000] NET: Registered protocol family 16
[    0.090000] bio: create slab <bio-0> at 0
[    0.100000] DM365 IPIPE initialized in Continuous mode
[    0.100000] SCSI subsystem initialized
[    0.100000] usbcore: registered new interface driver usbfs
[    0.100000] usbcore: registered new interface driver hub
[    0.110000] usbcore: registered new device driver usb
[    0.110000] vpss vpss: dm365_vpss vpss probed
[    0.110000] vpss vpss: dm365_vpss vpss probe success
[    0.110000] ch0 default output "COMPOSITE", mode "PAL"
[    0.110000] pinmux1:0x00145555
[    0.110000] VPBE Encoder Initialized
[    0.120000] cfg80211: Using static regulatory domain info
[    0.120000] cfg80211: Regulatory domain: US
[    0.120000]  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    0.120000]  (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[    0.120000]  (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.120000]  (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[    0.120000] cfg80211: Calling CRDA for country: US
[    0.120000] Switching to clocksource timer0_1
[    0.120000] musb_hdrc: version 6.0, pio, host, debug=0
[    0.150000] musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 12
[    0.150000] musb_hdrc musb_hdrc: MUSB HDRC host driver
[    0.150000] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
[    0.150000] usb usb1: configuration #1 chosen from 1 choice
[    0.150000] hub 1-0:1.0: USB hub found
[    0.150000] hub 1-0:1.0: 1 port detected
[    0.150000] NET: Registered protocol family 2
[    0.150000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.150000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.150000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.150000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.150000] TCP reno registered
[    0.150000] NET: Registered protocol family 1
[    0.150000] RPC: Registered udp transport module.
[    0.150000] RPC: Registered tcp transport module.
[    0.150000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.160000] kfile init
[    0.160000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.160000] msgmni has been set to 86
[    0.160000] alg: No test for stdrng (krng)
[    0.160000] io scheduler noop registered (default)
[    0.200000] davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
[    0.200000] davincifb davincifb.0: dm_osd0_fb: 1920x1080x16@0,0 with framebuffer size 8100KB
[    0.200000] davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.210000] davincifb davincifb.0: dm_osd1_fb: Initial window configuration is invalid.
[    0.220000] davincifb davincifb.0: dm_osd1_fb: 1920x1080x4@0,0 with framebuffer size 4050KB
[    0.220000] davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.270000] venc off init
[    0.270000] hdmi status init
[    0.270000] DM365 IPIPEIF probed
[    0.280000] imp serializer initialized
[    0.280000] davinci_previewer initialized
[    0.280000] davinci_resizer initialized
[    0.280000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.280000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    0.750000] console [ttyS0] enabled
[    0.750000] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[    0.760000] brd: module loaded
[    0.770000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit)
[    0.780000] Creating 4 MTD partitions on "davinci_nand.0":
[    0.780000] 0x000000000000-0x0000004a0000 : "bootloader"
[    0.790000] 0x0000004a0000-0x000000e00000 : "kernel"
[    0.800000] 0x000000e00000-0x000007f00000 : "filesystem"
[    0.810000] 0x000000000000-0x000008000000 : "all"
[    0.820000] davinci_nand davinci_nand.0: controller rev. 2.3
[    0.820000] UBI: attaching mtd2 to ubi0
[    0.830000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.840000] UBI: logical eraseblock size:    126976 bytes
[    0.840000] UBI: smallest flash I/O unit:    2048
[    0.850000] UBI: sub-page size:              512
[    0.850000] UBI: VID header offset:          2048 (aligned 2048)
[    0.860000] UBI: data offset:                4096
[    1.060000] usb 1-1: new high speed USB device using musb_hdrc and address 2
[    1.210000] usb 1-1: configuration #1 chosen from 1 choice
[    1.210000] hub 1-1:1.0: USB hub found
[    1.220000] hub 1-1:1.0: 2 ports detected
[    1.310000] UBI: attached mtd2 to ubi0
[    1.310000] UBI: MTD device name:            "filesystem"
[    1.320000] UBI: MTD device size:            113 MiB
[    1.320000] UBI: number of good PEBs:        904
[    1.330000] UBI: number of bad PEBs:         0
[    1.330000] UBI: max. allowed volumes:       128
[    1.340000] UBI: wear-leveling threshold:    4096
[    1.340000] UBI: number of internal volumes: 1
[    1.350000] UBI: number of user volumes:     1
[    1.350000] UBI: available PEBs:             0
[    1.360000] UBI: total number of reserved PEBs: 904
[    1.360000] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.370000] UBI: max/mean erase counter: 65/1
[    1.370000] UBI: image sequence number: 106103982
[    1.380000] UBI: background thread "ubi_bgt0d" started, PID 342
[    1.380000] console [netcon0] enabled
[    1.390000] netconsole: network logging started
[    1.390000] Initializing USB Mass Storage driver...
[    1.400000] usbcore: registered new interface driver usb-storage
[    1.400000] USB Mass Storage support registered.
[    1.410000] usbcore: registered new interface driver usbtest
[    1.420000] i2c /dev entries driver
[    1.420000] Linux video capture interface: v2.00
[    1.430000] hdmi_i2c_probe
[    1.440000] vpfe-capture: vpss clock vpss_master enabled
[    1.440000] vpfe-capture vpfe-capture: v4l2 device registered
[    1.450000] vpfe-capture vpfe-capture: video device registered
[    1.450000] No sub devices registered
[    1.460000] Trying to register davinci display video device.
[    1.470000] layer=c1feb000,layer->video_dev=c1feb164
[    1.470000] Trying to register davinci display video device.
[    1.480000] layer=c1feb400,layer->video_dev=c1feb564
[    1.480000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
[    1.490000] watchdog watchdog: heartbeat 1 sec
[    1.500000] usbcore: registered new interface driver usbmouse
[    1.500000] usbmouse: v1.6:USB HID Boot Protocol mouse driver
[    1.510000] TCP cubic registered
[    1.510000] NET: Registered protocol family 17
[    1.520000] lib80211: common routines for IEEE802.11 drivers
[    1.520000] ksocket init
[    1.550000] encrypt device:atsha204 found
[    1.630000] mfi_i2c_client addr:17
[    1.640000] Clocks: disable unused mmcsd0
[    1.640000] Clocks: disable unused mmcsd1
[    1.640000] Clocks: disable unused spi0
[    1.640000] Clocks: disable unused spi1
[    1.640000] Clocks: disable unused spi2
[    1.640000] Clocks: disable unused spi3
[    1.640000] Clocks: disable unused spi4
[    1.640000] Clocks: disable unused pwm0
[    1.640000] Clocks: disable unused pwm1
[    1.640000] Clocks: disable unused pwm2
[    1.640000] Clocks: disable unused pwm3
[    1.640000] Clocks: disable unused timer1
[    1.640000] Clocks: disable unused timer3
[    1.640000] Clocks: disable unused emac
[    1.640000] Clocks: disable unused voice_codec
[    1.640000] Clocks: disable unused asp0
[    1.640000] Clocks: disable unused rto
[    1.640000] Clocks: disable unused mjcp
[    1.710000] davinci_emac_probe: using random MAC addr: 7a:d5:d4:1e:06:1b
[    1.720000] emac-mii: probed
[    1.760000] UBIFS: recovery needed
[    1.810000] UBIFS: recovery completed
[    1.820000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.820000] UBIFS: file system size:   110342144 bytes (107756 KiB, 105 MiB, 869 LEBs)
[    1.830000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    1.840000] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    1.840000] UBIFS: default compressor: lzo
[    1.850000] UBIFS: reserved for root:  0 bytes (0 KiB)
[    1.860000] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    1.860000] Freeing init memory: 116K

Filesystem Product Vesion : DJI-Filesystem-1.0-rc2
Runing /etc/init.d/rcS
[    3.460000] CMEMK module: built on Jul 30 2014 at 10:21:45
[    3.460000]   Reference Linux version 2.6.32
[    3.470000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[    3.490000] allocated heap buffer 0xc7000000 of size 0x4400000
[    3.490000] heap fallback enabled - will try heap if pool buffer is not available
[    3.510000] CMEM Range Overlaps Kernel Physical - allowing overlap
[    3.510000] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[    3.530000] cmemk initialized
[    3.560000] IRQK module: built on Jul 30 2014 at 10:21:09
[    3.580000]   Reference Linux version 2.6.32
[    3.580000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[    3.600000] irqk initialized
[    3.640000] EDMAK module: built on Jul 30 2014 at 10:19:34
[    3.660000]   Reference Linux version 2.6.32
[    3.660000]   File /home/u/work/svn/dec_grc/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[    3.860000] exFAT: Version 1.2.9
settime failed
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
sulogin: no password entry for root
login[491]: root login on 'ttyS0'
#Process /etc/profile...
root@Dji-Pro:~# encrypt check ok
init  libusb successed!!!
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
usbsocket_init OK
usbsocket_create_handle ok, port:22345, bCanRecv:1
latency1:33332
latency2:33000
latency3:30000
displaybuffnum1:4
displaybuffnum2:9
start decode stream from 68013
decode init ok, main thread exit
usbsocket_create_handle ok, port:22346, bCanRecv:0
watchdog timeout:5
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
Osd_Init_Font succeed
[   12.250000] pinmux1:0x00145555
[   12.260000] pinmux1:0x00145555
[   12.320000] pinmux1:0x00145555
[   12.320000] pinmux1:0x00145555
[   12.330000] pinmux1:0x00145555
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
[   12.400000] PCLK = 0 -> 0
[   12.400000] HTotal = 0 -> 1650
[   12.410000] VTotal = 0 -> 750
[   12.410000] ScanMode = I -> P
[   12.420000] PCLK = 0,(1650x750) PROGRESS CHANGE MODE
[   12.420000] VIC = 4
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
umount: can't umount /mnt/usb: No such file or directory
rmdir: '/mnt/usb': No such file or directory
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
DummyRead68013 0.000000kb
!!!!!!!!!!!!!!!!!!!!!!! open 68013 failed   VENDOR_ID = 0x0547
mefistotelis commented 6 years ago

You know, if the board is not connected to RC, it is normal that it can't open Cypress aka 68013.

If it is connected, I'd say it's most likely flat wire issue, not the programming.