# SAM9-L9260: nandwrite give error "not page aligned&quot

**URL:** <https://community.sparkfun.com/t/sam9-l9260-nandwrite-give-error-not-page-aligned-quot/6178>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [January 16, 2008, 9:56am UTC](https://community.sparkfun.com/t/sam9-l9260-nandwrite-give-error-not-page-aligned-quot/6178 "2008-01-16T09:56:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylam](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kylam](https://community.sparkfun.com/u/kylam)\
**Post date:** [January 16, 2008, 9:56am UTC](https://community.sparkfun.com/t/sam9-l9260-nandwrite-give-error-not-page-aligned-quot/6178/1 "2008-01-16T09:56:43Z")

</div>

Here is the command I used to generate the mkfs.jffs2.img file,

mkfs.jff2 -s 4096 -r src\_directory -e 0x20000 -o rootjffs.img

after that I was using the nandwrite utility using following command and the results,

sam9-l9260:/# nandwrite -a /dev/mtd1 rootme.img

Input file is not page aligned

Data was only partially written due to error

: Success

Anybody have idea to resolve this?

---

<div class="post-metadata">

**Author:** ![xpc](https://avatars.discourse-cdn.com/v4/letter/x/858c86/32.png) [@xpc](https://community.sparkfun.com/u/xpc)\
**Post date:** [April 9, 2008, 7:34am UTC](https://community.sparkfun.com/t/sam9-l9260-nandwrite-give-error-not-page-aligned-quot/6178/2 "2008-04-09T07:34:16Z")

</div>

in this case a -p option in the mkfs.jffs2 command line would be useful
