cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
micki_b12
Observer
Observer
398 Views
Registered: ‎08-25-2019

Is it possible to boot.bin from /dev/mmcblk2/3/4..

Jump to solution

According to the PDF

micki_b12_0-1603294225339.png

boot.bin must be in first partition.

 

this mean /dev/mmcblk0p1 = vfat + boot.bin

 

3.

regarding 3 partition change, Iv been thinking, is it possible to mount the file system differently so our scripts would stay the same?

 

/dev/mmcblk0p1 = vfat + boot.bin -> mount as /run/media/mmcblk0p3

/dev/mmcblk0p2 = ext + log folder  -> mount as /run/media/mmcblk0p2

/dev/mmcblk0p3 = ext + linux file system (image.ub gsifw ... -> mount as /run/media/mmcblk0p1

 

in this configuration, the only change would be update install path of new boot.bin to mmcblk0p3.

 

What do u think, it can work?

0 Kudos
1 Solution

Accepted Solutions
ksloatdesignlinx
Explorer
Explorer
388 Views
Registered: ‎02-24-2020

As you showed, the BOOT.BIN file must be on the first partition of the MMC device. This is talking about a physical partition in the memory of the card. /dev/mmcblkXpX is a Linux concept based on udev rules that would typically name the device nodes p values in order of the partitions on the disk.

You can modify udev rules to create the nodes with whatever names you want and mount them differently or manually mount them however you want (or modify /etc/fstab for mounts). So yes, you could change these names and mount points, as long as the one you are putting BOOT.BIN on corresponds to the actual first partition on the card, then the bootrom would fine the file.

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com

View solution in original post

1 Reply
ksloatdesignlinx
Explorer
Explorer
389 Views
Registered: ‎02-24-2020

As you showed, the BOOT.BIN file must be on the first partition of the MMC device. This is talking about a physical partition in the memory of the card. /dev/mmcblkXpX is a Linux concept based on udev rules that would typically name the device nodes p values in order of the partitions on the disk.

You can modify udev rules to create the nodes with whatever names you want and mount them differently or manually mount them however you want (or modify /etc/fstab for mounts). So yes, you could change these names and mount points, as long as the one you are putting BOOT.BIN on corresponds to the actual first partition on the card, then the bootrom would fine the file.

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com

View solution in original post