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 (
Http://www.zhidun.com/phpbb/viewtopic.php? P = 3114 SID = 25c527becbf0a130b323a2715b8fb265
Embedded Laboratory of Kunming University of Science and Technology (szarm@21cn.com)(For more information, see the source)========================================================== ======================================I. Introduction:The yaffs (yet another flash file system) file system is an embedded file system designed specifically for NAND Flash. Currently
Problem
A recent project needs to port Vivi to our Samsung 2440 board at head. after the crystal oscillator frequency clock frequency is set in S, Vivi can run, but after entering main, the program crashes when the MTD device is initialized.
Connect to the JTAG and use the axd debugger of ads for assembly debugging. It is found that the program is running an endless loop, according to Vivi. the address information provided in the map shows that the current command belongs to the undefentrypoin
zones, but only the hardware ECC in the main area is implemented.In order to implement hardware ECC, you first need to define the macro CONFIG_S3C2410_NAND_HWECC in the Include/configs/smdk2410.h file, so that drivers/mtd/nand/s3c2440_ The three functions required for hardware ECC are defined in the NAND.C file: s3c24x0_nand_enable_hwecc function, S3C24X0_NAND_CALCULATE_ECC function, and s3c24x0_nand_correct_ Data function, and in the Board_nand_init
Because the loader upgrade requires Flash to save data, but there is no suitable interface for use on the Android systemI have studied the MTD interface design and transplanted the flash Management Code. I have some experiences to record it.
Exclusive terms:1. MTD: memory technology device, memory technology device,2. JEDEC: Joint Electron Device Engineering couneller, electronic and electrical equipment Federation3. CFI: Common flash interface, General flash interface, a flash interface standar
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
UBI File System OverviewBefore linux-2.6.27, talking about flash file system, we often think of cramfs, jffs2, yaffs2 and other file systems. They are also based on the file system + MTD + flash device architecture. After the linux-2.6.27, the kernel added a new type of FLASH file system ubi (unsorted block images ). Here we will briefly introduce the reasons for adding the ubi file system and how to use it. I have just got in touch with this file system. I may not understand it. please correct
://download.csdn.net/detail/yx_l128125/4243343
Run the following command:
# Tar zxvf lzo-2.05.tar.gz
# Cd lzo-2.05
#./Configure
# Make
# Make install
C. Install mtd-utils.tar.gz (in my resources): http://download.csdn.net/detail/yx_l128125/4243333
# Tar zxvf mtd-utils.tar.gz
# Cd MTD-utils
#./Configur
# Make
# Make install
Step 2. after using the preceding installation command, mkfs. ubifs is installed in the/usr/local/usr/sbin directory. Run the following command: Export Path = $ path: /usr/lo
Norflash and nandflash cannot be clearly understoodDifferences between nor flash and nand flash
I have been studying embedded systems for a while. I was confused when I first came into contact with nor and nand. I had to write a blog to remember clearly.
First, they are all storage devices, collectively referred to as flash memory. The reason for their difference must be the hardware difference. // It see
One-click Burn Write Linux StepsA: Formatted SD card, format FAT32 (try to use SD card, other cards need to transfer board may have a problem)B: Using the PC Burn-write tool sd_writer.exe the SD card boot file Mmc.bin burned into the SD cardA: Start Sd_writer.exe (Win7 need to run as Administrator)B:board Model Selection 6410C:SD Volume (SD drive letter), first click Scan Auto Search, wrong words manually adjustD:SD type is auto (Win7 also needs to click Format Formatted SD card)E:os Type Select
the advantages of low power consumption, high density, and small size. Currently, Flash is classified into nor,Two types of NAND.
Nor flash memory can directly read the data stored in the chip, so the speed is relatively fast, but the price is relatively high. The address line of the nor chip is separated from the data line. Therefore, the nor chip can be connected to the data line like the SRAM, And the nor chip can be operated as the basic unit.
Nandflash driver porting series Article Navigation:
Nandflash driver porting (1)
Nandflash driver porting (2)
Nandflash driver porting (III)
Nandflash driver porting (4)
Nandflash driver porting (5)
Nandflash driver porting (6)
Six in total
Here we will introduce the nfcon and nandflash control registers in the cloud6410cpu.
8.1 OverviewRecently nor Flash Memory price has increased and PR ice for SDRAM and a nand flash memory is moderatly placed.T
bus), NAND controller, NAND flash boot loader, bus controller, arbiter and decoder, Interrupt controller, power management module, camera interface module, memory controller (including SRAM, NOR Flash and SDRAM three kinds).Various peripherals are mounted on the APB bus, including 3 UART,USB devices, SDI/MMC card, watchdog customizer, bus controller, arbiter and decoder, 2 SPI bus, I²c bus, I2S bus, GPIO i
Recently, Tsinghua Purple, Wuhan New core in the field of memory chips frequently, so that we look at the previously neglected memory chip. For a long time, in the CPU,GPU, baseband and other "advanced" chip spotlight under the cover-up, memory chip has been in obscurity, however, any one involving digital IC products, small to the bank card, big to the server, it is impossible to exist from the memory chip, Because the guru von Neumann has pointed out that the core of modern computer control is
Before linux-2.6.27, talking about flash file system, we often think of cramfs, jffs2, yaffs2 and other file systems. They are also based on the file system + MTD + flash device architecture. After the linux-2.6.27, the kernel added a new type of FLASH file system ubi (unsorted block images ). Here we will briefly introduce the reasons for adding the ubi file system and how to use it. I have just got in touch with this file system. I may not understand it. please correct me.
I. background
Flash
S3c2440a Memory Design Change my zookeeperArticleFont Size
Author:Harlanstars (Harlan) [Article 17 | 6265 popularity | 0 percent | 0 percent outgoing neighbors]
[Reply to this article] [Issue new text] [To users] [to users] [back to users] [back to discussion area list] [back to knowledge portal]
2008/3/20 10:08:04 AM
In s3c2440a, memory storage is divided into eight banks, each of which is 128 M bit. The total size is 1G bit. bank0 ~ Bank5 is used in ROM/SRAM and bank6 ~ Bank7 is used i
To analyze the Startup Process of arm2440, you must first understand the hardware configuration of arm2440. There is no storage chip in the CPU of arm2440, except for a 4 kb SRAM (static memory can run programs, but the most important thing is to lose all the data when the power is down. Note that the 4 kb is the CPU itself, not the peripherals. Now let's talk about the starting process. (Start from nand flash)
1. First, the machine is powered on, and
the design of the PC system, and the bios and hard disk code in the PC system are all concentrated on a flash chip. Therefore, although the BIOS can also use flash chips, their meanings and functions are different from those of embedded systems.
BiOS self-check
Video Card BIOS Detection
CPU model detection and memory testing
Read hard disk Boot Sector
Get the OS Startup File
Figure 1.2 The PC boot process flash chip is
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.