Mundarija:

Fedorani Sheeva -ga qanday o'rnatish kerak, SD -kartani ulang va oching: 13 qadam
Fedorani Sheeva -ga qanday o'rnatish kerak, SD -kartani ulang va oching: 13 qadam

Video: Fedorani Sheeva -ga qanday o'rnatish kerak, SD -kartani ulang va oching: 13 qadam

Video: Fedorani Sheeva -ga qanday o'rnatish kerak, SD -kartani ulang va oching: 13 qadam
Video: Asal Va Sarimsoq Aralashmasi Qanday Kasalliklarga Davo ??? 2024, Noyabr
Anonim
Fedorani Sheeva -ga qanday o'rnatish kerak va uni SD -kartadan yuklash
Fedorani Sheeva -ga qanday o'rnatish kerak va uni SD -kartadan yuklash

Men Slashdot -da SheevaPlug -da, keyin esa mashhur mexanikada postni ko'rdim. Bu 2,5W tezlikda ishlaydigan qiziqarli qurilma kabi tuyuldi, muxlislarsiz, qattiq holatda va monitorga ehtiyoj yo'q.

Ko'p yillar davomida men eski CRT monitorini olib yurganman, agar mening Linux qutim qulab tushgan bo'lsa, buning hojati yo'q, chunki unda haqiqiy ketma -ket konsoli o'rnatilgan. Bu ko'rsatmada Fedora (v12) bilan SheevaPlugni qanday ishga tushirish va yuklash haqida batafsil ma'lumot berilgan. SD -kartadan o'chirilgan. Men PlugComputer forumi va FedoraProject Wiki -dan juda yaxshi ma'lumot oldim

1 -qadam: materiallar

Ta'minotlar
Ta'minotlar

Sizga kerak bo'ladi: SheevaPlug Dev Kit (men Global Scale -dan sotib olganman) SD -karta SD -kartani o'qish tizimi SD -kartaga OSni o'rnatish uchun linux qutisi.

2 -qadam: SD -kartani tayyorlang

SD -kartani tayyorlang
SD -kartani tayyorlang

SD -kartani linux qutisiga qo'shing va ishga tushiring: dmesg | Quyidagi chiqish menga /dev /sdc sifatida o'rnatilganligini ko'rsatadi.

3 -qadam: SD -kartani ajratish

SD -kartani ajratish
SD -kartani ajratish

Biz hozir SD -kartani ajratamiz. Fdisk /dev /sdc Mavjud bo'limlarni o'chirib tashlang. d1

4 -qadam: SD -kartani ajratish (davomi)

SD -kartani ajratish (davomi)
SD -kartani ajratish (davomi)

Yangi bo'lim yarating. caccept defaults Uni bootablea Tasdiqlang p Yangi jadvalni yozing w

5 -qadam: Fayl tizimini yarating

Fayl tizimini yarating
Fayl tizimini yarating

Fayl tizimini yarating. mkfs.ext2 /dev /sdc1

6 -qadam: Distro va yadroni oling

Distro va yadroni oling
Distro va yadroni oling

Kernel and Distrowget-ni yuklab oling https://ftp.linux.org.uk/pub/linux/arm/fedora/platforms/sheevaplug/uImage-2.6.30-sheevaplugwget https://ftp.linux.org.uk/pub/ linux/arm/fedora/rootfs/rootfs-f12.tar.bz2

7 -qadam: OSni o'rnating

OS ni o'rnating
OS ni o'rnating

