Before you compile, please install some packages for compiling.
sudo apt-get install openssl libssl-dev bison flex git make u-boot-toolsGet source code and make config
git clone https://github.com/sunplus-plus1/SP7021.git
cd SP7021
git submodule update --init --recursive
git submodule foreach git checkout master
make configthen show
Select boards:
[1] SP7021 Ev Board [11] I143 Ev Board
[2] LTPP3G2 Board [12] I143 Zebu (zmem)
[3] SP7021 Demo Board (V1/V2)
[4] SP7021 Demo Board (V3)
[5] BPi-F2S Board
[6] BPi-F2P Boardif you select [1] or [11], please select chip.
Select chip.
[1] Chip C
[2] Chip PSelect configs (C chip).
[1] eMMC
[2] SD Cardif you want to add or change some kernel configuration then run:
make kconfig
NOTE: please don't enter linux/kernel folder to run "make menuconfig"
after make config is completed. then,
make or make all
About how to enable gedget, please refer to here
finally, please get image file from
outfolder
if you choose
- eMMC:
- Copy out/ISPBOOOT.BIN in out folder to USB stick (FAT32)
- Update USB stick to eMMC -> (Power off, set SW1 to ON, SW2 to OFF, power on)
- Boot kernel -> (Power off, set SW1 to OFF, SW2 to OFF, power on)
- SD Card:
- get out/boot2linux_SDcard/ISP_SD_BOOOT.img
- copy to sdcard -> (sudo dd if=ISP_SD_BOOOT.img of=/dev/sdx bs=1M, /dev/sdx is your sdcard address)
- put your sdcard to board and boot -> (Power off, set SW1 to ON, SW2 to ON, power on)
For more infomation, please visit here