您尚未登录。

楼主 #1 2019-12-30 00:30:44

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

荔枝派nano F1C100S运行melis过程记录

步骤如下
1.根据坑网贴子安装编译打包环境,并编译成功

2.修改\sdk\workspace\suniv\eFex\sys_config.fex,修改打印串口为PE1 PE0

3.执行F:\sdk\workspace\suniv\beetles\image.bat
成功打包出ePDKv100.img
[图片]
4.短路flash1, 4脚,插入usb,成功识别到设备,使用PhoenixSuit V1.10烧录
同时串口打印以下信息

[00:08:22.773] DBG: init uart OK, running at 102000000M
[00:08:22.773] fes1 is starting
[00:08:22.773] init dram , base        is 0x80000000
[00:08:22.773] init dram , clk         is 152
[00:08:22.773] init dram , access_mode is 1
[00:08:22.773] init dram , cs_num      is 1
[00:08:22.773] init dram , ddr8_remap  is 0
[00:08:22.773] init dram , sdr_ddr     is 1
[00:08:22.773] init dram , bwidth      is 16
[00:08:22.773] init dram , col_width   is 10
[00:08:22.773] init dram , row_width   is 13
[00:08:22.773] init dram , bank_size   is 4
[00:08:22.773] init dram , cas         is 3
[00:08:22.773] init dram , size        is 0
[00:08:22.773] dram init successed,size is 32
[00:08:22.848] init dram OK, size is 32
[00:08:22.848] DBG: init heap OK, base address is 0x80000000, size is 0x00100000
[00:08:22.848] fes init dram OK, size is 32
[00:08:22.848] [      0.000]
[00:08:23.871] 
[00:08:23.871] U-Boot 2011.09-rc1 (Sep 03 2014 - 18:01:00) Allwinner Technology 
[00:08:23.897] 
[00:08:23.897] [      0.058]version: 1.0.0
[00:08:23.897] monitor len: 00437BD4
[00:08:23.897] [      0.095]DRAM:  32 MiB
[00:08:23.897] relocation Offset is: 01ac8000
[00:08:23.897] donn't initialize ther user_gpio (main_key:boot_init_gpio)
[00:08:23.986] workmode = 16
[00:08:23.986] read flash error
[00:08:23.986] In:    serial
[00:08:23.986] Out:   serial
[00:08:23.986] Err:   serial
[00:08:23.986] [      0.799]Hit any key to stop autoboot:  0 
[00:08:23.986] work mode=0x10
[00:08:23.986] run usb efex
[00:08:23.986] delay time 2500
[00:08:23.986] usb init ok
[00:08:24.625] ######################usb_efex set address 0x1b
[00:08:24.977] ######################SUNXI_EFEX_ERASE_TAG
[00:08:25.076] ######################erase_flag = 0x0
[00:08:25.076] ######################FEX_CMD_fes_verify last err=0
[00:08:25.076] the 0 mbr table is ok
[00:08:25.137] the 1 mbr table is ok
[00:08:25.137] the 2 mbr table is ok
[00:08:25.137] the 3 mbr table is ok
[00:08:25.137] do not need erase flash
[00:08:25.137] ######################SUNXI_EFEX_MBR_TAG
[00:08:25.137] ######################mbr size = 0x10000
[00:08:25.137] ######################FEX_CMD_fes_verify last err=0
[00:08:25.137] sunxi spinor is initing...
[00:08:25.137] SUNXI_CCM_CPUAHBAPB0_RATIO = 8464
[00:08:25.137] src_sel = 2    ahb1_clk_div_rate=2
[00:08:25.137] cpu_sel = 2
[00:08:25.137] core pll = 408
[00:08:25.137] spi src pll = 204
[00:08:25.137] div = 17
[00:08:25.137] spi_run_clk=14
[00:08:25.137] SUNXI_CCM_CPUAHBAPB0_RATIO = 8464
[00:08:25.170] src_sel = 2    ahb1_clk_div_rate=2
[00:08:25.170] cpu_sel = 2
[00:08:25.170] core pll = 408
[00:08:25.170] OK
[00:08:25.170] ********************
[00:08:25.170] spinor test begin...
[00:08:25.170] spinor test begin...
[00:08:25.170] ********************
[00:08:25.170] read ==============:
[00:08:25.206] buf[0] = 168,buf[1] = 0,buf[2] = 0,buf[3] = 234,buf[4] = 101,buf[5] = 71,buf[6] = 79,buf[7] = 78,######################flash sectors: 0x4000
[00:08:25.206] ######################sunxi usb efex trans finish
[00:08:25.285] spinor_datafinish
[00:08:25.302] ret=0
[00:08:25.302] ret1=0
[00:08:25.333] spinor id = 0x1840ef
[00:08:25.333] ==================================
[00:08:25.333] erase nor flash now , waiting ...
[00:08:25.333] ==================================
[00:08:25.333] 
[00:08:51.349]  nor flash erasered finish 
[00:08:51.349] ==================================
[00:08:51.349] begin to burn , waiting ...
[00:08:51.349] ==================================
[00:08:51.349] page count=511
[00:08:51.589] page count=1023
[00:08:51.877] page count=1535
[00:08:52.196] page count=2047
[00:08:52.500] page count=2559
[00:08:52.820] page count=3071
[00:08:53.123] page count=3583
[00:08:53.427] page count=4095
[00:08:53.757] count=0 : a8  0  0 ea 65 47 4f 4e 2e 42 54 30 b7 e0  b c7 
[00:08:53.757] spinor download data ok
[00:08:53.757] ######################sunxi usb efex trans finish
[00:08:53.850] spinor_datafinish
[00:08:53.850] ret=0
[00:08:53.850] ret1=0
[00:08:53.877] ==================================
[00:08:53.877] begin to burn , waiting ...
[00:08:53.877] ==================================
[00:08:53.877] page count=511
[00:08:54.181] page count=1023
[00:08:54.500] page count=1535
[00:08:54.804] page count=2047
[00:08:55.108] page count=2559
[00:08:55.427] page count=3071
[00:08:55.731] page count=3583
[00:08:56.051] page count=4095
[00:08:56.369] count=1 : 5c 21 55 99 99 df 7b 2f 2e fa 1c 41 6d 7b ce 3b 
[00:08:56.369] spinor download data ok
[00:08:56.369] ######################sunxi usb efex trans finish
[00:08:56.464] spinor_datafinish
[00:08:56.464] ret=0
[00:08:56.464] ret1=0
[00:08:56.491] ==================================
[00:08:56.491] begin to burn , waiting ...
[00:08:56.491] ==================================
[00:08:56.491] page count=511
[00:08:56.794] page count=1023
[00:08:57.114] page count=1535
[00:08:57.418] page count=2047
[00:08:57.738] page count=2559
[00:08:58.041] page count=3071
[00:08:58.345] page count=3583
[00:08:58.665] page count=4095
[00:08:58.968] count=2 : c5 7d 4a  3 a9 29 5c 5f ef ad 88 c5  1 9f 1f d7 
[00:08:58.984] spinor download data ok
[00:08:58.984] ######################sunxi usb efex trans finish
[00:08:59.079] spinor_datafinish
[00:08:59.079] ret=0
[00:08:59.079] ret1=0
[00:08:59.106] ==================================
[00:08:59.106] begin to burn , waiting ...
[00:08:59.106] ==================================
[00:08:59.106] page count=511
[00:08:59.410] page count=1023
[00:08:59.730] page count=1535
[00:09:00.033] page count=2047
[00:09:00.337] page count=2559
[00:09:00.657] page count=3071
[00:09:00.961] page count=3583
[00:09:01.280] page count=4095
[00:09:01.609] count=3 : ab 5c 7e d3 f7 7e b2 b8 60 9f 4c 67 52 ad 31 fe 
[00:09:01.609] spinor download data ok
[00:09:01.609] spinor read: start 0x0, sector 0x800
[00:09:01.609] spinor sprite read: start 0x0, sector 0x800
[00:09:01.609] readback count=0 : a8  0  0 ea 65 47 4f 4e 2e 42 54 30 b7 e0  b c7 
[00:09:02.484]  check sum = 0xf1f91afd
[00:09:02.484] spinor read: start 0x800, sector 0x800
[00:09:02.484] spinor sprite read: start 0x800, sector 0x800
[00:09:02.484] readback count=1 : 5c 21 55 99 99 df 7b 2f 2e fa 1c 41 6d 7b ce 3b 
[00:09:03.361]  check sum = 0x730f4a99
[00:09:03.361] spinor read: start 0x1000, sector 0x800
[00:09:03.361] spinor sprite read: start 0x1000, sector 0x800
[00:09:03.361] readback count=2 : c5 7d 4a  3 a9 29 5c 5f ef ad 88 c5  1 9f 1f d7 
[00:09:04.236]  check sum = 0x1a75028e
[00:09:04.236] spinor read: start 0x1800, sector 0x800
[00:09:04.236] spinor sprite read: start 0x1800, sector 0x800
[00:09:04.236] readback count=3 : ab 5c 7e d3 f7 7e b2 b8 60 9f 4c 67 52 ad 31 fe 
[00:09:05.147]  check sum = 0x2ddbda54
[00:09:05.147] read from nor check sum = 0x2ddbda54
[00:09:05.147] ######################FEX_CMD_fes_verify_value, start 0x0, size high 0x0:low 0x400000
[00:09:05.147] ######################FEX_CMD_fes_verify_value 0x2ddbda54
[00:09:05.147] force sunxi spinor exit
[00:09:05.147] ######################sunxi_efex_next_action=2
[00:09:05.147] exit usb
[00:09:05.147] next work 2
[00:09:05.147] SUNXI_UPDATE_NEXT_ACTION_REBOOT
[00:09:05.147] set next system normal
[00:09:05.147] 

