The failures were slightly different. My first attempt went as follows:
1. Downloaded and decompressed the latest 3.0 ivi-XYZ.raw.bz2 into a
bootable USB memory stick with Gparted on it. NOT overwriting the entire
stick, but in the filesystem on it.
This resulted in a ivi-XYZ.raw being next to the Gparted.
2. Stuck this bootable stick into the machine. Set it to boot from the
stick (which contained Gparted and a decent micro boot environment)
3. In the shell of this environment, did a: dd if= ivi-XYZ.raw of=/dev/sda
.... in other words, wrote the downloaded raw data over the hard drive
4. Used the refresh command within Gparted. This did two things: it saw
two new partitions created on the disk, and complained that the
backup MBR wasn't properly set to the end of the partition. It asked if
I wanted to fix it.
5. I let Gparted fix the backup MBR, reset the box, and attempted to boot
from disk.
Result: Received a "No bootable device" error.
Attempt #2 went as follows:
1. Downloaded and installed bmaptool
2. Since I already had ivi-XYZ.raw.bz2 downloaded, I just tried using it to
completely overwrite a different stick.
3. bmaptool complained about a missing --nobmap option, so I added it.
4. Tried to boot off of the stick that this command created.
Result: A black screen on the device. No error about a non-bootable device.
In the successful attempt, I simply downloaded the .map file from the
website, and removed the --nobmap option. This worked.
It may be that I did something very stupid, but I don't see anything
immediately wrong with my first two attempts, except that they didn't end
right.
Thanks much. I'll be writing something new in a bit on this list as well.
Steve Maurer
On 13 August 2013 00:11, Artem Bityutskiy
<[email protected]>wrote:
> Hi Steven,
>
> On Mon, 2013-08-12 at 11:27 -0700, Maurer, Steven wrote:
>
> >
> > I made a mistake in describing the issue. I did actually dd to the
> > raw disk itself, not a partition. Had I done it to a partition,
> > Gparted wouldn't have updated the partition table on refresh.
>
> Just FYI, the 'partprobe' tool makes the kernel to re-read the partition
> table.
>
> > I also set up bmaptool and tried to directly write to a different USB
> > stick to make it bootable using the ---nobmap option. That failed as
> > well.
>
> Oh, could you please describe the failure? I am interested to fix it.
>
> Another thing is - I wonder why you used --nobmap? I guess our
> documentation is imperfect, I am willing to fix or restructure it if you
> have suggestions.
>
>
> https://wiki.tizen.org/wiki/IVI/IVI_Installation#How_to_Install_Tizen_IVI_images
>
> suggests to use
>
> $ bmaptool copy http://download.tizen.org/..blah.../ivi-XYZ.raw /dev/sdX
>
> I mean, for me things look obvious, because I deal with this for long
> time. You are the first time user, and your suggestions about how the
> docs/tool should be improved are welcome.
> >
> > However, bmaptool using both the .raw.bz2 AND the .bmap file seems to.
>
> I guess you mean it works after you have downloaded these 2 files. I
> believe that if it works without '--nobmap', it should also work with
> '--nobmap'... If this is not the case, I am willing to fix the tool.
>
> > So thank you both for pointing me in the right direction.
> >
> >
> > I also think I may update the Tizen wiki to make it clear that using
> > dd of the raw file simply doesn't work, at least not from anything
> > downloaded off of the Tizen website.
>
> No, it does work! Did you use:
>
> $ bzcat ivi-XYZ.raw.bz2 | dd of=/dev/sdX
>
> ?
>
>
> > The bmap doesn't just accelerate the transfer, it is an integral part
> > of ensuring that the data is all in the correct place.
>
> DD should also work, but bmaptool is faster and safer, because it also
> verifies SHA1 of all the data, and it also safer because it won't
> destroy your system if you give it /dev/sda by mistake.
> >
> > Once you have a bootable USB stick, I suspect it may be possible to dd
> > from raw device to raw device, though I haven't tested that.
>
> Yes, but this is going to be dead slow...
>
> --
> Best Regards,
> Artem Bityutskiy
>
>
--
Kind Regards
Steven Maurer
-------------------
Infotainment Engineer
MSX on behalf of Jaguar Land Rover
One World Trade Center, 121 Southwest Salmon Street, 11th Floor, Portland,
Oregon, 97204
Email: [email protected]
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi