All times are UTC-06:00




Post new topic  Reply to topic  [ 17 posts ] 
Author Message
PostPosted: Mon Nov 14, 2011 4:18 pm 
Offline

Joined: Thu Nov 10, 2011 10:24 am
Posts: 30
Is it possible to install the Debian Efika MX ARMHF image directly to the "onboard" storage? (e.g. /dev/sda)

I'd like to replace the instance of Ubuntu with Debian Hard-Float (ARM / Efika MX).

Instructions?

Thanks for the help!

--
Jeremy


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 4:52 pm 
Offline
Genesi

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

Everything is possible :-)

You can make an archive from the SD rootfs first on another computer, copy the archive to a USB stick.
Then, you boot from the SD card, mount the internal drive (sda) and delete the existing rootfs. Extract the archived rootfs from the USB stick in its place.

Make sure you make appropriate changes to /etc/fstab for instance.

Should all of this go very wrong, make sure you can re-image the system with the SD card here:
http://www.powerdeveloper.org/platforms/efikamx/linux

None of what I just said here is officially supported by Genesi, so the forums here are the way to get help for this should you need it.


Johan.

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

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 5:27 pm 
Offline

Joined: Thu Nov 10, 2011 10:24 am
Posts: 30
If I'm deciphering your suggestion(s), here are the steps one could take to install Debian locally:

1) Download the Debian SDHC image
http://www.powerdeveloper.org/asset/by-id/126

2) Put the image on the SDHC media
~/tmp $ xz –dc efika-armhf+3d-20110925.img.xz | dd of=/dev/sdf

3) Mount the SDHC media and create an archive of the rootfs
/mnt/sdf2/ $ tar -cvf /mnt/usb/efika-armhf+3d-20110925.tar .

4) Reboot the MX Smartbook using the SDHC media

5) Delete the instance of Ubuntu on the rootfs (/dev/sda2)
/mnt/sda2/ $ rm -Rf .

6) Extract the archive (e.g. from USB media) to /dev/sda2
/mnt/sda2 $ tar -xvf /mnt/usb/efika-armhf+3d-20110925.tar

What about the boot loader? Will /dev/sda1 (/boot) need to be updated as well?

Thanks again!


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 5:38 pm 
Offline
Genesi

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

The bootloader and the kernel (on sda1) should be fine.


Johan.

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

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 10:48 pm 
Offline

Joined: Mon Aug 01, 2011 7:44 pm
Posts: 13
Location: TX
Does the kernel not have to be recompiled for armhf support?

_________________
Adventum in altum


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 11:04 pm 
Offline
Genesi

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

No, the kernel does not need to be recompiled since it is the userspace ABI that changes with ArmHF.
Kernel image and kernel modules are not affected by the userspace ABI.


Johan.

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

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Tue Nov 15, 2011 8:19 am 
Offline

Joined: Sun Mar 27, 2011 1:18 pm
Posts: 183
Location: Hornell, NY
Quote:

Hi.

The bootloader and the kernel (on sda1) should be fine.


Johan.



I think the armhf demo image contains an older version of the kernel so you may want to backup /lib/modules and restore it after you put the armhf root onto the Efikia. The initrd would also likely need to be updated too. I can try and test installing the armhf image to my efika's internal storage later tonight and write some steps here, then I would know for sure.


Top
   
 Post subject:
PostPosted: Tue Nov 15, 2011 12:33 pm 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Actually it should be much easier;

Do the same thing Johan suggested (make a tarball of the SD card). You will find a script that does this ON THE INSTALLER CARD for the standard Maverick (it's called maketarball). All you need to give it is the root directory and a location for the tarball (it will perhaps call it maverick-date.tar.gz though, sorry).

You can then get the installer card, replace the /home/oem/maverick-* tarball with your tarball and it will install that. If you change the name, edit /home/oem/oem-installer too (it's something like line 8).

We've been shipping a self-installing SD card for a little while now. We're about to make more of an effort with armhf as official Ubuntu releases past Maverick are basically not usable on ARM platforms (too many bugs, and yes I have Pandas and Beagles to compare; they're worse). There will be a Live (i.e. desktop), self-installing SD card before the end of the year. I am kind of waiting for the archive to stabilize a little for a few features though.
Quote:
If I'm deciphering your suggestion(s), here are the steps one could take to install Debian locally:

1) Download the Debian SDHC image
http://www.powerdeveloper.org/asset/by-id/126

2) Put the image on the SDHC media
~/tmp $ xz –dc efika-armhf+3d-20110925.img.xz | dd of=/dev/sdf

3) Mount the SDHC media and create an archive of the rootfs
/mnt/sdf2/ $ tar -cvf /mnt/usb/efika-armhf+3d-20110925.tar .

