GL300A Remote Controller help

Checked the USB connector again.
I have power correct. USB stick has light in it. pin 1 to Data+ and pin 2 to Data- (I assume pin 1 is to the left when seen from top)

Trying a different stick..
 
Nope. Same thing.. This time I tried a SD-card in a cardreader, and I disconnected-connected it between dmesg -c commands.

Code:
stop
root@Dji-Pro:~# ls /dev/sd*
ls: /dev/sd*: No such file or directory
root@Dji-Pro:~# dmesg -c
[    0.000000] Kernel Product Vesion : DJI-WIFI-WM610-Kernel-1.0-rc4(Nov  2 2015-15:24:51)
[    0.000000] Linux version 2.6.32.17-davinci1 (root@xueb-VirtualBox) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Mon Nov 2 15:28:34 CST 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] On node 0 totalpages: 12288
[    0.000000] free_area_init_node: node 0, pgdat c03e453c, node_mem_map c042b000
[    0.000000]   DMA zone: 96 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 12192 pages, LIFO batch:1
[    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: 44432KB available (3652K code, 453K data, 120K 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.110000] bio: create slab <bio-0> at 0
[    0.110000] DM365 IPIPE initialized in Continuous mode
[    0.110000] SCSI subsystem initialized
[    0.120000] usbcore: registered new interface driver usbfs
[    0.120000] usbcore: registered new interface driver hub
[    0.120000] usbcore: registered new device driver usb
[    0.120000] davinci_i2c_probe
[    0.120000] vpss vpss: dm365_vpss vpss probed
[    0.120000] vpss vpss: dm365_vpss vpss probe success
[    0.120000] dm365_afew_hw_init
[    0.130000] ch0 default output "COMPOSITE", mode "PAL"
[    0.130000] <vpbe_encoder_setoutput>
[    0.130000] Setting output to Composite
[    0.130000] Start of vpbe_encoder_setmode..
[    0.130000] </vpbe_encoder_setmode>
[    0.130000] </vpbe_encoder_setoutput>
[    0.130000] VPBE Encoder initialized
[    0.130000] <vpbe_encoder_enumoutput>
[    0.130000] </vpbe_encoder_enumoutput>
[    0.130000] <vpbe_encoder_setoutput>
[    0.130000] Setting output to Composite
[    0.130000] Start of vpbe_encoder_setmode..
[    0.130000] </vpbe_encoder_setmode>
[    0.130000] </vpbe_encoder_setoutput>
[    0.130000] Start of vpbe_encoder_setmode..
[    0.130000] </vpbe_encoder_setmode>
[    0.130000] <vpbe_encoder_getoutput>
[    0.130000] </vpbe_encoder_getoutput>
[    0.130000] <vpbe_encoder_getmode>
[    0.130000] <vpbe_encoder_getmode/>
[    0.130000] VPBE Encoder Initialized
[    0.130000] LogicPD encoder initialized
[    0.130000] Switching to clocksource timer0_1
[    0.140000] musb_hdrc: version 6.0, pio, host, debug=0
[    0.160000] musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
[    0.160000] musb_hdrc: MHDRC RTL version 1.500
[    0.160000] musb_hdrc: setup fifo_mode 2
[    0.160000] musb_hdrc: 9/9 max ep, 4032/4096 memory
[    0.160000] musb_hdrc: USB Host mode controller at fec64000 using PIO, IRQ 12
[    0.160000] musb_hdrc musb_hdrc: MUSB HDRC host driver
[    0.160000] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
[    0.160000] usb usb1: configuration #1 chosen from 1 choice
[    0.160000] hub 1-0:1.0: USB hub found
[    0.160000] hub 1-0:1.0: 1 port detected
[    0.160000] NET: Registered protocol family 2
[    0.160000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.160000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.160000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.160000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.160000] TCP reno registered
[    0.160000] NET: Registered protocol family 1
[    0.160000] RPC: Registered udp transport module.
[    0.160000] RPC: Registered tcp transport module.
[    0.160000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.170000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.170000] msgmni has been set to 86
[    0.180000] alg: No test for stdrng (krng)
[    0.180000] io scheduler noop registered (default)
[    0.180000] <vpbe_encoder_getmode>
[    0.180000] <vpbe_encoder_getmode/>
[    0.210000] VBUS on (a_wait_vrise), devctl 11
[    0.220000] <vpbe_encoder_getmode>
[    0.220000] <vpbe_encoder_getmode/>
[    0.220000] davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
[    0.220000] davinci_interrupt 370: VBUS error workaround (delay coming)
[    0.220000] VBUS off (a_wait_vfall) ERROR, devctl 90
[    0.220000] <vpbe_encoder_getmode>
[    0.220000] <vpbe_encoder_getmode/>
[    0.300000] Console: switching to colour frame buffer device 240x67
[    0.390000] davincifb davincifb.0: dm_osd0_fb: 1920x1080x16@0,0 with framebuffer size 8100KB
[    0.390000] davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.390000] <vpbe_encoder_getmode>
[    0.390000] <vpbe_encoder_getmode/>
[    0.390000] <vpbe_encoder_getmode>
[    0.390000] <vpbe_encoder_getmode/>
[    0.390000] davincifb davincifb.0: dm_osd1_fb: 720x576x4@0,0 with framebuffer size 810KB
[    0.400000] davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 10KB
[    0.460000] DM365 IPIPEIF probed
[    0.460000] imp serializer initialized
[    0.460000] davinci_previewer initialized
[    0.460000] davinci_resizer initialized
[    0.460000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.470000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    0.890000] console [ttyS0] enabled
[    0.890000] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[    0.900000] brd: module loaded
[    0.910000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit)
[    0.920000] Bad block table found at page 65472, version 0x01
[    0.920000] Bad block table found at page 65408, version 0x01
[    0.920000] Creating 4 MTD partitions on "davinci_nand.0":
[    0.930000] 0x000000000000-0x0000004a0000 : "bootloader"
[    0.940000] 0x0000004a0000-0x000000e00000 : "kernel"
[    0.940000] 0x000000e00000-0x000007f00000 : "filesystem"
[    0.950000] 0x000000000000-0x000008000000 : "all"
[    0.960000] davinci_nand davinci_nand.0: controller rev. 2.3
[    0.970000] UBI: attaching mtd2 to ubi0
[    0.970000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.980000] UBI: logical eraseblock size:    126976 bytes
[    0.980000] UBI: smallest flash I/O unit:    2048
[    0.990000] UBI: sub-page size:              512
[    0.990000] UBI: VID header offset:          2048 (aligned 2048)
[    1.000000] UBI: data offset:                4096
[    1.480000] UBI: attached mtd2 to ubi0
[    1.490000] UBI: MTD device name:            "filesystem"
[    1.490000] UBI: MTD device size:            113 MiB
[    1.500000] UBI: number of good PEBs:        904
[    1.500000] UBI: number of bad PEBs:         0
[    1.510000] UBI: max. allowed volumes:       128
[    1.510000] UBI: wear-leveling threshold:    4096
[    1.520000] UBI: number of internal volumes: 1
[    1.520000] UBI: number of user volumes:     1
[    1.530000] UBI: available PEBs:             0
[    1.530000] UBI: total number of reserved PEBs: 904
[    1.540000] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.540000] UBI: max/mean erase counter: 27/1
[    1.550000] UBI: image sequence number: 649241839
[    1.550000] UBI: background thread "ubi_bgt0d" started, PID 328
[    1.560000] usbcore: registered new interface driver asix
[    1.570000] usbcore: registered new interface driver cdc_ether
[    1.570000] usbcore: registered new interface driver net1080
[    1.580000] usbcore: registered new interface driver cdc_subset
[    1.590000] usbcore: registered new interface driver zaurus
[    1.590000] console [netcon0] enabled
[    1.600000] netconsole: network logging started
[    1.600000] Initializing USB Mass Storage driver...
[    1.610000] usbcore: registered new interface driver usb-storage
[    1.610000] USB Mass Storage support registered.
[    1.620000] i2c /dev entries driver
[    1.620000] Linux video capture interface: v2.00
[    2.640000] i2c_davinci i2c_davinci.1: timeout when try recovery i2c bus
[    2.640000] i2c_davinci i2c_davinci.1: timeout waiting for bus ready
[    3.660000] i2c_davinci i2c_davinci.1: timeout when try recovery i2c bus
[    3.660000] i2c_davinci i2c_davinci.1: timeout waiting for bus ready
[    4.680000] i2c_davinci i2c_davinci.1: timeout when try recovery i2c bus
[    4.680000] i2c_davinci i2c_davinci.1: timeout waiting for bus ready
[    4.690000] vpfe-capture: vpss clock vpss_master enabled
[    4.690000] vpfe-capture vpfe-capture: v4l2 device registered
[    4.700000] vpfe-capture vpfe-capture: video device registered
[    4.710000] EVM: switch to ambarella video input
[    4.710000] vpfe-capture vpfe-capture: v4l2 sub device ambarella registered
[    4.720000] vpfe_register_ccdc_device: DM365 ISIF
[    4.720000] DM365 ISIF is registered with vpfe.
[    4.730000] <davinci_display_init>
[    4.730000] Trying to register davinci display video device.
[    4.740000] layer=c1060c00,layer->video_dev=c1060d64
[    4.740000] Trying to register davinci display video device.
[    4.750000] layer=c1061000,layer->video_dev=c1061164
[    4.760000] davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
[    4.760000] </davinci_init>
[    4.760000] watchdog watchdog: heartbeat 1 sec
[    4.770000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.770000] arp_tables: (C) 2002 David S. Miller
[    4.780000] TCP cubic registered
[    4.780000] NET: Registered protocol family 17
[    4.790000] Bridge firewalling registered
[    4.810000] Clocks: disable unused mmcsd0
[    4.810000] Clocks: disable unused mmcsd1
[    4.810000] Clocks: disable unused spi0
[    4.810000] Clocks: disable unused spi1
[    4.810000] Clocks: disable unused spi2
[    4.810000] Clocks: disable unused spi3
[    4.810000] Clocks: disable unused spi4
[    4.810000] Clocks: disable unused pwm0
[    4.810000] Clocks: disable unused pwm1
[    4.810000] Clocks: disable unused pwm2
[    4.810000] Clocks: disable unused pwm3
[    4.810000] Clocks: disable unused timer1
[    4.810000] Clocks: disable unused timer3
[    4.810000] Clocks: disable unused emac
[    4.810000] Clocks: disable unused voice_codec
[    4.810000] Clocks: disable unused asp0
[    4.810000] Clocks: disable unused rto
[    4.810000] Clocks: disable unused mjcp
[    4.890000] nnnn===0
[    4.890000] davinci_emac_probe: using random MAC addr: 72:5a:ce:fd:1e:36
[    4.900000] emac-mii: probed
[    4.940000] UBIFS: recovery needed
[    4.990000] UBIFS: recovery completed
[    4.990000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    5.000000] UBIFS: file system size:   110342144 bytes (107756 KiB, 105 MiB, 869 LEBs)
[    5.000000] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    5.010000] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    5.020000] UBIFS: default compressor: lzo
[    5.020000] UBIFS: reserved for root:  0 bytes (0 KiB)
[    5.030000] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    5.030000] Freeing init memory: 120K
[    6.820000] CMEMK module: built on Jan 13 2015 at 19:24:09
[    6.840000]   Reference Linux version 2.6.32
[    6.840000]   File /home/DJI2/Project/enc_nohdmi_wm610/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[    6.860000] allocated heap buffer 0xc7000000 of size 0x2456000
[    6.890000] heap fallback enabled - will try heap if pool buffer is not available
[    6.900000] CMEM Range Overlaps Kernel Physical - allowing overlap
[    6.910000] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[    6.920000] cmemk initialized
[    6.950000] IRQK module: built on Jan 13 2015 at 19:23:41
[    6.950000]   Reference Linux version 2.6.32
[    6.970000]   File /home/DJI2/Project/enc_nohdmi_wm610/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[    6.990000] irqk initialized
[    7.040000] EDMAK module: built on Jan 13 2015 at 19:23:04
[    7.040000]   Reference Linux version 2.6.32
[    7.060000]   File /home/DJI2/Project/enc_nohdmi_wm610/src/dvsdk/dvsdk_dm368_4_02_00_06/linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
root@Dji-Pro:~# dmesg -c
root@Dji-Pro:~# ls /dev/sd*
ls: /dev/sd*: No such file or directory
root@Dji-Pro:~#
 
