Skip to content

sophgo/bootloader-arm64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build
========

1. download toolchain and Ubuntu base from https://pan.baidu.com/s/1hzYI-gW5fiw6ilFkCdj1ZA 
code:etzs
2. put them on the same level of bootloader-arm64 and linux-arm64, then unzip toolchain,
   no need to unzip distro, now you get the following folders:
   .
   ├── bootloader-arm64
   ├── distro
   │   └── distro_focal.tgz
   ├── gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
   └── linux-arm64
3. $ sudo apt install bison flex bc rsync kmod cpio sudo \
                      uuid-dev cmake libssl-dev fakeroot \
                      dpkg-dev device-tree-compiler u-boot-tools \
                      uuid-dev libxml2-dev debootstrap \
                      qemu-user-static kpartx
4. $ source bootloader-arm64/scripts/envsetup.sh
5. $ build_bsp_without_package
6. copy 'sophon-soc-libsophon*.deb', 'sophon-mw-soc-sophon-ffmpeg*.deb' and 'sophon-mw-soc-sophon-opencv*.deb' to 'soc_bm1684/bsp-debs'
7. $ build_package
8. download 'libsophon' from https://github.com/sophgo/libsophon.git
   build in SoC mode to get 'libsophon*.deb'
9. download SDK from https://developer.sophgo.com/site/index/material/all/all.html
   copy 'sophon-mw-soc-sophon-ffmpeg*.deb' and 'sophon-mw-soc-sophon-opencv*.deb' from 'sophon-mw'