On Mon, Mar 3, 2014 at 5:49 AM, Ian Campbell <i...@hellion.org.uk> wrote: > On Mon, 2014-03-03 at 03:48 +0100, Cyril Brulebois wrote: >> Control: reassign -1 flash-kernel >> >> Ben Hutchings <b...@decadent.org.uk> (2014-03-03): >> > On Mon, 2014-03-03 at 02:25 +0000, Ben Hutchings wrote: >> > > I found these pages: >> > > >> > > http://jamie.lentin.co.uk/devices/dlink-dns325/ >> > >> > Oh, that's exactly what Bastien linked to. Well anyway, I hope I >> > extracted the most useful information below. >> >> Certainly, thanks! >> >> > > http://jamie.lentin.co.uk/devices/dlink-dns325/keeping-original-firmware/ >> > > >> > > They say that these models use a Kirkwood SoC (so the kirkwood kernel >> > > and installer flavours should be used) and that they are supported by >> > > the standard kernel package in wheezy-backports but not wheezy. >> > > >> > > Given that the instructions include writing a custom kernel install >> > > hook, I would assume that flash-kernel doesn't support these models and >> > > therefore this bug should be reassigned to flash-kernel. But there may >> > > be other changes needed elsewhere. >> >> Punting that to flash-kernel for the time being. Ian will likely know >> what to do with it. ;) > > Please can someone with access to the system provide a flash-kernel > stanza for the system. After installing the flash-kernel > package /usr/share/doc/flash-kernel/README.gz will contain documentation > for (most of) the possible stanza entries > and /usr/share/flash-kernel/db/all.db will have plenty of examples. For > testing a stanza can be added to /etc/flash-kernel/db. > > From > http://jamie.lentin.co.uk/devices/dlink-dns325/keeping-original-firmware/ it > looks like you can boot from both NAND and the regular disk/MMC, I'd be > inclined to go with installing to NAND by default, which would mean using the > Mtd-Kernel/Initrd style of entries.
ok the existing mtd partition are too small :S See bellow. How can I do ? I have more space but I need to change partition table and likely change uboot... I have used the following config: Machine: D-Link DNS-320 NAS (Rev A1) Kernel-Flavors: kirkwood DTB-Id: kirkwood-dns320.dtb DTB-Append: Yes Mtd-Kernel: uImage Mtd-Initrd: ramdisk U-Boot-Kernel-Address: 0xa00000 U-Boot-Initrd-Address: 0xf00000 Required-Packages: u-boot-tools Bootloader-Sets-Incorrect-Root: yes the mdtdinfo is: Count of MTD devices: 6 Present MTD devices: mtd0, mtd1, mtd2, mtd3, mtd4, mtd5 Sysfs interface supported: yes mtd0 Name: u-boot Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 8 (1048576 bytes, 1024.0 KiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:0 Bad blocks are allowed: true Device is writable: false mtd1 Name: uImage Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 40 (5242880 bytes, 5.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:2 Bad blocks are allowed: true Device is writable: true mtd2 Name: ramdisk Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 40 (5242880 bytes, 5.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:4 Bad blocks are allowed: true Device is writable: true mtd3 Name: image Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 816 (106954752 bytes, 102.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:6 Bad blocks are allowed: true Device is writable: true mtd4 Name: mini firmware Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 80 (10485760 bytes, 10.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:8 Bad blocks are allowed: true Device is writable: true mtd5 Name: config Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 40 (5242880 bytes, 5.0 MiB) Minimum input/output unit size: 2048 bytes Sub-page size: 512 bytes OOB size: 64 bytes Character device major/minor: 90:10 Bad blocks are allowed: true Device is writable: true And error message is: dpkg-reconfigure $(dpkg --get-selections | grep linux-image-3 | cut -f1) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-3.14-1-kirkwood Warning: root device does not exist Unable to abort; system will probably be broken! Installing kirkwood-dns320.dtb 3.14-1-kirkwood into /boot perl: warning: Setting locale failed. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: perl: warning: Please check that your locale settings: LANGUAGE = (unset), LANGUAGE = (unset), LC_ALL = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Falling back to the standard locale ("C"). Installing kirkwood-dns320.dtb 3.14-1-kirkwood into /boot flash-kernel: deferring update (trigger activated) /etc/kernel/postinst.d/zz-flash-kernel: Installing kirkwood-dns320.dtb 3.14-1-kirkwood into /boot perl: warning: Setting locale failed. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "fr_FR.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Installing kirkwood-dns320.dtb 3.14-1-kirkwood into /boot flash-kernel: deferring update (trigger activated) Processing triggers for flash-kernel (3.19) ... Installing kirkwood-dns320.dtb 3.14-1-kirkwood into /boot flash-kernel: installing version 3.14-1-kirkwood Not enough space in MTD ramdisk (need 8695959 but is actually 5242880). dpkg: error processing package flash-kernel (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: flash-kernel root@nas:/etc# mtdin > Ideally things would be setup to work without the need to enter all the > u-boot runes referenced on those webpages. > > Ian. > -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAE2SPAYr1FC3-5WU_TJgx4=hGznxEiKh=zqnsaxacpxny31...@mail.gmail.com