How to burn Linux Kernel into nor flash and rootfs in USB stick at Mindspeed c1k

本文详细介绍了如何将USB闪存盘格式化为ext3文件系统,并通过复制rootfs目录将其作为Linux系统的根文件系统使用。包括格式化过程、复制文件系统到USB、挂载并初始化USB作为根文件系统等步骤。

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

1. 启动板子

2. Hit any key to stop autoboot and enter into u-boot env. 进入u-boot环境

3. tftp 81000000 ${kernelimage} #you can also use nfs command in uboot: nfs 81000000 /path/to/${kernelimage};

4. protect off 1:3-127

5. erase 1:3-127

6. cp.b 81000000 20060000 ${filesize} # filesize is hex number

7. norargs=setenv bootargs init=${init_process} root=/dev/uba1

8. boot_nor=run norargs addeth addip addtty;bootm 20060000

9. boocmd=boot_nor

Steps to create rootfs in USB stick and use it as root:

1. format your USB stick to ext3 file system on your host:

sudo mkfs.ext3 /dev/sda1

2. copy rootfs into USB stick

sudo mount /dev/sda1 /mnt

cd /mnt

sudo tar jxvf /path/to/mindspeed_c1000-standard-glibc_std-dist.tar.bz2

cd ../; sudo umount mnt

3. plug USB stick into c1k board

Note: to use USB stick as rootfs device, a kernel option need be enabled:

Device Drivers --->

Block devices --->

Low Performance USB Block driver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值