summaryrefslogtreecommitdiff
path: root/kflash.sh
AgeCommit message (Collapse)Author
2021-04-24Turn dtbs platform variable into arrayLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-03-10kflash: Don't rebuild imageLaurent Pinchart
There's no need to rebuild the image in kflash, we only need to source the image type support script to get the correct image file name. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-03-10kflash: Use lsblk instead of blkidLaurent Pinchart
lsblk doesn't require root permisions. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-03-10kflash: Use block device LABEL attribute if PARTLABEL isn't availableLaurent Pinchart
If the partition table doesn't support labels, use the filesystem label as a fallback. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-03-10kflash: Fix flash partition label checkLaurent Pinchart
When checking labels for flash partitions, the partition device is created with an incorrect (and unset) variable name for the partition index. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-09-02Support overriding the image file nameLaurent Pinchart
Add support for overriding the image file name, using the same mechanism as for DTB files. The 'image' parameter can specify both the image make target and image destination file name, separated by a ':'. If no ':' is found, the image make target is used as the image destination file name. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-09-02kflash: Add argument to select which partitions to flashLaurent Pinchart
The --partitions argument can be used to select which partitions to flash. By default kflash will flash all partitions defined in the platform file. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-02-26Add a kflash.sh flashing scriptLaurent Pinchart
The script eases flashing a kernel, modules and DT to a removable device. It detects the device based on partition name patterns defined in platform files, performs sanity checks to avoid overwriting system disks (such as making sure none of the target partitions are already mounted), copies files to raw partitions with dd or to file systems with cp or rsync, and beeps when done. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>