Hello,
Earlier I had asked about how to backup NAND on SBC8600B based SOM.
I accidentally erases all u-boot partitiions (u-boot SPL and u-boot & some portion of kernel)
Source code and dts file not available , bought another working Module, bicked and working both same version.
Board Details:
Board is based on SBC8600B, it has same AM3358 core module.
Machine: am335xevm
NAND read: device 0 offset 0x280000, size 0x500000
Partition Details:
=> mtdparts
device nand0 <nand.0>, # parts = 8
#: name size offset mask_flags
0: NAND.SPL 0x00020000 0x00000000 0
1: NAND.SPL.backup1 0x00020000 0x00020000 0
2: NAND.SPL.backup2 0x00020000 0x00040000 0
3: NAND.SPL.backup3 0x00020000 0x00060000 0
4: NAND.u-boot 0x001e0000 0x00080000 0
5: NAND.u-boot-env 0x00020000 0x00260000 0
6: NAND.kernel 0x00500000 0x00280000 0
7: NAND.file-system 0x1f880000 0x00780000 0
active partition: nand0,0 - (NAND.SPL) 0x00020000 @ 0x00000000
Steps to copy partition from NAND to SD card (fat file system).
nand read 82000000 NAND.SPL
fatwrite mmc ${mmcdev} 0x82000000 nand-spl.img 0x20000
mw.b 0x82000000 0xff 0x20000
nand read 82000000 NAND.u-boot-env
fatwrite mmc ${mmcdev} 0x82000000 nand-u-boot-env.img 0x20000
mw.b 0x82000000 0xff 0x80000
nand read 82000000 NAND.u-boot
fatwrite mmc ${mmcdev} 0x82000000 nand-u-boot.img 0x1e0000
Next setp use these files to create bootable SD card , boot bricked module with sd card and re-flash.
I have u-boot and kernel image files, need to boot bricked board with SD card prepared from NAND backup files.
Please help with steps in creating bootable SD card using copies of NAND.
Thank You.
Sudheer