UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Voyager
Voyager
2,715 Views
Registered: ‎09-14-2016

Configure NAND partitions

Hi Hall,

 

We have successfully flash our NAND from JTAG & Xilinx SDK. So my question about NAND address.

 

I would like to work with this simple schema first:

 

 

Flash “partitions”

### nand-partition 0 ###
FSBL
File: fsbl.elf
Start address: 0x0
Size: 0x100000 = 4 blocks = 1 MB

### nand-partition 1 ###
U-boot
File: u-boot.elf
Start address: 0x100000
Size: 0x400000 = 16 blocks = 4 MB

### nand-partition 2 ###
U-Boot environment
Start address: 0x500000
Size: 0x40000 = 1 block = 256 kB

### nand-partition 3 ###
kernel Linux kernel
File: uImage
Start address: 0x540000
Size: 0xA00000 = 40 blocks = 10 MB

### nand-partition 4 ###
dtb Compiled device tree blob
File: devicetree.dtb
Start address: 0xF40000
Size: 0x40000 = 1 block = 256 kB

### nand-partition 5 ###
Ramdisk1
File: uramdisk1.image.gz
Start address: 0xF80000
Size: 0x1400000 = 80 blcks = 20 MB

### nand-partition 6 ###
Ramdisk2
File: uramdisk2.image.gz
Start address: 0x2380000
Size: 0x1400000 = 80 blcks = 20 MB

### nand-partition 7 ###
Factory UBIFS root file system
File: factory.ubifs
Start address: 0x3780000
Size: (remaining space)

 

According to the part table I configured BOOT.bin file like that:

 

the_ROM_image:

{

    [bootloader]C:\fsbl.elf

    C:\u-boot-.elf

    [offset = 0x540000, load = 0x3A00000]C:\uImage.bin

    [offset = 0xF40000, load = 0x3900000]C:\standalone.dtb

    [offset = 0xF80000, load = 0x2000000]C:\uRamdisk1.image.gz

    [offset = 0x2380000, load = 0x2000000]C:\uRamdisk2.image.gz

    [offset = 0x3780000, load = 0x2000000]C:\factory.ubifs

}

 

 

So everything seems good on the NAND device and we are able to boot kernel with uramdisk1 and uramdisk2.

 

OK what's wrong ? Now i would like to update u-boot (from u-boot himself or Linux user-space, loaded from SDcard) without erase the others NAND parts, but what's u-boot start address on the NAND ?

 

Best regards,

Trigger

 

Tags (2)
0 Kudos