It is odd, I agree, this is confusing, but look at full serial log (the link
I just sent) and you will see the same thing!
Maybe it has some protection to 3rd party firmware?!
----- Original Message -----
From: <jonsm...@gmail.com>
To: "OpenWrt Development List" <openwrt-devel@lists.openwrt.org>
Sent: Sunday, June 23, 2013 11:24 PM
Subject: [Spam] Re: [OpenWrt-Devel] Help with DTS file
On Sun, Jun 23, 2013 at 5:50 PM, Flávio Silveira <f...@terra.com.br> wrote:
Good evening,
I'm trying to create a dts file for my router which is not supported yet
and I'm stuck on the definition of partitions.
Do I have to follow the same as stock firmware?
Router's serial log with stock firmware shows this:
Creating 8 MTD partitions on "raspi":
0x000000150060-0x0000003cc060 : "rootfs"
0x000000050000-0x0000003e0000 : "upgrade"
0x000000040000-0x000000050000 : "devconf"
0x000000030000-0x000000040000 : "devdata"
0x0000003e0000-0x000000400000 : "langpack"
0x000000000000-0x000000400000 : "flash"
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000038000 : "boot env"
Partitions should not overlap. This partition table doesn't seem to be
valid.
Here's mine:
[ 0.420000] 4 ofpart partitions found on MTD device spi0.0
[ 0.440000] Creating 4 MTD partitions on "spi0.0":
[ 0.450000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.460000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.470000] 0x000000040000-0x000000050000 : "factory"
[ 0.490000] 0x000000050000-0x000002000000 : "firmware"
Even putting it in order doesn't make sense...
Creating 8 MTD partitions on "raspi":
0x000000000000-0x000000400000 : "flash"
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000038000 : "boot env"
0x000000030000-0x000000040000 : "devdata"
0x000000040000-0x000000050000 : "devconf"
0x000000050000-0x0000003e0000 : "upgrade"
0x000000150060-0x0000003cc060 : "rootfs"
0x0000003e0000-0x000000400000 : "langpack"
So I thought something like:
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x8000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
label = "firmware";
reg = <0x50000 0x3e0000>;
};
};
};
Please review, thanks!
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
--
Jon Smirl
jonsm...@gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel