[OpenWrt-Devel] [PATCH] Ubnt EdgeRouter: Use mmcblk0p3 as ext4 rootfs for default ?
daniel
daniel at dd-wrt.com
Fri Jan 22 10:02:23 EST 2016
On 01/21/2016 08:57 AM, John Crispin wrote:
>
>
> On 20/01/2016 17:15, daniel wrote:
>> The UBNT EdgeRouter has an internal mmc flash card.
>> (unlike the EdgeRouter Lite)
>>
>> The factory mmc flash card layout is:
>>
>> Device Boot Start End Sectors Size Id Type
>> /dev/mmcblk0p1 * 63 17135 17073 8.3M 83 Linux
>> /dev/mmcblk0p2 17199 149183 131985 64.5M 83 Linux
>> /dev/mmcblk0p3 149247 2246831 2097585 1G 83 Linux
>>
>> This patch edits the kernel command line to use the the 3rd partition
>> as rootfs (ext4).
>> I think this makes sense for a default configuration when installing
>> openwrt on the mmc flash card of the EdgeRouter.
>>
>> What do you think ?
>>
>> Signed-off-by: Daniel Danzberger <daniel at dd-wrt.com>
>>
>>
>>
>
> we use block2mtd so that sysupgrade works. your patch technically is
> fine but will break at least sysupgrade on this target.
>
I changed the patch to use block2mtd.
While testing sysupgrade, I noticed that it's currently borken on this
device, because the /tmp/sysinfo/board_name file contains "ubnt,er200".
For sysupgrade to work, the file should contain "er".
However, deleting the file before running sysupgrade fixes the problem.
With this patch, I am now able to use the EdgeRouter properly with an
1 GB ext4 rootfs. But squashfs images won't work anymore due the change
of the rootfstype= in the kernel cmdline.
Maybe the squashfs image should be removed for the Edgerouter builds ?
Or is there a way to use different cmdlines for each image ?
>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel at lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
--
Regards
Daniel Danzberger
embeDD GmbH, Breitenweg 10, CH-6370 Stans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubnt-edgerouter-ext4-rootfs.patch
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160122/8b93d276/attachment.bin>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list