ubootでシステムを焼く

1382 ワード

        
  rootfs.img  
  uImage 
  u-boot.bin  
  //      flash 0x0  
  //u-boot zimage   。         
 linux         flash     
1.   windows  tftp  
  uboot  tftp    
    .  tftpd32 
      .brower ->      
      .serverip ->     ip
      
2.     (       )
  1)     
  2)     , 3s  0  ,    ,         ,      
  
  # pri //    u-boot     
       ipaddr,serverip,gatewayip?
  
  # set serverip 192.168.1.6    //   IP
  # set ipaddr 192.168.1.3    //    IP 
  # set gatewayip 192.168.1.168
  # save 
  # re
      
  # ping 192.168.1.6
      host 192.168.1.6 is alive,    
        
3.   Linux  

  1)  kernel
  # tftp 40000000 uImage //    SDRAM   
  # nand erase 0x600000 0x500000 //nand flash     600000  500000  bit     
  # nand write 40000000 600000 500000 
  //   40000000  nand flash 600000      500000   
  
  2)   rootfs
  # tftp 40000000 rootfs.img  
  # nand erase 0xe00000 0xf200000 
  # nand write.yaffs 0x40000000 0xe00000 0x5e95c0 
  (0x5e95c0   tftp       ,     0xf200000 ,   )

  3)   u-boot
  # tftp 40000000 u-boot.bin
  # nand erase 0x0 0x600000  
  # nand write 40000000 0x0 0x600000 
  
4.   linux    
  # set bootcmd nand read 40000000 600000 500000 \;bootm 40000000
  # save
  # re
  
  # set bootargs root=/dev/mtdblock4 init=/linuxrc console=ttySAC0,115200 rootfstype = yaffs rw
  # save
  # re
  
  # set machid f9f
  # save
  # re