Power Developer
https://powerdeveloper.org/forums/

Moving SD install to Internal Memory
https://powerdeveloper.org/forums/viewtopic.php?f=7&t=2117
Page 1 of 1

Author:  JeffHoogland [ Sun Nov 20, 2011 4:24 pm ]
Post subject:  Moving SD install to Internal Memory

Whats the best/easiest way to move an install that works from an SD card to the internal memory of the Smartbook?

~Jeff

Author:  PurpleAlien [ Sun Nov 20, 2011 6:20 pm ]
Post subject: 

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.

Author:  JeffHoogland [ Sun Nov 20, 2011 8:00 pm ]
Post subject: 

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

Author:  PurpleAlien [ Sun Nov 20, 2011 10:44 pm ]
Post subject: 

Hi.

Easiest is to make an actual SD card.

Johan.

Author:  hde5 [ Mon Nov 21, 2011 3:51 am ]
Post subject: 

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 :)

Author:  JeffHoogland [ Mon Nov 21, 2011 1:11 pm ]
Post subject: 

Thanks for this hde5 - worked like a charm.

~Jeff

Author:  JeffHoogland [ Tue Nov 22, 2011 10:11 pm ]
Post subject: 

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

Author:  PurpleAlien [ Tue Nov 22, 2011 11:00 pm ]
Post subject: 

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.

Page 1 of 1 All times are UTC-06:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/