Clone the bsp builder from Github repository.
$ git clone https://github.com/advantechralph/wise710a1.git
$ cd wise710a1
Execute make command to build BSP. All the result will be located in the ‘build’ folder.
$ make bsp modelname=wise710a1
$ ls build
$ make bsp modelname=wise710a1_2G
$ ls build
Prepare a micro SD card and Linux host (ex: Ubuntu 16.04). Insert it into Linux host with the card reader. You can use the commands as below to check SD card devices.
$ lsblk -d
or
$ fdisk -l
After you confirm your SD card device (ex: /dev/sdc), enter the ‘scripts’ folder and run the write image to SD card script.
$ cd build/scripts
$ ./mkmksd_recovery-linux.sh /dev/sdc ubuntu18044
Follow the prompt to write image to SD card.Wait for success prompt and remove the micro SD card from reader. Then, put the SD card to the WISE710A1 and power on to test.
The SW2 is a couple dip switch on the WISE710A1 for booting selection.
The WISE710A1’s SPL (Second Program Loader) will check SD card’s boot loader first. If it exists, and then it will load boot loader on SD card, and then the boot loader will run kernel image and mount root file system on SD card.
If there is no boot loader on SD card or SD card not inserted, SPL will load the boot loader on eMMC, and run kernel and mount root file system on eMMC.
This will force WISE710A1 to boot from SD card only. And it needs the different SD card image from previous one. You have to write image by different script in BSP. The commands you need are listed as below.
SD card device: /dev/sdc
$ cd build/sdcripts
$ ./mksd_recovery-linux_boot-from-sd.sh /dev/sdc ubuntu18044
The package includes the package to create Docker container for building the images (ex: U-Boot, Kernel…).
wise710a1