5.软件提示烧录成功,然后就没有然后了,重新上电串口没有输出任何信息,路过的大神还请指点下这是什么问题。
附件是修改过的fex及编译出来的img

离线

楼主 #2 2019-12-30 10:36:30

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

Re: 荔枝派nano F1C100S运行melis过程记录

ePDKv100.zip


sys_config.rar

最近编辑记录 feysan (2019-12-30 10:36:51)

离线

楼主 #3 2019-12-31 09:42:08

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

Re: 荔枝派nano F1C100S运行melis过程记录

附上完整的melis开发全套资料,源代码没有上传,如有需要联系企鹅2246913712
哪位能正常运行起来,记得分享下过程额

_20191231093815.png


链接: https://pan.baidu.com/s/1aOSA4Xgu4SE8z0VbL44bTQ 提取码: r87w

离线

#4 2019-12-31 20:21:53

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 荔枝派nano F1C100S运行melis过程记录

源码里面有个调debug等级的头文件 改成最高级

离线

#5 2019-12-31 21:48:01

duanchangstar
会员
注册时间: 2019-10-29
已发帖子: 14
积分: 12

Re: 荔枝派nano F1C100S运行melis过程记录

别搞什么melis了,用Tina不更好吗

离线

#6 2019-12-31 22:52:09

