EasyManua.ls Logo

Phytec i.MX 93 - Page 59

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
SoC Oset User Area Oset Boot Partition eMMC Device Bootloader Filename
i.MX 93 32 kiB 0 kiB /dev/mmcblk0 imx-boot
After that set the boot partition from user space using the mmc tool:
(for ‘boot0’) :
target:~$ mmc bootpart enable 1 0 /dev/mmcblk0
(for ‘boot1’) :
target:~$ mmc bootpart enable 2 0 /dev/mmcblk0
To disable booting from the eMMC boot partitions simply enter the following command:
target:~$ mmc bootpart enable 0 0 /dev/mmcblk0
To choose back to the user area u-boot environment:
target:~$ mmc bootpart enable 7 0 /dev/mmcblk0
7.4.9 Resizing ext4 Root Filesystem
fdisk can be used to expand the root lesystem. The example works for any block device such as eMMC,
SD Card, or hard disk.
Get the current device size:
target:~$ fdisk -l /dev/mmcblk0
The output looks like:
Disk /dev/mmcblk0: 7264 MB, 7616856064 bytes, 14876672 sectors 116224 cylinders, 4 heads,
,32 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id
,Type
/dev/mmcblk0p1 * 128,0,1 1023,3,32 16384 140779 124396 60.7M c
,Win95 FAT32 (LBA)
/dev/mmcblk0p2 1023,3,32 1023,3,32 141312 2192013 2050702 1001M 83
,Linux
Use fdisk to delete and create a partition with a max size of the device:
target:~$ fdisk /dev/mmcblk0
The number of cylinders for this disk is set to 116224.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
(continues on next page)
Accessing Peripherals 55