O'rnatish nuqtasini yaratish mkdir /media /flesh SD -kartani o'rnatish /dev /sdc1 /media /flash fayl tizimini oching -jxf rootfs -f12.tar.bz2 fayl tizimini sd cardcp -r rootfs -f12 /* /media -ga nusxalash. /flesh/Yadroni sd cardcp uImage-2.6.30-sheevaplug/media/flash/boot/ga nusxalash.

8 -qadam: Fstab -ni tahrirlang

Fstab -ni tahrirlang
Fstab -ni tahrirlang

SD -kartani ko'rsatish uchun fstab -ni o'zgartirish kerak. Sheevaplug SD -kartani /dev /mmcblk0p X vi /etc /fstab change /root /dev /mmcblk0p1 /ext2 relatime 1 sifatida ko'radi.

9 -qadam: Ildiz parolini tiklash

Ildiz parolini tiklash
Ildiz parolini tiklash

Parol qanday ildizlarga o'rnatilganligini bilmayman. Shunday qilib, biz uni olib tashlaymiz. vi/media/flash/etc/shadow Parolni o'chirishni o'zgartiring: root: 65946945gkfhkfjghkfghfkngdfshgt843: 14495: 0: 99999: 7::: toroot:: 14495: 0: 99999: 7:::

10 -qadam: Tarmoq konfiguratsiyasini tahrirlang

Tarmoq konfiguratsiyasini tahrirlang
Tarmoq konfiguratsiyasini tahrirlang

Tarmoq konfiguratsiyasini tahrir qiling vi/media/flash/etc/sysconfig/network NETWORKING = ha HOSTNAME = YourHostnameHerevi/media/flash/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0 BOOTPROTO = statik ONBOOT = ha NETMASK = 255.255.255.0 IPADDR = 10.0.0.2 GATEWAY = 10.0.0.1 DNS1 = 10.0.0.1 TYPE = Ethernet USERCTL = PEERDNS yo'q = IPV6INIT = NM_CONTROLLED = yo'q SD karta umount /media /fleshni o'chiring SheevaPlug -ga qo'ying.

11 -qadam: Linux qutisini yadroni yangilashga tayyorlang

Kernelni yangilash uchun Linux qutisini tayyorlang
Kernelni yangilash uchun Linux qutisini tayyorlang

SheevaPlug SD -kartalarni yuklashi mumkin bo'lgan dasturiy ta'minot bilan birga keladi. Shunday qilib, siz uni TFTP orqali yangilashingiz kerak tftp-serverini o'rnatish tftp-serverini yuklash rasmini oling va uni sheevaplug cd/var/lib/tftpboot/wget https://www.cyrius.com/tmp/ ga yuklang. u-boot.bin-3.4.19 mv u-boot.bin-3.4.19 uboot.bin vi /etc/xinetd.d/tftp "disable = yes" ni "disable = no" ga o'zgartirish ftdi yuklash uchun skriptni qo'shing. SheevaPlug ulanganda haydovchi: vi /etc/udev/rules.d/85-sheevaplug.rules # agar hech qanday haydovchi interfeysga hali da'vo qilmagan bo'lsa, ftdi_sio ACTION == "qo'shish" ni yuklang, SUBSYSTEM == "usb", ENV { DEVTYPE} == "usb_interface", / ATTRS {idVendor} == "9e88", ATTRS {idProduct} == "9e8f", / DRIVER == "", / RUN+= "/sbin/modprobe -b ftdi_sio" # qo'shish VID va PID-ni "ftdi_sio ACTION ==" add ", SUBSYSTEM ==" drayverlar ", / ENV {DEVPATH} =="/bus/usb-serial/drayverlar/ftdi_sio ", / ATTR {tomonidan qo'llab-quvvatlanadigan qurilmalar ro'yxatiga qo'shish. new_id} = "9e88 9e8f" # ixtiyoriy ravishda ACTION == "add", KERNEL == "ttyUSB*", / ATTRS {interface} == "SheevaPlug JTAGKey FT2232D B", / ATTR konsol qurilmasi uchun qulaylik havolasini yarating. S {bInterfaceNumber} == "01", / SYMLINK+= "sheevaplug" *** Sheevaplug -dan ketma -ket kabelni ulang, agar a /dev /ttyUSBx yaratilmagan bo'lsa, Linux tizimini qayta ishga tushiring.

12 -qadam: Boot Parms -ni o'zgartiring

Boot Parms -ni o'zgartiring
Boot Parms -ni o'zgartiring

USB kabelini SheevaPlug mini -ulagichiga linux qutisidagi usb portiga ulang. screen /dev /ttyUSBX 115200 Marvell firmware dasturini yangilang >> setenv serverip 192.168.1.2 # TFTP serveringizning IP-manzili Marvell >> setenv ipaddr 192.168.1.200 # IP sheevaplug Marvell >> bubt uboot.bin ** Ogohlantirish ** Agar U- Endiannes booti o'zgaradi (LE-> BE yoki BE-> LE), keyin Env parametrlari bekor qilinishi kerak. Env parametrlari bekor qilinsinmi? (y/n) n Keyin yuklash moslamasini yuklash uchun SD kartani o'rnatish kerak mainlineLinux ha setenv arcNumber 2097 setenv bootargs_console console = ttyS0, 115200 setenv bootargs_root 'rw root =/dev/mmcblk0p1 rootdelay = 10 rootfstype = 10 bootcmd_mmc 'mmcinit; ext2load mmc 0 0x800000 /boot/uImage-2.6.30-sheevaplug 'setenv bootcmd' setenv bootargs $ (bootargs_console) $ (bootargs_root); bootcmd_mmc -ni ishga tushiring; bootm 0x0800000 'saveenv reset U hozir yuklanishi kerak.

13 -qadam: O'rnatish yozuvlarini joylashtiring

Post o'rnatish eslatmalari
Post o'rnatish eslatmalari

Siz asosiy parolni o'zgartirishingiz kerak. IP -jadvallar f12 -ni o'rnatishda to'g'ri yuklanmagan. Kimdir buni tushunmaguncha /etc/hosts.allow va hosts.deny -ni tahrir qiling … Men unda Apache/PHP/DNSmasq/samba/etc ni ishga tushiraman va hech qanday katta natijani sezmayman.

Tavsiya: