![]() |
debian (not easy) on N900
I've been trying for 2 days now to boot debian (not easy-debian) but a full debian http://elektranox.org/n900/index.html on the N900, using maemo kernel and a memory card, but I always get failed to mount device guru meditation error. My debian.item looks like this
ITEM_NAME="Debian" ITEM_ID="debian" ITEM_DEVICE="${EXT_CARD}p3" (I also have NITdroid on the sd) ITEM_MODULES="mbcache jbd ext3" ITEM_FSTYPE="ext3" ITEM_FSOPTIONS="noatime,rw" I have tried without quotes, adding errors=remount-ro I have also tried copying the kernel from maemo to the memory card again but I see nothing different Has anyone done this before? Do you see any obvious mistake? |
Re: debian (not easy) on N900
first ,
why are you doing this the old way ? use u-boot , and use the debian kernel the dev. is providing , I think he put the link to this kernel on his blog . anyway , if you insist on using maemo's kernel.. make sure it is NOT power kernel , debian won't boot using power kernel make sure you copy modules and firmware to the debian partition are you sure you installed debian to partition 3 on sdcard ? also , have you used the tarball , or built debian using deboot strap ? please describe what you have done already in great detail, and where you get stuck.. |
Re: debian (not easy) on N900
ok thank you very much for starts.
1. I didn't know there was old and new way, I saw that website, and went with the instructions, because I thought it would be faster to have debian boot by itself than chrooted. Also I thought using maemo's kernel would provide basic hardware functionality (I need wlan and 3g basicly - and of course touchscreen and keyboard) 2. I didn't use uboot because I have multiboot installed and I was afraid to mess them up. 3. I have used the tarball method, but after some failed attempts, I re-did some of the steps of the manual install. Copied kernel and modules again, replaced watchdog configuration (even after I saw that the uncommented part was actually the same, but I tried anyway) 4. Gparted shows 3 partitions, 1 FAT (empty, boot flag), 2 ext3 (NITdroid - booting fine with ${EXT_CARD}p2), 3 ext3 debian also I can mount it fine using /dev/mmcblk1p3 and chroot into it so yes I am pretty sure it is debian on partition 3 5. I have powerkernel installed but it;s 2.6.28-omap1 that I moved into /mnt/debian/lib/modules. I also tried specifying the kernel in the .item file but no joy 6. When I reboot and select debian at the multiboot screen it returns Code:
mounting root device mmcblk0p3 FAILED |
Re: debian (not easy) on N900
sorry for late reply ,
If you have multiboot , you have to specify which kernel to be used in the item file |
Re: debian (not easy) on N900
no problem!
I tried that but I still cannot boot. It stays on the multiboot "wait for boot" screen and eventually it turns off. I also tried the u-boot solution, but the links for the kernel and initrd are broken, and also touchscreen is not working so there is really no point. I don't know if there is a way of using the meego kernel for debian. |
Re: debian (not easy) on N900
After reading about 70 pages of the ubuntu thread I have concluded that the guide here http://elektranox.org/n900/index.html does not work with multiboot and pr1.3.
If anybody made it work with this configuration please come forward. |
Re: debian (not easy) on N900
After skimming through 70 pages of the ubuntu on n900 thread I reached the conclusion that the guide here http://elektranox.org/n900/index.html does not work with pr1.3 and multiboot.
If anyone has managed to make it work with this configuration please state it. |
Re: debian (not easy) on N900
this isn't related to pr1.3 , also you should be using the kernel from the dev page in the future, for now the links seem broken as you already noticed , but I think that would be fixed soon .
anyway I will try and install it again using maemo's kernel , as I am more than 99% sure this can work quite fine with pr1.3 kernel . [Edit] sorry for late reply , it does boot fine with maemo kernel , also check the debian kernel at : http://pkg-n900.alioth.debian.org/ it works fine with u-boot , and the following page would be populated in the future http://wiki.debian.org/pkg-n900 just don't expect much running this right now .. |
Re: debian (not easy) on N900
I am probably wrong about the impossibility, maybe I had an old version of multiboot or something else. Now I messed up (I tried to boot maemo from sd and the rootfs got f**d up) and I had to reflash. I'm going with the uboot way now, but I still can't make it work with the power46wl kernel
|
Re: debian (not easy) on N900
Is it possible to install it on eMMC? I have only class 2 card and a lot of free space on eMMC.
|
Re: debian (not easy) on N900
If it won't boot, why not flash it over to RD mode?
Try boot your Debian using M-AG's Ubuntu Kernel if this debian won't work. SHOULD do the trick to at least get a boot. As for Multiboot. Just use ANY xxx.item file and just test with any kernel. Please post up all the steps you have done so far. Guru Meditation is because it can not find a kernel. Make you file*.item in /etc/multiboot Edit: Looking over your messages again... It does not matter what Maemo PR you are on. Quote:
Place the debian kernel you are using in /boot/multiboot and name is as vmlinuz-2.6.28*blahblah I have done a few things like this when bored, I will help. But really, try MAG's Ubuntu kernel first, or even possible try: take all NITDroid files from partition two (SAVE THESE!) and extract the Debian tarball into P2 and try boot (using droid kernel) see what happens! :cool: Mini Edit: That item file you made was also for BootMenu, not multiboot ;) (check your source) |
Re: debian (not easy) on N900
Quote:
Quote:
Code:
cp -a /lib/modules/2.6.28-omap1/ /mnt/debian/lib/modules/ Anyway I flashed now and multiboot is out of here so when I manage to make a uboot + power46wl I will try with the debian kernel. |
progress update on the debian front
I have been trying to boot a full debian system off the N900. After unsuccessfully trying to boot with multiboot and maemo kernel I decided to give uboot and 2.6.35 from shr a try. So:
1. I unpacked shr from here http://build.shr-project.org/shr-uns...ages/nokia900/ on my microsd 2. Got uboot from here and loaded it (didn't flash - because I have power46wl1 and the image there is normal maemo kerner - tried to combine power46wl with u-boot and failed) 3. Booted into shr, touchscreen and screen backlight worked fine, didn't try anything else. 4. Cleaned up the sd, unpacked the image found here and copied the boot folder from shr image. 5. booted ok into console, without backlight, I managed to read some errors (modules.dep not found etc) just as they passed by real quick 6. copied the /lib/modules/ folder over from shr and now those errors are gone, but still no backlight. When I try ifconfig wlan0 up the system responds with 'could not find firmware' but I checked and the firmwares from maemo are already in /lib/firmware on the sd 7. Installed lxde via chroot from maemo and booted again. Now I get into X but the device becomes non responsive. No touchscreen and surprisingly no keyboard. The cursor is a watch if I boot directly into lxde, while if I boot to the console, and startx the cursor is normal but still no response at all. 8. Tried the other kernel uImage-2.6.28.10power-omap1 in the shr image but this does not boot at all: after the 'loading kernel' label in uboot screen the device restarts and goes into the nokia logo. I don't know what else to do, I am not very experienced with combining different things to make a linux distribution but I think I am near the solution. (we know that basic things work - touchscreen, wifi, keyboard, backlight) so there must be a way to make them work on debian. Any ideas appreciated. |
Re: debian (not easy) on N900
I have debian wheezy running on the N900. I will document the procedure in this post. Corrections and suggestions for further details and/or discussions are welcome.
All the information here comes from the following sources: * http://wiki.debian.org/pkg-n900 and its references * the ubuntu thread http://talk.maemo.org/showthread.php?t=82819 * the arch linux thread http://talk.maemo.org/showthread.php?t=81892 These instructions are to be run from the N900. It is not necessary to use the PC (although possible; check the refs). Disclaimer: only try this if you are comfortable with the cli and willing to risk a reflash. Choose installation target Choose a partition to install debian. I have tried both the uSD and the eMMC. In this post I will assume the installation target is the uSD. Create a partition of the desired size and type. If you are not familiar with command line tools to create partitions, stop now ;-) Create a filesystem on the partition. In my case I used ext4, but notice that ext4 requires the power kernel. Install basic system Install debootstrap directly from debian repository: http://packages.debian.org/wheezy/al...strap/download and install it with dpkg: Code:
wget http://ftp.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.48+deb7u1_all.deb Code:
mount -t ext4 /dev/mmcblk1p1 /mnt Code:
debootstrap --arch=armhf --variant=minbase wheezy /mnt http://ftp.br.debian.org/debian After the first phase of the installation is completed, chroot to our new system: Code:
for i in dev proc sys; do mount -o bind /$i /mnt/$i; done Code:
echo N900 > /etc/hostname In the arch linux thread referenced above, Skry et al. have developed a very nice keyboard configuration. I strongly suggest it is used: Code:
mkdir -p /usr/share/keymaps Code:
passwd My touchscreen required a bit of configuration: Code:
n900:~# cat /etc/X11/xorg.conf.d/99-calibration.conf kernel I have tried 4 kernels: * pali's linux-n900 versions 3.8-rc3 and 3.9 (hand-compiled); * debian linux-image-omap * nemo's kernel In all cases the corresponding modules and firmware must be installed to the target system. Best results were obtained with the kernel from nemo. Both compiled kernels failed to boot and reset the device after a few seconds. I have not yet investigated further. The debian omap kernel fails to bootstrap my system as well. With the kernel from nemo the system fully boots and is functional with wifi and e17/X. kernel notes Nemo kernel and images are here The debian kernel can be installed with Code:
apt-get install linux-image-omap 1. add emdebian repo to apt config: deb http://www.emdebian.org/debian wheezy main 2. install emdebian gcc 4.7 cross compiler 3. add one alternative to the cross compiler using update-alternatives 4. clone pali's repository from https://gitorious.org/linux-n900/linux-n900 Code:
git clone git://gitorious.org/linux-n900/linux-n900.git Code:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make rx51_defconfig 7. I have not changed the default kernel config and I am no kernel expert, and possibly some config changes will be enough for a successful boot (if you know better, please share) u-boot To finally boot into debian, we have to configure u-boot. Notice that some versions of u-boot seem to have problems booting 3.x kernels. I believe latest version in extras-devel has fixed this. I have tried 4 variations, one for each kernel. In all cases the kernels and initrd have been placed inside maemo's /opt/boot as zimages. Code:
ITEM_NAME="Debian Wheezy nemo kernel" 1. the boot takes much longer that arch linux in the same device, but boot times are comparable to maemo 2. debian has a packaged ofono, but I have not yet investigated further 3. once booted, the system feels stable and functional |
Re: debian (not easy) on N900
So how does armel (maemo) compare to armhf (wheezy)? Some basic tests:
openssl speed sha512 armel: Code:
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes Code:
armhf: armel: Code:
sign verify sign/s verify/s Code:
sign verify sign/s verify/s |
Re: debian (not easy) on N900
the debian kernel will not work because debian does not accept patches from 'obscure' sources :P
however, I did get it to boot to some extent (ended up with an oops somewhere) Basically, you need to prepare an initrd with the important modules. as for ofono, it works ok with nemo's kernel. i could use 3G/GPRS, as well as receive SMS. i found xfce to suit my needs. better than the other DEs/WMs. |
Re: debian (not easy) on N900
Quote:
|
Re: debian (not easy) on N900
Yes, I was running the script manually. i think Pali's kernel auto-detects, but I never tried it.
|
Re: debian (not easy) on N900
BTW, another kernel you can try is Skry's, from his alarm project. I had a few problems booting the uImage, but after extracting the zImage from it, I could use it successfully.
|
Re: debian (not easy) on N900
Quote:
I'm trying to use ofono from apt-get on wheezy. I have phonet0 showing in ifconfig -a and /dev/cmt in filesystem. ofono -d -n gives: Code:
ofonod -d -n https://build.merproject.org/package...2713fd4823ccb2 Other problems.... Code:
dbus-send --system --print-reply --dest=org.ofono /isimodem0 org.ofono.Modem.GetProperties |
Re: debian (not easy) on N900
FWIW: (in case anyone else reads this).
I got "ofonod -dn --noplugin=ril" to work after building the ofono sources from nemo and running the script from http://gitorious.org/meego-device-ad...-cmt-gpio.init The modem was initialized from the script in $SOURCE_TREE/test/enable-modem Took me some hours of head scratching to get this far. I can make calls without audio and receive text messages. Still unsure about gprs/utms and routing call audio. I'm guessing I'll need to go through that whole hell of outdated pulseaudio to make calls work. On the bright side, audio programs like LMMS and Hydrogen-drumkit are working better than ever through alsa on wheezy. Still not perfect though as they stutter on complex patterns. Wish I knew how to overclock the nemo kernel. Still, this is new life for my old n900 and it's exciting. Thanks guys. |
Re: debian (not easy) on N900
Quote:
|
All times are GMT. The time now is 13:27. |
vBulletin® Version 3.8.8