fix for art-pi smart
This commit is contained in:
parent
84e6b3c393
commit
98204c249b
|
@ -6,34 +6,36 @@ ART-pi smart采用了米尔科技的imx6ull核心板,硬件由韦东山团队
|
||||||
|
|
||||||
![硬件资源](figures/hw_resources.png)
|
![硬件资源](figures/hw_resources.png)
|
||||||
|
|
||||||
## 应用列表
|
> ## 当前支持情况
|
||||||
|
> ### 内核
|
||||||
-[x] cpp_tc
|
> * [ ] rt-thread
|
||||||
|
> * [x] rt-smart
|
||||||
-[x] hello
|
>
|
||||||
|
> ### 驱动
|
||||||
-[x] zlib_tc
|
> * [x] uart
|
||||||
|
> * [x] SPI
|
||||||
-[x] smart-fetch
|
> * [x] GPIO
|
||||||
|
> * [x] sdcard
|
||||||
-[x] umailbox
|
> * [x] RW007
|
||||||
|
> * [x] enet
|
||||||
-[x] busybox命令(可通过help查看)
|
> * [ ] usb
|
||||||
|
> * [x] emmc
|
||||||
-[x] WIFI
|
>
|
||||||
|
> ### 组件
|
||||||
-[x] EMMC读写
|
> * [x] fat文件系统
|
||||||
|
> * [x] LWIP网络协议栈
|
||||||
下列应用支持ash后才可以使用
|
> * [x] wlan
|
||||||
|
>
|
||||||
-[ ] shm_ping
|
> ### 应用
|
||||||
|
> * [x] xmake 构建环境
|
||||||
-[ ]shm_pong
|
> * [x] busybox
|
||||||
|
> * [x] smart-apps
|
||||||
-[ ]webclient
|
>
|
||||||
|
> ### 待完善、修复
|
||||||
-[ ]webserver
|
> * [ ] ash 支持ash开机自启动
|
||||||
|
> * [ ] 网络 以太网网络问题修复
|
||||||
|
> * [ ] emmc 从emmc启动内核、挂载文件系统
|
||||||
|
|
||||||
## 应用编译
|
## 应用编译
|
||||||
|
|
||||||
参考https://github.com/RT-Thread/userapps.git的README.md搭建xmake编译环境并编译smart应用
|
参考https://github.com/RT-Thread/userapps.git的README.md搭建xmake编译环境并编译smart应用
|
||||||
|
@ -81,13 +83,3 @@ go 0x80001000
|
||||||
```bash
|
```bash
|
||||||
fatload mmc 0:1 0x80001000 rtthread.bin; dcache flush; go 0x80001000
|
fatload mmc 0:1 0x80001000 rtthread.bin; dcache flush; go 0x80001000
|
||||||
```
|
```
|
||||||
|
|
||||||
## 待改进
|
|
||||||
|
|
||||||
* 支持ash开机自启动
|
|
||||||
|
|
||||||
* 以太网网络问题
|
|
||||||
|
|
||||||
* Emmc1、2、3 mkfs失败
|
|
||||||
|
|
||||||
* 从emmc启动内核
|
|
|
@ -184,7 +184,7 @@ void page_read(struct rt_varea *varea, struct rt_aspace_io_msg *msg)
|
||||||
varea->start, varea->size, varea->offset, varea->attr, varea->flag);
|
varea->start, varea->size, varea->offset, varea->attr, varea->flag);
|
||||||
|
|
||||||
ret = dfs_aspace_mmap_read(file, varea, msg);
|
ret = dfs_aspace_mmap_read(file, varea, msg);
|
||||||
if (ret >= 0)
|
if (ret > 0)
|
||||||
{
|
{
|
||||||
msg->response.status = MM_FAULT_STATUS_OK;
|
msg->response.status = MM_FAULT_STATUS_OK;
|
||||||
if (ret < ARCH_PAGE_SIZE)
|
if (ret < ARCH_PAGE_SIZE)
|
||||||
|
|
|
@ -1105,7 +1105,7 @@ int dfs_aspace_read(struct dfs_file *file, void *buf, size_t count, off_t *pos)
|
||||||
}
|
}
|
||||||
|
|
||||||
len = count > len ? len : count;
|
len = count > len ? len : count;
|
||||||
if (len > 0)
|
if (len)
|
||||||
{
|
{
|
||||||
rt_memcpy(ptr, page->page + *pos - page->fpos, len);
|
rt_memcpy(ptr, page->page + *pos - page->fpos, len);
|
||||||
ptr += len;
|
ptr += len;
|
||||||
|
|
Loading…
Reference in New Issue