From your photos, the connections are the same as mine.
I have no idea why Linux can't see the changes in USB devices.
 
Any way to dump from the bootsloader. I assume it can mount the USB like on the remote controller board?
 
Well, yes. looks like there is 'fatwrite' command.

Would be harder than from Linux, but looks doable.
 
Go to bootloader, connect the stick, then type:
Code:
usb start
usb storage

You should see info about your stick.
 
Hmmm

Code:
Press ESC to abort autoboot in 1 seconds
Dji-Pro
Dji-Pro # usb start
(Re)start USB...
USB:   scanning bus for devices... No USB Device found
       scanning bus for storage devices... 0 Storage Device(s) found
Dji-Pro #
 
As I suspected - we have some kind of issue with the USB, not with Linux.

Also, I can now see that this old version of u-boot does not support 'fatwrite' command anyway..
 
I just bought another gimbal topboard before I fixed my own. I can send it to you to play with if you return it to me when you are done.
 
Thank you; it won't be necessary.

I do have a backup plan - mefistotelis owes me a favour.

Thank you again for your time, I think we did everything we could.
 
Sorry it didn't work out. I hope you get it sorted!

Im sure the OFDM connector works, cause it worked when I tested the topboard in the drone. I wonder whats up with the USB connection.. Could it be medistotelis swiched the D+ and D- in the description?
 
It is possible. Having these switched won't damage anything, so you can check if you want. When I was soldering my connector, I looked at cable colors, not the real order.

EDIT: Well, that's interesting. The internet says green is "D-", not "D+" how the wiki suggests.
Looks like this may be the cause.
 
Last edited:
Hmm. Could you measure your USB connection and see if yours have data switched? This is how mine is hooked up:
 

Attachments

  • IMG_20171208_201054.jpg
    IMG_20171208_201054.jpg
    4.1 MB · Views: 298
In order: GND, pin1, pin2, Vbus - so it looks like my proven working cable is the same as yours.
 

Recent Posts

Members online

No members online now.

Forum statistics

Threads
143,131
Messages
1,467,832
Members
105,018
Latest member
Bob Sweetwater