![]() |
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 |
All times are GMT. The time now is 13:15. |
vBulletin® Version 3.8.8