Wind River Support Network

HomeDefectsLIN6-7743
Fixed

LIN6-7743 : make usb-image fails if image file location is not an absolute path

Created: Jun 20, 2014    Updated: Dec 3, 2018
Resolved Date: Jul 2, 2014
Found In Version: 6.0.0.7
Fix Version: 6.0.0.10
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config

Description

$ make usb-image
Location to write image file [/some/project/export/usb.img]: usb-ovp-host.img
...
fdisk -H 255 -S 63 -C 378 -l -u ./img_tmp.0
#      OUTPUT:
#      OUTPUT: Disk ./img_tmp.0: 3109 MB, 3109027840 bytes
#      OUTPUT: 255 heads, 63 sectors/track, 377 cylinders, total 6072320 sectors
#      OUTPUT: Units = sectors of 1 * 512 = 512 bytes
#      OUTPUT: Sector size (logical/physical): 512 bytes / 512 bytes
#      OUTPUT: I/O size (minimum/optimal): 512 bytes / 512 bytes
#      OUTPUT: Disk identifier: 0xd8ec2912
#      OUTPUT:
#      OUTPUT:        Device Boot      Start         End      Blocks   Id  System
#      OUTPUT: ./img_tmp.0p1   *        2048      133119       65536    e  W95 FAT16 (LBA)
#      OUTPUT: ./img_tmp.0p2          133120     6072319     2969600   83  Linux
dd if=./img_tmp.0 of=./img_tmp.0-tmp bs=0 count=1
#      OUTPUT: dd: invalid number `0'
mv ./img_tmp.0-tmp ./img_tmp.0
#      OUTPUT: mv: cannot stat `./img_tmp.0-tmp': No such file or directory
...
# Copying files
mcopy -o /some/project/layers/wrlcompat/data/syslinux/help.txt /some/project/layers/wrlcompat/data/syslinux/splash.lss /some/project/layers/wrlcompat/data/syslinux/splash.txt m:
#      OUTPUT: init M: non DOS media
#      OUTPUT: Cannot initialize 'M:'
#      OUTPUT: Bad target m:
ERROR: executing: mcopy -o /some/project/layers/wrlcompat/data/syslinux/help.txt /some/project/layers/wrlcompat/data/syslinux/splash.lss /some/project/layers/wrlcompat/data/syslinux/splash.txt m: 2>&1 - return 256
make: *** [usb-image] Error 1

Other Downloads


Live chat
Online