Custom u-boot in PetaLinux

Hello!
I am new to PetaLinux development and running into an issue trying to use custom u-Boot source.
I am following the instructions from here:  http://www.wiki.xilinx.com/PetaLinux+Getting+Started
It tells me to place new source to <PROJECT_ROOT>/components/
linux-host> git clone git://github.com/Xilinx/u-boot-xlnx.git
linux-host> cd u-boot-xlnx
I checked out xilinx version of uBoot and placed it in components/u-boot/u-boot-xlnx
I then ran petalinux-config and selected u-boot-xlnx as my new u-boot source.
When I run petalinux-build I get an error though:
[localhost Avnet-Digilent-ZedBoard-2014.4]$ petalinux-build -c u-boot
INFO: Checking component...
INFO: Generating make files and build linux/u-boot
INFO: Generating make files for the subcomponents of linux/u-boot
INFO: Building linux/u-boot
[INFO ] update linux/u-boot source
[INFO ] generate linux/u-boot configuration files
[ERROR] make[3]: *** [zynq_zc70x_defconfig] Error 1
[ERROR] make[2]: *** [zynq_zc70x_config] Error 2
[ERROR] make[1]: *** [sub-make] Error 2
ERROR: Failed to build linux/u-boot
build/build.log contains the following lines:
[ALL ] make[2]: Entering directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/
build/linux/u-boot/u-boot-xlnx'
[ALL ] GEN ./Makefile
[ALL ] drivers/Kconfig:3: can't open file "drivers/core/Kconfig"
[ERROR] make[3]: *** [zynq_zc70x_defconfig] Error 1
[ERROR] make[2]: *** [zynq_zc70x_config] Error 2
[ALL ] make[2]: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/b
uild/linux/u-boot/u-boot-xlnx'
[ERROR] make[1]: *** [sub-make] Error 2
[ALL ] make[1]: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/b
uild/linux/u-boot/src/u-boot-xlnx'
[ALL ] make: *** [/home/axion/Avnet-Digilent-ZedBoard-2014.4/build/linux/u-boot
/u-boot-xlnx/include/config.h] Error 255
[ALL ] make: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/buil
d/linux/u-boot'
Apparently u-boot source was never copied to <PROJECT_ROOT>/build folder.  Is there anything else I should do?  
I'd like to be able to use petalinux tools (petalinux-build, petalinux-package, etc.) since it is very straight-forward.  Plus it is very convenient to have configuration files in subsustems/linux/configs
Thank you very much.
 

