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

Hurrian 2011-06-18 01:13

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by DanieSS (Post 1031179)
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

Try using ITEM_DEVICE=${INT_CARD}p2

tpc010 2011-06-18 07:06

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by DanieSS (Post 1031179)
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

which kernel do you use?

I use the meego Kernel and there mmcblk0 is for microSD card and mmcblk1 for internal.

LTman 2011-06-18 08:21

Re: Ubuntu Natty on internal mmc
 
I had a problem like that (well kinda) with karmic i used power kernel v47 and it booted like a charm
well except the fact that the pointer touchscreen is inverted (any help on this is welcome)

LTman 2011-06-18 08:34

Re: Ubuntu Natty on internal mmc
 
P.s i advise you to move this thread to alternatives
just pm a moderator

DanieSS 2011-06-18 13:35

Re: Ubuntu Natty on internal mmc
 
thank's for tha advise,
also my touchscreen is inverted.. I use the linux kernel.. and ${INT_CARD}p2 don't work, now i try with mmcblk1

DanieSS 2011-06-18 14:41

Re: Ubuntu Natty on internal mmc
 
but "mmcblk1" for internal must use when the SD is inserted? I'm wrong?

DanieSS 2011-06-19 00:10

Re: Ubuntu Natty on internal mmc
 
sorry my shame English, I tried to write a guide in post 1

LTman 2011-06-19 04:39

Re: Ubuntu Natty on internal mmc
 
i just remebered try flashing you phone to R&D mode

DanieSS 2011-06-19 05:09

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by LTman (Post 1031804)
i just remebered try flashing you phone to R&D mode

i'm do it, but i think it isn't necessary, in the kernel there is a voice for that...
I'm found a voice for the root mount in the config-2.6.35-1-n900
but if i change that it's haven't any effect... must recompile if chsnge a voice of that file???

Hurrian 2011-06-19 06:04

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by DanieSS (Post 1031813)
i'm do it, but i think it isn't necessary, in the kernel there is a voice for that...
I'm found a voice for the root mount in the config-2.6.35-1-n900
but if i change that it's haven't any effect... must recompile if chsnge a voice of that file???

Yes, you will need to recompile the kernel OR hexedit the kernel file.

DanieSS 2011-06-19 06:13

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by Hurrian (Post 1031822)
Yes, you will need to recompile the kernel OR hexedit the kernel file.

can you explain how can i do it??

DanieSS 2011-06-19 08:31

Re: Ubuntu Natty on internal mmc
 
with power kernel ubuntu are booting but don't works... with that we can boot with multiboot...

Hurrian 2011-06-19 08:32

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by DanieSS (Post 1031825)
can you explain how can i do it??

(1) http://wiki.meego.com/N900_kernel_compilation
(2) Use a hex editor, search for anything that says mmcblk0/1p1/2/3.

DanieSS 2011-06-19 09:02

Re: Ubuntu Natty on internal mmc
 
with kernel power Ubuntu boot but don't start the touch screen and keyboard... there are same patch but i don't know how apply that..
which file i must edit with hex editor???

DanieSS 2011-06-19 09:22

Re: Ubuntu Natty on internal mmc
 
with hex editor i don't find any mmcblock0p1

Hurrian 2011-06-19 09:30

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by DanieSS (Post 1031908)
with hex editor i don't find any mmcblock0p1

Sorry, I forgot that it was a zImage. I don't have a clue on how to decompress it.

AlMehdi 2011-06-19 14:23

Re: Ubuntu Natty on internal mmc
 
You need to have a correct working module for touch and keyboard. The Ubuntu kernel doesn't have that. I don't remember the exact name but tc2005.ko or something similar.

Hurrian 2011-06-19 22:00

Re: Ubuntu Natty on internal mmc
 
Quote:

Originally Posted by AlMehdi (Post 1032073)
You need to have a correct working module for touch and keyboard. The Ubuntu kernel doesn't have that. I don't remember the exact name but tc2005.ko or something similar.

It's in mainline, all that's needed is a recompile should it not be enabled.

DanieSS 2011-06-19 23:03

Re: Ubuntu Natty on internal mmc
 
the kernel of Natty is all right.. only with kernel power and Natty the touch and keyboard have same problem..


All times are GMT. The time now is 15:14.

vBulletin® Version 3.8.8