Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The goal of the document is to illustrate how to build and install SP7021 (Plus 1) image to run Raspbian on SD card. Raspbian is a famous and popular Linux distribution. It is based Debian and for running on Raspberry Pi boards. Raspbian is released in form of SD card image. Raspbian image file of SD card can be downloaded from web of Raspbian foundation. Users can then write the image file into an SD card. The SD card image consists of two partitions. One is boot partition which is formatted to DOS/Windows FAT32 file-system and the other is rootfs partition which is formatted to Linux Ext4 file-system. boot partition contains files, including boot-loader, Linux kernel image, and etc, for booting from Raspberry Pi boards. rootfs partition contains files of whole root file-system of Linux. You need to copy SP7021 boot-loader and Linux kernel image, and etc files to boot partition. Also, you need to copy some module files of Linux kernel to rootfs partition. Since SP7021 files have different file name, original files of Raspbian will not be overwritten. The new-made SD card can be boot either from Raspberry Pi boards or SP7021 boards. Please follow the following steps to build and install Plus 1 image to run Raspbian.

1.

...

Download source files

...

Get the latest source files from git server of SP7021 . Refer to (2. HOW TO GET SOURCE FILE AND PACKAGE). Refer to report of ll command for the contents of top folder of source of SP7021:

Code Block
wellslu@scdiu3:~/q628/sdc$ ll
total 52
drwxr-xr-x 12 wellslu sp 4096 Oct 15 12:08 ./
drwxr-xr-x 19 wellslu sp 4096 Oct 15 12:03 ../
drwxr-xr-x  8 wellslu sp 4096 May 26 17:29 boot/
drwxr-xr-x  4 wellslu sp 4096 Aug 25 17:17 build/
drwxr-xr-x  7 wellslu sp 4096 Aug 19 11:45 crossgcc/
drwxr-xr-x  6 wellslu sp 4096 Sep  9  2019 eCos/
drwxr-xr-x  9 wellslu sp 4096 Jun  5 19:10 freertos/
drwxr-xr-x  8 wellslu sp 4096 Aug 19 11:45 ipack/
drwxr-xr-x  7 wellslu sp 4096 Sep  9  2019 linux/
-r--r--r--  1 wellslu sp   23 Sep  9  2019 Makefile
drwxr-xr-x  4 wellslu sp 4096 Sep  9  2019 nonos/
drwxr-xr-x  7 wellslu sp 4096 Sep  9  2019 .repo/
drwxr-xr-x  3 wellslu sp 4096 Jun 29 10:43 yocto/

2.

...

Configure environment

Run make config command on top folder. After configuration menu pops up, first, choose board you want to build image for. For example, press 4 for SP7021 Demo Board (V3)https://sunplus-tibbo.atlassian.net/browse/SP7021-679. Second, press 2 and then enter to start to configure building environment. Refer to screenshot below,

...

Also, modify other items of device-tree source you want.

4.

...

Configure kernel

Run make menuconfig to config features of Linux kernel you want.

5.

...

Build all images

Run make all to build all (x-boot, u-boot, kernel, dtb and etc.).

...