From: Dongwoo Lee Date: Tue, 15 May 2018 02:14:45 +0000 (+0900) Subject: Add pre-defined partition information for RPI3 X-Git-Tag: submit/devel/20180917.094703~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f339cc9c3922b853b0da987fc64bf216d4dea26b;p=platform%2Fcore%2Fsystem%2Finitrd-flash.git Add pre-defined partition information for RPI3 The partition information about RPI3 will be added. This inforamation is retrieved from sd_fusing script in RPI3 kernel repository. Change-Id: Iac335daf5c285264c8d73a21c616035373028a5b Signed-off-by: Dongwoo Lee --- diff --git a/packaging/initrd-flash.spec b/packaging/initrd-flash.spec index 8d2a24b..79f61f1 100644 --- a/packaging/initrd-flash.spec +++ b/packaging/initrd-flash.spec @@ -11,11 +11,20 @@ BuildRequires: cmake Requires: util-linux Requires: bash Requires: initrd-recovery +Requires: fm-data %description Provide kernel-based target image downloader. This package would be included in partition image for RAMDISK2 (ramdisk-recovery.img) +%package -n fm-data-rpi3 +Summary: RaspberryPi3 specific data for flash manager +Group: System/Utilities +Provides: fm-data + +%description -n fm-data-rpi3 +Provide flash-manager with partition table for flashing image and files of Raspberry Pi 3 board + %prep %setup -q @@ -37,6 +46,8 @@ cp ./scripts/flash-init.sh %{buildroot}%{init_script_dir}/flash-init.sh mkdir -p %{buildroot}%{_datadir}/initrd-recovery/initrd.list.d cp ./scripts/41-flash.list %{buildroot}%{_datadir}/initrd-recovery/initrd.list.d +cp ./partition.info %{buildroot}%{_datadir}/partition.info + %post %postun @@ -47,3 +58,6 @@ cp ./scripts/41-flash.list %{buildroot}%{_datadir}/initrd-recovery/initrd.list.d %attr(700,root,root) %{_bindir}/flash-manager %attr(700,root,root) %{init_script_dir}/*.sh %attr(700,root,root) %{_datadir}/initrd-recovery/initrd.list.d/*.list + +%files -n fm-data-rpi3 +%attr(700,root,root) %{_datadir}/partition.info diff --git a/partition.info b/partition.info new file mode 100644 index 0000000..e97c177 --- /dev/null +++ b/partition.info @@ -0,0 +1,8 @@ +p:boot.img:/dev/mmcblk0p1:x +p:rootfs.img:/dev/mmcblk0p2:x +p:system-data.img:/dev/mmcblk0p3:x +p:user.img:/dev/mmcblk0p5:x +p:modules.img:/dev/mmcblk0p6:x +p:ramdisk.img:/dev/mmcblk0p7:x +p:ramdisk-recovery.img:/dev/mmcblk0p8:x +f:Image:/dev/mmcblk0p1:/