Thank you!
However, I run into the same problem when I exectue petalinux-build -c u-boot
[axion@localhost u-boot-xlnx]$ petalinux-build -c u-boot
INFO: Checking component...
INFO: Generating make files and build linux/u-boot
INFO: Checking if the remote url is a valid git remote repository!
INFO: Fetching remote component u-boot
Cloning into '/home/axion/Avnet-Digilent-ZedBoard-2014.4/build/linux/u-boot/download/u-boot-xlnx'...
remote: Counting objects: 11271, done.
remote: Compressing objects: 100% (9828/9828), done.
remote: Total 11271 (delta 1749), reused 5145 (delta 1093), pack-reused 0
Receiving objects: 100% (11271/11271), 13.39 MiB | 325.00 KiB/s, done.
Resolving deltas: 100% (1749/1749), done.
INFO: Generating make files for the subcomponents of linux/u-boot
INFO: Building linux/u-boot
[INFO ] update linux/u-boot source
[INFO ] generate linux/u-boot configuration files
[ERROR] make[3]: *** [zynq_zc70x_defconfig] Error 1
[ERROR] make[2]: *** [zynq_zc70x_config] Error 2
[ERROR] make[1]: *** [sub-make] Error 2
ERROR: Failed to build linux/u-boot
=========================
From build.log:
[INFO ] generate linux/u-boot configuration files
[ALL ] make O=/home/axion/Avnet-Digilent-ZedBoard-2014.4/build/linux/u-boot/u-b
oot-xlnx -C /home/axion/Avnet-Digilent-ZedBoard-2014.4/build/linux/u-boot/src/u-
boot-xlnx -j2 zynq_zc70x_config || exit 255
[ALL ] make[1]: Entering directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/
build/linux/u-boot/src/u-boot-xlnx'
[ALL ] make[2]: Entering directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/
build/linux/u-boot/u-boot-xlnx'
[ALL ] GEN ./Makefile
[ALL ] HOSTCC scripts/basic/fixdep
[ALL ] HOSTCC scripts/kconfig/conf.o
[ALL ] SHIPPED scripts/kconfig/zconf.tab.c
[ALL ] SHIPPED scripts/kconfig/zconf.lex.c
[ALL ] SHIPPED scripts/kconfig/zconf.hash.c
[ALL ] HOSTCC scripts/kconfig/zconf.tab.o
[ALL ] HOSTLD scripts/kconfig/conf
[ALL ] drivers/Kconfig:3: can't open file "drivers/core/Kconfig"
[ERROR] make[3]: *** [zynq_zc70x_defconfig] Error 1
[ERROR] make[2]: *** [zynq_zc70x_config] Error 2
[ALL ] make[2]: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/b
uild/linux/u-boot/u-boot-xlnx'
[ERROR] make[1]: *** [sub-make] Error 2
[ALL ] make[1]: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/b
uild/linux/u-boot/src/u-boot-xlnx'
[ALL ] make: *** [/home/axion/Avnet-Digilent-ZedBoard-2014.4/build/linux/u-boot
/u-boot-xlnx/include/config.h] Error 255
[ALL ] make: Leaving directory `/home/axion/Avnet-Digilent-ZedBoard-2014.4/buil
d/linux/u-boot'
drivers/Kconfig file does contain a line 'source "drivers/core/Kconfig"' however, there is no folder named 'core' in under u-boot-xlnx/drivers
 

Similar Messages

  • Custom Leopard boot DVD with third party apps

    I am trying to create an boot DVD single layer of Leopard in order to boot from another source than the Macintosh HD and use third party applications to do some maintenance on my new mac.
    How can we create a boot image to be burned on a DVD with extra third party apps on it which will be available after having booted from that DVD. For example, I might want to add a few extra application like iDefrag, TechTool, etc... I do want to have the choice of putting what I want and not use their boot disk utilities to create the DVD.
    I could not find anything regarding add such third party apps, but I do not how to create a slimmed down version of Leopard that fits on a single layer instead of a dual layer like my original.
    As reference:
    http://notepad.bobkmertz.com/2007/10/making-back-up-copy-of-osx-leopard.html
    http://www.scribd.com/doc/431468/Guide-to-making-a-SLDVD-Leopard-install-disc
    http://forum.insanelymac.com/index.php?showtopic=116505
    Thanks,

    Ok then if I follow these instruction to create a clone on iPod (http://lifehacker.com/338574/install-leopard-with-your-ipod), then removed the extra stuff, could I add a few apps or I will still be stuck with the installation interface of Leopard when I boot from this?
    I know coriolis CDMaker can do a quick bootable DVD of Leopard with its apps on it, but it is pretty customised to their application and only see their app, no options to browse through the content of the bootable DVD.

  • Custom Arch Boot-USB with preloaded package list

    Hello guys!
    The other day I was just thinking that it would be amazing to not having to reinstall each system (I have many PCs) from scratch and was wondering if I could make a bootable USB with a preloaded script to download and install the most common packages I always install. I guess I could do that by adding a script to the USB which would be in the root's "home" during USB-boot. But I'm just asking to see if there's a better way (if it would work at all)

    This is a copy + paste from the Wiki:
    https://wiki.archlinux.org/index.php/Pa … d_packages
    Backing up and retrieving a list of installed packages
    It is good practice to keep periodic backups of all pacman-installed packages. In the event of a system crash which is unrecoverable by other means, pacman can then easily reinstall the very same packages onto a new installation.
    ■ First, backup the current list of non-local packages:
    $ pacman -Qqen > pkglist.txt
    ■ Store the pkglist.txt on a USB key or other convenient medium or gist.github.com or Evernote, Dropbox, etc.
    ■ Copy the pkglist.txt file to the new installation, and navigate to the directory containing it.
    ■ Issue the following command to install from the backup list:
    # pacman -S $(< pkglist.txt)
    *** I have a note to use this so it doesn't reinstall packages that I already have.
    # pacman -S --needed $(< pkglist.txt)
    In the case you have a list which was not generated like mentioned above, there may be foreign packages in it (i.e. packages not belonging to any repos you have configured, or packages from the AUR).
    In such a case, you may still want to install all available packages from that list:
    # pacman -S --needed $(comm -12 <(pacman -Slq|sort) <(sort badpkdlist) )
    Explanation:
    ■ pacman -Slq lists all available softwares, but the list is sorted by repository first, hence the sort command.
    ■ Sorted files are required in order to make the comm command work.
    ■ The -12 parameter display lines common to both entries.
    ■ The --needed switch is used to skip already installed packages.
    You could edit the pkglist.txt to keep a list of packages that you know you what to have installed on each computer
    Last edited by M177ER (2014-02-19 19:21:02)

  • Customized your Boot-up Screen - ditch that Aurora.jpg

    In previous versions of Mac OS X it was possible to customize the boot-up screen you see prior to logging-on. This is very useful, as its possible to have a picture with text that identifies your laptop as your property, with contact information and a reward message. Previously this start-up screen was a .jpg image located on hardrive ---> library ---> *desktop pictures* ---> *Aqua Blue.jpg*.
    With the release of Mac OS X 10.5 the location and name of this file has changed. You'd think it would simply be called aurora.jpg - it isn't! You can now find the start-up image in hardrive ---> system ---> library ---> coreservices ---> DefaultDesktop.jpg. The new start-up screen must be saved as a .jpg file. After you create the jpg image you wish to see on boot-up, rename it DefaultDesktop.jpg, and drop it into your coreservices folder.
    You'll need to be the computer administrator to authorize permissions to replace the DefaultDesktop.jpg file. After authentication, you'll be told an older file with the same name exists. Simply replace the older file with the newly created DefailtDesktop.jpg.
    Upon log-out, your new desktop image and identification will appear under the user/password log-on box. Make sure you wrap any text around the log-on box. Good-luck!

    Check out:
    http://www.macmod.com/content/view/1092/
    and
    Forum user mk2ja's AppleScript/Application (http://www.mediafire.com/?81107gd33n9) will change it to your current desktop back ground. You can also edit the preference file in Terminal to use a different picture altogether.

  • Custom PXE Boot to another system

    Hi,
    This isn't a problem but I was wondering if it's possible to customise the .cfg file to allow booting into another system other than the imaging kernel.
    For example when the PXE menu comes up I would like an option to boot say a PXE version of gparted or memtest from the zenworks server.
    I saw that there was a $kernel variable in the .cfg file can it be done this way?
    Thanks

    On Fri, 14 Aug 2009 05:56:02 GMT, markfritz wrote:
    > I saw that there was a $kernel variable in the .cfg file can it be done
    > this way?
    no.. but you can modify the menu which comes up when you press ctrl-atl to
    display other options and than load a different kernel, or even floppy etc.
    Marcus Breiden
    [email protected]
    If you are asked to email me information please remove the - in my e-mail
    address.
    The content of this mail is my private and personal opinion.
    http://www.didas.de

  • Custom kernel does not boot.

    Hi all, I recently changed to a laptop HP Pavilion G4, I installed Arch Linux and it works perfect, but I want to compile my own kernel to optimize the system a bit more.
    I compiled a kernel in Gentoo sometimes, but I have no arch problems, I used the traditional method of compilation and all good, but I have a simple problem starting.
    The kernel runs in "initramfs loading" and nothing happens, do not get errors or anything like that.
    This is an image of what I have in /boot and /usr/lib/modules:
    http://ompldr.org/vaDY0ZA/image.png
    In case you wondered if you think the initramfs with mkinitcpio:
    mkinitcpio -k 3.2.9-custom -g /boot/initramfs-compiled.img
    And kernel config:
    General setup --->
    [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
    The grub I think I have it configured correctly, these are the lines of the default kernel and the kernel compiled.
    menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-5de5f584-af2b-47ff-84d6-c7adf842892f' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5de5f584-af2b-47ff-84d6-c7adf842892f
    else
    search --no-floppy --fs-uuid --set=root 5de5f584-af2b-47ff-84d6-c7adf842892f
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=UUID=5de5f584-af2b-47ff-84d6-c7adf842892f ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch GNU/Linux, with Linux compiled' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-compiled-true-5de5f584-af2b-47ff-84d6-c7adf842892f' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 5de5f584-af2b-47ff-84d6-c7adf842892f
    else
    search --no-floppy --fs-uuid --set=root 5de5f584-af2b-47ff-84d6-c7adf842892f
    fi
    echo 'Loading Linux compiled ...'
    linux /boot/vmlinuz-compiled root=UUID=5de5f584-af2b-47ff-84d6-c7adf842892f ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-compiled.img
    I appreciate any help

    But you are not going to achieve a faster boot by eliminating modules that are not going to be used/loaded anyway.  I can see a faster boot being achieved if you were compiling in order to eliminate the need for an initramfs, but it seems taht you are still using one anyway (besides, there are advantages to having and initramfs).  The modules you don't use will simply take up disk space, udev probes your hardware and only applies what you need.
    Also if you think about the time you will save with your boot relative to the time it takes to configure and compile the kernel, it is not really worth it.  Say you only take compilation into account and it takes five minutes.  Then say that results in an amazing 2 second decrease in boot time.  It would take 150 boots to make that compilation worth the time.  Then with Arch's rolling release model, you will likely have a kernel update long before you ever get there.
    I think a better idea might be to simply optimize what goes in your initramfs.  Falconindy made this blog post (reluctantly it seems) about just that.  I tried it before I started using device-mapper functions (which then require a bunch more stuff), and it actually made a noticeable difference.  The beauty of this is that the configuration will stay consistent between kernel versions, and will automatically be built after every kernel update.
    Edit: Also, you really should check out the CK kernel, as graysky has made it so damn easy its ridiculous.  And it is pretty functionally amazing.
    Last edited by WonderWoofy (2013-01-25 01:42:01)

  • How to back up a ZFS boot disk ?

    Hello all,
    I have just installed Solaris 10 update 6 (10/08) on a Sparc machine (an Ultra 45 workstation) using ZFS for the boot disk.
    Now I want to port a custom UFS boot disk backup script to ZFS.
    Basically, this script copies the boot disk to a secondary disk and makes the secondary disk bootable.
    With UFS, I had to play with the vfstab a bit to allow booting off the secondary disk, but this is not necessary with ZFS.
    How can I perform such a backup of my ZFS boot disk ?
    I tried the following (source disk: c1t0d0, target disk: c1t1d0):
    # zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    rpool 110G 118G 94K /rpool
    rpool/ROOT 4.58G 118G 18K legacy
    rpool/ROOT/root 4.58G 25.4G 4.50G /
    rpool/ROOT/root/var 79.2M 4.92G 79.2M /var
    rpool/dump 16.0G 118G 16.0G -
    rpool/export 73.3G 63.7G 73.3G /export
    rpool/homelocal 21.9M 20.0G 21.9M /homelocal
    rpool/swap 16G 134G 16K -
    # zfs snapshot -r rpool@today
    # zpool create -f -R /mnt rbackup c1t1d0
    # zfs send -R rpool@today | zfs receive -F -d rbackup               <- This one fails (see below)
    # installboot /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t1d0s0
    The send/receive command fails after transfering the "/" filesystem (4.5 GB) with the following error message:
    cannot mount '/mnt': directory is not empty
    There may be some kind of unwanted recursion here (trying to back up the backup or something) but I cannot figure it out.
    I tried a workaround: creating the mount point outside the snapshot:
    zfs snapshot -r rpool@today
    mkdir /var/tmp/mnt
    zpool create -f -R /var/tmp/mnt rbackup c1t1d0
    zfs send -R rpool@today | zfs receive -F -d rbackup
    But it still fails, this time with mounting "/var/tmp/mnt".
    So how does one back up the ZFS boot disk to a secondary disk in a live environment ?

    OK, this post requires some clarification.
    First, thanks to robert.cohen and rogerfujii for giving some elements.
    The objective is to make a backup of the boot disk on another disk of the same machine. The backup must be bootable just like the original disk.
    The reason for doing this instead of (or, even better, in addition to) mirroring the boot disk is to be able to quickly recover a stable operating system in case anything gets corrupted on the boot disk. Corruption includes hardware failures, but also any software corruption which could be caused by a virus, an attacker or an operator mistake (rm -rf ...).
    After doing lots of experiments, I found two potential solutions to this need.
    Solution 1 looks like what rogerfujii suggested, albeit with a few practical additions.
    It consists in using ZFS mirroring and breaking up the mirror after resilvering:
         - Configure the backup disk as a mirror of the boot disk :
         zpool attach -f rpool <boot disk>s0 <backup disk>s0
         - Copy the boot block to the backup disk:
         installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/<backup disk>s0
         - Monitor the mirror resilvering:
         zpool status rpool
         - Wait until the "action" field disappears (this can be scripted).
         - Prevent any further resilvering:
         zpool offline rpool <backup disk>s0
         Note: this step is mandatory because detaching the disk without offlining it first results in a non bootable backup disk.
         - Detach the backup disk from the mirror:
         zpool detach rpool <backup disk>s0
         POST-OPERATIONS:
         After booting on the backup disk, assuming the main boot disk is unreachable:
         - Log in as super-user.
         - Detach the main boot disk from the mirror
         zpool detach rpool <boot disk>s0
    This solution has many advantages, including simplicity and using no dirty tricks. However, it has two major drawbacks:
    - When booting on the backup disk, if the main boot disk is online, it will be resilvered with the old data.
    - There is no easy way to access the backup disk data without rebooting.
    So if you accidentally lose one file on the boot disk, you cannot easily recover it from the backup.
    This is because the pool name is the same on both disks, therefore effectively preventing any pool import.
    Here is now solution 2, which I favor.
    It is more complex and dependent on the disk layout and ZFS implementation changes, but overall offers more flexibility.
    It may need some additions if there are other disks than the boot disk with ZFS pools (I have not tested that case yet).
    ***** HOW TO BACKUP A ZFS BOOT DISK TO ANOTHER DISK *****
    1. Backup disk partitioning
    - Clean up ZFS information from the backup disk:
    The first and last megabyte of the backup disk, which hold ZFS information (plus other stuff) are erased:
    dd if=/dev/zero seek=<backup disk #blocks minus 2048> count=2048 of=/dev/rdsk/<backup disk>s2
    dd if=/dev/zero count=2048 of=/dev/rdsk/<backup disk>s2
    - Label and partition the backup disk in SMI :
    format -e <backup disk>
         label
         0          -> SMI label
         y
         (If more questions asked: press Enter 3 times.)
         partition
         (Create a single parition, number 0, filling the whole disk)
         label
         0
         y
         quit
         quit
    2. Data copy
    - Create the target ZFS pool:
    zpool create -f -o failmode=continue -R /mnt -m legacy rbackup <backup disk>s0
    Note: the chosen pool name is here "rbackup".
    - Create a snapshot of the source pool :
    zfs snapshot -r rpool@today
    - Copy the data :
    zfs send -R rpool@today | zfs receive -F -d rbackup
    - Remove the snapshot, plus its copy on the backup disk :
    zfs destroy -r rbackup@today
    zfs destroy -r rpool@today
    3. Backup pool reconfiguration
    - Edit the following files:
    /mnt/etc/vfstab
    /mnt/etc/power.conf
    /mnt/etc/dumpadm.conf
    In these files, replace the source pool name "rpool" with the backup pool name "rbackup".
    - Remove the ZFS mount list:
    rm /mnt/etc/zfs/zpool.cache
    4. Making the backup disk bootable
    - Note the name of the current boot filesystem:
    df -k /
    E.g.:
    # df -k /
    Filesystem kbytes used avail capacity Mounted on
    rpool/ROOT/root 31457280 4726390 26646966 16% /
    - Configure the boot filesystem on the backup pool:
    zpool set bootfs=rbackup/ROOT/root rbackup
    Note: "rbackup/ROOT/root" is derived from the main boot filesystem name "rpool/ROOT/root".
    - Copy the ZFS boot block to the backup disk:
    installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/<backup disk>s0
    5. Cleaning up
    - Detach the target pool:
    zpool export rbackup
    I hope this howto will be useful to those like me who need to change all their habits while migrating to ZFS.
    Regards.
    HL

  • MDT boot image and when we try to PXE boot it won't get the IP Address.

    We created a custom MDT boot image and when we try to PXE boot it won't get the IP Address.
    I press F8 and type IPCONFIG we get Windows IP Configuration. We are using  vmxnet3 network adapter. 
    I think I need to inject 32-bit  vmxnet3 driver to the custom MDT boot image which is 32-bit.
    We are using it to deploy Windows Server 2008 R2 with SP1 operating System.
    Can I just use the 32-bit custom MDT boot image or do I need to use 64-bit Custom MDT Boot Image?
    Also Is there a blog on how to inject  vmxnet3 driver to boot image?

    You can try this:
    http://mwesterink.wordpress.com/2013/12/03/configmgr-2012-obtaining-vmxnet3-nic-drivers-for-vmware-virtual-machines/
    Honestly, your best bet is to use a different adapter (E1000). I personally have had no luck getting the vmxnet3 driver to work properly in WinPE. It's either really, really slow or it simply doesn't load at all.

  • WDS Boot.wim

    I have been able to create a boot.wim file and a few custom install images for different machines. I have been trying to make an unattend file so the techs can just select which image they need and walk away. But i can not for the life of me figure out the
    unattend file. When i load my .wim into the WSIM, I do not get the same questions from the tutorials I've seen online. I've used the ones from a Win7Pro cd and ones built using command prompt. Any ideas? 
    Thank you ahead of time.

    Did winpeshl.ini already exist prior to trying it?
    How was this boot image created? Is it a custom made boot image, one that WDS made or the one straight from the setup DVD? The reason is because they can behave differently. For example, the stock lite-touch boot image that MDT creates, it uses winpeshl.ini
    to launch the setup process. The custom built image should adhere to the standard rules of winpeshl.ini>startnet.cmd but the one from the DVD I am not sure how it calls setup.
    I do know that you can run a command prior to installing the OS using an MDT Task Sequence.

  • PetaLinux Userspace App - Zynq PL stuck in reset?

    Hello. I'm trying to convert our bare-metal application to a PetaLinux userspace application. I seem to be able to mmap some physical addresses to virtual memory and read some pseudo-serial number that we've stored in a register. But I can't seem to read or write any other active registers. It is as if the FPGA fabric is stuck in reset while the PS runs PetaLinux just fine. I'll outline most of my steps in case the error is early in the process.
    Our board is very similar to the ZC0702 Eval Board so I use the -s option with the ZC0702 BSP when creating the PetaLinux project. 
    I can configure, build, and boot the PetaLinux project successfully (using our bitstream with petalinux-boot --jtag --fpga --bitstream <BITSTREAM>). 
    I can compile and run a test program from the Xilinx SDK that prints our test serial number from a mem-mapped register:
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sys/mman.h>
    #include <fcntl.h>
    static const unsigned VX_BASE_ADDR = 0x68A00000; /* base address stores "serial number" */
    int main(int argc, char *argv[]) {
    /* initialize values */
    int fd, value = 0;
    unsigned page_addr, page_offset;
    unsigned *basePtr, *ledPtr;
    unsigned page_size = sysconf(_SC_PAGESIZE);
    /* open /dev/mem file */
    fd = open ("/dev/mem", O_RDWR | O_SYNC);
    if (fd < 1) {
    perror(argv[0]);
    return (-1);
    /* mmap the reg address into memory */
    page_addr = (VX_BASE_ADDR & (~(page_size-1)));
    page_offset = VX_BASE_ADDR - page_addr;
    basePtr = mmap(NULL, page_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, page_addr);
    /* read value at address */
    value = *((volatile unsigned *)(basePtr + page_offset));
    printf("%08x\n",value);
    /* release memory */
    munmap(basePtr, page_size);
    return (0);
    Which gets this output:
    root@Xilinx-ZC702-2014_4:~# echo $PWD'>'
    /home/root>
    root@Xilinx-ZC702-2014_4:~#
    root@Xilinx-ZC702-2014_4:~# /home/root/vx_test.elf
    12345678
    root@Xilinx-ZC702-2014_4:~#
    root@Xilinx-ZC702-2014_4:~# exit
    logout
    Looks good - 12345768 is our testing serial number! Everything seems ok at this point...
      5.  But when I try to read / write additional registers, I don't get anything:
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <sys/mman.h>
    #include <fcntl.h>
    static const unsigned VX_BASE_ADDR = 0x68A00000;/* base address of the "serial number" */
    static const unsigned VX_LED_ADDR = 0x41200000;/* LED control register */
    static const unsigned VX_RDOUT_DUR_REG_ADDR = 0x00000015;/* offset from VX_BASE_ADDR */
    int main(int argc, char *argv[]) {
    /* initialize values */
    int fd, value = 0;
    unsigned page_addr, page_offset;
    unsigned *basePtr, *ledPtr;
    unsigned page_size = sysconf(_SC_PAGESIZE);
    /* open /dev/mem file */
    fd = open ("/dev/mem", O_RDWR | O_SYNC);
    if (fd < 1) {
    perror(argv[0]);
    return (-1);
    /* mmap the reg address into memory */
    page_addr = (VX_BASE_ADDR & (~(page_size-1)));
    page_offset = VX_BASE_ADDR - page_addr;
    basePtr = mmap(NULL, page_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, page_addr);
    /* read value at address */
    value = *((volatile unsigned *)(basePtr + page_offset));
    printf("%08x\n",value);
    /* write value out to address */
    printf("Before Write: %08x\n", *((volatile unsigned *)(basePtr + (VX_RDOUT_DUR_REG_ADDR << 2))));
    *((volatile unsigned *)(basePtr + (VX_RDOUT_DUR_REG_ADDR << 2))) = 0xff;
    sleep(1);
    printf("After Write: %08x\n", *((volatile unsigned *)(basePtr + (VX_RDOUT_DUR_REG_ADDR << 2))));
    /* mmap the LED address into memory */
    page_addr = (VX_LED_ADDR & (~(page_size-1)));
    page_offset = VX_LED_ADDR - page_addr;
    ledPtr = mmap(NULL, page_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, page_addr);
    /* turn on LEDs */
    *((volatile unsigned *)(ledPtr + page_offset)) = 0xff;
    /* sleep to confirm LED */
    sleep(2);
    /* release memory */
    munmap(basePtr, page_size);
    munmap(ledPtr, page_size);
    return (0);
    Output:
    root@Xilinx-ZC702-2014_4:~# echo $PWD'>'
    /home/root>
    root@Xilinx-ZC702-2014_4:~#
    root@Xilinx-ZC702-2014_4:~# /home/root/vx_test.elf
    12345678
    Before Write: 00000000
    After Write: 00000000
    root@Xilinx-ZC702-2014_4:~#
    root@Xilinx-ZC702-2014_4:~# exit
    logout
    (No LEDs have turned on).
      6.  I created this test application using our system_stub.hdf, and it seems to have mapped everything appropriately:
    I'm pretty new to all of this, so it's unclear to me the best way to make sure the userspace application is informed about the hardware.
    Am I supposed to initialize the FPGA fabric in some way before trying to access these registers? Am I missing any obvious (or non-obvious) steps?
    Any help you can provide would be greatly appreciated.
    Thanks,
    Greg
     

    Hi,
    in the same spirit,
    With Board zc702
    Petalinux 2015.2,
    Create a new project from bsp file ,
    petalinux-create -t project -s ./Xilinx-ZC702-v2015.2-final.bsp -n test703
    After copy the content of the subfolder 'test703/pre-built/linux/images' on a SD-card,
    The system start correctly,
    After logon a simple:
    poke 0x41200000 0   will hangs the system,
    I tried this project after some tests with other board and projects coming from vivado,
    It's always the same,
    For me the problem comes from the FCLK_CLK0, this signal disappear after the boot,
    The system hang because this clock is used by the AXI interfaces.
    Before I used petalinux 2014.2, it was ok for this function.
    All tests are ok with standalone os.
    Best regards.
    Gérard.
     

  • Booting off a clean hard drive.....

    Hello, everyone....
    I am running ZENworks 7 and I think it is fairly up to date.
    I have a laptop with a clean hard drive. The drive was formatted and then it
    was put into a Lenovo T500 laptop. As far as I know, it have never been
    touched by anything ZENworks related.
    Now, when I boot up the computer, a ZENworks pre-boot sequence starts.
    How do I get this to stop? I would like it see the message that there is no
    operating system.
    Thanks.
    Delon E. Weuve
    Senior Network Engineer
    Office of Auditor of State
    State of Iowa
    United States of America

    Boot from the imaging iso cd
    select Custom to boot up and get a linux prompt
    dd if=/dev/zero of=/dev/hda count=64
    sync
    reboot
    The above process is non reversible - all partitions will be lost. So be sure you are erasing the correct system. :-)
    This blasts the MBR, image safe data, and makes the disk look factory fresh. Its easy to construct a bootab Linux DVD that does this in an unattended way in case you have a lot of workstations to process. Its also a good way of getting rid of MBR root kits which re-imaging will not get rid of.
    -- Bob

  • Firefox 4 freezes, takes 3 min to load pages, does not multitask.help!

    Subject: FIREFOX 4 HAS RENDERED MY BROWSING ABILITIES TO NIL.
    Date: Fri, 25 Mar 2011 19:44:51 -0700
    I loaded it on this past Thursday. It NEVER worked.
    It may be the fact that I have a 8 year old custom dual boot =
    (XP/Linux) laptop. A wholesale blind update of drivers is a BAD idea. Do you have a tool to run diagnostics on an installation of Firefox? I feel as if I have suddenly been stranded on a desert
    island -- no rum or Johnny Depp either. PUL--eeeese can I get my old Firefox 3.6.7(?) back?
    It was painless, efficient and reliable. If not, I definitely think you owe me some rum and a reasonable facsimile of Johhny Depp.
    From troubleshooting under help:
    Application Basics Name Firefox=20
    Version 4.0=20
    User Agent Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 =
    Firefox/4.0=20
    Profile Directory Open Containing Folder =20
    Enabled Plugins about:plugins =20
    Build Configuration about:buildconfig =20
    Extensions=20
    Name Version Enabled ID =20
    Ancestry.com Advanced Image Viewer 1.0.0.1 true =
    [email protected]=20
    ShopAtHome.com Intelligent Shopping Toolbar 5.2.0.0 false =
    [email protected]=20
    Google Toolbar for Firefox 7.1.20101113Wb1 true =
    {3112ca9c-de6d-4884-a869-9855de68056c}=20
    Java Console 6.0.15 true {CAFEEFAC-0016-0000-0015-ABCDEFFEDCBA}=20
    Java Console 6.0.21 true {CAFEEFAC-0016-0000-0021-ABCDEFFEDCBA}=20
    Microsoft .NET Framework Assistant 1.0 false =
    {20a82645-c095-46ed-80e3-08825760534b}=20
    Norton IPS 2.0 true {BBDA0591-3099-440a-AA10-41764D9DB4DB}=20
    Norton Toolbar 4.6 false {2D3F3651-74B9-4795-BDEC-6DA2F431CB62}=20
    Java Quick Starter 1.0 true [email protected]=20
    Xmarks 3.9.5 false [email protected]=20
    Yahoo! Toolbar 2.3.5.20110120033202 false =
    {635abd67-4fe9-1b23-4f01-e679fa7484c1}=20
    Modified Preferences=20
    Name Value =20
    accessibility.typeaheadfind true=20
    accessibility.typeaheadfind.flashBar 0=20
    browser.fixup.alternate.enabled false=20
    browser.history_expire_days.mirror 180=20
    browser.places.importBookmarksHTML false=20
    browser.places.importDefaults false=20
    browser.places.leftPaneFolderId -1=20
    browser.places.migratePostDataAnnotations false=20
    browser.places.smartBookmarksVersion 2=20
    browser.places.updateRecentTagsUri false=20
    browser.startup.homepage =
    http://www.google.com/ig?source=3Dmpues&hl=3Den=20
    browser.startup.homepage_override.buildID 20110318052756=20
    browser.startup.homepage_override.mstone rv:2.0=20
    browser.tabs.warnOnClose false=20
    browser.zoom.full false=20
    extensions.lastAppVersion 4.0=20
    font.minimum-size.x-western 12=20
    font.name.serif.x-western Trebuchet MS=20
    font.size.variable.x-western 18=20
    gfx.blacklist.direct2d 3=20
    gfx.blacklist.layers.direct3d10 3=20
    gfx.blacklist.layers.direct3d10-1 3=20
    gfx.blacklist.layers.direct3d9 3=20
    gfx.blacklist.layers.opengl 3=20
    gfx.blacklist.webgl.angle 3=20
    gfx.blacklist.webgl.opengl 3=20
    network.cookie.prefsMigrated true=20
    places.history.expiration.transient_current_max_pages 20792=20
    places.last_vacuum 1299877639=20
    print.print_printer hp deskjet 5100 series=20
    print.printer_hp_deskjet_5100_series.print_bgcolor false=20
    print.printer_hp_deskjet_5100_series.print_bgimages false=20
    print.printer_hp_deskjet_5100_series.print_command =20
    print.printer_hp_deskjet_5100_series.print_downloadfonts false=20
    print.printer_hp_deskjet_5100_series.print_edge_bottom 0=20
    print.printer_hp_deskjet_5100_series.print_edge_left 0=20
    print.printer_hp_deskjet_5100_series.print_edge_right 0=20
    print.printer_hp_deskjet_5100_series.print_edge_top 0=20
    print.printer_hp_deskjet_5100_series.print_evenpages true=20
    print.printer_hp_deskjet_5100_series.print_footercenter =20
    print.printer_hp_deskjet_5100_series.print_footerleft =20
    print.printer_hp_deskjet_5100_series.print_footerright &D=20
    print.printer_hp_deskjet_5100_series.print_headercenter =20
    print.printer_hp_deskjet_5100_series.print_headerleft =20
    print.printer_hp_deskjet_5100_series.print_headerright &U=20
    print.printer_hp_deskjet_5100_series.print_in_color true=20
    print.printer_hp_deskjet_5100_series.print_margin_bottom 0.5=20
    print.printer_hp_deskjet_5100_series.print_margin_left 0.5=20
    print.printer_hp_deskjet_5100_series.print_margin_right 0.5=20
    print.printer_hp_deskjet_5100_series.print_margin_top 0.5=20
    print.printer_hp_deskjet_5100_series.print_oddpages true=20
    print.printer_hp_deskjet_5100_series.print_orientation 0=20
    print.printer_hp_deskjet_5100_series.print_pagedelay 500=20
    print.printer_hp_deskjet_5100_series.print_paper_data 1=20
    print.printer_hp_deskjet_5100_series.print_paper_height 11.00=20
    print.printer_hp_deskjet_5100_series.print_paper_size_type 0=20
    print.printer_hp_deskjet_5100_series.print_paper_size_unit 0=20
    print.printer_hp_deskjet_5100_series.print_paper_width 8.50=20
    print.printer_hp_deskjet_5100_series.print_reversed false=20
    print.printer_hp_deskjet_5100_series.print_scaling 1.00=20
    print.printer_hp_deskjet_5100_series.print_shrink_to_fit true=20
    print.printer_hp_deskjet_5100_series.print_to_file false=20
    =
    print.printer_hp_deskjet_5100_series.print_unwriteable_margin_bottom 0=20
    print.printer_hp_deskjet_5100_series.print_unwriteable_margin_left =
    0=20
    =
    print.printer_hp_deskjet_5100_series.print_unwriteable_margin_right 0=20
    print.printer_hp_deskjet_5100_series.print_unwriteable_margin_top =
    0=20
    privacy.clearOnShutdown.cookies false=20
    privacy.cpd.cookies false=20
    privacy.sanitize.migrateFx3Prefs true=20
    privacy.sanitize.promptOnSanitize false=20
    security.warn_viewing_mixed false=20
    Graphics=20
    Adapter Description SiS 650=20
    Vendor ID 1039=20
    Device ID 6325=20
    Adapter RAM Unknown=20
    Adapter Drivers SiSGRV=20
    Driver Version 6.14.10.2220=20
    Driver Date 1-7-2004=20
    Direct2D Enabled Blocked on your graphics card because of =
    unresolved driver issues.=20
    DirectWrite Enabled false (0.0.0.0, font cache n/a)=20
    WebGL Renderer (WebGL unavailable)=20
    GPU Accelerated Windows 0/1=20
    Please try to help.
    Annette Lee
    [email protected]
    -

    Hi,
    depends on whether you control the BPM task flow or not. If you do, have a look at this thread for how to debug the problem
    How to debug "Attempt to validate an already invalid RegionSite"?
    Otherwise, post it to the SOA forum if this is initiated by their generated code. The most common reason though is that the task flow lacks a default activity. So if the default activity is somewhat calculated dynamically in your application then this may be a reason
    Frank

  • [SOLVED]How to patch the kernel? And other questions

    Like the same user who started this thread I'm suffering from hibernation resuming troubles using kernel 2.6.38. In that thread was posted a soluttion that involves patching the kernel.
    The patch to apply is this:
    http://git.kernel.org/?p=linux/kernel/g … e3e9fc8684
    Waiting for the bug to be corrected and a new version supplied is not an option, because this laptop is my main computer and I heavly rely on hibernation.
    Here's my trouble now. I don't know if it is possible to patch without recompiling the whole kernel, or it has to be compiled with that patch applied. I have seen the archlinux's wiki guide about compiling the kernel, but found nothing about applying patches (maybe I didn't searched with enought depth).
    In case there is needed a full compilation, should I use the vanilla kernel, the Arch Linux one or any of the AUR ones (I said AUR because they're the first that came to my mind)? Should i expect a performance gain with this (apart from fixing the hibernation bug)?
    Maybe i'm just doing a bunch of dumb questions, and the only thing I need is to search deeply on the wiki. In that case, please tell me. If not, I rather get some answers around kernel patching and / or compiling questions.
    Edit: In addittion, it is possible that all this questions are just newbie ones, I don't know, but as I am willing to learn from this I will appreciate any info or documentation about it.
    Thank you.
    Last edited by ethail (2011-04-12 06:30:48)

    From the source tree (/usr/src/linux-whatever) execute
    patch -p1 < /path/to/fix.patch
    then recompile kernel from the source tree.
    Basically that consists of executing the following commands from the source tree:
    make menuconfig
    make
    make modules_install
    cp -v System.map /boot/System.map-CUSTOM
    cp -v arch/x86/boot/bzImage /boot/vmlinuz-CUSTOM
    mkinitcpio -k 2.6.38-CUSTOM -g /boot/kernel-CUSTOM.img
    and you need to add menu entry in /boot/grub/menu.lst
    -k 2.6.38-CUSTOM should corespond to /lib/modules/2.6.38-CUSTOM (replace 2.6.38-CUSTOM with the name of your module directory, name depends on the kernel version and suffix that you gave in menuconfig). Regarding kernel configuration in menuconfig - I can't help you, you could use arch stock kernel config (zcat /proc/config.gz > /usr/src/linux-whatever/.config)
    I do these kind of things this way - maybe someone else have a more elegant solution.

  • System Recovery that worked for me.

    I've read soooooooo many complaints about Toshiba purchasers being unable to restore their laptops with their XP Recovery Discs.  The usual answer from the experts on this site is that you need a new disc or your DVD drive is defective.  Of course, you can find out if the latter problem is the culprit by putting in any CD/DVD with information on it  then go to Windows Explorer and see if you can access anything on it.  If you can't or if the only thing you can do is boot to the BIOS, then this might work for you.
    For some reason a lot of these Recovery Discs simply won't start without first formatting the hard disc--I've found this to be the case with Toshiba and Gateway products.  Of course, if you can't format the hard disc with the Recovery Disc then the only thing to do is this:
    Find yourself a full or upgrade version of Windows XP.  I haven't tried it, but you can probably also use 98, ME, 2000--whatever.  Start your computer, hit the F1 key or whatever it takes to get to the BIOS.  When your in you're in your BIOS, change the boot order from Hard Disc to DVD.  Hit the Save key which will reboot your computer.  At the Toshiba logo, hit the eject button on your DVD drive.  Put in the XP disc I mentioned earlier.  You should get to the start of the install process.  If so, go through the entire install process and when you get to the format hard disc part, let it rip.  Once the format process if finished, hit the eject button on your DVD drive.  Put in the Recovery Disc that came with your computer.  Reboot it, keeping the boot order the same (DVD first).  The install procedure of your Restore Disc should start automatically.  If it doesn't, then this procedure won't work for you.
    However, I've found this procedure works on my Toshiba laptop, more than a few Gateway laptops and even a Gateway PC.
    Although I haven't tried it, you can probably do the format procedure with a custom XP boot disc that you can get off the web.  And if you can't do it either way yet have access to a floppy drive (USB or built into your computer), go to this Microsoft web site to down load an fabricate a set of floppies that will do the same job: http://support.microsoft.com/kb/310994
    Whatever you do, don't take the expert's advice on this forum to immediately order another Recovery Disc AND don't assume that your DVD drive doesn't work.  Probably neither is the case and you'll save a lot of money if it isn't.
    Try this procedure first--you've got nothing to lose if you can't get past the BIOS.

    hyjanks wrote:
    Look.  You're talkin' Geekdom here, buddy.  I'm just trying to solve a problem for the average Joe whose eyes gloss over at the mention of ISO's.  Toshiba tech support costs $25 for the first call.  I don't know what a copy of a Recovery disc costs, but it's probably in the same range.  If you go out an buy a USB/floppy dirve it will cost you about $20. And when you're through with the install, you've got yourself a new toy.  When you're done with Toshiba tech support, you MAY get a solution.  You MAY not.  If you buy a Restore disc, it may solve the problem.  Maybe it won't.  Get it?
    I just bought a brand-new Intel MB that comes with a SATA/RAID floppy.  What do you suppose I'm going to use to install the driver?
    By the way, you got a better solution?
    If the computer has a floppy drive then the F6 method will work.  I've used it numerous times on systems that have one.  But the problem is that laptops don't have floppy drives these days, USB floppy drives don't always work for the installing SATA drivers via the F6 method, and most users don't know how to make an F6 floppy disk to use.  And many laptops don't even provide the files to create an F6 SATA driver floppy.  It's a lot easier to burn a CD from an ISO that is readily available than it is to create a F6floppy disk when you don't have the preconfigured disk file and need to create one from scratch.
    Now why are we arguing anyway?  Both methods will work.  It's just a matter of which will be more appropriate for the specific situation.  I'm not attacking you, your method, or your manhood.  Now let's just drop this as it's not productive and is actually going to confuse some of the people that would potentially benefit from these methods.
    If you don't post your COMPLETE model number it's very difficult to assist you. Please try to post in complete sentences with punctuation, capitals, and correct spelling. Toshiba does NOT provide any direct support in these forums. All support is User to User in their spare time.

  • Can Windows XP run on a Snow Leopard Mac?

    Hi,
         Let me just start by saying that I have a version of Windows XP that I have modified to be able to boot and run on a USB drive, regardless of whether or not that drive is a flash drive or a hard disk. I have installed that Windows XP on a flash drive, even fixed its master boot record and customized the boot.ini file and added the ntldr file and the ntdetect.com file and my Mac which is a Mid-2010 (MacBookPro 7,1) refuses to recognize the disk even though it is recognized and runs fine on a PC. Can anyone explain what the problem is?
    Thanks, Chris

    Yes, it does. However, the way OS X formats a GUID partition is much different than the way that Windows formats it. I believe what I am trying to do is possible, but it is extremely tricky.
    The bottom line is that you have to plug the USB drive into a SATA/ESATA conversion connector on a PC because Windows won't let you create a Microsoft protected partition on a removable drive, so you have to trick it into thinking that it is a normal disk.
    After freeing all of the space on the disk, you run diskpart as an administrator
    DISKPART> list disk
    DISKPART> select disk <the disk you want>
    DISKPART> convert gpt
    DISKPART> create efi partition size=102
    DISKPART> create msr partition (create a microsoft protected partition; however, this command will fail on a removable drive)
    DISKPART> create primary partition size=<the size in MB you want> ID=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
    DISKPART> list partition
    DISKPART> select partition <the partition you want to format NTFS>
    DISKPART> format fs=ntfs
    DISKPART> active
    DISKPART> assign
    <create more partitions if you want; otherwise, exit DISKPART>
    Next, you must turn on BootCamp because the installer needs some FAT32 or NTFS space to work with during its installation. Insert the Windows installation CD and then enter setup. Select the partition you want to install Windows to and press enter. Now, Windows should be able to start from the drive attached as a USB drive again. If it does not then you need a Windows install CD that has a repair functionality. Wait until Windows setup loads and then make sure you have the correct partition then press R to enter the repair console and it will ask you which Windows installation you want to work with. Make sure you select the correct installation number then type fixmbr and enter and type y and enter to the warning presented. Then restart the computer and you should be able to select the USB drive on either a Mac or PC. You have to use the very specific ID above because it is the only ID that Windows XP recognizes with respect to GUID partitions.

Maybe you are looking for

  • Mapping a one to many relationship using fluent api

    Hi I can't map my domains to match the database, since database is already created, I can't create or remove any other extra table. Database CREATE TABLE PLAYER (Id Int, Name varchar(100), PRIMARY KEY (Id)) CREATE TABLE POSITION (Id Int, Name varchar

  • Use data type enhancement in XSLT mapping in XI

    Hi Experts, I'm working on SNC and I need to add an element to a data type.  I have created a data type enhancemnet with the element in it.  Now I need to get this into my XSLT mapping.  I have tried creating a message type but the data type enhancem

  • Getting Error 26 in ALE IDOC scenario .- EDI Syntax Check Error...

    Hi.. i am working in ALE Idoc scenario...I am getting Status 3 as well as status 26 in we02 transaction in my custom IDOC scenario for outbound process.. The error is 'EDI- SYntax Check'.. How to remove this error.. Pls help.

  • 3D rotate tool in flash, help needed asap

    Hi I came across this site: http://www.yofla.com/flash/3d-rotate/ And am desperate to incorporate this into some university work asap. What i need to know is how render the images from 3D Studio Max so that i have the stepped images as a 360 degree s

  • Debug Problem on Jcop Tools

    Hello, I have developed a Java Card Applet on Eclipse and I can run it through Jcop Tools' simulator. However, when I try to debug it, simulator returns 6A80 to upload command. Would you please tell me, what can be the reason of this problem? Thanks