首先是TFTP的搭建,因为我用的不是fedora系统,所有有些不同: sudo apt-get install tftp-hpa tftpd-hpa xinetd 在根目录下创建文件夹/tftpboot/ 修改目录权限chmod -R 777 /tftpboot/ 修改tftp配置文件,如果没有就创建 #vim /etc/xinetd.d/tftp service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot/ source = 11 cps = 100 2 flags =IPv4 } 修改inetd.conf文件 # vim /etc/inetd.conf tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot/ 其中/tftpboot/root为 tftp共享目录 修改tftpd-hpa文件 # vim /etc/default/tftpd-hpa #RUN_DAEMON="no" #OPTIONS="-s /tftpboot/root -c -p -U tftpd" TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot/root" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="-l -c -s" 这样就算装好了,对了,不要忘了重新启动tftp服务。service tftpd-hpa restart 在/tftp目录下创建任意文件:123.txt tftp localhost 进入tftp命令行 get 123.txt 看是否下载成功 下面是重启内容: NAND read: device 0 offset 0x40000, size 0x400000 Reading data from 0x43f800 -- 100% complete. 4194304 bytes read: OK Boot with zImage Starting kernel ... Uncompressing Linux... done, booting the kernel. Linux version 3.2.50+ (d02cj@LinuxServer0) (gcc version 4.4.6 (crosstool-NG 1.13.3) ) #407 Mon Fe4 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: SMDK2416 Memory policy: ECC disabled, Data cache writeback CPU S3C2416/S3C2450 (id 0x32450003) S3C24XX Clocks, Copyright 2004 Simtec Electronics CPU: MPLL on 534.000 MHz, cpu 534.000 MHz, mem 133.500 MHz, pclk 66.750 MHz CPU: EPLL on 96.000 MHz, usb-bus 48.000 MHz Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/mtdblock2 console=ttySAC0,115200 PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 59612k/59612k available, 5924k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc048f598 (4638 kB) .init : 0xc0490000 - 0xc04d4000 ( 272 kB) .data : 0xc04d4000 - 0xc04ff500 ( 174 kB) .bss : 0xc04ff524 - 0xc052c81c ( 181 kB) SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:109 irq: clearing subpending status 00000003 irq: clearing subpending status 00000002 Console: colour dummy device 80x30 Calibrating delay loop... 266.03 BogoMIPS (lpj=665088) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 S3C Power Management, Copyright 2004 Simtec Electronics S3C2416: Initializing architecture S3C2416: IRQ Support S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics DMA channel 0 at c4804000, irq 88 DMA channel 1 at c4804100, irq 89 DMA channel 2 at c4804200, irq 90 DMA channel 3 at c4804300, irq 91 DMA channel 4 at c4804400, irq 92 DMA channel 5 at c4804500, irq 93 DMA channel 6 at c4804600, irq 99 DMA channel 7 at c4804700, irq 100 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 input: helper2416_keypad as /devices/platform/helper2416_keypad/input/input0 s3c-i2c s3c2410-i2c: slave address 0x10 s3c-i2c s3c2410-i2c: bus frequency set to 65 KHz s3c-i2c s3c2410-i2c: i2c-0: S3C I2C adapter Advanced Linux Sound Architecture Driver Version 1.0.24. NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NetWinder Floating Point Emulator V0.97 (double precision) s3c-adc s3c24xx-adc: attached adc driver helper2416 pwm device Driver s3c24xx-pwm s3c24xx-pwm.0: tin at 33375000, tdiv at 33375000, tin=divclk, base 0 s3c24xx-pwm s3c24xx-pwm.1: tin at 33375000, tdiv at 33375000, tin=divclk, base 8 s3c24xx-pwm s3c24xx-pwm.2: tin at 11125000, tdiv at 11125000, tin=divclk, base 12 s3c24xx-pwm s3c24xx-pwm.3: tin at 11125000, tdiv at 11125000, tin=divclk, base 16 nfs4filelayout_init: NFSv4 File Layout Driver Registering... NTFS driver 2.1.30 [Flags: R/O]. JFFS2 version 2.2. (NAND) |
文章评论(0条评论)
登录后参与讨论