On Sat, Jul 12, 2014 at 7:05 PM, Bastien ROUCARIES
<roucaries.bast...@gmail.com> wrote:
> On Wed, Jul 9, 2014 at 9:58 AM, Ian Campbell <i...@hellion.org.uk> wrote:
>> On Tue, 2014-07-08 at 23:28 +0200, Bastien ROUCARIES wrote:
>>> On Tue, Jul 8, 2014 at 9:39 PM, Ian Campbell <i...@hellion.org.uk> wrote:
>>> > On Mon, 2014-07-07 at 17:05 +0200, Martin Michlmayr wrote:
>>> >> * Bastien ROUCARIES <roucaries.bast...@gmail.com> [2014-07-06 22:10]:
>>> >> > >> You combine the kernel and the DTB in 
>>> >> > >> $(TEMP)/dns-320/vmlinuz-dns320.  But then
>>> >> > >> instead of using this file to generate the kernel.uboot, you use 
>>> >> > >> the original
>>> >> > >> kernel.
>>> >> >
>>> >> > Corrected thank
>>> >>
>>> >> Looks good.
>>> >
>>> > I went to apply this but:
>>> >
>>> > mkdir -p ./tmp/kirkwood_network-console/dns-320
>>> > cat ./tmp/kirkwood_network-console/vmlinuz-3.14-1-kirkwood 
>>> > ./tmp/kirkwood_network-console/lib/kirkwood-dns320.dtb > 
>>> > ./tmp/kirkwood_network-console/dns-320/vmlinuz-dns320
>>> > mkimage -A arm -O linux -T kernel -C none -e 0x00008000 -a 0x00008000 -n 
>>> > "Debian kernel" -d ./tmp/kirkwood_network-console/dns-320/kernel 
>>> > ./tmp/kirkwood_network-console/dns-320/vmlinuz-dns320
>>> > /usr/bin/mkimage: Can't open 
>>> > ./tmp/kirkwood_network-console/dns-320/kernel: No such file or directory
>>> > config/armel/kirkwood/network-console.cfg:9: recipe for target 'dns-320' 
>>> > failed
>>>
>>> My fault here updated version
>>
>> Thanks, pushed. It should show up in the dailies tomorrow.
>
>
> Hi UImage is too big to get into mtd :S You said that it it is a
> trimmed down version ? Any idea to trim more ?
>
> BTW it seems that this config need  a serial console in order to set
> ssh password. Do you have pointer about documentation of how to set it
> without serial. I plan to document dns-320 on the wiki.

Could you also push the following patch ?

The first help me to debug and is the only stuff needed in order to
use uboot booting from serial console

The second one, will document the limit.

BTW it need to include  sata_mv module in order to see disk. How can I do ?

Bastien


> Bastien
>
>
>> Ian.
>>
From b1214924d0914165af5dfde92b8a149495dc0378 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bast...@gmail.com>
Date: Sat, 12 Jul 2014 19:22:55 +0200
Subject: [PATCH 1/2] Add kernel and initrd to debian installer
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It help to restore from serial console, when flashing from dlink fail.

Signed-off-by: Bastien ROUCARIÈS <roucaries.bast...@gmail.com>
---
 build/config/armel/kirkwood/network-console.cfg | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/build/config/armel/kirkwood/network-console.cfg b/build/config/armel/kirkwood/network-console.cfg
index 1489ec4..6bf1ef5 100644
--- a/build/config/armel/kirkwood/network-console.cfg
+++ b/build/config/armel/kirkwood/network-console.cfg
@@ -10,9 +10,13 @@ dns-320:
 	mkdir -p $(TEMP)/dns-320
 	cat $(TEMP_KERNEL) $(TEMP_DTBS)/kirkwood-dns320.dtb > $(TEMP)/dns-320/vmlinuz-dns320
 	mkimage -A arm -O linux -T kernel -C none -e 0x00008000 -a 0x00008000 -n "Debian kernel" -d $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/kernel.uboot
+	cp $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/kernel.uboot $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uImage
 	mkimage -A arm -O linux -T ramdisk -C gzip -e 0x00e00000 -a 0x00e00000 -n "debian-installer ramdisk" -d $(TEMP_INITRD) $(TEMP)/dns-320/initrd.uboot
-	mkdns323fw -k $(TEMP)/dns-320/kernel.uboot -i $(TEMP)/dns-320/initrd.uboot -t DNS-320 -o $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/netboot.img
-	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/netboot.img "installer image (dlink firmware) for D-Link DNS-320"
+	cp $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/initrd.uboot $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uInitrd
+	mkdns323fw -k $(TEMP)/dns-320/kernel.uboot -i $(TEMP)/dns-320/initrd.uboot -t DNS-320 -o $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/flash-debian
+	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/flash-debian "installer image (dlink firmware) for D-Link DNS-320"
+	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uImage "kernel for D-Link DNS-320"
+	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uInitrd "initrd for D-Link DNS-320"
 
 
 # QNAP TS-119, TS-219 and TS-219P
-- 
2.0.0

From d2a941f53ff7722b450c5e0a578b08b575462228 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bast...@gmail.com>
Date: Sat, 12 Jul 2014 19:35:19 +0200
Subject: [PATCH 2/2] Fail if dns-320 is too big
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Dns 320 image are less than 5M due to flash constraint

Signed-off-by: Bastien ROUCARIÈS <roucaries.bast...@gmail.com>
---
 build/config/armel/kirkwood/network-console.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/build/config/armel/kirkwood/network-console.cfg b/build/config/armel/kirkwood/network-console.cfg
index 6bf1ef5..2d34652 100644
--- a/build/config/armel/kirkwood/network-console.cfg
+++ b/build/config/armel/kirkwood/network-console.cfg
@@ -11,8 +11,12 @@ dns-320:
 	cat $(TEMP_KERNEL) $(TEMP_DTBS)/kirkwood-dns320.dtb > $(TEMP)/dns-320/vmlinuz-dns320
 	mkimage -A arm -O linux -T kernel -C none -e 0x00008000 -a 0x00008000 -n "Debian kernel" -d $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/kernel.uboot
 	cp $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/kernel.uboot $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uImage
+	# no more than 5M
+	test $$(stat -s %s $(TEMP)/dns-320/kernel.uboot) -le 5242880
 	mkimage -A arm -O linux -T ramdisk -C gzip -e 0x00e00000 -a 0x00e00000 -n "debian-installer ramdisk" -d $(TEMP_INITRD) $(TEMP)/dns-320/initrd.uboot
 	cp $(TEMP)/dns-320/vmlinuz-dns320 $(TEMP)/dns-320/initrd.uboot $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uInitrd
+	# no more than 5M
+	test $$(stat -s %s $(TEMP)/dns-320/initrd.uboot) -le 5242880
 	mkdns323fw -k $(TEMP)/dns-320/kernel.uboot -i $(TEMP)/dns-320/initrd.uboot -t DNS-320 -o $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/flash-debian
 	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/flash-debian "installer image (dlink firmware) for D-Link DNS-320"
 	update-manifest $(SOME_DEST)/$(EXTRANAME)/d-link/dns-320/uImage "kernel for D-Link DNS-320"
-- 
2.0.0

Reply via email to