gzaps
会员
注册时间: 2018-07-23
已发帖子: 17
积分: 17

Re: 荔枝派nano F1C100S运行melis过程记录

谢谢分享

离线

#7 2020-01-01 07:58:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 荔枝派nano F1C100S运行melis过程记录

感谢分享, 不过 realview 2.2 可以替换成 mdk 了.





离线

楼主 #8 2020-01-02 15:33:43

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

Re: 荔枝派nano F1C100S运行melis过程记录

晕哥 说:

感谢分享, 不过 realview 2.2 可以替换成 mdk 了.

换过了,一样的,可能不是编译的问题

离线

楼主 #9 2020-01-02 15:34:53

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

Re: 荔枝派nano F1C100S运行melis过程记录

duanchangstar 说:

别搞什么melis了,用Tina不更好吗

tina和melis一样有齐全的外设驱动吗,能共享tina研究下吗

离线

楼主 #10 2020-01-02 15:35:24

feysan
会员
注册时间: 2019-12-18
已发帖子: 11
积分: 11

Re: 荔枝派nano F1C100S运行melis过程记录

逸俊晨晖 说:

源码里面有个调debug等级的头文件 改成最高级

这个也试过改过

离线

#11 2020-01-03 09:28:12

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 荔枝派nano F1C100S运行melis过程记录

我看了下你的sys_config

