代码拉取完成,页面将自动刷新
调研开源社区中基于 Linux 的嵌入式 Linux 系统,把下载、构建、运行等流程在 RISC-V QEMU 或真实开发板上走一遍。
参考:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
昨天说的 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 -
@walimis 已经提交了用 yocto 制作 D1 镜像并烧录的方法,欢迎移步查阅:20221015-riscv-bitbake-oe-yocto-2.md
登录 后才可以发表评论