[OpenWrt-Devel] [PATCH] brcm2708: add script for creating SD partitions and one more missing symbol
Daniel Golle
daniel at makrotopia.org
Tue Feb 17 12:28:52 EST 2015
Hi,
I'm working on something similar for the other targets and here
are my two cents on the topic:
On Tue, Feb 17, 2015 at 05:12:05PM +0100, Álvaro Fernández Rojas wrote:
> + which parted > /dev/null
I ended up using coreutils-sfdisk instead of parted for the simple
reason that parted is not part of OpenWrt's core package set.
However, I reckon that including parted is actually the nicer option.
Also note, that if you are intending to use this script as a part
of the ImageBuilder, you can use the "ptgen" tool.
If this is supposed to be a stand-alone installer for OpenWrt on
SD-cards, I don't get why it should be included in the source tree
at all.
> + # this is needed to format the drive
> + which mkfs.ext4 > /dev/null
> ...
> +# create ext4 partition with optimized settings for running on flash/sd
> +# See http://blogofterje.wordpress.com/2012/01/14/optimizing-fs-on-sd-card/ for reference.
Is there any specific reason why ext4 is used for r/w rootfs?
More information about the openwrt-devel
mailing list