base system petalinux

3
Base System Petalinux Contents 1 Create PetaLinux Platform 2 Configure Software Platform 3 Build PetaLinux 4 Run On Board 5 Digilent Atlys 6 ISE DS Version 13.1 6.1 Ethernet MAC Address Create PetaLinux Platform $ petalinux-new-platform -c <cpu-arch> -v <VENDOR> -p <PLATFORM> -c <cpu type> As of PetaLinux 1.3, supported CPU types are 'microblaze' and 'ppc440'. -v <VENDOR> This is the vendor name ? often you will use your company's name -p <PLATFORM> The name of the platform or product you are building. The configuration files of the software platform are created in the directory $PETALINUX/software/petalinux-dist/vendors/<VENDOR>/<PLATFORM>. The new platform is automatically selected when running the petalinux-new-platform command, so there is no need to launch the toplevel configuration menu, and select the new platform. Configure Software Platform Generate the hardware configuration files and copy the configuration files to the right place in PetaLinux. $ cd /opt/petalinux-v1.3-final-full/hardware/user-platforms/YourProject $ petalinux-copy-autoconfig Launch the Linux kernel configuration menu and do some configuration if needed. $ petalinux-config-kernel Launch the user applications and system settings configuration menu. $ petalinux-config-apps Build PetaLinux This step take some time $ cd $PETALINUX/software/petalinux-dist $ make The compilation log stores in build.log file in the petalinux-dist/ directory.

Upload: cointoin

Post on 24-Aug-2015

239 views

Category:

Documents


0 download

DESCRIPTION

Base System PetalinuxXilinx

TRANSCRIPT

Base System PetalinuxContents1 Create PetaLinuxPlatform 2 Configure SoftwarePlatform 3 Build PetaLinux 4 Run On Board 5 Digilent Atlys 6 ISE DS Version 13.16.1 Ethernet MACAddress Create PetaLinux Platform$ petalinux-new-platform -c -v -p -c As of PetaLinux 1.3, supported CPU types are'microblaze' and 'ppc440'. -v This is the vendor name ? often you will use yourcompany's name -p The name of the platform or product you are building. The configuration files of the software platform are created in thedirectory $PETALINUX/software/petalinux-dist/vendors//.The new platform is automatically selected when running thepetalinux-new-platform command, so there is no need to launch the toplevelconfiguration menu, and select the new platform.Configure Software PlatformGenerate the hardware configuration files and copy the configuration filesto the right place in PetaLinux.$ cd /opt/petalinux-v1.3-final-full/hardware/user-platforms/YourProject$ petalinux-copy-autoconfigLaunch the Linux kernel configuration menu and do some configuration ifneeded.$ petalinux-config-kernelLaunch the user applications and system settings configuration menu.$ petalinux-config-appsBuild PetaLinuxThis step take some time$ cd $PETALINUX/software/petalinux-dist$ makeThe compilation log stores in build.log file in the petalinux-dist/directory.Run On BoardRun XMD by typing xmd in the terminal. Downlad the hardware bitstream tothe fpga and connect to the board.XMD% fpga -f /opt/petalinux-v1.3-final-full/hardware/user-platforms/YourProject/implementation/download.bitXMD% connect mb mdm -debugdevice devicenr #Check the value of Instruction Cache Base Address, i.e.:Instruction Cache Base Address.....0xb0000000 Download PetaLinux binary image to board at the instruction cache baseaddress, set program counter to that location and tell the board tostart/continue.XMD% dow -data /opt/petalinux-v1.3-final-full/software/petalinux-dist/images/linux.bin 0xb0000000XMD% rwr pc 0xb0000000XMD% conConnect to UART with settings 115200 8-N-1. Log in as "root" with password"root". Have fun!Digilent AtlysWhen using XMD on the Atlys, it is necessary to provide extra statementsto communicate with the hardware:-cable type xilinx_plugin modulename digilent_plugini.e.fpga -f download.bit -cable type xilinx_plugin modulename digilent_pluginconnect mb mdm -cable type xilinx_plugin modulename digilent_pluginFrom here you just do as usual, i.e.dow -data linux.bin 0xb0000000

ISE DS Version 13.1Ethernet MAC AddressThe MAC address is randomized by default.Use the PetaLinux System Configuration Menu to specify the new MACaddress.$ petalinux-config-appsSystem Settings ---> Network Addresses Untick "Randomise MAC address" andenter appropriate MAC address in the next field. Exit and save.Rebuild U-boot and the images within PetaLinux: [petalinux/software/petalinux-dist]$ make u-boot imageNew in platform configuration$ petalinux-platform-config --updatePetaLinux User Guide - Updating Ethernet MAC Address