From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from w228.z208176144.sjc-ca.dsl.cnc.net ([208.176.144.228] helo=ns1.pwrseries.com) by canuck.infradead.org with esmtps (Exim 4.54 #1 (Red Hat Linux)) id 1EPOFr-0004p2-DZ for linux-mtd@lists.infradead.org; Tue, 11 Oct 2005 13:50:51 -0400 From: "Joseph M Dupre (AVAB Inc.)" To: linux-mtd@lists.infradead.org Date: Tue, 11 Oct 2005 10:49:20 -0700 MIME-Version: 1.0 Message-ID: <434B98B0.776.50BEDB@localhost> In-reply-to: <434BC152.6060105@ieee.org> References: <434A9F39.29129.1B3216A@localhost> Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Cc: dan_brown@ieee.org Subject: Re: docboot: nandwrite: Input file is not page aligned List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11 Oct 2005 at 9:42, Dan Brown wrote: > This is odd. Can you show me the output of the 'make' command (in > particular, it prints some info on the # and types of sectors in > doc_spl)? Also, what is the exact size of your doc_spl? > > Hopefully we can figure out your 'not page aligned' issue with some > more info. Thanks Dan, Here is the output from 'make KERN=/tftpboot/kernel-initrd INITRD=/tftpboot/rootfs.gz' cc -O2 -fno-builtin -nostdinc -c doc_bootstub.S ld -N -Ttext 0 -o doc_bootstub.elf doc_bootstub.o objcopy -O binary doc_bootstub.elf doc_bootstub cc makespl.c -o makespl -DCHECKSUM_LOCATION=0x`nm doc_bootstub.elf | grep checksum | cut -d " " -f 1` cat cmdline | ./makespl doc_bootstub /tftpboot/kernel-initrd doc_spl - i /tftpboot/rootfs.gz Commandline is "root=/dev/ram0 rw init=/linuxrc" 3 bootstub sectors, 10 real-mode sectors, 2420 kernel sectors, 1737 initrd sectors The generated doc_spl is 2201760 bytes. I am using the uClibc "Buildroot" toolchain. Dev machine is i686 and target is i486 with a DOC 2000 (MD2202-D128) Originally I was using the MTD utils generated by Buildroot to erase and load the DOC, but they were using mtd source from Debian's archive dated 22/1/05. I built the current versions of the MTD utils but have the same error. - Joe