海思demo板子启动

首先要先加两根线连起来才能烧写uboot、内核、文件系统。
烧写时选择串口很慢,默认有uboot了,可选择通过网络烧写。
烧写配置:
在这里插入图片描述
烧写完启动时提示(ERROR: can’t get kernel image!):
在这里插入图片描述
在uboot设置:

setenv bootargs 'mem=256M console=ttyAMA0,115200 clk_ignore_unused 
root=/dev/mtdblock2 rw rootfstype=yaffs2 
mtdparts=hinand:1M(boot),4M(kernel),32M(rootfs)' 
setenv bootcmd 'nand read 0x42000000 100000 400000; bootm 0x42000000' 
saveenv

在这里插入图片描述
然后重启就进入linux了。
默认烧的系统不会启动telnetd,要手动跑一下telnetd才能用telnet登录到板子上。

The error message "Abort get_format -------- 0 -------- Wrong Image Format for bootm command ERROR: can't get kernel image!" typically occurs during the boot process of a Linux system, specifically when trying to load an image (kernel) using the 'bootm' command. The "get_format" is likely referring to the stage where the bootloader is attempting to determine the format of the image file being loaded. Here's a breakdown of the error: 1. "Abort": This suggests that the process has stopped abruptly, indicating a failure. 2. "get_format": The bootloader failed to identify the correct format of the kernel image file it is trying to load. 3. "0": A numeric code or status, but without further context, it's not clear what this exactly means. 4. "Wrong Image Format": The issue is that the image being loaded is in an unsupported or incorrect format for the current boot environment. 5. "can't get kernel image": Unable to fetch or load the kernel into memory for the boot process. Possible reasons and solutions: - Check the kernel image: Ensure that you have the correct kernel file in a compatible format (e.g., compressed with the appropriate compression method, like .bin or .elf). - Bootloader configuration: Verify that the bootloader is configured to load the right kind of kernel images and knows where to find them. - Partitioning issues: Check if the partition containing the kernel image is correctly set as the boot partition or if its file system is recognized by the bootloader. - Mismatched versions: Make sure your bootloader (e.g., grub, u-boot) and kernel are compatible.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值