glinuz / hi3798mv100 Goto Github PK
View Code? Open in Web Editor NEWHow to build linux kernel with HiSilicon hi3798 arm, and create ubuntu rootfs.
How to build linux kernel with HiSilicon hi3798 arm, and create ubuntu rootfs.
Hi,
I'm unable to make the kernel
On the build.log I found these errors:
collect2: error: ld returned 1 exit status
make[5]: *** [scripts/Makefile.host:100: scripts/dtc/dtc] Error 1
make[4]: *** [hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:406: scripts/dtc] Error 2
make[3]: *** [hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/Makefile:564: scripts] Error 2
make[3]: Leaving directory 'hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3798cv200/hi3798cv2dmo/obj64/source/kernel/linux-3.18.y'
make[2]: *** [Makefile:145: sub-make] Error 2
make[2]: Leaving directory 'hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y'
make[5]: Entering directory 'hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3798cv200/hi3798cv2dmo/obj/source/component/alsa/alsa-lib-1.0.28/aserver'
make[1]: *** [Makefile:139: hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3798cv200/hi3798cv2dmo/obj64/source/kernel/linux-3.18.y/arch/arm64/boot/uImage] Error 2
make[1]: Leaving directory 'hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel'
make: *** [Makefile:131: linux] Error 2
make: *** Waiting for unfinished jobs....
The files baseparam.img, bootargs.bin and fastboot-burn.bin are corrected compiled.
Anyone can help me with this issue?
regards
在uboot中 设置好ip 也不能ping
Hi3796mv100 简介主要特点:
CPU
四核 ARM Cortex A7
集成多媒体加速引擎 NEON
硬件 JAVA 加速
集成硬件浮点协处理器
3D GPU
四核 Mali450
OpenGL ES 2.0/1.1/1.0 OpenVG 1.1,EGL
存储器控制接口
DDR3/3L 接口
最大容量2GB
内存位宽32bit
最高频率可达800MHz/DDR1600
支持 NAND Flash
支持SLC/MLC器件
支持8bit数据位宽
最大容量64GB
最大64bit ECC纠错
fastboot-burn.bin is Ready.
make[3]: Leaving directory '/home/lu/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1d/obj/source/boot/fastboot'
make[2]: Leaving directory '/home/lu/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3798mv100/hi3798mdmo1d/obj/source/boot/fastboot'
make[1]: Leaving directory '/home/lu/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/boot'
WHY???? THANK YOU !!!!!!
hi, I have a HiMedia H7 II andorid tv box, think it contains Hisilicon Hi3798mV100 SoC chip
specs is here:
(https://usb.brando.com/hi-media-h7-ii-quad-core-hd-network-media-player_p12522c0051d015.html
CPU:) Quad-Core A7 DDR RAM: 1GB Nand Flash: 8GB File System: FAT32 / NTFS / EXT 3 Operating System: Android system LAN: RJ45 100Mbps Wi-Fi: Build-in 802.11a / b / g / n wireless Storage Device: SD / MMC Combo Output Resolution: 4K (3840*2160) / 1080p / 1080i / 720p / 576p / 480p / PAL / NTSC Video Coding: H.265, H.264, MPEG 1/2/4, VC-1, WMV, real 7/8/9 Audio Formats: MP3, WMA, APE, Flac, AAC, Ogg, WAV Video Formats: TS, MKV, FLV, MOV, AVI, MP4, ISO Audio Coding: MP3, WMA, AAC, PCM
顺序从下至上
rootbox.mak:25: recipe for target 'rootbox_compose' failed
make[1]: [rootbox_compose] Error 123 (ignored)
rootbox.mak:25: recipe for target 'rootbox_compose' failed
make[1]: [rootbox_compose] Error 123 (ignored)
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
rootbox is ready
make[1]: Entering directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
mkfs.cramfs /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/rootbox /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100
/hi3796mdmo1a/image/rootfs.cramfs
mksquashfs /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/rootbox /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/
hi3796mdmo1a/image/rootfs.squashfs \
-no-fragments -noappend -noI -comp xz -T /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/rootfs/scripts/attr_rule/rulelist_noca.txt -G 0
mkfs.cramfs: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
-e Attention:
rootbox size must be less than 128M, rootbox size is 48M.
make_ext4fs -l 128M -s /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/image/rootfs_128M.ext4 /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00
SPC041B020/out/hi3796mv100/hi3796mdmo1a/rootbox
Creating filesystem with parameters:
Size: 134217728
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 32768
Block groups: 1
Reserved block group size: 7
Created filesystem with 837/8192 inodes and 13664/32768 blocks
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/image/rootfs.squashfs, block size 131072.
[/ ] 0/645 0%M
akefile:338: recipe for target 'cramfs' failed
make[1]: *** [cramfs] Aborted (core dumped)
make[1]: *** Waiting for unfinished jobs....
[=========================================================================================================================================================================-] 645/645 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
compressed data, uncompressed metadata, no fragments, compressed xattrs
duplicates are removed
Filesystem size 17080.45 Kbytes (16.68 Mbytes)
35.97% of uncompressed filesystem size (47478.78 Kbytes)
Inode table size 41772 bytes (40.79 Kbytes)
100.00% of uncompressed inode table size (41772 bytes)
Directory table size 14792 bytes (14.45 Kbytes)
100.00% of uncompressed directory table size (14792 bytes)
Xattr table size 40 bytes (0.04 Kbytes)
100.00% of uncompressed xattr table size (40 bytes)
Number of duplicate files found 1
Number of inodes 827
Number of files 333
Number of symbolic links 433
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 61
Number of ids (unique uids + gids) 2
Number of uids 2
root (0)
qgb (1000)
Number of gids 2
root (0)
qgb (1000)
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
Makefile:25: recipe for target 'build' failed
make: *** [build] Error 2
#### make target "-j" failed !!!(05:37 (mm:ss)) ####
我又全部删除,重新编译了一遍,还是一样的错误
LD [M] net/ipv4/ip_tunnel.ko
CC net/ipv4/tunnel4.mod.o
LD [M] net/ipv4/tunnel4.ko
CC net/ipv6/sit.mod.o
LD [M] net/ipv6/sit.ko
CC net/ipv6/xfrm6_mode_beet.mod.o
LD [M] net/ipv6/xfrm6_mode_beet.ko
CC net/ipv6/xfrm6_mode_transport.mod.o
LD [M] net/ipv6/xfrm6_mode_transport.ko
CC net/ipv6/xfrm6_mode_tunnel.mod.o
LD [M] net/ipv6/xfrm6_mode_tunnel.ko
CC net/mac80211/mac80211.mod.o
LD [M] net/mac80211/mac80211.ko
CC net/wireless/cfg80211.mod.o
LD [M] net/wireless/cfg80211.ko
make[3]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-3.18.y'
make[2]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y'
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel'
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
make[2]: Entering directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/scripts'
make[2]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/scripts'
rootbox.mak:25: recipe for target 'rootbox_compose' failed
make[1]: [rootbox_compose] Error 123 (ignored)
rootbox.mak:25: recipe for target 'rootbox_compose' failed
make[1]: [rootbox_compose] Error 123 (ignored)
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
rootbox is ready
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
mkfs.cramfs /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/rootbox /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/image/rootfs.cramfs
mkfs.cramfs: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Makefile:338: recipe for target 'cramfs' failed
make[1]: *** [cramfs] Aborted (core dumped)
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020'
Makefile:25: recipe for target 'build' failed
make: *** [build] Error 2
#### make target "build -j4" failed !!!(13:07 (mm:ss)) ####
准备
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$ cp configs/hi3796mv100/hi3796mdmo1a_hi3796mv100_cfg.mak ./cfg.mak
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$ source ./env.sh
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$ make menuconfig
make[1]: Entering directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/tools/linux/kconfig'
conf.c: In function ‘conf_askvalue’:
conf.c:80:8: warning: variable ‘ptr’ set but not used [-Wunused-but-set-variable]
char *ptr;
^~~
conf.c: In function ‘conf_sym’:
conf.c:160:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
int type;
^~~~
conf.c: In function ‘conf_choice’:
conf.c:234:8: warning: variable ‘ptr’ set but not used [-Wunused-but-set-variable]
char *ptr;
^~~
conf.c:232:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
int type;
^~~~
lxdialog/textbox.c: In function ‘print_line’:
lxdialog/textbox.c:323:9: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
int y, x;
^
lxdialog/textbox.c:323:6: warning: variable ‘y’ set but not used [-Wunused-but-set-variable]
int y, x;
^
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/tools/linux/kconfig'
/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/tools/linux/kconfig/himconf scripts/kconfig/mainKconfig
scripts/kconfig/Kconfig.board.tuner1:165:warning: choice value used outside its choice group
scripts/kconfig/Kconfig.board.tuner2:164:warning: choice value used outside its choice group
scripts/kconfig/Kconfig.board.tuner3:164:warning: choice value used outside its choice group
#
# configuration written to cfg.mak
#
*** End of SDK configuration.
*** Execute 'make' to build the SDK or try 'make help'.
make menuconfig over
#### make "menuconfig" completed successfully!(07:36 (mm:ss)) ####
qgb@ubuntu:~/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020$ exit
编译失败
arm-histbv310-linux-ld: cannot find drivers/wifi/built-in.o: No such file or directory
/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/scripts/Makefile.build:340: recipe for target 'drivers/built-in.o' failed
make[4]: *** [drivers/built-in.o] Error 1
/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y/Makefile:946: recipe for target 'drivers' failed
make[3]: *** [drivers] Error 2
make[3]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-3.18.y'
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-3.18.y'
Makefile:139: recipe for target '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-3.18.y/arch/arm/boot/uImage' failed
make[1]: *** [/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-3.18.y/arch/arm/boot/uImage] Error 2
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel'
Makefile:131: recipe for target 'linux' failed
make: *** [linux] Error 2
#### make target "build -j4" failed !!!(39:40 (mm:ss)) ####
Arm平台还是Armbian最能打
gcc -Wp,-MD,scripts/.extract-cert.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -I/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-5.4.215/tools/include -I ./scripts -o scripts/extract-cert /home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-5.4.215/scripts/extract-cert.c -lcrypto
/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-5.4.215/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
#include <openssl/bio.h>
^~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:107: recipe for target 'scripts/extract-cert' failed
make[4]: *** [scripts/extract-cert] Error 1
/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-5.4.215/Makefile:1123: recipe for target 'scripts' failed
make[3]: *** [scripts] Error 2
make[3]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-5.4.215'
Makefile:179: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel/linux-5.4.215'
Makefile:139: recipe for target '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-5.4.215/arch/arm/boot/uImage' failed
make[1]: *** [/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/out/hi3796mv100/hi3796mdmo1a/obj/source/kernel/linux-5.4.215/arch/arm/boot/uImage] Error 2
make[1]: Leaving directory '/home/qgb/github/hi3798mv100/HiSTBLinuxV100R005C00SPC041B020/source/kernel'
Makefile:131: recipe for target 'linux' failed
make: *** [linux] Error 2
�[1;31m #### make target "linux V=1 -j4" failed !!!(16 seconds) ####�[1;0m
你好,
请教两个问题
1、烧写是用串口就搞定了吗,还需要其他设备吗。
2、我现在拿到的这个盒子是个定制版本,这个版本的安卓桌面壁纸是一个我想删除的壁纸。 但是手工替换壁纸后,有时候系统会自行恢复出厂,这样原来的壁纸又展示出来了。我想删掉这个默认系统里的壁纸,不知道有没有什么方法。
感谢。
请问有Hi3798MV100的SDK吗?可以分享一下吗。
全网海思芯片刷linux,就您这里的教程看的明白一点
请问创维hc2910,海思hi3798mv200适用您的教程吗?
编译过程是不是只需要把您的教程里面的模板hi3798mv100改成hi3798mv200即可
以前玩过amlogic的刷机,不过基本都是网上找的固件,armbian刷起来简单,不用自己编译
请问一下楼主可以分享一下SDK开发包吗,我指的不只是SDK编译环境,还包括硬件文档、软件开发文档、工具等。一般海思的SDK压缩包都包括了这些
我看到文档里有关于支持hi3798mv300的内容,但是我在config里并没有看到相关配置。请问有地方可以下载吗,谢谢! @glinuz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.