Hi All,
I have done following for mtd partition in uboot,
=> pri mtdids
mtdids=nor0=fe8000000.nor,nand0=fff800000.flash,spi0=spife110000.1
=> mtdparts
incorrect device type in spi0=spife110000.1
in LINUX
root@t2080rdb:/# mtdinfo /dev/mtd0
mtd0
Name: fe8000000.nor
Type: nor
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 1024 (134217728 bytes, 128.0 MiB)
Minimum input/output unit size: 1 byte
Sub-page size: 1 byte
Additional erase regions: 0
Character device major/minor: 90:0
Bad blocks are allowed: false
Device is writable: true
Eraseblock region 0: offset: 0 size: 0x20000 numblocks: 0x400
in T208xRDB.h
/*
* Dynamic MTD Partition support with mtdparts
*/
#ifndef CONFIG_SYS_NO_FLASH
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_FLASH_CFI_MTD
#define MTDIDS_DEFAULT "nor0=fe8000000.nor,nand0=fff800000.flash," \
"spi0=spife110000.1"
#define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(uboot),10m(kernel)," \
"128k(dtb),100m(fs),-(user);fff800000.flash:1m(uboot)," \
"10m(kernel),128k(dtb),100m(fs),-(user);spife110000.1:" \
"1m(uboot),10m(kernel),128k(dtb),-(user)"
=> setenv mtdids nor0=fe8000000.nor
=> setenv mtdparts mtdparts=fe8000000.nor:1m(uboot),10m(kernel),128k(dtb),100m(fs),-(user)
=> mtdparts
device nor0 <fe8000000.nor>, # parts = 5
#: name size offset mask_flags
0: uboot 0x00100000 0x00000000 0
1: kernel 0x00a00000 0x00100000 0
2: dtb 0x00020000 0x00b00000 0
3: fs 0x06400000 0x00b20000 0
4: user 0x010e0000 0x06f20000 0
active partition: nor0,0 - (uboot) 0x00100000 @ 0x00000000
defaults:
mtdids : nor0=fe8000000.nor,nand0=fff800000.flash,spi0=spife110000.1
mtdparts: mtdparts=fe8000000.nor:1m(uboot),5m(kernel),128k(dtb),96m(fs),-(user);fff800000.flash:1m(uboot),5m(kernel),128k(dtb),96m(fs),-(user);spife110000.1:1m(uboot),5m(kernel),128k(dtb),-(user)
=>
AS mantioned in Chapter 7.8.2 of NXP SDK 2.0-1703 documentation, I cannot see the following output,
fe8000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801 Amd/Fujitsu Extended Query Table at 0x0040 Amd/Fujitsu Extended Query version 1.5. number of CFI chips: 1 5 cmdlinepart partitions found on MTD device fe8000000.nor Creating 5 MTD partitions on "fe8000000.nor": 0x000000000000-0x000000100000 : "uboot" 0x000000100000-0x000000900000 : "kernel" 0x000000900000-0x000000980000 : "dtb" 0x000000980000-0x000001480000 : "jffs2" 0x000001480000-0x000008000000 : "fs"
--------------------------------------------------
Could you support me ?
What can I do for MTD partition?
After that my output is like that..
root@t2080rdb:~# cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "fe8000000.nor"
mtd1: 20000000 00020000 "fff800000.flash"
mtd2: 04000000 00010000 "spi32766.0"
root@t2080rdb:~#
root@t2080rdb:~#
Also I have done following things;
setenv bootargs root=/dev/mtdblockx rootfstype=jffs2 rw console=ttyS0,115200
=> tftp 1000000 $nor_jffs2_fs
=> erase $nor_jffs_start_address $nor_jffs_end_address /* erase address and size is decided by
your partition setting */
=> cp.b 1000000 $nor_jffs_start_address $filesize /* flash JFFS2 FS to the jffs2 partition on NOR
device */
The nor_jffs_start_address and nor_jffs_end_addresscan get from (board)_Quick_Strat_Guide or
(board)_user_manual.
and
=> boot
Also I have tried following ;
setenv bootargs root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttyS0,115200
tftp 1000000 uImage
tftp c00000 dtb
bootm 1000000 - c00000
it does not work for me,
Thank you for your consideration and time.
Solved! Go to Solution.
Please refer to the following process.
=>setenv bootargs "root=/dev/ram rw console=ttyS0,115200 mtdparts=fe8000000.nor:1m(uboot),10m(kernel),128k(dtb),100m(fs),-(user)"
=>tftp 0x10000000 nxa22585/t2080/uImage
=>tftp 0x20000000 nxa22585/t2080/fsl-image-core-t2080rdb.ext2.gz.u-boot
=>tftp 0xe00000 nxa22585/t2080/uImage-t2080rdb.dtb
=> bootm 0x10000000 0x20000000 0xe00000
root@t2080rdb:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "uboot"
mtd1: 00a00000 00020000 "kernel"
mtd2: 00020000 00020000 "dtb"
mtd3: 06400000 00020000 "fs"
mtd4: 010e0000 00020000 "user"
mtd5: 20000000 00020000 "fff800000.flash"
mtd6: 04000000 00010000 "spi32766.0"
Please refer to the following process.
=>setenv bootargs "root=/dev/ram rw console=ttyS0,115200 mtdparts=fe8000000.nor:1m(uboot),10m(kernel),128k(dtb),100m(fs),-(user)"
=>tftp 0x10000000 nxa22585/t2080/uImage
=>tftp 0x20000000 nxa22585/t2080/fsl-image-core-t2080rdb.ext2.gz.u-boot
=>tftp 0xe00000 nxa22585/t2080/uImage-t2080rdb.dtb
=> bootm 0x10000000 0x20000000 0xe00000
root@t2080rdb:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "uboot"
mtd1: 00a00000 00020000 "kernel"
mtd2: 00020000 00020000 "dtb"
mtd3: 06400000 00020000 "fs"
mtd4: 010e0000 00020000 "user"
mtd5: 20000000 00020000 "fff800000.flash"
mtd6: 04000000 00010000 "spi32766.0"
I have received the following output;
=> ubi part fs
Unknown command 'ubi' - try 'help'
=>