Use the devil Jflash to burn and write FLASH in Linux

Source: Internet
Author: User
In Linux, use the devil Jflash to burn and write FLASH-general Linux technology-Linux programming and kernel information. The following is a detailed description. I tried to write flash in linux for several hours last night. I found a software package called Jflash through network search to achieve this function. I just watched a movie with no chance, when I saw more than and got up at, I suddenly thought about whether my VM didn't enable the parallel port, as if I didn't enable the serial port before, so I couldn't see the starting information, start the instance immediately. First open the VM and shut down it because my VM is suspended. Then VM --> Setting adds the Parallel port to start the instance, run the compiled software.

I will not introduce the Jflash software. As for the software package, we have downloaded the Jflash package from the previous website. In addition, the Jflash software package based on S3C2440 is downloaded from the Guangzhou friends arm, which is actually the same, because the cpu id is the same, first, the software package is downloaded, and then the following operations are performed:

[Root @ localhost root] # chmod + x your software package
[Root @ localhost root] # tar your software package
[Root @ localhost root] # cd your decompressed folder

Then modify your jtag. h file. For details about how to modify the file, refer to the second website I gave above. The first one is also acceptable, but it is not very detailed.

The preceding steps are not described in detail, because they were decompressed last night. What I did is:

[Root @ localhost root] # cd Jflash_s3c2410_linux/
[Root @ localhost Jflash_s3c2410_linux] # ls
Def. h jtag. h k9sxx08. o pin2410.o sbc_vivi
Jflash-s3c2410 jtag. o Makefile ppt. c sjf. c
Jflash_s3c2410_linux.bz2 k9sxx08. c pin2410.c ppt. h sjf. h
Jtag. c k9sxx08. h pin2410.h ppt. o sjf. o

// Next I run Jflash-s3c2410
[Root @ localhost Jflash_s3c2410_linux] #./Jflash-s3c2410

+ ------------------------------------ +
| Sec jtag flash (SJF) v 0.11 +
| Modified by MIZI 2002.7.13 +
+ ------------------------------------ +
Usage: SJF /T = /D = // This is the format
Flash Type List
1: SMDK2410: K9S3208 4 MB
2: SMDK2410: K9S6408 8 MB
3: SMDK2410: K9S2808 16 MB
4: SMDK2410: K9S5608 32 MB
5: SMDK2410: K9S1208 64 MB
6: SMDK2410: AM29LV800BB

// Download the SDK in the following format:
[Root @ localhost Jflash_s3c2410_linux] #./Jflash-s3c2410 GEC2410_BIOS.bin/t = 5

+ ------------------------------------ +
| Sec jtag flash (SJF) v 0.11 +
| Modified by MIZI 2002.7.13 +
+ ------------------------------------ +
> FlashType = 5
> S3C2410X (ID = 0x0032409d) is detected.
> K9S1208 is detected. ID = 0xec76

K9S1208 NAND Flash JTAG Programmer vers 0.0
0: K9S1208 Program 1: K9S1208 Pr BlkPage 2: Exit

Select the function to test:

// When I saw this, I was so excited! Either way, just burn it in and try again.
Select the function to test: 0

[SMC (K9S1208) NAND Flash Writing Program]

Source size: 0x92f3

Available target block number: 0 ~ 4095
Input target block number: 0
Target start block number = 0
Target size (0x4000 * n) = 0xc000
STATUS: epppppppppppppppppppppppppppppppppppppp
Epppppppppppppppppppppppppppppppppppp
Epppppppppppppppppppppppppppppppppppp

K9S1208 NAND Flash JTAG Programmer vers 0.0
0: K9S1208 Program 1: K9S1208 Pr BlkPage 2: Exit

// Well, the speed is much slower than that of Sjflash in windows. It takes 10 minutes. No matter what, first check whether it can run, then return to the terminal, enter the serial port, reset the target board, haha, look at the following results, it is really good

Select the function to test: 2
[Root @ localhost Jflash_s3c2410_linux] # minicom
** Parameter bits is public, but is marked private in global config file
** Parameter parity is public, but is marked private in global config file
** Parameter stopbits is public, but is marked private in global config file


Welcome to minicom 2.00.0

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jan 25 2003, 00:15:18.

Press CTRL-A Z for help on special keys


Power on reset
Read chip id = ec76
Nand flash status = c0
Env. OS _Auto_Flag = 2
************************************
**
* GEC2410 BIOS V1.0 *
* Http://www.gdemb.com *
**
************************************
NAND Flash Boot

Please select function:
0: USB download file
1: Uart download file
2: Write Nand flash with download file
3: Load Pragram from Nand flash and run
4: Erase Nand flash regions
5: Write NOR flash with download file
6: Set boot params
7: Set AutoBoot parameter, 1: linux 2: wince
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.