diff options
| author | Lee Chee Yang <chee.yang.lee@intel.com> | 2024-04-19 09:39:40 +0800 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@intel.com> | 2024-04-19 10:10:47 +0800 |
| commit | e166755b86a6f2d56cd9101dad85f2801f4279c5 (patch) | |
| tree | 5e85a709760e0ede3e281ce82de493b16cb44e2f /documentation | |
| parent | 0093d9f2eaf97063c81bc73736ebe7c29a69200f (diff) | |
| download | meta-intel-e166755b86a6f2d56cd9101dad85f2801f4279c5.tar.gz | |
documentation: update and restructure README
Update README content, reference and links. Also, split and convert this
into multiple markdown files.
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/building_and_booting.md | 134 | ||||
| -rw-r--r-- | documentation/reporting_bugs.md | 22 | ||||
| -rw-r--r-- | documentation/submitting_patches.md | 26 | ||||
| -rw-r--r-- | documentation/tested_hardware.md | 24 |
4 files changed, 206 insertions, 0 deletions
diff --git a/documentation/building_and_booting.md b/documentation/building_and_booting.md new file mode 100644 index 00000000..478a4fb0 --- /dev/null +++ b/documentation/building_and_booting.md | |||
| @@ -0,0 +1,134 @@ | |||
| 1 | ### Building the Intel BSP layers | ||
| 2 | |||
| 3 | The intel-common BSP provide a few carefully selected tune options and | ||
| 4 | generic hardware support to cover the majority of current Intel CPUs and | ||
| 5 | devices. The naming follows the convention of intel-<TUNE>-<BITS>, where | ||
| 6 | TUNE is the gcc cpu-type (used with mtune and march typically) and BITS | ||
| 7 | is either 32 bit or 64 bit. | ||
| 8 | |||
| 9 | In order to build an image with BSP support for a given release, you | ||
| 10 | need to clone the meta-intel layer from git repository: | ||
| 11 | ``` | ||
| 12 | git clone https://git.yoctoproject.org/meta-intel | ||
| 13 | ``` | ||
| 14 | |||
| 15 | Check out the appropriate branch or release tags. The branch name and tags | ||
| 16 | would align with Yocto Project | ||
| 17 | [Release Codenames](https://wiki.yoctoproject.org/wiki/Releases). | ||
| 18 | Assuming meta-intel repository is cloned at the top-level of | ||
| 19 | OE-Core build tree, you can build a BSP image by adding the location of | ||
| 20 | the meta-intel layer to bblayers.conf: | ||
| 21 | ``` | ||
| 22 | BBLAYERS = " \ | ||
| 23 | /openembedded-core/meta \ | ||
| 24 | /openembedded-core/meta-intel " | ||
| 25 | ``` | ||
| 26 | |||
| 27 | To enable a particular machine, add a MACHINE line naming the BSP | ||
| 28 | to the local.conf file: | ||
| 29 | ``` | ||
| 30 | MACHINE ?= "intel-corei7-64" | ||
| 31 | ``` | ||
| 32 | |||
| 33 | where this can be replaced by other MACHINE types available: | ||
| 34 | |||
| 35 | - intel-core2-32 | ||
| 36 | |||
| 37 | This BSP is optimized for the Core2 family of CPUs as well as all | ||
| 38 | Atom CPUs prior to the Silvermont core. | ||
| 39 | |||
| 40 | - intel-corei7-64 | ||
| 41 | |||
| 42 | This BSP is optimized for Nehalem and later Core and Xeon CPUs as | ||
| 43 | well as Silvermont and later Atom CPUs, such as the Baytrail SoCs. | ||
| 44 | |||
| 45 | - intel-skylake-64 | ||
| 46 | |||
| 47 | This BSP uses [x86-64-v3 tuning](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html). | ||
| 48 | |||
| 49 | You should then be able to build an image as such: | ||
| 50 | ``` | ||
| 51 | $ source oe-init-build-env | ||
| 52 | $ bitbake core-image-sato | ||
| 53 | ``` | ||
| 54 | |||
| 55 | At the end of a successful build, you should have an image that | ||
| 56 | you can boot from a USB flash drive. | ||
| 57 | |||
| 58 | |||
| 59 | ## Booting the intel-common BSP images | ||
| 60 | |||
| 61 | If you've built your own image, you'll find the bootable | ||
| 62 | image in the build/tmp/deploy/images/{MACHINE} directory, where | ||
| 63 | 'MACHINE' refers to the machine name used in the build. | ||
| 64 | |||
| 65 | Under Linux, insert a USB flash drive. Assuming the USB flash drive | ||
| 66 | takes device /dev/sdf, use dd to copy the image to it. Before the image | ||
| 67 | can be burned onto a USB drive, it should be un-mounted. Some Linux distros | ||
| 68 | may automatically mount a USB drive when it is plugged in. Using USB device | ||
| 69 | /dev/sdf as an example, find all mounted partitions: | ||
| 70 | ``` | ||
| 71 | $ mount | grep sdf | ||
| 72 | ``` | ||
| 73 | |||
| 74 | and un-mount those that are mounted, for example: | ||
| 75 | ``` | ||
| 76 | $ umount /dev/sdf1 | ||
| 77 | $ umount /dev/sdf2 | ||
| 78 | ``` | ||
| 79 | |||
| 80 | Now burn the image onto the USB drive: | ||
| 81 | ``` | ||
| 82 | $ sudo dd if=core-image-sato-intel-corei7-64.wic of=/dev/sdf status=progress | ||
| 83 | $ sync | ||
| 84 | $ eject /dev/sdf | ||
| 85 | ``` | ||
| 86 | |||
| 87 | This should give you a bootable USB flash device. Insert the device | ||
| 88 | into a bootable USB socket on the target, and power on. This should | ||
| 89 | result in a system booted to the Sato graphical desktop. | ||
| 90 | |||
| 91 | If you want a terminal, use the arrows at the top of the UI to move to | ||
| 92 | different pages of available applications, one of which is named | ||
| 93 | 'Terminal'. Clicking that should give you a root terminal. | ||
| 94 | |||
| 95 | If you want to ssh into the system, you can use the root terminal to | ||
| 96 | ifconfig the IP address and use that to ssh in. The root password is | ||
| 97 | empty, so to log in type 'root' for the user name and hit 'Enter' at | ||
| 98 | the Password prompt: and you should be in. | ||
| 99 | |||
| 100 | If you find you're getting corrupt images on the USB (it doesn't show | ||
| 101 | the syslinux boot: prompt, or the boot: prompt contains strange | ||
| 102 | characters), try doing this first: | ||
| 103 | ``` | ||
| 104 | $ dd if=/dev/zero of=/dev/sdf bs=1M count=512 | ||
| 105 | ``` | ||
| 106 | |||
| 107 | ## Building the installer image | ||
| 108 | |||
| 109 | If you plan to install your image to your target machine, you can build a wic | ||
| 110 | based installer image instead of default wic image. To build it, you need to | ||
| 111 | add below configuration to local.conf : | ||
| 112 | |||
| 113 | ``` | ||
| 114 | WKS_FILE = "image-installer.wks.in" | ||
| 115 | IMAGE_FSTYPES:append = " ext4" | ||
| 116 | IMAGE_TYPEDEP:wic = "ext4" | ||
| 117 | INITRD_IMAGE_LIVE="core-image-minimal-initramfs" | ||
| 118 | do_image_wic[depends] += "${INITRD_IMAGE_LIVE}:do_image_complete" | ||
| 119 | do_rootfs[depends] += "virtual/kernel:do_deploy" | ||
| 120 | IMAGE_BOOT_FILES:append = "\ | ||
| 121 | ${KERNEL_IMAGETYPE} \ | ||
| 122 | microcode.cpio \ | ||
| 123 | ${IMGDEPLOYDIR}/${IMAGE_BASENAME}-${MACHINE}.rootfs.ext4;rootfs.img \ | ||
| 124 | ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', 'grub-efi-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ | ||
| 125 | ${@bb.utils.contains('EFI_PROVIDER', 'grub-efi', '${IMAGE_ROOTFS}/boot/EFI/BOOT/grub.cfg;EFI/BOOT/grub.cfg', '', d)} \ | ||
| 126 | ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', 'systemd-bootx64.efi;EFI/BOOT/bootx64.efi', '', d)} \ | ||
| 127 | ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/loader.conf;loader/loader.conf ', '', d)} \ | ||
| 128 | ${@bb.utils.contains('EFI_PROVIDER', 'systemd-boot', '${IMAGE_ROOTFS}/boot/loader/entries/boot.conf;loader/entries/boot.conf', '', d)} " | ||
| 129 | ``` | ||
| 130 | |||
| 131 | Burn the wic image onto USB flash device, insert the device to target machine | ||
| 132 | and power on. This should start the installation process. | ||
| 133 | |||
| 134 | |||
diff --git a/documentation/reporting_bugs.md b/documentation/reporting_bugs.md new file mode 100644 index 00000000..04a4d47f --- /dev/null +++ b/documentation/reporting_bugs.md | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | ## Reporting bugs | ||
| 2 | |||
| 3 | If you have problems with or questions about a particular BSP, please | ||
| 4 | contact the maintainer listed in the [Maintainer](MAINTAINERS) file directly (cc:ing | ||
| 5 | the Yocto mailing list puts it in the archive and helps other people | ||
| 6 | who might have the same questions in the future), but please try to do | ||
| 7 | the following first: | ||
| 8 | |||
| 9 | - look in the [Yocto Project Bugzilla](http://bugzilla.yoctoproject.org/) to see if a | ||
| 10 | problem has already been reported | ||
| 11 | |||
| 12 | - look through recent entries of the [meta-intel](https://lists.yoctoproject.org/g/meta-intel/messages) | ||
| 13 | and [Yocto Archives](https://lists.yoctoproject.org/g/yocto/messages) mailing list archives to see | ||
| 14 | if other people have run into similar problems or had similar questions answered. | ||
| 15 | |||
| 16 | If you believe you have encountered a bug, you can open a new bug and | ||
| 17 | enter the details in the [Yocto Project Bugzilla](https://bugzilla.yoctoproject.org/). | ||
| 18 | If you're relatively certain that it's a bug against the BSP itself, please use the | ||
| 19 | 'BSPs | bsps-meta-intel' category for the bug; otherwise, please submit the bug against | ||
| 20 | the most likely category for the problem. if you're wrong, it's not a big deal and | ||
| 21 | the bug will be recategorized upon triage. | ||
| 22 | |||
diff --git a/documentation/submitting_patches.md b/documentation/submitting_patches.md new file mode 100644 index 00000000..41a039bd --- /dev/null +++ b/documentation/submitting_patches.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | ## Guidelines for submitting patches | ||
| 2 | |||
| 3 | Please submit any patches against meta-intel BSPs to the | ||
| 4 | [meta-intel mailing list](https://lists.yoctoproject.org/g/meta-intel) | ||
| 5 | (email: meta-intel@lists.yoctoproject.org). Also, if your patches are | ||
| 6 | available via a public git repository, please also include a URL to | ||
| 7 | the repo and branch containing your patches as that makes it easier | ||
| 8 | for maintainers to grab and test your patches. | ||
| 9 | |||
| 10 | The patches should follow the suggestions outlined in the | ||
| 11 | [Yocto Project and OpenEmbedded Contributor Guide](https://docs.yoctoproject.org/dev/contributor-guide/index.html). | ||
| 12 | In addition, for any non-trivial patch, provide information about how you | ||
| 13 | tested the patch, and for any non-trivial or non-obvious testing | ||
| 14 | setup, provide details of that setup. | ||
| 15 | |||
| 16 | Doing a quick 'git log' in meta-intel will provide you with many | ||
| 17 | examples of good example commits if you have questions about any | ||
| 18 | aspect of the preferred format. | ||
| 19 | |||
| 20 | The meta-intel maintainers will do their best to review and/or pull in | ||
| 21 | a patch or patch sets within 24 hours of the time it was posted. For | ||
| 22 | larger and/or more involved patches and patch sets, the review process | ||
| 23 | may take longer. | ||
| 24 | |||
| 25 | Please see the [MAINTAINERS](MAINTAINERS.md) for the list of maintainers. It's also | ||
| 26 | a good idea to cc: the maintainer, if applicable. | ||
diff --git a/documentation/tested_hardware.md b/documentation/tested_hardware.md new file mode 100644 index 00000000..48a25ab4 --- /dev/null +++ b/documentation/tested_hardware.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | ## Tested Hardware | ||
| 2 | |||
| 3 | The following undergo regular basic testing with their respective MACHINE types. | ||
| 4 | |||
| 5 | - intel-corei7-64: | ||
| 6 | * Alder Lake-P | ||
| 7 | * Alder Lake-S | ||
| 8 | * Alder Lake-PS | ||
| 9 | * Elkhart Lake | ||
| 10 | * Metor Lake-P | ||
| 11 | * Raptor Lake-P | ||
| 12 | * Tiger Lake | ||
| 13 | |||
| 14 | - intel-skylake-64: | ||
| 15 | * Alder Lake-P | ||
| 16 | * Alder Lake-S | ||
| 17 | * Alder Lake-PS | ||
| 18 | * Elkhart Lake | ||
| 19 | * Metor Lake-P | ||
| 20 | * Raptor Lake-P | ||
| 21 | * Tiger Lake | ||
| 22 | |||
| 23 | - intel-core2-32: | ||
| 24 | * MinnowBoard Turbot | ||
