Cov txheej txheem:

Yuav Ua Li Cas Nruab Fedora ntawm SheevaPlug thiab Boot Tawm SD Card: 13 Kauj Ruam
Yuav Ua Li Cas Nruab Fedora ntawm SheevaPlug thiab Boot Tawm SD Card: 13 Kauj Ruam

Video: Yuav Ua Li Cas Nruab Fedora ntawm SheevaPlug thiab Boot Tawm SD Card: 13 Kauj Ruam

Video: Yuav Ua Li Cas Nruab Fedora ntawm SheevaPlug thiab Boot Tawm SD Card: 13 Kauj Ruam
Video: КЛОУНЫ КОМЬЮНИТИ GEOMETRY DASH 2024, Kaum ib hlis
Anonim
Yuav ua li cas rau nruab Fedora ntawm SheevaPlug thiab khau raj tawm ntawm SD Card
Yuav ua li cas rau nruab Fedora ntawm SheevaPlug thiab khau raj tawm ntawm SD Card

Kuv pom ib qho kev tshaj tawm ntawm SheevaPlug ntawm Slashdot thiab tom qab ntawd hauv Mechanics Nrov. Nws zoo li cov cuab yeej nthuav nws ua haujlwm @ 2.5w, tsis muaj kiv cua, lub xeev ruaj khov thiab tsis xav tau lub ntsuas.

Tau ntau xyoo kuv tau nqa ib puag ncig qub CRT saib hauv qhov xwm txheej kuv lub thawv linux poob, tsis xav tau vim qhov no muaj cov khoom siv tiag tiag ua hauv. Cov lus qhia no yuav nthuav qhia yuav ua li cas tsim SheevaPlug nrog Fedora (v12), rau ob qho tib si khiav thiab khau raj tawm ntawm SD daim npav. Kuv tau txais ntau cov ntaub ntawv zoo los ntawm PlugComputer Forum thiab FedoraProject Wiki

Kauj Ruam 1: Cov khoom siv

Khoom siv
Khoom siv

Koj yuav xav tau: SheevaPlug Dev Kit (Kuv yuav kuv li los ntawm Ntiaj Teb Nplai) SD CardSD Card ReaderA linux lub thawv txhawm rau nruab OS ntawm daim npav SD.

Kauj ruam 2: Npaj SD Card

Npaj SD Card
Npaj SD Card

Ntxiv SD Card rau koj lub thawv linux koj tab tom tsim qhov no thiab khiav: dmesg | tail Qhov tso tawm ntawm no qhia kuv tias nws tau raug teeb tsa ua /dev /sdc.

Kauj ruam 3: Muab faib rau SD Card

Muab faib rau SD Card
Muab faib rau SD Card

Peb yuav faib daim npav SD tam sim no.fdisk /dev /sdc Tshem tawm cov faib uas twb muaj lawm. d 1 yib

Kauj ruam 4: Muab faib SD Card (txuas ntxiv)

Muab faib SD Card (txuas ntxiv)
Muab faib SD Card (txuas ntxiv)

Tsim qhov muab faib tshiab. caccept defaultsMake it bootableaVerify it pWrite the new parition tablew

Kauj Ruam 5: Tsim Cov Ntaub Ntawv System

Tsim Cov Ntaub Ntawv System
Tsim Cov Ntaub Ntawv System

Tsim cov fileystem. mkfs.ext2 /dev /sdc1

Kauj Ruam 6: Tau txais Distro thiab Kernel

Tau txais Distro thiab Kernel
Tau txais Distro thiab Kernel

Rub lub Kernel thiab Distrowget https://ftp.linux.org.uk/pub/linux/arm/fedora/platforms/sheevaplug/uImage-2.6.30-sheevaplugwget https://ftp.linux.org.uk/pub/ linux/caj npab/fedora/rootfs/rootfs-f12.tar.bz2

Kauj ruam 7: Nruab OS

Nruab OS
Nruab OS

