maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Ubuntu (https://talk.maemo.org/forumdisplay.php?f=55)
-   -   Ubuntu Natty on internal mmc (https://talk.maemo.org/showthread.php?t=74084)

DanieSS 2011-06-17 19:35

Ubuntu Natty on internal mmc
 
Hello, I installed Ubuntu Natty with DE Unity on internal memory of N900, I added the file.item in the folder Multiboot.d with the kernel in /boot, but the kernel look for the root on dev/mmcblk0p1..I tried ITEM_DEVICE = mmcblck0p2 and ITEM_DEVICE = INT_CARD} {$ p2, the kernel starts, but always look for the root mmcblck0p1,
Any ideas??
If I flash with Nokia's flasher tool it's all right! if we can solve this we have the multiboot with Maemo, here a video..
sorry for my bad English
http://www.youtube.com/watch?v=Q0IP9HG4X8I
I don't speak english so i will limit to write the terminal comand.. for original link http://www.smartphonetab.net/forum/s...tu-Natty/page8 pag.8 post 75 for the NATTY root extraction and post 119 pag 12 for the installation..
The extraction can be made for any S.O...
EXTRACTION OF NATTY ROOT: from a LINUX PC download the image and extract it, put the .img in your home so in the terminal
Code:


sudo su
mkdir /media/natty
mkdir /media/natty2
cd /home/YOURACCOUNT/
mount -o loop,offset=74027520 ubuntu-11.04-preinstalled-netbook-armel+omap.img /media/natty
dd if=/dev/zero of=ubuntu.img.ext3 bs=1024 count=0 seek=$[1024*3000]
mkfs.ext3 -m0 -L ubuntu.img.ext3 ubuntu.img.ext3
mount -o loop ubuntu.img.ext3 /media/natty2
cd /media/natty
tar -cf - . | ( cd /media/natty2 ; tar -xpvf - )
umount /media/natty
umount /media/natty2

now we have the image to use with chroot, if you want use it with chroot read the post 77
now we install it so put the .img.ext3 in MyDocs with USB, it's so large and unplug the n900 for pc and from the pc terminal :
Code:

ssh root@xxx.xxx.x.x
xxx.xxx.xx.xx is n900 I.P. for that in n900 terminal
Code:

root
ifconfig

this is the output, that in red is n900 I.P
Code:

Nokia-N900:~# ifconfig
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1289 (1.2 KiB)  TX bytes:1289 (1.2 KiB)

phonet0  Link encap:UNSPEC  HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP POINTOPOINT RUNNING NOARP  MTU:4000  Metric:1
          RX packets:1842 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:28968 (28.2 KiB)  TX bytes:2492 (2.4 KiB)

wlan0    Link encap:Ethernet  HWaddr 0C:DD:EF:93:29:47 
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6649 (6.4 KiB)  TX bytes:7484 (7.3 KiB)

wmaster0  Link encap:UNSPEC  HWaddr 00-1F-DF-94-0A-A6-00-00-00-00-00-00-00-00-00-00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

so in the ssh terminal (from PC after ssh root@xxx.xxx.xx.x)
Code:

root
mkdir /mnt/natty
mkdir /mnt/natty2
qchroot home/user/MyDocs/ubuntu.img.ext3 /mnt/natty
adduser YOURNEWACCOUNT

if don't ask for a password do:
Code:

passwd YOURNEWACCOUNT
qumount /mnt/natty

now we must edit the partition, with GPARTED, explain it in english, for me, is more difficult that you try do it, ATTENTION a error can be dangerous..
power off the n900 and power on it with keyboard open enter in backupmenu, press button w and connect to pc, so you must work with GPARTED
I reduced my FAT partition and expanded the my EXT3, if you make a new partition cange mmcblk0p2 with mmcblkop4, I worked only with mmcblkop2
I do it from pc terminal connect by ssh to n900 but you can do from the n900 terminal:
reconnect from pc terminal by ssh to n900 (ssh root@xxx.xx.x.x. in pc terminal)and:
Code:

root
mount /dev/mmcblk0p2 /mnt/natty2 (change here mmcblk0p2 with mmcblk0p4 if you must)
mount /home/user/MyDocs/ubuntu.img.ext3 /mnt/natty2

Code:

cd /mnt/natty2
tar -cf - . | ( cd /media/natty ; tar -xpvf - )

wait, you can go to drink a beer, or two :D
now we have installed Natty on n900 but it can't start, we must study a integration with multiboot, now it don't work so we must flash the n900 by pc every time, and it no good.. in the original post we are study a solution, for now power off the n900 and connect it to usb of pc pressing U button and from pc terminal go in the folder where you download the kernel http://www.megaupload.com/?d=U0CWT2O1, rename the file cancel .zip, don't extract
Code:

sudo flasher-3.5 -l -k vmlinuz-2.6.35-1-n900 -b"rootwait root=/dev/mmcblk0p2"
I have extract all that package https://answers.launchpad.net/ubuntu/+source/linux-n900/2.6.35-1.3.1/+build/2269559 and put the three folder on / of Natty partition
if the boot fail try again, after many time it start and it start everytime..login with user and password choice with chroot in principle
if something go wrong flash only the kernlel, so you don't lose any thinks ;) :
sudo flasher-3.5 -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin --flash-only kernel -f -R

THE ENGLISH IS VERY VERY VERY BAD SO READ THE ORIGINAL LINK
read all post from 75

tpc010 2011-06-17 20:18

Re: Ubuntu Natty on internal mmc
 
Hello,

can you descripe how you put the data on the emmc ?

best regards
tobi

DanieSS 2011-06-17 20:23

Re: Ubuntu Natty on internal mmc
 
I I will write the guide when i solve this problem

tpc010 2011-06-17 20:41

Re: Ubuntu Natty on internal mmc
 
Ok, I think you know the additional c in mmcblck0p2

If you understand German, here is a howto for nitdroid

http://www.meego.de/forum/nitdroid/1...-sd-karte.html

DanieSS 2011-06-17 20:50

Re: Ubuntu Natty on internal mmc
 
thanks but don't work! :(

DanieSS 2011-06-17 20:57

Re: Ubuntu Natty on internal mmc
 
but in that post there isn't any additional c...

dr_frost_dk 2011-06-17 21:10

Re: Ubuntu Natty on internal mmc
 
please let me know how this goes, this is something i want, not lame android.

DanieSS 2011-06-17 21:11

Re: Ubuntu Natty on internal mmc
 
I found the problem .. to soo
stay tuned .. ;-D

Hurrian 2011-06-17 22:15

Re: Ubuntu Natty on internal mmc
 
Code:

ITEM_NAME="Ubuntu Natty 2.6.28"
ITEM_KERNEL=2.6.28
ITEM_MODULES=ext3
ITEM_DEVICE=${INT_CARD}p1
ITEM_FSTYPE=ext3
ITEM_FSOPTIONS=rw,noatime,errors=remount-ro

I'd advise you try using the MeeGo 2.6.37 kernel. Remove the uBoot header first though.
2.6.28 is a bit too old for my liking. Should work though, as IIRC the latest glibc depends on at least 2.6.26.

DanieSS 2011-06-17 22:38

Re: Ubuntu Natty on internal mmc
 
i haven't problem of kernel but in multiboot, I have Natty on mmcblk0p2 and if i flash with linux pc it's all right, but when multiboot flash, the kernel is looking for root on mmcblkop1, the my .item is right..
ITEM_NAME="02-Natty"
ITEM_KERNEL=2.6.35-1
ITEM_MODULES="mbcache jbd ext3"
ITEM_DEVICE=mmcblk0p2
ITEM_FSTYPE=ext3
ITEM_FSOPTIONS=rw,noatime,errors=remount-ro


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

vBulletin® Version 3.8.8