-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bsp: Introduce bsp manual for i.MX 93 (#156)
This PR introduces the BSP manual for the i.MX 93. That is accomplished with the two steps below: **Step 1:** Copy files from `bsp/imx8/` and `bsp/imx8/imx8mp/` as templates to a new folder `bsp/imx93/`, and adapt them for purpose of i.MX 93. Whenever justifiable from "i.MX 93" work-scope, apply adaptions in a general manner (e.g. with reST substitutions), to encourage re-use across various i.MX platforms. **Step 2:** Move files that could be used across various i.MX platforms from `bsp/imx93/` to a new folder `bsp/imx-common`, and potentially apply further generalization. -- After that PR was merged i.MX 8 platform can also make use of the "imx-common" files, can add further generalization as needed, and can drop their local duplicates from `imx8/*` folders. --------- Signed-off-by: Christoph Stoidner <c.stoidner@phytec.de> Co-authored-by: Christoph Stoidner <c.stoidner@phytec.de>
- Loading branch information
Showing
60 changed files
with
2,824 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
som | ||
synopsys | ||
msdos | ||
nd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
Format SD-Card | ||
-------------- | ||
|
||
Most images are larger than the default root partition. To flash any storage | ||
device with SD Card, the rootfs needs to be expanded or a separate partition | ||
needs to be created. There are some different ways to format the SD Card. The | ||
easiest way to do this is to use the UI program Gparted. | ||
|
||
Gparted | ||
....... | ||
|
||
* Get GParted: | ||
|
||
.. code-block:: console | ||
|
||
host:~$ sudo apt install gparted | ||
|
||
* Insert the SD Card into your host and get the device name: | ||
|
||
.. code-block:: console | ||
|
||
host:~$ dmesg | tail | ||
... | ||
[30436.175412] sd 4:0:0:0: [sdb] 62453760 512-byte logical blocks: (32.0 GB/29.8 GiB) | ||
[30436.179846] sdb: sdb1 sdb2 | ||
... | ||
|
||
* Unmount all SD Card partitions. | ||
* Launch GParted: | ||
|
||
.. code-block:: console | ||
|
||
host:~$ sudo gparted | ||
|
||
.. image:: /bsp/imx-common/images/gparted1.png | ||
|
||
Expand rootfs | ||
~~~~~~~~~~~~~ | ||
|
||
* Choose your SD Card device at the drop-down menu on the top right | ||
* Choose the ext4 root partition and click on resize: | ||
|
||
.. image:: /bsp/imx-common/images/gparted5.png | ||
.. image:: /bsp/imx-common/images/gparted2.png | ||
|
||
* Drag the slider as far as you like or enter the size manually. | ||
|
||
.. image:: /bsp/imx-common/images/gparted3.png | ||
|
||
* Confirm your entry by clicking on the "Change size" button. | ||
|
||
.. image:: /bsp/imx-common/images/gparted4.png | ||
|
||
* To apply your changes, press the green tick. | ||
* Now you can mount the root partition and copy e.g. the | ||
|yocto-imagename|-|yocto-machinename|.wic image to it. Then unmount it again: | ||
|
||
.. code-block:: console | ||
:substitutions: | ||
|
||
host:~$ sudo cp |yocto-imagename|-|yocto-machinename|.wic /mnt/ ; sync | ||
host:~$ umount /mnt | ||
|
||
Create the Third Partition | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
* Choose your SD Card device at the drop-down menu on the top right | ||
|
||
.. image:: /bsp/imx-common/images/gparted1.png | ||
|
||
* Choose the bigger unallocated area and press "New": | ||
|
||
.. image:: /bsp/imx-common/images/gparted6.png | ||
|
||
* Click "Add" | ||
|
||
.. image:: /bsp/imx-common/images/gparted7.png | ||
|
||
* Confirm your changes by pressing the green tick. | ||
|
||
.. image:: /bsp/imx-common/images/gparted8.png | ||
|
||
* Now you can mount the new partition and copy e.g. | ||
|yocto-imagename|-|yocto-machinename|.wic image to it. Then unmount it again: | ||
|
||
.. code-block:: console | ||
:substitutions: | ||
|
||
host:~$ sudo mount /dev/sde3 /mnt | ||
host:~$ sudo cp |yocto-imagename|-|yocto-machinename|.wic /mnt/ ; sync | ||
host:~$ umount /mnt |
Oops, something went wrong.