SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

clarkdailey
Posts: 1
Joined: Tue Jan 27, 2015 6:36 pm

SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Tue Jan 27, 2015 7:09 pm

Has anyone had any success in modifying SAM-BA applet to support Micron NAND flash MT29F8G08ABABA chip for an AT91SAM9260 micro?
The mfg-id is 0x2C and the chip-id is 0x38. The block size is 512KB, but is recognized wrongly by SAM-BA 2.14 as 256KB. The chip is ONFI 2.1 compliant. I have tried adding an entry to the nandFlashModelList[] table as "{0x38, NandFlashModel_DATABUS8 | OPTIONS, 0, 1024, 0, &nandSpareScheme4096}" without success. It has an odd oob size of 224 bytes.
JoanS
Posts: 2
Joined: Mon Jan 20, 2014 12:10 pm

Re: SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Mon Sep 17, 2018 4:09 pm

Hello,

I'm trying to do the same: I need to increase NANDFLASH capacity from 2Gbits to 8Gbits in a SAMA5D31-EK board (CoreModule). By upgrading to SAM-BA 2.16 (even downloading 2.18 you get 2.16 - my developpent platform is an Ubuntu 32-bit, so I cannot use sam-ba 3.2.1) I managed to have the NANFLASH initialized. The problem commes with Pmecc configuration. I've seen in other posts somebody using 0xc0082E07 but it remained un clear if this was the proper value.

I understand that SAM-BA is just the first step. Later I would need to be configuring AT91bootstrap and U-Boot.

Any help will be appreciated.

Joan.
blue_z
Location: USA
Posts: 1741
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Wed Sep 19, 2018 1:19 am

JoanS wrote: The problem commes with Pmecc configuration.
You really haven't asked any question.
Try studying this post and this Linux4SAM tutorial.

Regards
JoanS
Posts: 2
Joined: Mon Jan 20, 2014 12:10 pm

Re: SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Fri Sep 21, 2018 12:07 pm

Hi,

Thanks for the pointers. Regarding Linux4SAM tutorial I was aware of it. What I found missing in that particular tutorial is the relationship between flash various parameters and the 32-bit value. I needed that value since I'm not using SAM-BA interactively. I launch the program from a Linux shell script with various parameters and I needed to configure the associated tcl files. Right now I've verified that the value 0c0082e07 is the proper Pmecc value to be used with MT29F8G08 part - I managed to have SAM-BA properly programming the new part.

Now I need to configure memory locations for the various images (ATbootstrap, U-boot, U-boot env, DTB, Linux, bussybox). I've already tried by maintaining the same memory distribution and the loading of Linux Kernel ends-up in panic.

Any help in doing so?

Below the relevant parameters of both parts
Mikron MT29F2G08 Mikron MT29F8G08
Sector size 128 KiB 512 KiB
Page size 2048 b 4096 b
OOB size 64 b 224 b
Erase size 524288 b 131072 b

Thanks,
Joan Salvat
blue_z
Location: USA
Posts: 1741
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM-BA mods for MT29F8G08 NAND on AT91SAM9260

Sat Sep 22, 2018 12:33 am

JoanS wrote: Regarding Linux4SAM tutorial I was aware of it. What I found missing in that particular tutorial is the relationship between flash various parameters and the 32-bit value.
If you don't ask a specific question, then all you're going to get is a reference to a tutorial.
By "32-bit value" presumably you are referring to the NAND parameter header that is documented in the SoC datasheet?

JoanS wrote: Right now I've verified that the value 0c0082e07 is the proper Pmecc value to be used with MT29F8G08 part
How did you accomplish this verification?
I have doubts that is a correct/valid NAND parameter header value (e.g. the offset looks too small relative to the OOB size).
But your shortened part number makes finding the proper datasheet impossible.

JoanS wrote: Now I need to configure memory locations for the various images (ATbootstrap, U-boot, U-boot env, DTB, Linux, bussybox). I've already tried by maintaining the same memory distribution and the loading of Linux Kernel ends-up in panic.
Do not hijack this SAM-BA topic for your new problem. Start a new topic.

JoanS wrote: Any help in doing so?
http://lmgtfy.com/?q=how+to+debug+linux+kernel+panic

JoanS wrote: Below the relevant parameters of both parts
"Both parts"???
What is the significance of these parts?
FYI a salient configuration parameter that you omit is the number of corrected bits (aka eccBitReq in the NAND parameter header).
Shortening these part numbers (as well as misspelling the manufacturer) renders them incomplete and ambiguous.
Note some salient attributes of the following part numbers that you can't differentiate with "MT29F4G08":

Code: Select all

MT29F4G08ABAEAWP – Page size x8: 4320 bytes (4096 + 224 bytes)   (SAMA5D4-XULT)
MT29F4G08ABADAWP – Page size x8: 2112 bytes (2048 + 64 bytes)    (SAMA5D2-PTC-EK)

Regards

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest