93 Star 255 Fork 91

泰晓科技 / RISCV-Linux

 / 详情

【老师提案】Embedded Linux 系统 for RISC-V

进行中
拥有者
创建于  
2022-09-26 13:28

调研开源社区中基于 Linux 的嵌入式 Linux 系统,把下载、构建、运行等流程在 RISC-V QEMU 或真实开发板上走一遍。

  1. Busybox
  2. Buildroot
  3. Yocto:已完成2篇文章的编写
  1. 其他

参考:

评论 (5)

falcon 创建了任务
falcon 修改了描述
walimis 修改了描述
展开全部操作日志

昨天说的 Ubuntu 适配 D1 的问题,看了这个链接的评论应该是内存不足,现在手里的板子是512M的内存,官方应该适配的是2G内存的板子。

initd
1
27d

I made Nezha img boot on my LicheeRV Dock after remove cryptsetup-initramfs

First of all, write the img to a microSD card
the following steps:

    A Ubuntu Linux host (Live CD should be OK)
    1.install qemu-user-static
    2.mount VFS by using https://github.com/initdc/rootfs-tools/blob/master/mount.rb 
    3.chroot /media/ubuntu/cloudimg-rootfs
    4.apt remove cryptsetup-initramfs
    5.Cause LicheeRV Dock doesn’t have a Eth port, you may need install net-tools network-manager to connnect Wi-Fi if wireless card working well. A USB to Eth Connector will work well if you have one.
    6.umount VFS, eject card.
    7.After boot up, you can login with ubuntu/ubuntu, then you NEED set new password.
    A good UART client will makes you feel smooth. try MobaXterm
    try first RISC-V program from https://github.com/initdc/golang-project-workflow/releases/download/v0.0.1/demo-v0.0.1-linux-riscv64 1

I think dual-core CPU is the key to avoid stuttering, Is there any way to make it run faster for now?

我按照以上这一层楼评论的解决方案试了,总算是能到启动内核那里了,但是又报了个 Initramfs 的错误。
以上方案的 2.mount VFS by using https://github.com/initdc/rootfs-tools/blob/master/mount.rb 我没有看懂具体怎么对已结烧录过img的SD卡操作,且读卡器插卡到电脑上后,直接就有/media/ubuntu/cloudimg-rootfs,所以略过了步骤2。不知是不是因为略过步骤2的影响还是别的原因,感觉上还是内存不够的问题。

[    8.703688] Initramfs unpacking failed: write error                                   
[    9.335359] Failed to execute /init (error -2)                                        
[    9.341189] Kernel panic - not syncing: No working init found.  Try passing init= opt.
[    9.355364] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.17.0-1003-allwinner #3-Ubuntu 
[    9.363198] Hardware name: Allwinner D1 Nezha (DT)                                    
[    9.367990] Call Trace:                                                               
[    9.370445] [<ffffffff80005d50>] dump_backtrace+0x30/0x38                             
[    9.375866] [<ffffffff80b071d4>] show_stack+0x40/0x4c                                 
[    9.380934] [<ffffffff80b0f690>] dump_stack_lvl+0x44/0x5c                             
[    9.386344] [<ffffffff80b0f6c0>] dump_stack+0x18/0x20                                 
[    9.391405] [<ffffffff80b07628>] panic+0x104/0x2f6                                    
[    9.396206] [<ffffffff80b1b47e>] _cpu_down+0x0/0x3fa                                  
[    9.401183] [<ffffffff80003b94>] ret_from_exception+0x0/0xc                           
[    9.406778] ---[ end Kernel panic - not syncing: No working init found.  Try passing -

上述问题已解决,会写个 512M 的 D1 开发板跑官方 Ubuntu 镜像的步骤。

5069540 wuzhangjin 1594531572 falcon 拥有者
回复 tjytimi 成员

应该是不够的问题。

falcon 修改了描述
walimis 任务状态待办的 修改为进行中
walimis 修改了描述
walimis 负责人设置为walimis

@walimis 已经提交了用 yocto 制作 D1 镜像并烧录的方法,欢迎移步查阅:20221015-riscv-bitbake-oe-yocto-2.md

walimis 修改了描述
walimis 修改了描述

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
5069540 wuzhangjin 1594531572 7499118 tangjinyu1994 1660477824
1
https://gitee.com/tinylab/riscv-linux.git
git@gitee.com:tinylab/riscv-linux.git
tinylab
riscv-linux
RISCV-Linux

搜索帮助