Tsim ib qho mountmkdir /media /flash Mount SD Card mount /dev /sdc1 /media /flash Uncompress the filesystemtar -jxf rootfs -f12.tar.bz2 Luam the fileystem mus rau sd cardcp -r rootfs -f12 /* /media /flash/Luam cov ntsiav mus rau sd cardcp uImage-2.6.30-sheevaplug/media/flash/boot/

Kauj Ruam 8: Kho Fstab

Kho qhov Fstab
Kho qhov Fstab

Fstab yuav tsum tau kho kom taw tes rau daim npav SD. Sheevaplug pom daim npav SD li /dev /mmcblk0p X vi /etc /fstab hloov /hauv paus rau /dev /mmcblk0p1 /ext2 txuas ntxiv 10

Kauj Ruam 9: Rov Pib Dua Tus Password

Pib dua lub hauv paus Password
Pib dua lub hauv paus Password

Kuv tsis muaj lub tswv yim dab tsi hauv paus lo lus zais tau teeb tsa. Yog li peb yuav tshem nws. vi/media/flash/etc/shadow Hloov qhov tshem tus password: hauv paus: 65946945gkfhkfjghkfghfkngdfshgt843: 14495: 0: 99999: 7::: toroot:: 14495: 0: 99999: 7:::

Kauj ruam 10: Hloov kho Network Configuration

Kho kom raug Network Configuration
Kho kom raug Network Configuration

Kho lub network teeb tsa rau koj lub network vi/media/flash/etc/sysconfig/network NETWORKING = yog HOSTNAME = YourHostnameHerevi/media/flash/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0 BOOTPROTO = zoo li qub ONBOOT = yog NETMASK = 255.255.255.0 IPADDR = 10.0.0.2 GATEWAY = 10.0.0.1 DNS1 = 10.0.0.1 TYPE = Ethernet USERCTL = tsis muaj PEERDNS = tsis muaj IPV6INIT = tsis muaj NM_CONTROLLED = tsis Unmount daim npav SD umount /media /flash Muab tso rau hauv SheevaPlug

Kauj Ruam 11: Npaj Koj Lub Box Linux kom Hloov Kho Lub Kernel

Npaj Koj Lub Box Linux kom Hloov Kho Lub Kernel
Npaj Koj Lub Box Linux kom Hloov Kho Lub Kernel

SheevaPlug nkoj nrog lub khoos phis tawj uas tuaj yeem khau raj ntawm SD daim npav. Yog li koj yuav tsum hloov kho nws dua TFTP Nruab tftp serveryum nruab tftp-server Tau txais u-boot duab thiab ua rau nws muaj rau sheevaplug cd/var/lib/tftpboot/wget https://www.cyrius.com/tmp/ u-boot.bin-3.4.19 mv u-boot.bin-3.4.19 uboot.bin vi /etc/xinetd.d/tftp hloov "lov tes taw = yog" rau "lov tes taw = tsis" Ntxiv tsab ntawv los thauj cov ftdi tus tsav tsheb thaum SheevaPlug txuas nrog: vi /etc/udev/rules.d/85-sheevaplug.rules # yog tias tsis muaj tus tsav tsheb tau thov lub interface tsis tau, ntsaws ftdi_sio ACTION == "ntxiv", SUBSYSTEM == "usb", ENV { DEVTYPE} == "usb_interface", / ATTRS {idVendor} == "9e88", ATTRS {idProduct} == "9e8f", DRIVER == "", RUN+= "/sbin/modprobe -b ftdi_sio" # ntxiv sheevaplug VID thiab PID rau cov npe khoom siv txhawb los ntawm ftdi_sio ACTION == "ntxiv", SUBSYSTEM == "tsav tsheb", / ENV {DEVPATH} == "/bus/usb-serial/drivers/ftdi_sio", / ATTR { new_id} = "9e88 9e8f" # xaiv qhov tsim tau yooj yim symlink rau lub console ntaus ACTION == "ntxiv", KERNEL == "ttyUSB*", / ATTRS {interface} == "SheevaPlug JTAGKey FT2232D B", / ATTR S {bInterfaceNumber} == "01", / SYMLINK+= = "sheevaplug" *** Plug rau hauv cov kab ntawv txuas los ntawm Sheevaplug, yog tias a /dev /ttyUSBx tsis tau tsim, rov pib dua koj li linux system

Kauj ruam 12: Hloov Boot Parms

Hloov Boot Parms
Hloov Boot Parms

Nqa tus xov tooj usb txuas rau lub txuas me me usb ntawm SheevaPlug mus rau qhov chaw nres nkoj usb ntawm koj lub thawv linux. screen /dev /ttyUSBX 115200 Hloov kho firmware Marvell >> setenv serverip 192.168.1.2 # IP ntawm koj li TFTP server Marvell >> setenv ipaddr 192.168.1.200 #IP ntawm sheevaplug Marvell >> bubt uboot.bin ** Ceeb Toom ** Yog U- Boot Endiannes tab tom yuav hloov (LE-> BE lossis BE-> LE), Tom qab ntawd Env tsis yuav tsum tau thim.. Override Env tsis? (y/n) n Tom ntej no koj yuav tsum teeb tsa lub bootloader kom khau raj tawm ntawm SD daim npav SD mainetLinux yog setenv arcNumber 2097 setenv bootargs_console console = ttyS0, 115200 setenv bootargs_root 'rw root =/dev/mmcblk0p1 rootdelay = 10 rootfstype = ext2 bootcmd_mmc 'mmcinit; ext2load mmc 0 0x800000 /boot /uImage-2.6.30-sheevaplug 'setenv bootcmd' setenv bootargs $ (bootargs_console) $ (bootargs_root); khiav bootcmd_mmc; bootm 0x0800000 'saveenv pib dua Nws yuav tsum khau raj tam sim no.

Kauj Ruam 13: Tshaj Tawm Cov Lus Cim

Tshaj Tawm Cov Lus Cim
Tshaj Tawm Cov Lus Cim

Koj yuav tsum tau hloov lub hauv paus lo lus zais. IP Tables tsis thauj khoom raug cai ntawm kuv f12 teeb tsa. Yog li hloov /etc/hosts.allow thiab hosts.deny kom txog thaum ib tus neeg tuaj yeem txiav txim siab nws … Kuv khiav Apache/PHP/DNSmasq/samba/etc rau nws thiab tsis tuaj yeem pom tiag tiag qhov ua tau zoo ntaus.

Pom zoo: