Booting cpio filesystem in Redboot embedded system

本文详细介绍了如何在TFTP服务器/客户端网络环境中设置并启动Linux内核。首先,需要准备一个TFTP服务器环境,其次使用cpio工具压缩生成cpio initrd归档文件,并将其与编译好的Linux内核vmlinuz一起放置于服务器下载目录中。通过串行控制台输入特定命令进行内核加载及初始化。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

First of all, you must have a tftp server/client networking environment.
Second, you must use cpio generating tool in linux source code to compress out a cpio initrd archive, and put it together with compiled linux kernel vmlinuz into the downloading directory in server pc.
Then in serial-line console to redboot terminal, after redboot displays commandline prompt, type:

load -r -v initrd -b 0x00800000
load -r -v vmlinuz -b 0x01800000

exec -c "console=ttypS0,115200 initrd=0x00800000,2552067 mem=64M"

Be careful about the number 2552067, which must be the accurate file size of the cpio initrd, which is something out of your consciousness, and which I exerted my utmost strength to find out in reading the linux kernel source code.
So, you can get the exact size using "du initrd" command and with the result complete your kernel bootline.
  见原出处
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值