uboot preliminary -01

step:

1, select the appropriate version of uboot

2, uboot modified

3, a cross compiler bin file

4, programmed into the SD card or the flash

uboot version select
various peripherals in uboot called the IP core CPU core periphery is called broad


 Uboot version can be used on S5PV210 reference: goni

Interrupt and exception difference:

Cpu interrupts can be ignored, but an exception must be carried out

Abnormal higher priority than interrupt.

Abnormal type:

1, undefined_instruction undefined instruction
2, software_interrupt soft interrupt
3, prefetch_abort value pre-suspension
4, data_abort Data Abort
5, irq normal interrupt
6, fiq fast interrupt

 uboot of the SPL:
   uboot substantially about the size of 200KB, the internal SRAM S5PV210 only 96KB, so as to uboot two mirrors: u-boot.bin uboot_spl.bin. uboot_spl.bin (BL1) loadable into the internal SRAM running (while external SDRAM initialization), then the bulk of the u-boot u-boot.bin loaded directly into the external SDRAM, the last hop to the external SDRAM memory SRAM internal U the first address -boot.bin to run.

 PL0 (Privilege mode 0) usr mode: normal program execution processor status
 PL1 sys mode
              superviser mode,
              IRQ mode
              FIQ mode
              Abort mode (data mode terminating access)
PL2 mode the Hyper
production uboot image programming:
1, compile the file:
the make S5P_goni_config
the make
2, the content of 16K before extraction:
./mkv210 boot.bin U-U-boot.16k
. 3, copy files to the SD card PC terminal specified location:

. 1  the sudo  dd iflag = the dsync of oflag the dsync = IF = U-boot.16k of = / dev / SDB = Seek . 1 
2  // iflag: INPUT In Flag of oflag: Output In Flag
 . 3  // IF: INPUT File (source) of: output file (the object file)
 . 4  // Seek =. 1: written starting at the first sector

Here you can also create a batch file to execute the above command : New File bornSD.sh

1  #!/bin/bash
2 
3 ./mkv210 u-boot.bin u-boot.16k
4 sudo dd iflag=dsync oflag=dsync if=u-boot.16k of=/dev/sdb seek=1
5 sudo dd iflag=dsync oflag=dsync if=u-boot.bin of=/dev/sdb seek=49

After modifying the file mode is executable: chmod a + x bornSD.sh. Just after the execution bornSD.sh can execute three instructions above.

 

Copy the value of a portion of the content file to another file Linux environment Method: (A ---> B)
. 1, in the source file A vim command line: "variable name row number yy" as "a3yy"
2, B open the file "variable name p" as "ap"

Code debugging command: objdump  , hexdump

See disassembly file (output C source code and disassembled out of the instruction format control) arm-linux-objdump -S filename

View in the pipeline: arm-linux-objdump -S filename | less


                  

 


  

Guess you like

Origin www.cnblogs.com/embeded-linux/p/10146159.html