0个粉丝

2

问答

0

专栏

0

资料

 发布于  2024-07-29 16:49:23
采纳率 0%
2个问答
1050

3519DV500

悬赏金¥ 10
已结题

使用易百纳提供的代码包:hi3519dv500.tar.gz
解压后同步更到原厂代码包版本:Hi3519DV500_SDK_V1.0.1.0
1.编译出来的uboot镜像无法使用“网口”烧录,改为出厂固件就可以
2.提供的代码包没有rootfs的编译说明,使用hi原厂的编译方法(使用mkubiimg.sh)编译出来的rootfs镜像烧录后不能启动,问题信息如下:

......
clk: Not disabling unused clocks
ALSA device list:
  No soundcards found.
uart-pl011 11040000.uart: no DMA platform data
UBIFS (ubi0:0): Mounting in unauthenticated mode
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 894
UBIFS (ubi0:0): start fixing up free space
UBIFS (ubi0:0): free space fixup complete
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "ubifs"
UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 31236096 bytes (29 MiB, 246 LEBs), journal size 4444160 bytes (4 MiB, 35 LEBs)
UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 44A194B2-C98D-4336-ADB1-719FA0C784E6, small LPT model
VFS: Mounted root (ubifs filesystem) on device 0:13.
devtmpfs: mounted
Freeing unused kernel memory: 1344K
Run /sbin/init as init process
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.0 #7
Hardware name: Vendor HI3519DV500 DEMO Board (DT)
Call trace:
 dump_backtrace+0x0/0x1a0
 show_stack+0x18/0x24
 dump_stack+0xd4/0x110
 panic+0x170/0x324
 kernel_init+0xf8/0x114
 ret_from_fork+0x10/0x38
SMP: stopping secondary CPUs
Kernel Offset: disabled
CPU features: 0x00040026,2a00a218
Memory Limit: 129 MB
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---
-----请教一下如何解决?
我来回答
回答2个
时间排序
认可量排序

UncleRoderick

32个粉丝

14

问答

1

专栏

14

资料

UncleRoderick 2024-07-29 17:30:06
认可0

文件系统中找不到init程序,先确认下打包前的文件系统有没有问题

飞翔在天1990

0个粉丝

11

问答

0

专栏

0

资料

飞翔在天1990 2024-07-29 20:58:27
认可0

兄弟你好,我这边这两天在适配hi3516dv500的,当前已经解决了使用易百纳的镜像编译后烧录能运行,具体步骤如下:
1、解压hi3519dv500.tar.gz
2、进入open_source/eudev目录后,将Makefile的23行LDFLAGS="$(OSDRV_CROSS_LDFLAGS)" --disable-introspection --disable-selinux 1>/dev/null;改为LDFLAGS="$(OSDRV_CROSS_LDFLAGS)" --disable-blkid --disable-introspection --disable-selinux 1>/dev/null;
3、将smp/a55_linux/source/bsp/pub/overly/etc/init.d/S90autorun文件的第10和11行打开,修改后的代码如下

  8 umask 027
  9
 10 cd /komod
 11 ./load3519dv500 -i -sensor0 imx347_slave -mmz_size 895M
 12 # insmod /komod/ot_wdt.ko default_margin=90 nodeamon=1
 13
 14 #ethtool -s eth0 speed 1000 duplex full autoneg off
 15 telnetd

4、进入smp/a55_linux/source/bsp目录下,将下面脚本复制到文件build.sh中

#!/usr/bin/env bash

set -e

export ARCH=arm64
export CROSS_COMPILE=aarch64-v01c01-linux-gnu-
export OSDRV_CROSS=aarch64-v01c01-linux-gnu
export PKG_CONFIG_PATCH="$PKG_CONFIG_PAYH:/usr/lib/x86_64-linux-gnu/pkgconfig"

function check_root_directory {
    current_path=$(pwd)
    if [[ -d ${current_path}/smp/a55_linux/source/bsp ]]; then
        export root_path=${current_path}
    else
        export root_path=$(realpath ${current_path}/../../../..)
    fi
}

function build_all {
    chip=${1}
    echo "chip is ${chip}"
    export bsp_path=${root_path}/smp/a55_linux/source/bsp
    pushd ${bsp_path}
    make BOOT_MEDIA=spi LIB_TYPE=glibc CHIP=${chip} all -j$(nproc)
    popd
}

check_root_directory
echo "root_path: ${root_path}"

if [[ $# == 0 ]]; then
    echo "param count is $#, build default hi3516dv500"
    build_all hi3516dv500
elif [[ $# == 1 ]]; then
    echo "param count is $#, param is ${1}"
    if [[ $1 == "hi3516dv500" ]]; then
        build_all hi3516dv500
    elif [[ $1 == "hi3519dv500" ]]; then
        build_all hi3519dv500
    else
        echo "Unsupport chip!!!"
    fi
elif [[ $# == 2 ]]; then
    echo "param count is $#, param1 is ${1}, param2 is ${2}"
fi

5、直接运行./build.sh
6、将smp/a55_linux/source/bsp/pub/hi3516dv500_image_glibc目录下的文件配合固件中的ipc_release.ubifs一起烧录后就运行起来了

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区