All times are UTC-06:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Nov 20, 2011 4:24 pm 
Offline

Joined: Sat Nov 05, 2011 9:59 am
Posts: 59
Location: Bloomington, IL
Whats the best/easiest way to move an install that works from an SD card to the internal memory of the Smartbook?

~Jeff


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 6:20 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

Compress the root and boot filesystem from the SD card and then have a look at the installer image here:
http://www.powerdeveloper.org/platforms/efikamx/linux

You can see that under /home/oem there is the compressed rootfs for the installer. There is also a script which will run the installation.

You can edit the script and replace the file with your own compressed file system.

You can also have a look at the maketarball script in the /home/oem directory which is normally used to create a compressed file system from the internal drive for purposes of installing it on an other machine.


Johan.

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 8:00 pm 
Offline

Joined: Sat Nov 05, 2011 9:59 am
Posts: 59
Location: Bloomington, IL
Is there a way I can mount the ARMHF .img file and if so, how? (mount -o loop doesn't work by default). Or do I need to write it to an SD card?

~Jeff


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 10:44 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

Easiest is to make an actual SD card.

Johan.

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2011 3:51 am 
Offline

Joined: Wed Sep 07, 2011 2:39 am
Posts: 5
I found a way to mount the img file (from this thread http://forums.fedoraforum.org/showthread.php?t=211093)

I had to install kpartx (apt-get install kpartx)

Then I did:
Code:
# losetup -f efika-armhf+3d-20110925.img
# losetup -a
/dev/loop0: [fe00]:3146517 (efika-armhf+3d-20110925.img)
# kpartx -a -v /dev/loop0
add map loop0p1 (254:1): 0 390640 linear /dev/loop0 16
add map loop0p2 (254:2): 0 7053824 linear /dev/loop0 390656
# ls /dev/mapper/
control loop0p1 loop0p2
# mount /dev/mapper/loop0p2 /mnt/img
--Edit--
Off course that should be done with the maverick image, if you want to find the maketarball and oem-installer script :)


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2011 1:11 pm 
Offline

Joined: Sat Nov 05, 2011 9:59 am
Posts: 59
Location: Bloomington, IL
Thanks for this hde5 - worked like a charm.

~Jeff


Top
   
 Post subject:
PostPosted: Tue Nov 22, 2011 10:11 pm 
Offline

Joined: Sat Nov 05, 2011 9:59 am
Posts: 59
Location: Bloomington, IL
Slowing making progress on my installer. So I edited the the latest maverick image to install my own root file system (and edited the installer script to use it). I loaded the installer onto a SD card and it booted right up and installed without complaints.

Upon rebooting though the system didn't give any out put, so I loaded up a bootable SD card and checked out the file system of the local SSD. My custom file system was located at /dev/sda2 as it should be, but I noticed /dev/sda1 was empty still. Then, I manually copied over the contents of the first partition on my SD card to the first partition on the SSD (containing the kernel intrid and bootscript and the such).

Now when I try to boot from the internal system it gets me to a BusyBox prompt and I have an error message complaining "/dev/mmcblk0p2 does not exist" so something is still clearly looking for the SD card install. Any ideas what piece in this puzzle I might be missing to make this work?

Regards,
~Jeff


Top
   
 Post subject:
PostPosted: Tue Nov 22, 2011 11:00 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi,

Instead of copying the files from the first SD card partition, copy those from the actual install tarball which you can find in the /home/oem directory of the standard Maverick Linux image here:
http://www.powerdeveloper.org/platforms/efikamx/linux
This tarball will contain a boot/ directory; that's the one you want.

You could also set the right parameters in the boot.script file, but copying them over is probably less error prone, and you can mount the image with losetup like you did before without creating an SD card.


Johan.

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group