在D1上面如何跑melis的D1版本?
-
在获取melis v4.x release源码后,进行了编译,然后打包生成了,melis_d1-evb-board_uart0_8Mcard.img这个镜像。我把它用PhoenixCard把它烧入一个sdcard,把sdcard插入D1开发板,上电启动,串口没有输出。所以想请教一下有没有方法能够让它启动起来?不知道是不是我的方法错了。
-
我的也是这样,我还尝试了
pack -a nand
没有成功生成img。
nor的和sdcard的img烧录到sd后跑起来都没反应。 -
是否生成了melis_d1-evb-board_uart0_8Mnor.img? 用最新APST上的phinuxsuilt烧录工具去烧录,不要用卡启动固件试一试.
-
@caozilong 这样改变了nor里面原有的内容?会影响到后面的sdcard启动吗?
-
@bookos 全志目前提供出去的Melis SDK,D1开发板尚未进行卡启动验证和Nand启动验证,仅验证过spinor启动。
-
@zzj123 这么说来,只测试过spinor成功过,也就是说其它方式都不确定是否能启动的意思吗?
-
@caozilong 我试了一下,用PhoenixSuit进行烧入,但是烧入不成功,具体情况如下:
-
sys_config.fex 里面 storage_type 配置是什么呢?
-
-
@bookos 嗯嗯,只测试过spinor。D1开发板使用的是Nand物料,最好换成spinor物料来启动。另外全志的spinor驱动依据spinor id来进行启动,替换物料时,需要确认该物料在全志的支持列表上。另外,因为全志默认spinor驱动会使能spinor的锁机制,最好用make menuconfig CONFIG_DRIVERS_SPINOR_WRITE_LOCK 关掉,禁止spinor的写锁。
-
@zzj123 是需要更换Nand物料的意思是要重新换一个硬件吗?禁止spinor的写锁是使得可以进行烧入的意思吗?
-
@zzj123 请问有melis在D1上面跑的的演示截图吗?我们只需要验证melis的sdmmc,eth,lcd驱动等能够运行就行了。只是想执行起来看看效果。因为目前我们在把这些驱动移植到其它rtos上面。
-
@bookos 嗯嗯,更换Nand物料就是把nand元件换成spinor元件。禁止spinor锁是避免烧录不进去,这个主要是版本之间可能存在差异,没有及时做好同步导致的。
-
@bookos sdmmc和lcd驱动有经过验证的,没有以太网接口驱动。
-
@zzj123 意思说Melis里面的网卡驱动不能移植到D1上面咯?
-
@zzj123 请问是要换成spinor这个东西吗?我的这个型号正确吗?
-
@bookos 这个是可以支持的。
-
@zzj123 ok,是不是把这spinor换上去后,就可以烧入启动了?
-
@zzj123 你好,我现在改了物料后,可以运行了,不过跑起来后就崩了,请问是怎么回事。
[284]HELLO! BOOT0 is starting! [287]BOOT0 commit : 6ef7a6c-dirty [290]set pll start [292]periph0 has been enabled [295]set pll end [296][pmu]: bus read error [299]board init ok [301]DRAM only have internal ZQ!! [304]get_pmu_exist() = -1 [306]DRAM BOOT DRIVE INFO: V0.23 [309]DRAM CLK = 792 MHz [311]DRAM Type = 3 (2:DDR2,3:DDR3) [315]DRAMC ZQ value: 0x7b7bfb [317]DRAM ODT value: 0x42. [320]ddr_type: 0x0 [323]DRAM SIZE =1024 M [326]DRAM simple test OK. [328]dram size =1024 [330]spinor id is: ef 40 18, read cmd: 6b [334]Succeed in reading toc file head. [338]The size of toc is 90000. [364]Entry_name = melis-lzma [367]LZMA: Image address............... 0x41000400 [372]LZMA: Properties address.......... 0x41000400 [377]LZMA: Uncompressed size address... 0x41000405 [381]LZMA: Compressed data address..... 0x4100040d [386]LZMA: Destination address......... 0x40000000 [390]LZMA: Uncompresed size............ 0xffffffffffffffff [396]LZMA: Compresed size.............. 0xfffffffa [564]LZMA: Uncompressed ............... 0x001191e8 [569]Entry_name = melis-config [572]image_base:43000000 [575]Jump to second Boot. [577]jump to rtos OpenSBI v0.6 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : T-HEAD Xuantie c910 Platform HART Features : RV64ACDFIMSUVX Platform Max HARTs : 1 Current Hart : 0 Firmware Base : 0x40000400 Firmware Size : 56 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b1ff PMP0 : 0x0000000040000000-0x000000004000ffff (A) PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X) PMP2 : 0x0000000000000000-0x0000000007ffffff (A,R,W) PMP3 : 0x0000000009000000-0x000000000901ffff (A,R,W) PMP4 : 0x0000000010000000-0x0000000017ffffff (A,R,W) sbi2ekernel =============================================================================================================== | /'\_/`\ (_ ) _ /'_ ) /'_ `\ /' _`\ | | | | __ | | (_) ___ ______ _ _ (_)_) | ( (_) | | ( ) | | | | (_) | /'__`\ | | | |/',__)(______)( ) ( ) _(_ < \__, | | | | | | | | | | |( ___/ | | | |\__, \ | \_/ |( )_) | _ | | _ | (_) | | | (_) (_)`\____)(___)(_)(____/ `\___/'`\____)(_) (_)(_)`\___/' | |version : V3.9.0 | |commitid: 976499a346a3d5d6d80047f3844d1d5c3e37ac55 | |sunxiver: 30800 | |timever : Mon, 01 Nov 2021 18:21:20 +0800 | |compiler: gcc version 8.4.0 (T-HEAD RISCV Tools V1.10.2 B20201104) | |optimal : -Os -g -gdwarf-2 -gstrict-dwarf | |linker : GNU ld (GNU Binutils) 2.32 | |newlibc : 3.0.0 | |author : zhouji | =============================================================================================================== [DBG]: [__mount_parts:0273]: classname=DMS [DBG]: [__mount_parts:0274]: devname=dms01 [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: dmsPart: "DMS\dms010" is linked to symbel "B". [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [DBG]: [esFSYS_mntfs:0317]: devfs,mount on B. [DBG]: [kservice_maintask:0834]: partition [B] plug in.. [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=RAMDISK [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: rawpart: "DISK\RAMDISK0" is linked to symbel "C". [ERR]: [esFSYS_mntfs:0298]: identify the filesystem failure. [ERR]: [scheduler startup [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=ROOTFS [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: rawpart: "DISK\ROOTFS0" is linked to symbel "D". [DBG]: [esFSYS_mntfs:0317]: minfs,mount on D. [DBG]: [kservice_maintask:0834]: partition [D] plug in.. [DBG]: [melis_udisk_part_check:0553]: melis_udisk_part_check 553 copy udisk_buff [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=UDISK [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0423]: rawpart: "DISK\UDISK0" is linked to symbel "E". [ERR]: [esFSYS_mntfs:0298]: identify the filesystem failure. [ERR]: [__mount_parts:0501]: mount E failure. [ERR]: [sunxi_driver_sdmmc_init:0930]: get card no failed, card no: 0 [ERR]: [hal_ths_init:0094]: 0x2009404, 0x2009400, 0x2009430, 0x2009408 key name:thermal_sensor key size:64 key offset:20 thermal_sensor: 19 91 37 79 10 20 00 00 [ERR]: [gpio_conf_set:0456]: gpio_desc is not inited [ERR]: [hal_gpio_pinmux_set_function:0689]: set pin mux error! s[DBG]: [console_LKeyDevEvent:0530]: input sys keydev not init! unxi_cir_init()509 cir[0] hardware init error, ret:-4 [DBG]: [LDR_LoadFile:0247]: filepath = d:\mod\slib.mod. [ERR]: [LDR_LoadFile:0257]: open file [d:\mod\slib.mod] failed [ERR]: [esMODS_MInstall:0585]: load module file [d:\mod\slib.mod] failed [DBG]: [LDR_LoadFile:0247]: filepath = d:\mod\display.mod. [DBG]: [LDR_LoadFile:0247]: filepath = d:\mod\mixture.mod. ===================================================================================================== EXC_LOAD_PAGE_FAULT ===================================================================================================== thread: kstartup, entry: 0x0000000040029d24, stack_base: 0x0000000040234000,stack_size: 0x00004000. gprs: x0:0x0000000000000000 ra:0x00000000e9b00e88 sp:0x0000000040237f60 gp:0x0000000040118dc0 tp:0x0000000040214080 t0:0x0000000000000048 t1:0x00000000e9b00e00 t2:0x000000004124e644 s0:0x00000000000001f4 s1:0x00000000e9b037c0 a0:0x00000000402f8448 a1:0x0000000000000000 a2:0x00000000000000c8 a3:0x0000000000afdb90 a4:0x000000004012cbe0 a5:0x00000000e8700000 a6:0x0000000000000007 a7:0x0000000010000207 s2:0x00000000e9b037c8 s3:0x000000004002eb54 s4:0x0000000040214038 s5:0x00000000deadbeef s6:0x00000000deadbeef s7:0x00000000deadbeef s8:0x00000000deadbeef s9:0x00000000deadbeef s10:0x00000000deadbeef s11:0x00000000deadbeef t3:0x000000000000075c t4:0x00000000000000c6 t5:0x0000000000000121 t6:0x00000000000000d5 other: sepc :0x00000000e9b01948 sstatus :0x0000000000004120 sscratch:0x0000000000000000 stval :0x00000000e87000a8 -------backtrace----------- backtrace : 0XE9B01948 backtrace : invalid lr backtrace : 0XE9B00E84 backtrace : 0X40128976 --------------------------- -----------------------------------------------TSK Usage Report---------------------------------------------------------- name errno entry stat prio tcb slice stacksize stkfree lt si so stack_range disp2 0 0x4002fac8 suspend 15 0x402151b8 10 8192 7872 10 0000 0000 [0x40f78000-0x40f7a000] kmsg2appq 0 0x400a6794 suspend 6 0x40214538 10 4096 3392 08 0000 0000 [0x403c0000-0x403c1000] fs-pmnt 0 0x400cfe9e suspend 7 0x402142b8 10 16384 15424 06 0000 0000 [0x40358000-0x4035c000] kstartup 0 0x40029d24 running 25 0x40214038 10 16384 13120 01 0000 0000 [0x40234000-0x40238000] tidle 0 0x4002bc80 running 31 0x40126030 32 8192 7504 19 0000 0000 [0x401262a8-0x401282a8] timer 0 0x4002f974 suspend 8 0x40128978 10 16384 16064 10 0000 0000 [0x40128bd0-0x4012cbd0] ------------------------------------------------------------------------------------------------------------------------- memory info: Total 0x1feb4000 Used 0x00af7840 Max 0x00afdb90 ------------------------------------------------memory information------------------------------------------------------- dump stack memory: 0x0000000040237f60: 0x0000075c 0x00000000 0x000000c6 0x00000000 0x0000000040237f70: 0x000001f4 0x00000000 0x000000fb 0x00000000 0x0000000040237f80: 0x00000000 0x00000000 0x40029dec 0x00000000 0x0000000040237f90: 0x40029164 0x00000000 0x00004120 0x00000000 0x0000000040237fa0: 0xffffffff 0xffffffff 0x40029d24 0x00000000 0x0000000040237fb0: 0x00000000 0x00000000 0x40128978 0x00000000 0x0000000040237fc0: 0x40029d24 0x00000000 0x400291c4 0x00000000 0x0000000040237fd0: 0xffffffff 0xffffffff 0x40029d24 0x00000000 0x0000000040237fe0: 0x00000000 0x00000000 0x4002eb54 0x00000000 0x0000000040237ff0: 0xdeadbeef 0x00000000 0x40029164 0x00000000 0x0000000040238000: 0x51ab51ab 0x00000c4a 0x00000081 0x00000ccb 0x0000000040238010: 0x00000000 0x00000000 0x40238038 0x00000000 0x0000000040238020: 0x00000080 0x00000028 0x00000004 0x00000000 0x0000000040238030: 0x00000000 0x00000000 0x40258038 0x00000000 0x0000000040238040: 0x00000000 0xffffff00 0x40237f08 0x00000000 0x0000000040238050: 0x016e3600 0x00000000 0x00000000 0x00000000 0x0000000040238060: 0x402580b0 0x00000000 0x00000001 0xffffff00 0x0000000040238070: 0x40237f08 0x00000000 0x00008000 0x00000000 0x0000000040238080: 0x00000000 0x00000000 0x40258128 0x00000000 0x0000000040238090: 0x00000002 0xffffff00 0x40237f08 0x00000000 0x00000000402380a0: 0x00f42400 0x00000000 0x11e1a300 0x00000000 0x00000000402380b0: 0x402581a0 0x00000000 0x00000003 0xffffff00 0x00000000402380c0: 0x40237f08 0x00000000 0x00008000 0x00000000 0x00000000402380d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000402380e0: 0x40258128 0x00000000 0x00000000 0x00000000 0x00000000402380f0: 0x400d5410 0x00000000 0xffffffff 0xffffffff 0x0000000040238100: 0x00000000 0x00000000 0x402581a0 0x00000000 0x0000000040238110: 0x00000000 0x00000000 0x400d5408 0x00000000 0x0000000040238120: 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0000000040238130: 0x40258218 0x00000000 0x00000000 0x00000000 0x0000000040238140: 0x400d4cd8 0x00000000 0xffffffff 0xffffffff 0x0000000040238150: 0x00000000 0x00000000 0x40258038 0x00000000 dump sepc memory: 0x00000000e9b01948: 0x0a87b303 0x77b78302 0x07a200e8 0x0b07b303 0x00000000e9b01958: 0xc5058302 0x4781471d 0x02b77263 0x46111141 0x00000000e9b01968: 0x00002597 0xe4058593 0xf0efe406 0x3793fc5f 0x00000000e9b01978: 0x60a20015 0x0141853e 0x47818082 0x8082853e 0x00000000e9b01988: 0x479dc539 0x04b7f563 0x46111141 0x00002597 0x00000000e9b01998: 0xe1458593 0xe406e022 0xf0ef842a 0xe515f95f 0x00000000e9b019a8: 0x00544783 0x00444503 0x0087979b 0x45039fa9 0x00000000e9b019b8: 0x151b0064 0x9fa90105 0x00744503 0x0185151b 0x00000000e9b019c8: 0x60a29d3d 0x01416402 0x45018082 0x4501bfdd 0x00000000e9b019d8: 0x87b28082 0xcd118736 0xfc63469d 0xca1100b6 0x00000000e9b019e8: 0x7c05b68b 0x00850613 0x7c07358b 0x006f853e 0x00000000e9b019f8: 0x45010080 0x16ed8082 0xe42e1101 0x8732e036 0x00000000e9b01a08: 0x002c868a 0x06154795 0x00efec06 0x353301e0 0x00000000e9b01a18: 0x60e200a0 0x40a00533 0x80826105 0xf06f852e 0x00000000e9b01a28: 0x852ef05f 0xef5ff06f 0x00002817 0xd8080813 0x00000000e9b01a38: 0xe0427179 0x01f10893 0x27814801 0x10eff406 0x00000000e9b01a48: 0x70a25640 0x80826145 0x07934d78 0x069b1100 0x00000000e9b01a58: 0xed63fff7 0x468b04d7 0x380bffd5 0x38837c07 0x00000000e9b01a68: 0x83330185 0x457040d5 0x746387ba 0x87bb0103 0x00000000e9b01a78: 0x280340d5 0x412c0445 0x00081a63 0x00c52803 0x00000000e9b01a88: 0x40b8033b 0x0067e463 0x05052223 0x9f1d9dbd 0x00000000e9b01a98: 0xcd78c12c 0x873685be 0x360b5e7d 0x35fd7c06 0x00000000e9b01aa8: 0x01c59763 0x7c07b78b 0xf91c97b6 0x08338082 0x00000000e9b01ab8: 0x837640c7 0x00c76363 0x98464301 0x8068480b 0x00000000e9b01ac8: 0x00e8d80b 0xbfe10705 0xe5a67115 0xe9a26485 0x00000000e9b01ad8: 0xe1caed86 0xf952fd4e 0xf15af556 0xe962ed5e 0x00000000e9b01ae8: 0xe16ae566 0x842afcee 0xf432e42e 0x8004849b 0x00000000e9b01af8: 0x04442a83 0x04042e03 0x6b227810 0x000a9d63 0x00000000e9b01b08: 0x0733445c 0x87bb40cb 0xb78b41c7 0xf4637c07 0x00000000e9b01b18: 0x8b3300e7 0x288300c7 0x587d0084 0x18bb680c 0x00000000e9b01b28: 0xc8930118 0x2881fff8 0x2883fc46 0x401c0044 0x00000000e9b01b38: 0x03843a03 0x0118183b 0x88936885 0x98aea688 ===================================================================================================== EXC_LOAD_PAGE_FAULT ===================================================================================================== thread: kstartup, entry: 0x0000000040029d24, stack_base: 0x0000000040234000,stack_size: 0x00004000. gprs: x0:0x0000000000000000 ra:0x0000000040095800 sp:0x0000000040237d90 gp:0x0000000040118dc0 tp:0x0000000040214080 t0:0x0000000040013388 t1:0x000000000000000f t2:0x000000000000000a s0:0x0000000040fd6278 s1:0x0000000040fd6460 a0:0x0000000040fd6460 a1:0x0000000000000000 a2:0x0000000000000000 a3:0x0000000040fd64b0 a4:0x0000000040fd64b0 a5:0x0000000000000000 a6:0x0000000002500000 a7:0x00000000400dd8b0 s2:0x00000000400d4a38 s3:0x000000004002eb54 s4:0x0000000040214038 s5:0x00000000deadbeef s6:0x00000000deadbeef s7:0x00000000deadbeef s8:0x00000000deadbeef s9:0x00000000deadbeef s10:0x00000000deadbeef s11:0x00000000deadbeef t3:0x0000000000000000 t4:0x0000000000000008 t5:0x0000000000000039 t6:0x0000000000000030 other: sepc :0x00000000400956d2 sstatus :0x0000000000004100 sscratch:0x0000000000000000 stval :0x0000000000000052 -------backtrace----------- backtrace : 0X400956D2 backtrace : invalid lr backtrace : 0X400957FC backtrace : 0X4002903A backtrace : 0X400290DA backtrace : 0X4002A008 --------------------------- -----------------------------------------------TSK Usage Report---------------------------------------------------------- name errno entry stat prio tcb slice stacksize stkfree lt si so stack_range disp2 0 0x4002fac8 suspend 15 0x402151b8 10 8192 7872 10 0000 0000 [0x40f78000-0x40f7a000] kmsg2appq 0 0x400a6794 suspend 6 0x40214538 10 4096 3392 08 0000 0000 [0x403c0000-0x403c1000] fs-pmnt 0 0x400cfe9e suspend 7 0x402142b8 10 16384 15424 06 0000 0000 [0x40358000-0x4035c000] kstartup 0 0x40029d24 running 25 0x40214038 10 16384 13120 01 0000 0000 [0x40234000-0x40238000] tidle 0 0x4002bc80 running 31 0x40126030 32 8192 7504 19 0000 0000 [0x401262a8-0x401282a8] timer 0 0x4002f974 suspend 8 0x40128978 10 16384 16064 10 0000 0000 [0x40128bd0-0x4012cbd0] ------------------------------------------------------------------------------------------------------------------------- memory info: Total 0x1feb4000 Used 0x00af7a80 Max 0x00afdb90 ------------------------------------------------memory information------------------------------------------------------- dump stack memory: 0x0000000040237d90: 0x400d4960 0x00000000 0xdeadbeef 0x00000000 0x0000000040237da0: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237db0: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237dc0: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237dd0: 0x40214038 0x00000000 0x4002eb54 0x00000000 0x0000000040237de0: 0x400d4a38 0x00000000 0xe87000a8 0x00000000 0x0000000040237df0: 0x40237e50 0x00000000 0x4002903e 0x00000000 0x0000000040237e00: 0xe9b037c8 0x00000000 0x40234000 0x00000000 0x0000000040237e10: 0x40029d24 0x00000000 0x40214038 0x00000000 0x0000000040237e20: 0x40237e50 0x00000000 0x00004120 0x00000002 0x0000000040237e30: 0xe9b037c8 0x00000000 0x400290de 0x00000000 0x0000000040237e40: 0x40237e50 0x00000000 0x4002a00c 0x00000000 0x0000000040237e50: 0xe9b01948 0x00000000 0xe9b00e88 0x00000000 0x0000000040237e60: 0x40237f60 0x00000000 0x40118dc0 0x00000000 0x0000000040237e70: 0x40214080 0x00000000 0x00000048 0x00000000 0x0000000040237e80: 0xe9b00e00 0x00000000 0x4124e644 0x00000000 0x0000000040237e90: 0x000001f4 0x00000000 0xe9b037c0 0x00000000 0x0000000040237ea0: 0x402f8448 0x00000000 0x00000000 0x00000000 0x0000000040237eb0: 0x000000c8 0x00000000 0x00afdb90 0x00000000 0x0000000040237ec0: 0x4012cbe0 0x00000000 0xe8700000 0x00000000 0x0000000040237ed0: 0x00000007 0x00000000 0x10000207 0x00000000 0x0000000040237ee0: 0xe9b037c8 0x00000000 0x4002eb54 0x00000000 0x0000000040237ef0: 0x40214038 0x00000000 0xdeadbeef 0x00000000 0x0000000040237f00: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237f10: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237f20: 0xdeadbeef 0x00000000 0xdeadbeef 0x00000000 0x0000000040237f30: 0x0000075c 0x00000000 0x000000c6 0x00000000 0x0000000040237f40: 0x00000121 0x00000000 0x000000d5 0x00000000 0x0000000040237f50: 0x00004120 0x00000002 0x00000000 0x00000000 0x0000000040237f60: 0x0000075c 0x00000000 0x000000c6 0x00000000 0x0000000040237f70: 0x000001f4 0x00000000 0x000000fb 0x00000000 0x0000000040237f80: 0x00000000 0x00000000 0x40029dec 0x00000000 dump sepc memory: 0x00000000400956d2: 0x0527c783 0x0797eb91 0x8c23000a 0x0517d207 0x00000000400956e2: 0x0513000a 0x8082d305 0x07971101 0x8793000a 0x00000000400956f2: 0xec0612c7 0xe826e422 0xc195638c 0x40000613 0x0000000040095702: 0x000a0517 0xd0e50513 0xc067f0ef 0x642260e2 0x0000000040095712: 0x051764c2 0x0513000a 0x6105cfc5 0xf0ef8082 0x0000000040095722: 0x5597d4af 0x85930006 0xe509c6c5 0x00065597 0x0000000040095732: 0xc6a58593 0x000a0517 0xcda50513 0xd137e0ef 0x0000000040095742: 0x000a0417 0xcce40413 0x80ef8522 0x84aaeee9 0x0000000040095752: 0x80ef8522 0x0593ee69 0x8d894000 0x00940533 0x0000000040095762: 0x2a2060ef 0x00065597 0xc3a58593 0xe0ef8522 0x0000000040095772: 0xbf69ae17 0xe0221141 0x5517842a 0x05130006 0x0000000040095782: 0xe406cc45 0x88e960ef 0xf3fff0ef 0x061385aa 0x0000000040095792: 0x55171e84 0x05130006 0x60efcb45 0x64028789 0x00000000400957a2: 0x450160a2 0x80820141 0xeca67159 0x051384aa 0x00000000400957b2: 0xf4862400 0xe8caf0a2 0xe0d2e4ce 0xf85afc56 0x00000000400957c2: 0xf062f45e 0xe86aec66 0xd0efe46e 0x842a74f0 0x00000000400957d2: 0x24000613 0xd0ef4581 0x90efb857 0x85a6d1e9 0x00000000400957e2: 0x78d030ef 0x1e840493 0x05000613 0x85264581 0x00000000400957f2: 0xb6b7d0ef 0x08a34785 0xf0ef04f4 0x60efecdf 0x0000000040095802: 0x17978149 0x87930009 0x439c81c7 0x45b5e78d 0x0000000040095812: 0x00065517 0xbd650513 0xd25ff0ef 0x1c6357fd 0x0000000040095822: 0x559700f5 0x85930006 0x5517bc45 0x05130006 0x0000000040095832: 0x50efbcc5 0x4c6dfe19 0x59174a05 0x09130006 0x0000000040095842: 0x0993be49 0x0a931984 0x0c930a84 0x0b130584 0x0000000040095852: 0x0b930f84 0x40ef1484 0x8d2a3300 0x3e051163 0x0000000040095862: 0x95f7c0ef 0xfe0549e3 0x0b634785 0x47830185 0x0000000040095872: 0x99630504 0x07930747 0x166305b0 0x478900f5 0x0000000040095882: 0x04f40823 0x0823bfc9 0xd5710404 0x0ff00793 0x0000000040095892: 0xfcf503e3 0x156347a5 0x578312f5 0x4c6323a4 0x00000000400958a2: 0x251710fd 0x05130006 0x50efa6c5 0xf0eff699 0x00000000400958b2: 0x1563bbaf 0x85260145 0xf9aff0ef 0xe0bff0ef 0x00000000400958c2: 0x862685aa 0x00065517 0xb8250513 0xf47950ef panic_goto_cli can not be reentrant!
-
@bookos 在 在D1上面如何跑melis的D1版本? 中说:
= d:\mod\slib.mod.
[ERR]: [LDR_LoadFile:0257]: open file [d:\mod\slib.mod] failed
[ERR]: [esMODS_MInstall:0585]: load module file [d:\mod\slib.mod] fa不清楚你那边的版本为啥会少了slib.mod,但可以把文件系统里面的东西都清空。方法如下:
- 在SDK环境中执行 crootfs,然后把这里面的文件都删掉,不需要编译,重新打包烧录试试。
-
@zzj123 按照你的说法,把文件系统里面的东西清除后,再运行,结果如下:
[BEGIN] 2021/11/2 10:37:33 [294]BOOT0 commit : 6ef7a6c-dirty [297]set pll start [299]periph0 has been enabled [302]set pll end [303][pmu]: bus read error [306]board init ok [308]DRAM only have internal ZQ!! [311]get_pmu_exist() = -1 [313]DRAM BOOT DRIVE INFO: V0.23 [316]DRAM CLK = 792 MHz [319]DRAM Type = 3 (2:DDR2,3:DDR3) [322]DRAMC ZQ value: 0x7b7bfb [324]DRAM ODT value: 0x42. [327]ddr_type: 0x0 [330]DRAM SIZE =1024 M [333]DRAM simple test OK. [336]dram size =1024 [337]spinor id is: ef 40 18, read cmd: 6b [341]Succeed in reading toc file head. [345]The size of toc is 90000. [372]Entry_name = melis-lzma [375]LZMA: Image address............... 0x41000400 [380]LZMA: Properties address.......... 0x41000400 [384]LZMA: Uncompressed size address... 0x41000405 [389]LZMA: Compressed data address..... 0x4100040d [394]LZMA: Destination address......... 0x40000000 [398]LZMA: Uncompresed size............ 0xffffffffffffffff [404]LZMA: Compresed size.............. 0xfffffffa [572]LZMA: Uncompressed ............... 0x001191e8 [577]Entry_name = melis-config [580]image_base:43000000 [583]Jump to second Boot. [585]jump to rtos OpenSBI v0.6 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : T-HEAD Xuantie c910 Platform HART Features : RV64ACDFIMSUVX Platform Max HARTs : 1 Current Hart : 0 Firmware Base : 0x40000400 Firmware Size : 56 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b1ff PMP0 : 0x0000000040000000-0x000000004000ffff (A) PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X) PMP2 : 0x0000000000000000-0x0000000007ffffff (A,R,W) PMP3 : 0x0000000009000000-0x000000000901ffff (A,R,W) PMP4 : 0x0000000010000000-0x0000000017ffffff (A,R,W) sbi2ekernel =============================================================================================================== | /'\_/`\ (_ ) _ /'_ ) /'_ `\ /' _`\ | | | | __ | | (_) ___ ______ _ _ (_)_) | ( (_) | | ( ) | | | | (_) | /'__`\ | | | |/',__)(______)( ) ( ) _(_ < \__, | | | | | | | | | | |( ___/ | | | |\__, \ | \_/ |( )_) | _ | | _ | (_) | | | (_) (_)`\____)(___)(_)(____/ `\___/'`\____)(_) (_)(_)`\___/' | |version : V3.9.0 | |commitid: 976499a346a3d5d6d80047f3844d1d5c3e37ac55 | |sunxiver: 30800 | |timever : Mon, 01 Nov 2021 18:21:20 +0800 | |compiler: gcc version 8.4.0 (T-HEAD RISCV Tools V1.10.2 B20201104) | |optimal : -Os -g -gdwarf-2 -gstrict-dwarf | |linker : GNU ld (GNU Binutils) 2.32 | |newlibc : 3.0.0 | |author : zhouji | =============================================================================================================== [DBG]: [__mount_parts:0273]: classname=DMS [DBG]: [__mount_parts:0274]: devname=dms01 [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: dmsPart: "DMS\dms010" is linked to symbel "B". [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [ERR]: [esFSYS_pread:0318]: fs fatal err [DBG]: [esFSYS_mntfs:0317]: devfs,mount on B. [DBG]: [kservice_maintask:0834]: partition [B] plug in.. [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=RAMDISK [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: rawpart: "DISK\RAMDISK0" is linked to symbel "C". [ERR]: [esFSYS_mntfs:0298]: identify the filesystem failure. [ERR]: [scheduler startup [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=ROOTFS [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0460]: rawpart: "DISK\ROOTFS0" is linked to symbel "D". [ERR]: [minfs_init_sb_info:0065]: fs fatal err [ERR]: [esFSYS_mntfs:0298]: identify the filesystem failure. [ERR]: [__mount_parts:0501]: mount D failure. [DBG]: [melis_udisk_part_check:0553]: melis_udisk_part_check 553 copy udisk_buff [DBG]: [__mount_parts:0273]: classname=DISK [DBG]: [__mount_parts:0274]: devname=UDISK [DBG]: [__mount_parts:0301]: find last lun. [DBG]: [__mount_parts:0331]: nPart = 1. [DBG]: [__mount_parts:0423]: rawpart: "DISK\UDISK0" is linked to symbel "E". [ERR]: [esFSYS_mntfs:0298]: identify the filesystem failure. [ERR]: [__mount_parts:0501]: mount E failure. [ERR]: [sunxi_driver_sdmmc_init:0930]: get card no failed, card no: 0 [ERR]: [hal_ths_init:0094]: 0x2009404, 0x2009400, 0x2009430, 0x2009408 key name:thermal_sensor key size:64 key offset:20 thermal_sensor: 19 91 37 79 10 20 00 00 [ERR]: [gpio_conf_set:0456]: gpio_desc is not inited [ERR]: [hal_gpio_pinmux_set_function:0689]: set pin mux error! s[DBG]: [console_LKeyDevEvent:0530]: input sys keydev not init! unxi_cir_init()509 cir[0] hardware init error, ret:-4 [END] 2021/11/2 10:37:46
-
@bookos 这应该已经能够进入控制台了吧。
-
@zzj123 把下面这段配置,放在 source/projects/d1-evb-board/configs/sys_config.fex和source/projects/d1-evb-board/configs/sys_config_nor.fex 中,TF卡应该就可以使用了。
[sdcard_global] used_card_no = 0x01 ;used_card_no = 0x01, when use card0 ;used_card_no = 0x02, when use card1 ;used_card_no = 0x03, when use card0 & card1 internal_card = 0x00 ;internal_card = 0x00, 无内置卡内置卡 ;internal_card = 0x01, card0 做内置卡 ;internal_card = 0x02, card1 做内置卡 ;如果该卡是内置卡,则检测脚未注释,也不会使用 [sdc0det_para] detect_pin = port:PF6<0><1><1><default> [sdc1det_para] msdet_para = port:PG6<0><1><1><default> [sdc0] ;sdc0_used = 1 ;bus-width = 4 sdc0_d1 = port:PF00<2><1><1><default> sdc0_d0 = port:PF01<2><1><1><default> sdc0_clk = port:PF02<2><1><1><default> sdc0_cmd = port:PF03<2><1><1><default> sdc0_d3 = port:PF04<2><1><1><default> sdc0_d2 = port:PF05<2><1><1><default> ;cd-gpios = port:PF06<0><1><2><default> ;card-pwr-gpios = port:PL08<1><1><2><default> ;ctl-spec-caps = 0x4 ;sunxi-power-save-mode = ;sunxi-dis-signal-vol-sw = ;vmmc="vcc-sdcv" ;vqmmc="vcc-sdcvq33" ;vdmmc="vcc-sdcvd" [sdc1] ;sdc1_used = 1 ;bus-width= 4 sdc1_clk = port:PG00<2><1><1><default> sdc1_cmd = port:PG01<2><1><1><default> sdc1_d0 = port:PG02<2><1><1><default> sdc1_d1 = port:PG03<2><1><1><default> sdc1_d2 = port:PG04<2><1><1><default> sdc1_d3 = port:PG05<2><1><1><default> ;sunxi-power-save-mode = ;sd-uhs-sdr50= ;sd-uhs-ddr50= ;sd-uhs-sdr104= ;cap-sdio-irq1= ;keep-power-in-suspend= ;ignore-pm-notify= ;max-frequency = 150000000
-
@zzj123 从Log看来,还是没进控制台的。
-
@zzj123 按照这个配置,我们运行起来了。感谢感谢!
-
@zzj123 不过好像还缺少一些资源,有这些资源的话会比较好做驱动的测试。请问可以从哪里获取?
-
@zzj123 你好,我们在melis里面写了一个lcd驱动的测试,测试结果失败,是仿造disp_layer_format_test.c这个写的,请问可以看一下是什么问题吗?
-
@bookos 测试屏驱动,先执行 disp -c 0 8,看屏是否有响应?
-
@zzj123 测试了,有反应,说明lcd是没问题的哈。
-
@zzj123 你好,我这边测试disp -c 0 8命令可以显示色条。
但是使用上层测试用例:set_layer_config去显示ARGB8888格式的buffer数据,发现颜色不对,我设置的是红色。显示出来是蓝白色。
代码如下:static int show_layer(struct test_layer_cfg *cfg, u32 width, u32 height, u32 channel, u32 format, char *filename) { if (!cfg || !filename) return -1; printf("show %s format:0x%x\n", filename, format); disp_mem(0, width, height, 0, filename); cfg->mem_id = 0; cfg->screen_id = g_screen_index; cfg->layer_cfg.channel = channel; cfg->layer_id = 0; cfg->layer_cfg.layer_id = 0; cfg->layer_cfg.info.fb.format = format; cfg->layer_cfg.info.fb.size[0].width = width; cfg->layer_cfg.info.fb.size[0].height = height; cfg->layer_cfg.info.fb.crop.x = 0; cfg->layer_cfg.info.fb.crop.y = 0; cfg->layer_cfg.info.fb.crop.width = width; cfg->layer_cfg.info.fb.crop.height = height; cfg->layer_cfg.info.fb.align[0] = 4; cfg->layer_cfg.info.mode = 0; cfg->layer_cfg.info.alpha_mode = 1; cfg->layer_cfg.info.alpha_value = 255; cfg->layer_cfg.info.zorder = 0; cfg->layer_cfg.info.screen_win.x = 0; cfg->layer_cfg.info.screen_win.y = 0; disp_layer_cfg(cfg); msleep(5000); disp_layer_clear(g_screen_index, channel, 0); disp_mem_clear(0); return 0; } int disp_layer_rgb_test(int argc, char **argv) { struct test_layer_cfg test_cfg; int i, sw, sh; /*main test start*/ if (argc == 2) { g_screen_index = atoi(argv[1]); } else g_screen_index = 0; disp_layer_clear_all(g_screen_index); printf("request mem_id 0\n"); printf("Start show layer\n"); memset(&test_cfg, 0, sizeof(struct test_layer_cfg)); show_layer(&test_cfg, 1280, 800, 0, DISP_FORMAT_ARGB_8888, "rgb"); disp_layer_clear_all(g_screen_index); msleep(100); return 0; }
-
@geniusgogo 发现是disp_mem.c里填充ARGB数据的地方大小端写错了。
while(count--) { //for(i = 0; i < 4; i++) { #if 0 *(tmp) = 0xff;//A *(tmp + 1) = filename[0]=='r'?0xff:0;//R *(tmp + 2) = filename[0]=='g'?0xff:0;//G *(tmp + 3) = filename[0]=='b'?0xff:0;//B #else *(tmp + 3) = 0xff;//A *(tmp + 2) = filename[0]=='r'?0xff:0;//R *(tmp + 1) = filename[0]=='g'?0xff:0;//G *(tmp + 0) = filename[0]=='b'?0xff:0;//B #endif //} tmp+=4; }
-
melis的代码怎么获取啊
-
@zzj123 请教一下 CONFIG_DRIVERS_SPINOR_WRITE_LOCK这个选项在make menuconfig的哪个菜单里面,我找了很久没有找到
-
@zzj123 请教一下,到哪里去看支持哪些NORFLASH的呀?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号