[LEDE-DEV] [PATCHv2] ipq806x: add support for ZyXEL NBG6817

André Valentin avalentin at marcant.net
Tue Oct 18 00:49:20 PDT 2016


Hi John,

thanks for your comments. Please take a look:

Am 18.10.2016 um 08:22 schrieb John Crispin:

>> +++ b/target/linux/ipq806x/base-files/lib/preinit/04_set_mtd_ipq806x.sh
>> @@ -0,0 +1,21 @@
>> +#
>> +# Copyright (C) 2009 OpenWrt.org
>> +#
>> +
>> +. /lib/ipq806x.sh
>> +. /lib/functions/system.sh
>> +
>> +preinit_assign_mtd2block() {
>> +	case $(ipq806x_board_name) in
>> +		nbg6817)
>> +			echo "/dev/mmcblk0p2,64KiB,romd" > /sys/module/block2mtd/parameters/block2mtd
>> +			echo "/dev/mmcblk0p3,64KiB,header" > /sys/module/block2mtd/parameters/block2mtd
>> +			echo "/dev/mmcblk0p4,64KiB,kernel" > /sys/module/block2mtd/parameters/block2mtd
>> +			echo "/dev/mmcblk0p6,64KiB,header_1" > /sys/module/block2mtd/parameters/block2mtd
>> +			echo "/dev/mmcblk0p7,64KiB,kernel_1" > /sys/module/block2mtd/parameters/block2mtd
>> +			echo "/dev/mmcblk0p8,64KiB,rootfs_1" > /sys/module/block2mtd/parameters/block2mtd
>> +			;;
>> +	esac
>> +}
>> +
> 
> can this not go into the commandline inside the devicetree ?
I tried, but block2mtd accepts only one mapping in the command line.

I will rework the patch the next days and send an update.

André

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3691 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20161018/00c489d4/attachment.p7s>


More information about the Lede-dev mailing list