Управляем чем угодно откуда угодно

нужна помощь по DaVinci Dm368

Обсуждение линуксовой части и софта на борту виртурилки

нужна помощь по DaVinci Dm368

Сообщение andrew_by » 25 дек 2015, 19:45

привет всем!

возникла проблема и не знаю с чего начать . вроде много почитал но все равно каша )

есть в общем железячка с Davinci DM368 и она не хочет грузиться .. пишет следующее

DM36x initialization passed!
UBL Product Vesion : SUPER-UBL-1.0-rc0(2015-05-12)
UBL Version: 1.51(May 12 2015 - 11:29:40)
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...
andrew_by
 
Сообщения: 22
Зарегистрирован: 25 дек 2015, 12:37

Re: нужна помощь по DaVinci Dm368

Сообщение andrew_by » 29 дек 2015, 17:14

снял лог с рабочего модуля
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.8.0 (zhongwenhui@Precision-T5600) (gcc version 4. 7.3 (Sourcery CodeBench Lite 2013.05-24) ) #1 PREEMPT Fri Apr 24 16:48:01 CST 20 15
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio n cache
[ 0.000000] Machine: Ginkgo
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Ambarella: AHB = 0x60000000[0xe0000000],0x01000000 0
[ 0.000000] Ambarella: APB = 0x70000000[0xe8000000],0x01000000 0
[ 0.000000] Ambarella: PPM = 0x00000000[0x80000000],0x00500000 16
[ 0.000000] Ambarella: AXI = 0xf0000000[0xf0000000],0x00030000 0
[ 0.000000] Ambarella: PPM2 = 0x0e600000[0x8e600000],0x319fffff 9
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 57150
[ 0.000000] Kernel command line: ubi.mtd=8 root=ubi0:linux rootfstype=ubifs c onsole=ttyS2 nr_cpus=1 maxcpus=0
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Memory: 225MB = 225MB total
[ 0.000000] Memory: 223000k/223000k available, 7400k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0x4e800000 - 0x80000000 ( 792 MB)
[ 0.000000] lowmem : 0x40000000 - 0x4e100000 ( 225 MB)
[ 0.000000] modules : 0x3f000000 - 0x40000000 ( 16 MB)
[ 0.000000] .text : 0x40008000 - 0x404b76a4 (4798 kB)
[ 0.000000] .init : 0x404b8000 - 0x404d5514 ( 118 kB)
[ 0.000000] .data : 0x404d6000 - 0x40516560 ( 258 kB)
[ 0.000000] .bss : 0x40516560 - 0x405349cc ( 122 kB)
[ 0.000000] NR_IRQS:416
[ 0.000000] sched_clock: 32 bits at 96MHz, resolution 10ns, wraps every 44739 ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] SYSCLK:UART[24000000]
[ 0.000000] console [ttyS2] enabled
[ 0.201718] Calibrating delay loop... 499.71 BogoMIPS (lpj=249856)
[ 0.217676] pid_max: default: 32768 minimum: 301
[ 0.222444] Mount-cache hash table entries: 512
[ 0.227670] CPU: Testing write buffer coherency: ok
[ 0.232987] Setting up static identity map for 0x8ae9b0 - 0x8aea18
[ 0.243538] devtmpfs: initialized
[ 0.261726] NET: Registered protocol family 16
[ 0.267366] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.276839] Ambarella ginkgo:
[ 0.279943] chip id: 9000
[ 0.282778] board type: 3
[ 0.285586] board revision: 65
[ 0.288824] system configuration: 0x00000130
[ 0.296209] set ocp = 10000
[ 0.302760] aipc_spin_lock_setup done
[ 0.306605] aipc_mutex_init done
[ 0.361676] bio: create slab <bio-0> at 0
[ 0.369409] remoteproc0: c0_and_c1 is available
[ 0.374240] remoteproc0: Note: remoteproc is still under development and con sidered experimental.
[ 0.383245] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backwar d compatibility isn't yet guaranteed.
[ 0.393976] remoteproc0: registered virtio0 (type 7)
[ 0.401267] remoteproc0: powering up c0_and_c1
[ 0.405902] remoteproc0: Booting fw image dummy, size 0
[ 0.411258] remoteproc0: remote processor c0_and_c1 is now up
[ 0.419358] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 0.425666] virtio_rpmsg_bus virtio0: creating channel AmbaRpdev_CLK addr 0x4 00
[ 0.434259] Bluetooth: Core ver 2.16
[ 0.438720] NET: Registered protocol family 31
[ 0.443286] Bluetooth: HCI device and connection manager initialized
[ 0.449694] Bluetooth: HCI socket layer initialized
[ 0.454632] Bluetooth: L2CAP socket layer initialized
[ 0.459744] Bluetooth: SCO socket layer initialized
[ 0.465972] virtio_rpmsg_bus virtio0: creating channel aipc_rpc addr 0x401
[ 0.473037] Switching to clocksource ambarella-cs-timer
[ 0.521215] NET: Registered protocol family 2
[ 0.526530] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.533812] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.540224] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.546742] TCP: reno registered
[ 0.550019] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.555901] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.562480] NET: Registered protocol family 1
[ 0.567287] RPC: Registered named UNIX socket transport module.
[ 0.573376] RPC: Registered udp transport module.
[ 0.578130] RPC: Registered tcp transport module.
[ 0.582855] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.590289] virtio_rpmsg_bus virtio0: creating channel aipc_vfs addr 0x402
[ 0.602386] msgmni has been set to 435
[ 0.609989] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 53)
[ 0.617535] io scheduler noop registered
[ 0.621518] io scheduler deadline registered
[ 0.625849] io scheduler cfq registered (default)
[ 0.631332] ambarella-uart.2: ttyS2 at MMIO 0x70014000 (irq = 123) is a ambua rt
[ 0.641426] brd: module loaded
[ 0.656308] loop: module loaded
[ 0.661443] ambarella-nand ambarella-nand: in ecc-[6]bit mode
[ 0.667333] ambarella_nand: Use On Flash BBT
[ 0.671842] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 25 6MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
[ 0.683944] ambarella_nand_config_flash: 0x00000000, 0x03c00150
[ 0.689922] chip->subpagesize = 2048
[ 0.693941] Bad block table found at page 131008, version 0xFF
[ 0.700132] Bad block table found at page 130944, version 0xFF
[ 0.706511] ambarella-nand ambarella-nand: ambarella_nand_scan_partitions: Pa rtition infomation found!
[ 0.716577] Creating 15 MTD partitions on "NAND 256MiB 3,3V 8-bit":
[ 0.722962] 0x000000000000-0x000000020000 : "Bootstrap"
[ 0.730733] 0x000000020000-0x000000060000 : "Partition Table"
[ 0.739179] 0x000000060000-0x0000000a0000 : "Bootloader"
[ 0.747024] 0x0000000a0000-0x0000001a0000 : "SD Firmware Update Code"
[ 0.755969] 0x0000001a0000-0x0000021a0000 : "System Software"
[ 0.764182] 0x0000021a0000-0x0000026a0000 : "DSP uCode"
[ 0.772281] 0x0000026a0000-0x0000035a0000 : "System ROM Data"
[ 0.780585] 0x0000035a0000-0x000003fa0000 : "Linux Kernel"
[ 0.788534] 0x000003fa0000-0x000007ba0000 : "Linux Root FS"
[ 0.796770] 0x000007ba0000-0x0000099a0000 : "Linux Hibernation Image"
[ 0.805840] 0x0000099a0000-0x00000e180000 : "Storage1"
[ 0.814923] 0x00000e180000-0x00000e980000 : "Storage2"
[ 0.822555] 0x00000e980000-0x00000f880000 : "Index for Video Recording"
[ 0.831832] 0x00000f880000-0x00000fe20000 : "User Settings"
[ 0.839933] 0x00000fe20000-0x00000ffc0000 : "Calibration Data"
[ 0.849629] mousedev: PS/2 mouse device common for all mice
[ 0.855559] =====RTC ever lost power=====
[ 0.859637] =====RTC ever lost power=====
[ 0.863674] =====RTC ever lost power=====
[ 0.867701] =====RTC ever lost power=====
[ 0.871728] =====RTC ever lost power=====
[ 0.876269] ambarella-rtc ambarella-rtc: rtc core: registered ambarella-rtc a s rtc0
[ 0.886269] TCP: cubic registered
[ 0.889761] Initializing XFRM netlink socket
[ 0.894178] NET: Registered protocol family 17
[ 0.898733] NET: Registered protocol family 15
[ 0.903375] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.914790] UBI: attaching mtd8 to ubi0
[ 1.097175] UBI: scanning is finished
[ 1.108771] UBI: attached mtd8 (name "Linux Root FS", size 60 MiB) to ubi0
[ 1.115720] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 1.122539] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 1.129255] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 1.136145] UBI: good PEBs: 480, bad PEBs: 0, corrupted PEBs: 0
[ 1.142077] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 1.149223] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image seque nce number: 1276099015
[ 1.158274] UBI: available PEBs: 0, total reserved PEBs: 480, PEBs reserved f or bad PEB handling: 40
[ 1.167428] UBI: background thread "ubi_bgt0d" started, PID 409
[ 1.173454] console [netcon0] enabled
[ 1.177167] netconsole: network logging started
[ 1.181732] =====RTC ever lost power=====
[ 1.185797] ambarella-rtc ambarella-rtc: setting system clock to 2014-01-01 0 0:00:05 UTC (1388534405)
[ 1.240475] UBIFS: mounted UBI device 0, volume 0, name "linux", R/O mode
[ 1.247317] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes : 2048 bytes/2048 bytes
[ 1.256473] UBIFS: FS size: 34283520 bytes (32 MiB, 270 LEBs), journal size 9 023488 bytes (8 MiB, 72 LEBs)
[ 1.266136] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 1.271211] UBIFS: media format: w4/r0 (latest is w4/r0), UUID F008148E-B5E3- 439B-9816-FBB5D018DD0B, small LPT model
[ 1.283073] VFS: Mounted root (ubifs filesystem) readonly on device 0:12.
[ 1.291061] devtmpfs: mounted
[ 1.294726] Freeing init memory: 116K
Starting mdev...
Initializing random number generator... read-only file system detected...done
Starting network...
[ 2.107120] =====RTC ever lost power=====
Set system time from hwclock
[ 2.173027] virtio_rpmsg_bus virtio0: creating channel aipc_rfs addr 0x403
[ 2.196435] virtio_rpmsg_bus virtio0: creating channel AmbaRpdev_LinkCtrl add r 0x404
[ 2.235772] virtio_rpmsg_bus virtio0: creating channel dji_app addr 0x405
binder2 15 linux_util_svc
[ 2.508162] cfg80211: Calling CRDA to update world regulatory domain
/usr/local/share/script/preload.sh: line 8: /usr/local/share/script/wifi_softmac .sh: not found
Starting sshd: OK

