カーネルバージョンを調べるコマンドは知っていたが、ディストロのバージョンを調べるコマンドがあるのは知らなかった。
次のコマンドでディストロのバージョンを確認できる。
$ lsb_release -a |
$ uname -a |
/**
*Road to Geek
*Geekを目指すエンジニアの技術的備忘録
*@author No.13
*/
public class RoadToGeek{
public Knowledges readMemorandum(Object YourRequest);
}
$ lsb_release -a |
$ uname -a |
# mount /dev/sda1 /mnt# rm -rf /mnt/* # cd /mnt # wget http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2 # tar xvjf rootfs-f11.tar.bz2 |
# mv rootfs-f11/* . # rm -r rootfs-f11 # rm rootfs-f11.tar.bz2 |
# wget http://sheeva.with-linux.com/sheeva/2.6.30.8/sheeva-2.6.30.8-Modules.tar.gz # tar zxvf sheeva-2.6.30.8-Modules.tar.gz -C /mnt # rm sheeva-2.6.30.8-Modules.tar.gz |
# chroot /mnt |
# yum install passwd vim vi openssh-server rsync sudo tar ntp less |
Marvell>> setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/sda1 rootdelay=10 panic=10 Marvell>> boot |
# echo "LANG=ja_JP.eucJP" > /etc/sysconfig/i18n |
# ntpdate 210.173.160.27 # hwclock -w |
# cp -p /usr/share/zoneinfo/Japan /etc/localtime |
# swapon /dev/sda2 # vi /etc/fstab |
/dev/sda2 swap swap defaults 0 0 |
deb http://wine.budgetdedicated.com/apt intrepid main #WineHQ – Ubuntu 8.10 “Intrepid Ibex” |
# apt-get install wine |
# apt-get install cabextract # wget www.kegel.com/wine/winetricks |
$ sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 |
[Software\\Wine\\Fonts\\Replacements] "MS Gothic"="IPA \x30b4\x30b7\x30c3\x30af" "MS Mincho"="IPA \x660e\x671d" "MS PGothic"="IPA P\x30b4\x30b7\x30c3\x30af" "MS PMincho"="IPA P\x660e\x671d" "MS UI Gothic"="IPA UI\x30b4\x30b7\x30c3\x30af" "\xff2d\xff33 \x30b4\x30b7\x30c3\x30af"="IPA \x30b4\x30b7\x30c3\x30af" "\xff2d\xff33 \x660e\x671d"="IPA \x660e\x671d" "\xff2d\xff33 \xff30\x30b4\x30b7\x30c3\x30af"="IPA P\x30b4\x30b7\x30c3\x30af" "\xff2d\xff33 \xff30\x660e\x671d"="IPA P\x660e\x671d" [Software\\Wine\\X11 Driver] 1129995218 "InputStyle"="root" |
# wget http://sheeva.with-linux.com/sheeva/README-2.6.30.8 |
# bash ./README-2.6.30.8 --nandkernel ←NANDフラッシュに書き込む場合 # bash ./README-2.6.30.8 --rootkernel ←/bootに書き込む場合 |
Marvell>> setenv mainlineLinux yes Marvell>> setenv arcNumber 2097 Marvell>> setenv console rootfstype=jffs2 'ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw' |
# reboot # uname -a Linux SheevaPlug 2.6.30.8 #2 PREEMPT Wed Sep 30 18:35:27 MDT 2009 armv5tel GNU/Linux |
# wget http://sheeva.with-linux.com/sheeva/2.6.30.7/sheeva-2.6.30.7-uImage # wget http://sheeva.with-linux.com/sheeva/2.6.30.7/sheeva-2.6.30.7-Modules.tar.gz |
# mv sheeva-2.6.30.7-uImage ./uImage |
# flash_eraseall -j /dev/mtd0 # nandwrite -pm /dev/mtd0 uImage |
# mount /dev/mtdblock1 /mnt # tar zxvf sheeva-2.6.30.7-Modules.tar.gz -C /mnt |
# mount /dev/sda1 /mnt # rsync -avx // /mnt/ # cp -ax /dev/* /mnt/dev # reboot |
Marvell>> setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImae),0x1fb00000@0x500000(rootfs) rw root=/dev/sda1 rootdelay=10 panic=10 Marvell>> boot |
# swapon /dev/sda2 |
# vi /etc/fstab |
/dev/sda1 / ext2 errors=remount-ro 0 1 /dev/sda2 swap swap defaults 0 0 |
# wget http://sheeva.with-linux.com/sheeva/2.6.30.7/sheeva-2.6.30.7-uImage # wget http://sheeva.with-linux.com/sheeva/2.6.30.7/sheeva-2.6.30.7-Modules.tar.gz |
# mount /dev/sda1 /mnt # cp sheeva-2.6.30.7-uImage /uImage # tar zxvf sheeva-2.6.30.7-Modules.tar.gz -C /mnt |
Marvell>> setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImae),0x1fb00000@0x500000(rootfs) rw root=/dev/sda1 rootdelay=10 panic=10 init=/bin/bash Marvell>> setenv bootcmd 'usb start; ext2load usb 0:1 0x8000000 /uImage; bootm 0x8000000' Marvell>> setenv mainlineLinux yes Marvell>> setenv arcNumber 2097 setenv cesvcid ULULULULULULPPULULULULULDA Marvell>> boot |
Hit any key to stop autoboot: 0 |
Marvell>> version U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16 |
Marvell>> printenv |
Marvell>> set ipaddr 192.168.11.4 Marvell>> set serverip 192.168.11.2 Marvell>> set netmask 255.255.255.0 |
Marvell>> bubt u-boot-rd88f6281Sheevaplug_400db_nand.bin |
Override Env parameters? (y/n) |
Marvell>> reset Marvell>> version U-Boot 1.1.4 (Apr 9 2009 - 12:23:12) Marvell version: 3.4.16 |