maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Ubuntu (https://talk.maemo.org/forumdisplay.php?f=55)
-   -   Ubuntu 12.04 on N900 with U-Boot (https://talk.maemo.org/showthread.php?t=82819)

macey 2012-07-06 11:14

Re: Ubuntu 12.04 on N900 with U-Boot
 
Quote:

Originally Posted by unknown.obvious (Post 1232843)
@ gregoranderson
@ macey

Ok, thanks. Let's stop here. The thread is about ubuntu on n900. Your favorite DE on Desktop seems a bit OT.

Agreed! Sorry, following this thread as interested in putting Ubuntu on MY N900.
Seems to be beyond my confidence levels, haven't plucked up the courage to put U-Boot on yet.:confused:

caveman 2012-07-06 17:00

Re: Ubuntu 12.04 on N900 with U-Boot
 
@freemangordon: I can only mount the root partition on my uSD with your 2.6.37+ kernel. Would you please comment on the patches you have applied over nemo's kernel that lead to 2.6.37+?

unknown.obvious 2012-07-06 22:16

Re: Ubuntu 12.04 on N900 with U-Boot
 
Interessting set of scripts. https://github.com/trapd00r/n900 (but seem to be for maemo)





EDIT & PROPOSAL:


Found this:
https://github.com/robertcnelson/netinstall

I must say, that looks good. I propose we use this and add the n900 to this script. This would make it simply more comfortable to install Ubuntu. This would also add Debian as a choice. I'd do it myself but scripting is not exactly my strong point.

qwazix 2012-07-06 22:22

Re: Ubuntu 12.04 on N900 with U-Boot
 
sorry to continue the window manager discussion but I believe this is a bit more relevant. Until 11.04 and maybe 11.10 hildon-desktop (the diablo one) was part of the official ubuntu repos. There is also a launchpad repository with cordia for ubuntu.

caveman 2012-07-14 09:58

Re: Ubuntu 12.04 on N900 with U-Boot
 
this is a somewhat unrelated but nice to see what else is going on (notice the chroot): http://jeffhoogland.blogspot.com.br/...ry-online.html

unknown.obvious 2012-07-14 11:10

Re: Ubuntu 12.04 on N900 with U-Boot
 
cloned some repos for backup. http://code.google.com/p/n900/source/browse/

iamsrp 2012-07-16 00:09

Re: Ubuntu 12.04 on N900 with U-Boot
 
There's a small typo in the install.sh script which turns two arguments into one:

=== modified file 'install.sh'
*** install.sh 2012-06-28 02:57:10 +0000
--- install.sh 2012-07-15 20:39:48 +0000
***************
*** 306,312 ****
[[ -f "$image_name_raw" ]] || ( [[ -f $image_name ]] && zcat $image_name > "$image_name_raw" ) || (wget "$url" && zcat "$image_name" > "$image_name_raw" ) || exit 1
mkdir -p "$mountpoint_ubuntu"
skip="$(parted -m $image_name_raw unit B print | grep '^2' | cut -d: -f2 | sed 's/B//')"
! mount -o "loop,offset=${skip}" -t auto "$image_name_raw $mountpoint_ubuntu" || exit 1
rm "${mountpoint_ubuntu}SWAP.swap"
cp -av "$mountpoint_ubuntu"* "$mountpoint_target"
umount "$mountpoint_ubuntu"
--- 306,312 ----
[[ -f "$image_name_raw" ]] || ( [[ -f $image_name ]] && zcat $image_name > "$image_name_raw" ) || (wget "$url" && zcat "$image_name" > "$image_name_raw" ) || exit 1
mkdir -p "$mountpoint_ubuntu"
skip="$(parted -m $image_name_raw unit B print | grep '^2' | cut -d: -f2 | sed 's/B//')"
! mount -o "loop,offset=${skip}" -t auto $image_name_raw $mountpoint_ubuntu || exit 1
rm "${mountpoint_ubuntu}SWAP.swap"
cp -av "$mountpoint_ubuntu"* "$mountpoint_target"
umount "$mountpoint_ubuntu"

iamsrp 2012-07-19 15:45

Re: Ubuntu 12.04 on N900 with U-Boot
 
Has anyone tried the install script of late?

I'm currently going with the basic debian installation and the nemo kernel but, alas, it doesn't seem to work since there is no initrd.img in the kernel-adaptation-n900-2.6.37 rpm. Does anyone have a work-around? (I saw earlier in the thread that you don't actually need the ramdisk to boot but it wasn't clear from the post what changes to make in order to do that.)

caveman 2012-07-19 16:38

Re: Ubuntu 12.04 on N900 with U-Boot
 
Quote:

Originally Posted by iamsrp (Post 1239833)
Has anyone tried the install script of late?

Last time was last week. I could not understand what you are trying to achieve.

iamsrp 2012-07-20 04:08

Re: Ubuntu 12.04 on N900 with U-Boot
 
I guess I am mainly trying to figure out which options work for people. I tried choosing:

# grep . options/selected_* | cut -c-80
options/selected_firmware_source:meego
options/selected_image_source:ubuntu-core
options/selected_kernel:nemo
options/selected_target:/dev/sdc
options/selected_target_type:disk


but that just yields a boot directory looking like:

total 5084
-rw-r--r-- 1 root root 300 Jul 18 20:49 boot.script
-rw-r--r-- 1 root root 62453 Jun 26 14:33 config-2.6.37-10.7.Nemo.Adaptation.N900-adaptation-n900
-rw-r--r-- 1 root root 1170840 Jun 26 14:33 System.map-2.6.37-10.7.Nemo.Adaptation.N900-adaptation-n900
-rw-r--r-- 1 root root 1972136 Jun 26 14:33 uImage
-rwxr-xr-x 1 root root 1972072 Jun 26 14:33 vmlinuz-2.6.37-10.7.Nemo.Adaptation.N900-adaptation-n900

i.e. no ramdisk.

If folks have options which seem to work out-of-the box then that would be great. Else I'll work through the permutations :)

[EDIT]

I ended up creating a ramdisk with:

update-initramfs -c -k 2.6.37-10.7.Nemo.Adaptation.N900-adaptation-n900
ln -s initrd.img-2.6.37-10.7.Nemo.Adaptation.N900-adaptation-n900 initrd.img
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /initrd.img /uInitrd


All times are GMT. The time now is 11:42.

vBulletin® Version 3.8.8