The following is an analysis record:------------------------------------------------------------------------------The parameters of the above command can be extracted from the Ubifs mount information:Ubi:attaching Mtd5 to Ubi0Ubi:physical eraseblock size:131072 bytes (+ KiB)//-P: Physical Erase block sizeUbi:logical eraseblock size:129024 Bytes//-E: Logical erase block Size (leb size)Ubi:smallest Flash I/O unit:2048//-M: Page sizeUbi:sub-page size:512
Reprinted, please indicate the source and author of the article!
Source: http://blog.csdn.net/xl19862005
By xandy)
In the previous article, I briefly explained the code modification part involved in adding the recovery function. After the code is modified successfully, it is not equal to the required function, there are still a lot of problems to solve after compilation is completed to the target board!
After one day of hard work, Bootloader and recovery are added and compiled successfully. Aft
Content of this week's job:1, create a 10G partition, and the format of the Ext4 file system;(1) The block size is required to 2048, the reserved space percentage is 2, the volume label is MyData, the default Mount property contains ACLs;[Email protected]:~# FDISK/DEV/SDACommand (M for help): Pdisk/dev/sda:1000.2 GB, 1000204886016 bytes255 heads, Sectors/track, 121601 cylinders, total 1953525168 sectorsUnits = sectors of 1 * MB = bytesSector size (log
/EXP (5sec/5min) * *
#define EXP_15 2037/* 1/EXP (5sec/15min) * *
The three constants represent constants for 1/5/15 minutes, which are calculated by:
1884 = 2048/(Power (E, 5/(60*1)))/* E = 2.71828 * *
2014 = 2048/(Power (E, (5/60*5)))
2037 = 2048/(Power (E, (5/60*15)))
We assume that the load of the previous moment, measured in constant 1884, is Load1 (t-1
amount of space per data chunk, default is 4KiB, minimum is 512, 64KiB Max
-F
Forcibly overwrite a file system that already exists
-Q
Silent mode
Example
1. Mount the ISO image file
[[email protected] ~] # ll * .iso
-rw-rw-r--. 1 root root 4470079488 June 20 21:04 CentOS-7.5-x86_64-DVD-1804.iso
# Create a mount point
[[email protected] ~] # mkdir -p / tmp / CDROM
[[email protected] ~] # mount -t iso9660 -o loop ~
aptitude install swift-account swift-container swift-object xfsprogs
Create an xfs system partition. Of course, (this requires an empty partition). If the partition on the hard disk is used and the data is no longer needed, delete the partition and perform the following operations. Otherwise, adding a new hard disk is the most convenient choice. All storage operations are required.
Fdisk/dev/sdb
Command (m for help): n
Partition type:
P primary (0 primary, 0 extended, 4 free)
E exten
/512 bytes
Now, this Linux system can use the falcon disk to create the mirror of LVM.# Fdisk/dev/SDB
Welcome to fdisk (util-Linux 2.23.2 ).
Changes willremain in memory only, until you decide to write them.
Be carefulbefore using the write command.
Device does notcontain a recognized Partition Table
Building a newdos disklabel with disk identifier 0xa04efd3a.
Command (M forhelp): n
Partition type:
P primary (0 primary, 0 extended, 4 free)
E extended
Select (defaultp ):
Using defaultresponse P
closer look at the NAND write in uboot. the uboot command writes data to the first four pages of nandflash. After successful writing, you can start uboot from nandflash.
The key code of NAND write. uboot is located in the uboot1.1.6/common/cmd_nand.c file:
If (! Read S! = NULL (! Strcmp (S, ". uboot") NAND-> writesize = 4096) // u0d
{
Size = 4096;Nand_write (nand, off, size, (u_char *) ADDR );Off + = 4096;ADDR ++ = 2048;Nand_write (nand, off, siz
: not presentGPT: presentFound valid GPT with protective MBR; using GPT.Command (? For help ):?Bback up GPT data to a fileCchange a partition's nameDdelete a partitionIshow detailed information on a partitionLlist known partition typesNadd a new partitionOcreate a new empty GUID partition table (GPT)Pprint the partition tableQquit without saving changesRrecovery and transformation options (experts only)Ssort partitionsTchange a partition's type codeVverify diskWwrite table to disk and exitXextra
Content of this week's job:1, create a 10G partition, and the format of the Ext4 file system;(1) The block size is required to 2048, the reserved space percentage is 2, the volume label is MyData, the default Mount property contains ACLs;[Email protected]:~# FDISK/DEV/SDACommand (M for help): Pdisk/dev/sda:1000.2 GB, 1000204886016 bytes255 heads, Sectors/track, 121601 cylinders, total 1953525168 sectorsUnits = sectors of 1 * MB = bytesSector size (log
implementation in Flash lib to control NFC (NAND Flash Controller) to complete the flash operations. The Flash lib operation result is returned to the ram kernel and sent to the host, which is displayed on the GUI.
Freescale I. mx advanced toolkit (ATK) download tool to modify the ATK source program to support the new NAND. The new development board changes the DDR and the NAND needs to compile and generate a new romlib. Bin1) Add a new DDRThis test file can be called during download after th
When we develop an app, we usually want it to run on the IPhone, IPad, Mac, and especially the game.This will require us to consider the different devices different resolution, processing is more troublesome.For example, according to the official practice, we need to provide such as xx.png, [email protected], [email protected], xx~ipad.png, and [email protected] Such a different picture,There is also a large number of if (...) written in the program. {...} else if {...} This kind of code to dist
After writing the previous blog, "LTE cell search-Physical cell ID and synchronization signal PSS, SSS," I would like to continue to write system information related content, but found to write the time necessary to involve PDCCH, Phich and other content, and these content has not been systematically written. So the next few posts will write some of the LTE background knowledge that needs to be mastered.This article describes the frame structure-related content of LTE.About the frame structure,
1. The 2048 of global popularity2014 appeared a lot of Flappy Games, in addition to fame and noise of the bird outside, the most popular should be 2048. A seemingly simple digital overlay game, but let the players do not stop at all, the circle of friends also was once the brush screen of the score. Look at their results, and then look at themselves, silently put away the phone, feel that they are more than
IOS development-game screen adaptation (SpriteKit) and iosspritekit
When we develop an App, we usually want it to run simultaneously on the iPhone, iPad, and Mac, especially games.
In this way, we need to consider the different resolutions of different devices, which is troublesome to process.
For example, according to the official practice, we need to provide such as xx.png, xx@2x.png, xx@3x.png, xx ~ IPad.png, and xx ~ Different pictures like iPad@2x.png,
In addition, it is annoying to write a
contain a valid partition table[Email protected] ~]# ll/dev/sd*BRW-RW----. 1 root disk 8, 0 may 09:13/DEV/SDABRW-RW----. 1 root disk 8, 1 May 09:13/dev/sda1BRW-RW----. 1 root disk 8, 2 May 09:13/dev/sda2BRW-RW----. 1 root disk 8, 3 May 09:13/dev/sda3BRW-RW----. 1 root disk 8, 4 May 09:13/DEV/SDA4BRW-RW----. 1 root disk 8, 09:13/dev/sdbBRW-RW----. 1 root disk 8, may 09:13/DEV/SDB1BRW-RW----. 1 root disk 8, 09:13/DEV/SDCBRW-RW----. 1 root disk 8, 09:13/DEV/SDDBRW-RW----. 1 root disk 8, 09:13/DEV/
The virtual network card is defined by the-net NIC # qemu-system-x86_64-enable-kvm-name ubuntutest-m 2048-hda ubuntutest.img-vnc:19-net NIC If we view the info network in monitor You can see the following Sometimes, we see VLAN 0, where the VLAN and 802.1.q a little relationship, is the concept of virtual hub, in the new version has been changed. We can do it in monitor. Set_link e1000.0 off Set_link e1000.0 on To start and stop the network card -net
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.