Skip to content

sophgo/bootloader-arm64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build
========

1. download toolchain and Ubuntu base
```bash
python3 -m pip install dfss -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade
python3 -m dfss --dflag=gcc_linaro_6.3.1
python3 -m dfss --dflag=distro_focal_28ad82b4cf01327b1f81d3d193923424
```
NOTE: You need to rename the distro package to distro_focal.tgz
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'


About

bootloader for Sophon AI chips

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •