Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
全志_RISCV_D1_D1S
[SOLVED] Not compiled for Allwinner D1H
发布于 2024-07-05 18:46:13 浏览:241
订阅该版
[tocm] This question also published in github issue https://github.com/RT-Thread/rt-thread/issues/9063 ### Not compiled for Allwinner D1H. I like this project but can't build for Allwinner D1H on Sipeed Lichee RV board I use compiler https://github.com/RT-Thread/toolchains-ci/releases/download/v1.7/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_latest.tar.bz2 I was trying: ### On [Master](https://github.com/RT-Thread/rt-thread/commit/2866da37a02dae72200e02ad87480718002760a5) or [v5.1.0](https://github.com/RT-Thread/rt-thread/releases/tag/v5.1.0): 1) bsp/allwinner/d1/ - not compiled looks outdated ``` board/board.c:45:5: error: unknown type name 'rt_mmu_info' 45 | rt_mmu_info mmu_info; | ^~~~~~~~~~~ ``` 2) bsp/allwinner/d1s/ - not compiled ``` /mnt/hgfs/allwinner_d1/rt-thread/components/dfs/dfs_v2/filesystems/devfs/devfs.c:68:30: error: 'struct rt_device' has no member named 'ops'; did you mean 'fops'? 68 | else if (device->ops && file->vnode->ref_count == 1) | ^~~ | fops ``` ### On [v5.0.2](https://github.com/RT-Thread/rt-thread/releases/tag/v5.0.2): 3) bsp/allwinner/d1/ - not compiled looks outdated ``` board/board.c:45:5: error: unknown type name 'rt_mmu_info' 45 | rt_mmu_info mmu_info; | ^~~~~~~~~~~ ``` 4) bsp/allwinner/d1s/ - compiled, but no output to UART. ### After I forked v5.0.2 and added: - bsp\allwinner\d1s\tools\boot0_sdcard_sun20iw1p1_d1s.bin change to varian from https://github.com/smaeul/sun20i_d1_spl.git - bsp\allwinner\d1s\sbi.bin change to varian from https://github.com/riscv-software-src/opensbi - Change UART pins and boudrate in config After this changes board started and shown out to UART. But loading frosen in rt_thread_mdelay function in files - bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.c - bsp/allwinner/libraries/sunxi-hal/include/hal/sdmmc/osal/RT-Thread/_os_time.h Chnage it to rt_hw_us_delay and is finnaly looks like works: ``` \ | / - RT - Thread Smart Operating System / | \ 5.0.2 build Jun 9 2024 17:11:05 2006 - 2022 Copyright by RT-Thread team hal_sdc_create 0 card_detect insert Initial card success. capacity :15200MB sdmmc bytes_per_secotr:200, sector count:1db0000 not found partition of mbr, construct sd0 at offset 8M, size:0xffffffffb5800000 [D/FAL] (fal_flash_init:47) Flash device | sdcard0 | addr: 0x00000000 | len: 0xb6000000 | blk_size: 0x00000200 |initialized finish. [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | download | sdcard0 | 0x00800000 | 0x00800000 | [I/FAL] | easyflash | sdcard0 | 0x01000000 | 0x00100000 | [I/FAL] | filesystem | sdcard0 | 0x01100000 | 0x00c00000 | [I/FAL] ============================================================= [I/FAL] RT-Thread Flash Abstraction Layer initialize success. Hello RISC-V msh />Mount "sd0p0" on "/" fail msh /> msh /> ``` This my changes https://github.com/RT-Thread/rt-thread/commit/ec2c0f10894bca703354e7e1d4c23fbaed5a034b ### Please could you make it compiled properly in master and figure out what happened with SDMMC driver? I can maintain D1 bsp, can create pull requests. But since I’m not an expert in RTT, someone needs to review it. My current solution to just replace thread_delay to hw_delay doesn't seem quite right.
查看更多
1
个回答
默认排序
按发布时间排序
ylyamin
2024-07-06
这家伙很懒,什么也没写!
Update: For D1s it was solved by Polarvid user with Pull Request https://github.com/RT-Thread/rt-thread/pull/9142 to Master, hope it will be approved. It is easy to reuse in D1H also.
撰写答案
登录
注册新账号
关注者
0
被浏览
241
关于作者
ylyamin
这家伙很懒,什么也没写!
提问
2
回答
2
被采纳
0
关注TA
发私信
相关问题
1
求助全志D1S&RDC纪念版资料以及RTSMART移植教程
2
D1S scons编译
3
D1s M7工具链求寻
4
全志D1运行RT-Thread在烧录程序时异常
5
rtthread d1s编译报错
6
目前最新版的userapps如何安装D1s环境
7
导入bsp\allwinner\d1sb出错
8
[SOLVED] Allwinner D1H USB host
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【RT-Thread】【ci】【scons】将ci.attachconfig.yml和scons结合使用
2
Rt-thread中OTA下载后,bootloader不搬程序
3
ulog 日志 LOG_HEX 输出时间改为本地日期时间
4
在RT-Thread Studio中构建前执行python命令
5
研究一了一段时间RTT,直接标准版上手太难,想用nano,但又舍不得组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
WIZnet_W5500
ota在线升级
cubemx
PWM
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
C++_cpp
MicroPython
本月问答贡献
出出啊
1518
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
5
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部