Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Detailed Linux platform chip programming process     - Iptables small summary (Linux)

- Do you know how to build the Linux kernel (Programming)

- To setup NOTRACK and TRACK of conntrack in iptables (Linux)

- Linux unpack the tar file to a different directory (Linux)

- Oracle to create an external table (Database)

- You know the difference between URL, URI and URN among you (Linux)

- How to use the Docker Machine cluster deployment Swarm (Server)

- Linux cron job (crontab) Examples (Linux)

- To restore the last time applications running when Ubuntu user log in again (Linux)

- iOS in Singleton (Programming)

- Python is not C (Programming)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- How to track performance issues when using the Unity Game Development Android (Programming)

- Installation and configuration under Linux SVN server - Backup - Recovery - Scheduled Tasks (Server)

- Generated characters using Java Videos (Programming)

- SQL Server automatic backup script (Database)

- How to install and configure the KVM and Open vSwitch on Linux distributions (Linux)

- How MAT Android application memory leak analysis (Programming)

- HTML5 Application Cache (Programming)

- Python Multithreaded Programming (Programming)

  Detailed Linux platform chip programming process
  Add Date : 2018-11-21      
  Here's programming is already the case for the board uboot yard nandflash in. Aims and principles familiar with programming process!

Connect the development board, restart, enter the u-boot interface, do the following:

First, configure the network
# Print
# Setenv ipaddr (Note: ipaddr for the development board IP)
# Setenv serverip (Note: serverip to Windows hosts IP)
# Setenv gatewayip (Note: gatewayip gateway)
# Saveenv

# Ping (if you can pass, then continue down to do)

Second, the programming file system (tftp first be downloaded to ddr, then by ddr programmed into nandflash)

Programming process from the server to the PC board memory, then the memory from the board to nandflash

First, start the tftp service, choose a good path to the target file to be downloaded, perform the following actions:

Note: You can first tftp into memory, and then use the "bootm address" to start the test, you do not have to erase nandflash

1) kernel programming

// Will download the kernel image into memory
# Tftp 0x40000000 uImage

// You can use this command to verify that the kernel can start properly (optional)
# Bootm 0x40000000

// Begin erasing from the address 0x600000 0x500000 byte size nandflash space
# Nand erase 0x600000 0x500000

// Will start burning 0x40000000 0x500000 bytes of memory data to nandflash
# Nand write 0x40000000 0x600000 0x500000

2) programming fs

// Will download the file system image into memory
# Tftp 0x40000000 rootfs.img

// Begin erasing from nandflash address 0xe00000 0xf200000 space size
# Nand erase 0xe00000 0xf200000

// The memory file system image programmed into nandflash
# Nand write.yaffs 0x40000000 0xe00000 0xxxxx (0xxxxx determined by the Executive tftp 0x40000000 rootfs.img download size)

3) Writing u-boot

// The u-boot.bin download the file to memory
# Tftp 0x40000000 u-boot.bin

// 0 erased from nandflash address space size 0x600000
# Nand erase 0x0 0x600000

// Will start burning 0x40000000 0x600000 bytes of memory data to nandflash
# Nand write 0x40000000 0x0 0x600000

Third, reboot into u-boot interface, configure the startup parameters uboot

Test 1 (Start Core):

// Set the start command: start nandflash read about memory, from memory to boot the kernel
// The two commands at the same time to keep bootcmd inside, separated by semicolons, backslashes can improve parsing speed
# Setenv bootcmd nand read 0x40000000 0x600000 0x500000 \; bootm 0x40000000

// Save the settings of the environment variables
# Saveenv

Restart, the observed effect.

Test 2 (setting machine code):

// Uboot kernel machine code to the same
# Setenv machid 0xXXX (based on availability)
# Saveenv

Restart, the observed effect.

Test 3 (start the local file system):

// Uboot kernel at boot time need to pass parameters to the kernel, the most important is to let the kernel to mount the root file system
// After the disk file system is mounted successfully, the system performs a disk file system under the / sbin / init program
// Serial debug terminal is 0, the baud rate is 115200bps
// Root file system type is yaffs, can read and write
# Setenv bootargs root = / dev / mtdblock4 init = / sbin / init console = ttySAC0,115200 rootfstype = yaffs rw
# Saveenv

Restart, the observed effect.

Fourth, to achieve nfs mounted file system proceed as follows:

1. Make sure the virtual machine virtualbox in card for the wired LAN (because it is through the cable mount)

2, set the ip address
# Setenv serverip

# Setenv ipaddr
# Setenv gatewayip
# Saveenv

Note: serverip to Windows in the Ubuntu in virtualbox of IP

Test 4 (in ubuntu mount root file system):
# Setenv bootargs root = / dev / nfs nfsroot = / mini_rootfs ip = :: :: eth0: off init = / linuxrc console = ttySAC0,115200
# Saveenv

Restart, the observed effect.
- Linux iptables firewall and vsftpd to resolve the issue (Linux)
- Linux centralized log server rsyslog (Server)
- Graphic Git (Linux)
- How to view the Linux program or process used in the library (Linux)
- Setting the RedHat9 Intrusion Detection System (Linux)
- Neo4j map data processing tab (Database)
- Ubuntu 14.10 Server configuration wireless Internet access (Server)
- MySQL 5.6 use GTIDs build the master database (Database)
- C ++ Object Model Comments (Programming)
- PXE install CentOS 6.4 (Linux)
- C language programming entry - Common operators (Programming)
- Deb package installation method under ubuntu (Linux)
- Ubuntu method for single-card dual-IP (Linux)
- How do I upgrade from Ubuntu 15.04 to Ubuntu 15.10 (Linux)
- JEdit 5.2 Pro Edition installation on Ubuntu 14.04 (Linux)
- Fragment Android developers learning to resolve (Programming)
- Linux cut Command Study Notes (Linux)
- Git Rebase Tutorial: Using Git Rebase turn back the clock (Linux)
- Spring Data study notes -Helloworld (Programming)
- How to deploy Icinga server (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.