Fedora11 on SheevaPlug
ページを編集するにはログインが必要です。
Fedora11 を動かしてみよう
今回は、SDHCから。
内臓フラッシュ・メモリで起動しているUbuntu上で、
root@SheevaPlug:~# mount /dev/sda1 /mnt root@SheevaPlug:~# rm -rf /mnt/* root@SheevaPlug:~# cd /mnt root@SheevaPlug:/mnt# wget http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/roootfs-f11.tar.bz2 --2009-08-08 10:54:33-- http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2 Resolving ftp.linux.org.uk... 195.92.253.2, 2002:c35c:fd02::1 Connecting to ftp.linux.org.uk|195.92.253.2|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 97989028 (93M) [application/x-bzip2] Saving to: `rootfs-f11.tar.bz2' 100%[======================================>] 97,989,028 2.73M/s in 50s 2009-08-08 10:55:24 (1.87 MB/s) - `rootfs-f11.tar.bz2' saved [97989028/97989028] root@SheevaPlug:/mnt# tar xvjf rootfs-f11.tar.bz2 rootfs-f11/ : : : root@SheevaPlug:/mnt# ls rootfs-f11 rootfs-f11.tar.bz2
げっ!rootfs-f11ディレクトリを掘りやがった。一階層上に大移動だ。
root@SheevaPlug:/mnt# mv rootfs-f11/* . root@SheevaPlug:/mnt# ls bin dev home media opt root rootfs-f11.tar.bz2 selinux sys usr boot etc lib mnt proc rootfs-f11 sbin srv tmp var root@SheevaPlug:/mnt# ls dev root@SheevaPlug:/mnt# cp -ax /dev/* /mnt/dev root@SheevaPlug:/mnt# chroot /mnt bash-4.0# uname -a Linux SheevaPlug 2.6.30.4 #1 PREEMPT Mon Aug 3 10:05:02 MDT 2009 armv5tel armv5tel armv5tel GNU/Linux
rootの初期パスワードが分からない。今のうちに変えておこう。 げげっ!passwdがない。viもない。sshdもない。今のうちに入れておこう。
bash-4.0# yum install passwd vim vi openssh-server rsync : : : bash-4.0# passwd Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully.
ネットワークがらみの設定もやっておこう。RedHat系だからお手のもんだ。
bash-4.0# vi /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.1.222 sheeva_fedora11 sheeva_fadra11@saigyo.net bash-4.0# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=sheeva_fedora bash-4.0# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=Ethernet IPADDR=192.168.1.222 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 bash-4.0# reboot
U-Bootプロンプトを出して、
Marvell>> setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImae),0x1fb00000@0x500000(rootfs) rw root=/dev/mmcblk0p1 rootdelay=10 panic=10 Marvell>> boot NAND read: device 0 offset 0x100000, size 0x400000 Reading data from 0x4ff800 -- 100% complete. 4194304 bytes read: OK ## Booting image at 00800000 ... Image Name: Linux-2.6.30.4 Created: 2009-08-03 16:05:07 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2626052 Bytes = 2.5 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux.......................................................................................................................................................................... done, booting the kernel. Linux version 2.6.30.4 (kelly@speedy) (gcc version 4.2.1) #1 PREEMPT Mon Aug 3 10:05:02 MDT 2009 CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Marvell SheevaPlug Reference Board Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImae),0x1fb00000@0x500000(rootfs) rw root=/dev/mmcblk0p1 rootdelay=10 panic=10 NR_IRQS:114 PID hash table entries: 2048 (order: 11, 8192 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 256MB 256MB = 512MB total Memory: 513408KB available (4736K code, 998K data, 140K init, 0K highmem) SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 980 bytes NET: Registered protocol family 16 Kirkwood: MV88F6281-A0, TCLK=200000000. Feroceon L2: Enabling L2 Feroceon L2: Cache support initialised. Kirkwood: Gating clock using mask 0x1ac224 bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb cfg80211: Using static regulatory domain info cfg80211: Regulatory domain: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) cfg80211: Calling CRDA for country: US NET: Registered protocol family 2 IP route cache hash table entries: 16384 (order: 4, 65536 bytes) TCP established hash table entries: 65536 (order: 7, 524288 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 65536 bind 65536) TCP reno registered NET: Registered protocol family 1 JFFS2 version 2.2. (NAND) c 2001-2006 Red Hat, Inc. JFS: nTxBlock = 4012, nTxLock = 32100 msgmni has been set to 1003 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A console [ttyS0] enabled brd: module loaded loop: module loaded Driver 'sd' needs updating - please use bus_type methods MV-643xx 10/100/1000 ethernet driver version 1.4 mv643xx_eth smi: probed net eth0: port 0 with MAC address 00:50:43:6a:36:31 libertas_sdio: Libertas SDIO driver libertas_sdio: Copyright Pierre Ossman NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 165 at 0x0000014a0000 Bad eraseblock 177 at 0x000001620000 Bad eraseblock 192 at 0x000001800000 Bad eraseblock 248 at 0x000001f00000 Bad eraseblock 678 at 0x0000054c0000 Bad eraseblock 1221 at 0x0000098a0000 2 cmdlinepart partitions found on MTD device orion_nand Creating 2 MTD partitions on "orion_nand": 0x000000100000-0x000000500000 : "uImae" 0x000000500000-0x000020000000 : "rootfs" ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver orion-ehci orion-ehci.0: Marvell Orion EHCI orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1 orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000 orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-sddr09 usbcore: registered new interface driver ums-sddr55 mice: PS/2 mouse device common for all mice rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0 i2c /dev entries driver cpuidle: using governor ladder cpuidle: using governor menu sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman mmc0: mvsdio driver initialized, lacking card detect (fall back to polling) Registered led device: plug:green:health mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver mv_xor mv_xor.0: Marvell XOR: ( xor cpy ) mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy ) mv_xor mv_xor.2: Marvell XOR: ( xor cpy ) mmc0: host does not support reading read-only switch. assuming write- enable. mmc0: new high speed SDHC card at address 0002 mmcblk0: mmc0:0002 SD 7.64 GiB mmcblk0: p1 mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy ) usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver oprofile: using timer interrupt. TCP cubic registered NET: Registered protocol family 17 RPC: Registered udp transport module. RPC: Registered tcp transport module. lib80211: common routines for IEEE802.11 drivers rtc-mv rtc-mv: setting system clock to 2009-08-08 12:00:36 UTC (1249732836) Waiting 10sec before mounting root device... usb 1-1: new high speed USB device using orion-ehci and address 2 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices scsi 0:0:0:0: Direct-Access BUFFALO USB Memory 4000 PQ: 0 ANSI: 0 CCS sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 0:0:0:0: [sda] 3915776 512-byte hardware sectors: (2.00 GB/1.86 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sda1 sd 0:0:0:0: [sda] Attached SCSI removable disk kjournald starting. Commit interval 5 seconds EXT3 FS on mmcblk0p1, internal journal EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with writeback data mode. VFS: Mounted root (ext3 filesystem) on device 179:1. Freeing init memory: 140K modprobe: FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory Welcome to Fedora Press 'I' to enter interactive startup. Starting udev: /sbin/start_udev: line 257: cannot redirect standard input from /dev/null: No such file or directory [ OK ] Setting hostname sheevaplug_fedora: [ OK ] Checking filesystems Checking all file systems. [ OK ] Mounting local filesystems: [ OK ] Enabling /etc/fstab swaps: [ OK ] modprobe: FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory modprobe: FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory Entering non-interactive startup FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] FATAL: Could not load /lib/modules/2.6.30.4/modules.dep: No such file or directory Starting system logger: [ OK ] rpcbind: unrecognized service Mounting NFS filesystems: [ OK ] Mounting other filesystems: [ OK ] Starting exim: [ OK ] [ OK ] crond: [ OK ] Fedora release 11 (Leonidas) Kernel 2.6.30.4 on an armv5tel (/dev/ttyS0) sheeva_fedora login: Fedora release 11 (Leonidas) Kernel 2.6.30.4 on an armv5tel (/dev/ttyS0) sheeva_fedora login: root Password: Last login: Sat Aug 8 11:40:56 on ttyS0 -bash-4.0# -bash-4.0# chkconfig --list crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off exim 0:off 1:off 2:on 3:on 4:on 5:on 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
おー、プリミティブだねぇ。ブート時にまだエラーが出ているし。カーネル新しすぎ? /dev をUbuntuで、まるっとコピーしているが、これで良いかどうかは定かではない、完璧ではないが、とりあえず、動いたってことで・・・。 まっ、yum が動いているから、やりたい放題だ。好きにしちくり。
Keyword(s):
References: