Linux Build and Setup - netmodule/meta-swt-smp GitHub Wiki
cd <my-project>
git clone git://git.yoctoproject.org/poky
cd poky
git checkout -b daisy origin/daisy
git clone git://git.yoctoproject.org/meta-xilinx
cd meta-xilinx
git checkout -b daisy origin/daisy
cd ..
git clone git://git.yoctoproject.org/meta-xilinx-community
git clone https://github.com/netmodule/meta-swt-smp.git
cd <my-project>/poky
export TEMPLATECONF="meta-swt-smp/conf"
source oe-init-build-env
cd <my-project>/poky
source oe-init-build-env
bitbake nm-swt-smp-image
An all SDCard setup is used, so the boot loader, kernel, devictree and ramdisk image are stored there. Therefore a FAT32 microSD card (>= 128 MB) is required
The default bootloader provided by microzed.org is used. Please download the "MicroZed Linux microSD Card Image Archive" from this web page and install following files on the microSD root:
- boot.bin
- system.bit
- system.bit.bin
- u-boot.elf
The kernel, devicetree and ramdisk image build with Yocto will be used. From the project location /poky/build/tmp/deploy/images/microzed-zynq7/ copy following files to microSD Card root:
- uImage
- uImage-microzed-zynq7-ram.dtb
- nm-swt-smp-image-microzed-zynq7.ext2.gz.u-boot
This section describes the setup to run on the target once the microSD card is available.
To boot from microSD, set following jumpers:
- J1: 1-2
- J2: 2-3
- J3: 2-3
To boot for internal Flash
- J1: 1-2
- J2: 1-2
- J3: 2-3
Refer to microZed documentation for futher details
Boot the target on microSD, stop in U-Boot shell and run following commands
setenv kernel_image uImage
setenv devicetree_image uImage-microzed-zynq7-ram.dtb
setenv ramdisk_image nm-swt-smp-image-microzed-zynq7.ext2.gz.u-boot
setenv ramdisk_size 0x5E0000
saveenv
Using the provided USB cable, open a console (115200,8,1,n), boot the microZed and logon with root / -