您尚未登录。

#1 2012-01-07 02:45:30

ReiFFEXzyx
古悠行者
注册时间: 2011-08-20
帖子: 187

[转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

感谢Joni Lapilainen的教程:
http://dismantle-it.blogspot.com/2011/1 ... -n900.html

先上几张效果图:
[attachment=4:1cbv9t4a]<!-- ia4 -->01multiboot.jpg<!-- ia4 -->[/attachment:1cbv9t4a]
[attachment=3:1cbv9t4a]<!-- ia3 -->02bootup.jpg<!-- ia3 -->[/attachment:1cbv9t4a]
[attachment=2:1cbv9t4a]<!-- ia2 -->03bootup.jpg<!-- ia2 -->[/attachment:1cbv9t4a]
[attachment=1:1cbv9t4a]<!-- ia1 -->04bootup.jpg<!-- ia1 -->[/attachment:1cbv9t4a]
[attachment=0:1cbv9t4a]<!-- ia0 -->05LXDE.jpg<!-- ia0 -->[/attachment:1cbv9t4a]

安装过程:

准备工作
在N900上安装rootsh, multiboot, kernel-power

N900必须开启研究开发模式并关闭进程监视
http://wiki.maemo.org/User:Jebba/Fedora ... e_watchdog
需要用到刷机工具Maemo Flasher-3.5
Windows(仅32bit,64bit使用方法)
maemo_flasher-3.5_2.5.2.2.exe
Linux(仅32bit)
maemo_flasher-3.5_2.5.2.2.tar.gz
Debian(仅32bit)
maemo_flasher-3.5_2.5.2.2_i386.deb
OSX(仅32bit)
maemo_flasher-3.5_2.5.2.2_i386.dmg

空闲分区(6GB ext3 microSD卡),并挂载

mount -t ext3 -o noatime,nodiratime /dev/mmcblk1p1 /media/mmc1

On N900, which needs to be in RD-mode and watchdog disabled, you'll need rootsh, multiboot and kernel-power. You also need free partition for Arch. I use 6GB partition on SD-card. Prepare the partition by creating a filesystem on it. I used ext3, while some say ext2 is better for cards. Mount that new partition somewhere.


接下来
下载http://archlinuxarm.org/os/ArchLinuxARM … est.tar.gz
解压到你先前在microSD卡上创建的空闲分区

tar -zxvf ArchLinuxARM-omap-smp-latest.tar.gz -C /media/mmc1/

不要忘记了sync

从Maemo的/lib/modules拷贝kernel-power的modules到Arch的/lib/modules
对/lib/firmware重复这一过程

下载nokia-n900-keys.map
放到Arch的/usr/share/kbd/keymaps/arm/qwerty/下

chroot进入Arch

cd /media/mmc1
mount -t proc /proc /mnt/archlinux/proc
mount -t sysfs /sys /mnt/archlinux/sys
mount -o bind /dev /mnt/archlinux/dev 
chroot /mnt/archlinux /bin/bash

rc.conf中添加KEYMAP="nokia-n900-keys.map"
根据你的个人喜好修改rc.conf中的内容

安装udev-oxnas防止udev和syslog吃掉所有系统资源

Next, you'll need to download  http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz and untar it into partition of your choice. Remember to sync. When done, copy kernel-power's modules from Maemo /lib/modules to Arch /lib/modules. Repeat the procedure for /lib/firmware. Download nokia-n900-keys.map to Arch /usr/share/kbd/keymaps/arm/qwerty/. Chroot into Arch and put KEYMAP="nokia-n900-keys.map" to rc.conf (might as well configure other options to your liking and disable daemons you don't need) to make keyboard usable. Also install udev-oxnas to prevent udev and syslog hogging up all resources (don't ask me wink.

时钟,电池和进程监控

RTC, Battery and Watchdog

脚本
http://mer-project.blogspot.com/2010/01 … g-and.html

时钟
rc.local中添加hwclock --hctosys

There is a script in http://mer-project.blogspot.com/2010/01 ... g-and.html but charging with it seems to work only now and then (might be that just leds don't work, hard to say). For the clock, I put hwclock --hctosys in rc.local.



Xorg
注意:omapfb驱动有可能使Xorg出错,目前使用fbdev

pacman -S xf86-video-fbdev

Note: For some reason, omapfb driver causes Xorg to segfault, use fbdev for now.

然后根据Arch的Wiki安装Xorg
或者直接

pacman -S lxde

evdev设置

Here's my evdev configuration for touchscreen and keyboard.

Nokia-N900:/# cat /etc/X11/xorg.conf.d/10-evdev.conf

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/event*"
        Driver "evdev"
        Option "Calibration" "172 3880 3780 235"
EndSection

退出chroot

exit
umount /media/mmc1/dev /media/mmc1/sys /media/mmc1/proc

然后拷贝Maemo的/usr/share/X11/xkb到Arch,使得键盘正常工作

You can install Xorg by following Arch Linux documentation. Once installed, you need to copy /usr/share/X11/xkb from Maemo to Arch to get keyboard working.


创建Arch的multiboot选单

When you're done in chroot, exit and create multiboot item to boot Arch.

Here's mine:

Nokia-N900:~# cat /etc/multiboot.d/11-arch.item

ITEM_NAME="Arch Linux ARM"
ITEM_KERNEL="2.6.28.10-power49"
ITEM_MODULES="fbcon ext3"
ITEM_DEVICE="${INT_CARD}p1"
ITEM_FSTYPE="ext3"
ITEM_FSOPTIONS="rw,noatime,errors=remount-ro"


Wifi
应该能正常工作,反正wicd没问题,也可用你自己的脚本管理连接

Should just work. I use wicd to manage connections, but you can use your own script for connectivity if you like. Consult Arch documentation if you must.

Audio
安装alsa的相关包,并wget这条规则到/etc/udev/rules.d

Install alsa packages and wget this into /etc/udev/rules.d

使用alsamixer调节音量

Use alsamixer to unmute speakers and raise volume.

More
这篇教程只是一个开始,还有许多工作要做
最新进展会在博客中更新
http://dismantle-it.blogspot.com
Happy Hacking

Obviously there is loads of stuff not yet working but hopefully this guide helps you to a start. I'll update this post if there is any progress. Happy hacking.


[fracting的大作]Wine使用中的一些常见误区
http://forum.ubuntu.org.cn/viewtopic.php?f=121&t=363147
顺便学习一下对待开源软件的正确态度

离线

#2 2012-01-07 10:56:48

sigma
会员
注册时间: 2012-01-03
帖子: 183

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

牛逼~


riverrun, past Eve and Adam's.

离线

#3 2012-01-07 12:43:46

hou9983
会员
注册时间: 2012-01-03
帖子: 23

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

有想法! :em05

离线

#4 2012-01-10 11:47:43

懒蜗牛Gentoo
会员
注册时间: 2012-01-05
帖子: 11

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

手机牛才是真的牛

离线

#5 2012-01-11 12:39:46

QUO1991
GUNDAM
注册时间: 2011-08-26
帖子: 82
个人网站

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

等入手HTC。。。编gentoo :em09

离线

#6 2012-01-15 00:29:45

notebookarno
会员
注册时间: 2012-01-14
帖子: 22

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

以前就很中意的手机   :em19   可惜没买上!


Someone Like You

离线

#7 2012-01-15 00:32:50

ReiFFEXzyx
古悠行者
注册时间: 2011-08-20
帖子: 187

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

notebookarno 说:

以前就很中意的手机   :em19   可惜没买上!

hi-pda上应该还有人会出的,我就是在那里收的


[fracting的大作]Wine使用中的一些常见误区
http://forum.ubuntu.org.cn/viewtopic.php?f=121&t=363147
顺便学习一下对待开源软件的正确态度

离线

#8 2012-01-22 18:07:36

zgzzx10
会员
注册时间: 2011-10-31
帖子: 5
个人网站

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

很强大嘛

离线

#9 2012-02-17 19:53:45

robot1024
会员
注册时间: 2012-02-17
帖子: 2

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

离线

#10 2012-09-04 12:20:18

danielhugo
偶爸刚弄死他
注册时间: 2012-07-31
帖子: 269
个人网站

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

N900和N9都是神机,就差没装上苹果的系统了……


本人的 Arch Linux 软件仓库:http://git.io/-1
本人的广告过滤及代·理规则订阅页面:http://git.io/f0x

离线

#11 2012-09-04 15:58:05

lainme
论坛版主
注册时间: 2011-08-19
帖子: 131

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

图全没了

离线

#12 2012-11-10 16:05:26

wenryd
会员
注册时间: 2012-11-10
帖子: 14

Re: [转帖]在Nokia N900上安装Arch Linux ARM(非chroot)

牛人啊


苹果的monaco字体真可爱!

离线

页脚