Creating image

Comments & issues
great8
Phidgetsian
Posts: 8
Joined: Mon Nov 26, 2012 9:57 pm
Contact:

Creating image

Postby great8 » Mon Nov 26, 2012 10:01 pm

I am in need of assistance with creating an image of the phidget SBC. I have the base image the way I want it on one of my phidget SBC board. Now, I need to capture an image of the board and deploy it to other Phidget SBC boards. How can this be done. I have tried the dd command and I also downloaded and tried partimage. These do not work well because of the file system. At least I have not been successful with them.

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Creating image

Postby Patrick » Tue Nov 27, 2012 10:12 am

SBC1 or SBC2?

-Patrick

great8
Phidgetsian
Posts: 8
Joined: Mon Nov 26, 2012 9:57 pm
Contact:

Re: Creating image

Postby great8 » Tue Nov 27, 2012 10:41 am

SBC2

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Creating image

Postby Patrick » Tue Nov 27, 2012 11:09 am

We create the system_ubi.img from a folder on the build machine like this:
$ROOTFS = the root filesystem folder

mkfs.ubifs -m 2KiB -e 126KiB -c 4050 -r $ROOTFS/ output/system_ubifs.img
ubinize -o output/system_ubi.img -m 2KiB -p 128KiB -s 512 ubinize.cfg

where ubinize.cfg is:

# Section header
[rootfs]
# Volume mode (other option is static)
mode=ubi
# Source image
image=output/system_ubifs.img
# Volume ID in UBI image
vol_id=0
vol_size=64128KiB
# Allow for dynamic resize
vol_type=dynamic
# Volume name
vol_name=rootfs
# Autoresize volume at first mount
vol_flags=autoresize

For creating a ubi filesystem on the SBC itself - you may be able to do this, writing to a file on a USB flash drive, but I have not tried this. You could also scp the root filesystem over to a linux box 1st, then create the image.

-Patrick

-Patrick

great8
Phidgetsian
Posts: 8
Joined: Mon Nov 26, 2012 9:57 pm
Contact:

Re: Creating image

Postby great8 » Wed Nov 28, 2012 10:21 pm

I tried the following protocol but it failed. So I booted the phidget and installed all of the components and code for my project. I now want to capture an image of the phidget OS and deploy it to another phidget. Cant I just use the dd command and make a bin, img or iso image of the phidget OS? dd if=/dev/spa/ of=/media/usb9/image.bin? Then plug the USB to the destination phidegt and restore the image to another phidget? Or can I just create a bootable USB with a image on it and have the phidget boot to the USB?

Nana111
Fresh meat
Posts: 1
Joined: Wed Mar 12, 2014 8:32 pm
Contact:

Re: Creating image

Postby Nana111 » Wed Mar 12, 2014 8:52 pm

Hi there
Although i have never tried to create a bootable USB with a image on it and have the phidget boot to the USB,i tried to
create an image using the image processing tool.They offer detailed tutorial and free trial package for new users.So i'd like to suggest you find some third party image program to help you out.That may make your work easier.Hope you success.

User avatar
Patrick
Lead Developer
Posts: 3176
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Creating image

Postby Patrick » Wed Apr 23, 2014 12:41 pm



Return to “General”

Who is online

Users browsing this forum: luneart and 2 guests