4) Reboot the MX Smartbook using the SDHC media

5) Delete the instance of Ubuntu on the rootfs (/dev/sda2)
/mnt/sda2/ $ rm -Rf .

6) Extract the archive (e.g. from USB media) to /dev/sda2
/mnt/sda2 $ tar -xvf /mnt/usb/efika-armhf+3d-20110925.tar

What about the boot loader? Will /dev/sda1 (/boot) need to be updated as well?

Thanks again!

_________________
Matt Sealey


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

Joined: Thu Nov 10, 2011 10:24 am
Posts: 30
Post Script:
I'm awaiting the arrival of the SDHC media I ordered from Amazon.

I don't have an "oem" user, the default user associated with my Smartbook is "efika".

Thanks again for the help! I'll post details as I progress.


Top
   
 Post subject:
PostPosted: Sun Dec 04, 2011 3:09 am 
Offline

Joined: Fri Dec 02, 2011 9:39 am
Posts: 9
Location: UK
Apologies for the newbie question, but how do you get it to boot from SDHC?


Top
   
 Post subject:
PostPosted: Sun Dec 04, 2011 6:27 am 
Offline

Joined: Fri Nov 11, 2011 10:21 am
Posts: 21
Location: Netherlands
Quote:
how do you get it to boot from SDHC?
Just stick it in and boot the machine, atleast that's how it works on the nettop.

Frank.


Top
   
 Post subject:
PostPosted: Wed Jan 04, 2012 5:45 pm 
Offline

Joined: Wed Oct 19, 2011 4:02 pm
Posts: 24
Does it work on the smarttop too ?


Top
   
 Post subject:
PostPosted: Thu Jan 05, 2012 2:37 am 
Offline

Joined: Sun Dec 04, 2011 5:21 pm
Posts: 13
Hello,
Quote:
Does it work on the smarttop too ?
Yes wihtout problems as you don't change the kernel version.

You do the first on a SDCard and then after a working boot with your Debian Sid armhf on it you can then begin to work to do the stuff for the /dev/sda

Just think about /etc/fstab, /boot/boot.script and making a new /boot/boot.scr

I did it and the armhf is really faster than the Ubuntu armel image in the smarttop by default.

Pascal.


Top
   
 Post subject:
PostPosted: Sun Jan 15, 2012 3:02 pm 
Offline

Joined: Wed Jan 11, 2012 2:13 pm
Posts: 7
I did this way:

Flashed an SD Card with the latest Maverick image.
Flashed a second one with Debian-Armhf-3D image and made a tarball of its rootfs.

Placed the obtained tarball in the /home/oem folder of Maverick SD installer card and modified the oem-installer file accordingly.

Rebooted, but without success.

Booted again with Armhf-3D SD card to check out which kernel it ran:
Code:
$ uname -a
$ Linux efikamx-armhf.lan 2.6.31.14.25-efikamx #1 Wed Sep 21 22:16:42 EEST 2011 armv7l GNU/Linux
So the installer didn't place a uImage and uInitrd in the SSD bootfs for the 2.6.31.14.25-efikamx kernel.

I added them copiyng from SD Card bootfs:
Code:
# cp /mnt/mmcblk0p1/uImage-2.6.31.14.25-efikamx /mnt/sda1
# cp /mnt/mmcblkop1/uInitrd-2.6.31.14.25-efikamx /mnt/sda1

and.....

# ln -s uImage-2.6.31.14.25-efikamx uImage
# ln -s uInitrd-2.6.31.14.25-efikamx uInitrd
Now the SB booted fine and kernel boot messages appeared on screen, but I got a blank screen.
Got a shell with ALT+F1 to log in, but no luck.
It returns "login incorrect" with demo and root default passwords.

Sorry for the long post.
Some hint?
thank you

Stan


Top
   
 Post subject:
PostPosted: Sun Jan 15, 2012 8:55 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.
Quote:
I did this way:

Flashed an SD Card with the latest Maverick image.
Flashed a second one with Debian-Armhf-3D image and made a tarball of its rootfs.

Placed the obtained tarball in the /home/oem folder of Maverick SD installer card and modified the oem-installer file accordingly.

Rebooted, but without success...
These steps should work fine - can you tell me how it failed exactly?


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  [ 17 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 14 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