skip hibernation
[ 3.380864] =====RTC ever lost power=====
Set system time from hwclock
User Setting Step 1 Finish
[ 3.511272] ambafs_create MISC
mkdir: can't create directory '/tmp/fuse_d/MISC': No such device
/usr/local/share/script/wifi_start.sh: line 62: can't create /tmp/fuse_d/MISC/wi fi.conf: nonexistent directory
cat: can't open '/tmp/wifi0_mac': No such file or directory
There is no WIFI interface!
/etc/init.d/S52wifi: line 24: boot_done: not found
[ 3.782129] usbcore: registered new interface driver usbfs
[ 3.804134] usbcore: registered new interface driver hub
[ 3.835119] usbcore: registered new device driver usb
[ 4.106439] usbcore: registered new interface driver cdc_subset
[ 4.174433] usbcore: registered new interface driver cy7c68013a_dji
[ 4.238154] Debug Flag: 0x00000000
[ 4.252547] virtio_rpmsg_bus virtio0: creating channel dji_sock addr 0x406
[ 4.301613] virtio_rpmsg_bus virtio0: creating channel dji_usbdrv addr 0x407
[ 4.365822] virtio_rpmsg_bus virtio0: creating channel dji_test addr 0x408
failed to open binding port with code -1
[hdr_merge]starting...
[ 4.428808] virtio_rpmsg_bus virtio0: creating channel echo_cortex addr 0x409
rpc client exit
User Setting Step 2 Finish
/ # mmap phy addr(0x20000000) -> virt addr(0x16c7e000)
mmap phy addr(0x00000000) -> virt addr(0x06c7e000)
MemMap ok
init ipc ok
[hdr_merge]preparing...
[hdr_merge]registering server...
binder2 14 hdr_merge_svr
[hdr_merge]start looping...
andrew_by
 
Сообщения: 22
Зарегистрирован: 25 дек 2015, 12:37

Re: нужна помощь по DaVinci Dm368

Сообщение andrew_by » 29 дек 2015, 22:09

в общем как я понял мне нужно восстановить UBL..
ручками прописать ничего не могу и бо стартлоадер не дает ничего в терминалке сделать ..единственное что могу это замкнуть перемычку Bootsel на питание, но тогда железяка начинает постоянно писать - Boot me
andrew_by
 
Сообщения: 22
Зарегистрирован: 25 дек 2015, 12:37

Re: нужна помощь по DaVinci Dm368

Сообщение andrew_by » 02 янв 2016, 20:48

закрыть.
andrew_by
 
Сообщения: 22
Зарегистрирован: 25 дек 2015, 12:37


Вернуться в Софт на виртурилке - SDK, Linux, Github, программирование (C/C++ и др.)

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3