Does anyone know where I can find documents on how to write the device.dts files?
I see under target/linux/ramips/, there is no files/arch directory anymore, currently the dts is used for device definition. However, I failed to find any manuals on how to write it.
Your help to provide me the manual is much appreciated!
Below is mine in original mach-device.c file. However, I have no idea whether to map the rootfs and kernel partitions.
static struct mtd_partition hg255d_partitions[] = {
{
.name = "u-boot",
.offset = 0,
.size = SZ_128K,
}, {
.name = "kernel",
.offset = SZ_128K,
.size = SZ_1M,
}, {
.name = "rootfs",
.offset = SZ_1M + SZ_128K,
.size = FLASH_SIZE - (SZ_1M + SZ_128K * 2),
}, {
.name = "firmware",
.offset = SZ_128K,
.size = FLASH_SIZE - (SZ_128K * 2),
}, {
.name = "factory",
.offset = SZ_1M + (SZ_128K),
.size = SZ_128K,
}, {
.name = "fullflash",
.offset = 0x000000,
.size = FLASH_SIZE,
}
};
(Last edited by wjding on 17 Aug 2013, 06:55)