Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
[GDP-370] Create a 'dd' supported image for Minnowboard without sudo Created: 08/Sep/16 Updated: 23/Dec/16 Status: Project: Component/s: Affects Version/s: Fix Version/s: To Do GENIVI Development Platform None None Type: Reporter: Resolution: Labels: Remaining Estimate: Time Spent: Original Estimate: Task Tom Pollard Unresolved gdp_master, gdp_v11 Not Specified Issue Links: Duplicate is duplicated by GDP-364 Creation of .sdimg for Minnowboard Re... To Do Relates relates to GDP-323 Use go.cd to provision gold master bu... Done Epic Link: Epic Link: GDP Master GDP Master None Priority: Assignee: Votes: Low Zeeshan Ali 0 Not Specified Not Specified Description In previous releases of GDP, .sdimg images for Minnowboard have been released. This process was handled manually via scripting: 'dd if=/dev/zero of="genivi-dev-platform-minnowboard.sdimg" bs=1024 count=1M sudo losetup -d /dev/loop0 sudo losetup /dev/loop0 "genivi-dev-platform-minnowboard.sdimg" sudo bash ./mkefidisk.sh /dev/loop0 genivi-dev-platform-intel-corei7-64.hddimg /dev/mmcblk0 sudo losetup -d /dev/loop0' This is not suitable for CI (go.cd) as workers for valid reasons do not have sudo privileges or the ability to mount. Currently I'm looking at the use of Wic: http://www.yoctoproject.org/docs/2.1/mega-manual/mega-manual.html#using-a-providedkickstart_file I've been able to use the wic template for mkefdisk, to create a dd'able USB image. This needs some modification (like SD (mmcblk) by default) etc. This template would eventually be commited to meta-genivi-dev, in a scripts directory. Comments Comment by Tom Pollard [ 09/Sep/16 ] I've managed to adapt the generic mkefdisk.wks template, currently left with: part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk mmcblk0 --label EFI --active --align 1024 part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label ROOT --align 1024 part swap --ondisk mmcblk0 --size 379 --label swap --fstype=swap bootloader --timeout=10 --append="rootwait rootfstype=ext3 console=ttyPCH0,115200 console=tty0 vmalloc=256MB snd-hda-intel.enable_msi=0" However this and the original template seem to produce a problematic SWAP partition, as each initial boot of the images produces: 'a start job is running for dev-sda3.device' After 90 seconds the board reboots and launches GDP as normal. I've taken a look at the mkefdisk.sh script that is used to flash the mmc with .hddimg as this produces a swap partition that does not show this behaviour on first boot. Comment by Agustin Benito Bethencourt [ 12/Sep/16 ] Tom Pollard does this affect only to Minnowboard or to every board? Comment by Tom Pollard [ 14/Sep/16 ] Agustin Benito Bethencourt This is aimed at minnowboard only, in terms of release images Comment by Agustin Benito Bethencourt [ 21/Sep/16 ] This feature will not be part of the release so Tom Pollard will pick it up afterwards. Comment by Tom Pollard [ 07/Nov/16 ] I've not had chance to look at this further, I believe it is still of interest for Genivi to pursue more consumable images Comment by Robert Marshall [ 11/Nov/16 ] Updated script in ticket description in line with Comment by Agustin Benito Bethencourt [ 14/Nov/16 ] Transition: Issue assigned to Zeeshan Ali Generated at Fri May 12 13:55:04 PDT 2017 using JIRA 7.0.0#70107sha1:6cd5e8da0433ba37cd68ac1f1a6078fc22964e15.