[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE1<5>
uart_debug_rx   = port:PE0<5>
改成
[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE1<5>
;uart_debug_rx   = port:PE0<5>

[uart_para0]
uart_used       = 1
uart_port       = 0
uart_type       = 2
uart_debug_tx   = port:PE1<5>
uart_debug_rx   = port:PE0<5>
改成
[uart_para0]
;uart_used       = 1
;uart_port       = 0
;uart_type       = 2
;uart_debug_tx   = port:PE1<5>
;uart_debug_rx   = port:PE0<5>

离线

#12 2020-05-19 16:32:19

yushikong
会员
注册时间: 2017-12-11
已发帖子: 12
积分: 12

Re: 荔枝派nano F1C100S运行melis过程记录

逸俊晨晖 说:

我看了下你的sys_config

[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE1<5>
uart_debug_rx   = port:PE0<5>
改成
[uart_para]
uart_debug_port = 0
uart_debug_tx   = port:PE1<5>
;uart_debug_rx   = port:PE0<5>

[uart_para0]
uart_used       = 1
uart_port       = 0
uart_type       = 2
uart_debug_tx   = port:PE1<5>
uart_debug_rx   = port:PE0<5>
改成
[uart_para0]
;uart_used       = 1
;uart_port       = 0
;uart_type       = 2
;uart_debug_tx   = port:PE1<5>
;uart_debug_rx   = port:PE0<5>


我也走到这一步了,下载程序后重启没有信息输出,已经改了log级别为4 也按照上面的内容进行更改tx rx 但是仍然不行

离线

#13 2020-05-20 08:46:08

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 荔枝派nano F1C100S运行melis过程记录

yushikong 说:

我也走到这一步了,下载程序后重启没有信息输出,已经改了log级别为4 也按照上面的内容进行更改tx rx 但是仍然不行

下载程序过程中也会有信息输出的 你看看硬件连接对不?

离线

#14 2020-05-20 17:00:25

yushikong
会员
注册时间: 2017-12-11
已发帖子: 12
积分: 12

Re: 荔枝派nano F1C100S运行melis过程记录

逸俊晨晖 说:

下载程序过程中也会有信息输出的 你看看硬件连接对不?


感谢解答,出现问题的具体原因暂时还位找到,  但是我发现同样的固件烧录到一块F1C200S的开发板中,奇迹竟然产生了。它。。。。。跑了。。。。,见下图

F1C200S.png


猜想的原因最可能是荔枝派开发板的某些硬件和编译出的软件的某些设置不匹配,另外补充一下,我用的是mdk5.0进行编译的,经过比对很可能是内存配置出了问题

最近编辑记录 yushikong (2020-05-20 18:02:23)

离线

#15 2020-06-27 23:02:31

lanjackg2003
会员
注册时间: 2019-06-12
已发帖子: 42
积分: 42

Re: 荔枝派nano F1C100S运行melis过程记录

yushikong 说:

感谢解答,出现问题的具体原因暂时还位找到,  但是我发现同样的固件烧录到一块F1C200S的开发板中,奇迹竟然产生了。它。。。。。跑了。。。。,见下图

https://whycan.cn/files/members/394/F1C200S.png


猜想的原因最可能是荔枝派开发板的某些硬件和编译出的软件的某些设置不匹配,另外补充一下,我用的是mdk5.0进行编译的,经过比对很可能是内存配置出了问题

[22:59:28.447]收←◆BOOT0 is starting
DBG: init jtag OK
init dram , base        is 0x80000000
init dram , clk         is 152
init dram , access_mode is 1
init dram , cs_num      is 0x00000001
init dram , ddr8_remap  is 0
init dram , sdr_ddr     is 1
init dram , bwidth      is 16
init dram , col_width   is 10
init dram , row_width   is 13
init dram , bank_size   is 4
init dram , cas         is 3
init dram , size        is 0
before dram write delay enble
dram init successed,size is 64
DBG: init heap OK, base address is 0x80000000, size is 0x00100000
DBG: load boot1 from spinor
DBG: init spinor OK
DBG: the size of BOOT1 is 71168
DBG: src_sum = 0x0x24b0ab65
DBG: sum = 0x0x24b0ab65
succeed in loading BOOT1
jump to BOOT1
DBG: boot1 starting!
DBG: init heap OK, base address is 0x80800000, size is 0x00100000
begin to init file system
DBG: init block device OK
DBG: init mini file system OK
DBG: mount c partition OK
0

[22:59:29.663]收←◆jump to kernal
EPOS_MEM_DBG OFF
\0

我使用melis成功编译并烧录后,运行到了这里就没有任何输出了
请问楼上,你运行正常吗。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn