All times are UTC - 6 hours




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


Thu Nov 10, 2011 10:24 am

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
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2011 4:52 pm 
Offline
Genesi


Mon Jan 30, 2006 2:28 am

409

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
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2011 5:27 pm 
Offline


Thu Nov 10, 2011 10:24 am

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
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2011 5:38 pm 
Offline
Genesi


Mon Jan 30, 2006 2:28 am

409

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
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2011 10:48 pm 
Offline


Mon Aug 01, 2011 7:44 pm

13

TX
Does the kernel not have to be recompiled for armhf support?
Adventum in altum


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


Mon Jan 30, 2006 2:28 am

409

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
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2011 8:19 am 
Offline


Sun Mar 27, 2011 1:18 pm

180

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
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2011 12:33 pm 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, 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.

remy.je wrote:
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, Genesi USA Inc.
Product Development Analyst


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


Thu Nov 10, 2011 10:24 am

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
 Profile  
 
 Post subject:
PostPosted: Sun Dec 04, 2011 3:09 am 
Offline


Fri Dec 02, 2011 9:39 am

9

UK
Apologies for the newbie question, but how do you get it to boot from SDHC?


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


Fri Nov 11, 2011 10:21 am

21

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
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2012 5:45 pm 
Offline


Wed Oct 19, 2011 4:02 pm

24
Does it work on the smarttop too ?


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


Sun Dec 04, 2011 5:21 pm

13
Hello,

kikadisa wrote:
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
 Profile  
 
 Post subject:
PostPosted: Sun Jan 15, 2012 3:02 pm 
Offline


Wed Jan 11, 2012 2:13 pm

4
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
 Profile  
 
 Post subject:
PostPosted: Sun Jan 15, 2012 8:55 pm 
Offline
Genesi


Mon Jan 30, 2006 2:28 am

409

Finland
Hi.

stan wrote:
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group