[OE-core] [PATCH] wic: Add SD/MMC-Cards support

Otavio Salvador otavio at ossystems.com.br
Tue Mar 18 16:35:51 UTC 2014


On Tue, Mar 18, 2014 at 1:05 PM, João Henrique Ferreira de Freitas
<joaohf at gmail.com> wrote:
> If the following .wks is set up to mmcblk0 (sdcard)
>
> part /boot --source bootimg-pcbios --ondisk mmcblk0 --fstype=msdos --label boot --active --align 1024
> part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label platform --align 1024
>
> bootloader  --timeout=0  --append="rootwait rootfstype=ext3 video=vesafb vga=0x318 console=tty0"
>
> And the user inspect this file /var/tmp/wic/build/hdd/boot/syslinux.cfg,
> the 'root=' will be '/dev/mmcblk02' instead of '/dev/mmcblk0p2'.
>
> This patch add the support to constrain the disk and make the adjusts when
> mmcblk devices are used.
>
> I am not sure if is not necessary to fix others places. Until now it's the single point.

I think this is a sub-optimal solution; we ought to add support for
UUID as this is ensure to be stable across boot iterations; we cannot
guarantee all kernels will enumerate the devices in same order,
specially in DeviceTree time where this is async. There are some
patches merged in master to partially address this issue for the grub
and maybe you could see if a similar approach fits here as well.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list