Make boot from NAND flash

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello. The memory in ATNGW100 is only 8 mb. It is very little. I want to make device with linux and start something like XWindow System (i know that it is imposible but for example Opie linux has GUI). I need more memory. I want to connect SDRAM MT48LC16M16A2 and NAND flash MT29F2G08AACWP to store linux system. How can I boot linux from the NAND flash?

PS
Very sorry for my bad English)) I am from russia.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

XShadow wrote:
Hello. The memory in ATNGW100 is only 8 mb. It is very little.

Hmm...no, I don't think that's entirely correct. It's got 32 MB SDRAM, 8MB NOR flash and 8MB DataFlash. But I understand that it still may be a bit too little, especially storage-wise.

Quote:
I want to make device with linux and start something like XWindow System (i know that it is imposible but for example Opie linux has GUI).

I believe some people have used Nano-X and Qtopia successfully. X.org is probably a tad heavier if that's what you want to run.

Quote:
I need more memory. I want to connect SDRAM MT48LC16M16A2 and NAND flash MT29F2G08AACWP to store linux system. How can I boot linux from the NAND flash?

Depends on what you mean by "boot". You still need to keep the NOR flash around to run u-boot from, so you might as well use it to store some basic parts of the system (bootloader, kernel and a minimal root filesystem) and just mount the NAND flash filesystem on top of that (perhaps ignoring the DataFlash and using NAND as /usr might be a good solution.) You're going to need a NAND flash driver for Linux, which I don't think has been officially released yet but I've seen people using NAND flash with AP7000 so there must be some code out there somewhere. Atmel support can probably help you dig it up.

Alternatively, just use an SD card. They're cheap these days.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is not exactly what i want. I don't want store linux system on sd card because i want to use sd card slot for other purposes. I need something like hard disk in computer. My aim is creating something like pocket pc with linux. This is not comercial project.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you're going to use the SD card for storing files, there's no reason you can't use it to store your root filesystem as well. Well, there might be, if the SD card is a use supplied thing which can be removed, then not a good plan to put the rootfs on it ;). Then again, anyone know the state of play with the MCI supporting multiple cards? I don't think it can do it currently but are there any plans to make it so? Either utilizing the 2 slots or using multiple MMC on the same bus.

Quote:
Quote:
I want to make device with linux and start something like XWindow System (i know that it is imposible but for example Opie linux has GUI).

I believe some people have used Nano-X and Qtopia successfully. X.org is probably a tad heavier if that's what you want to run.
Nano-X has a compat layer for things which think they need X11 so you should be right just with that. Certainly Nano-X and Qtopia will get you flying with GUIness. People have run Qtopia with just 16MB of SDRAM so the 32MB that the NGW has will be heaps.

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

XShadow wrote:
This is not exactly what i want. I don't want store linux system on sd card because i want to use sd card slot for other purposes.

I guess that rules out the part about "alternatively, use an SD card" then. Did you read the rest of my post?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Big thanks to all. Now I will try to find the NAND flash driver. If you know something about it please help me (for example by PM or in that theme). Thanks :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The easyest way to try this is to create an disk image inside the root fs and moun it... Remember to compile with the USB Gadget support. This link may be of some help http://www.linux-usb.org/gadget/...

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

eaanon01 wrote:
The easyest way to try this is to create an disk image inside the root fs and moun it... Remember to compile with the USB Gadget support. This link may be of some help http://www.linux-usb.org/gadget/...
Err, why does USB gadget support help with mounting a filesystem (any filesystem) on NAND flash?

And if you've got a filesystem image within another filesystem nothing really changes, you just get a different filesystem (same size constraints etc.).

Or am I missing the point?

-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just assumed that he want's to use USB to acsess the unis since he would like to use it like a pocket pc and then stor things to the device. But It migth be me taking a wrong turn here. I thougth a quick way to start is to make a mass storage device but I im clearly not reading straigth today. Sorry if this clouds he issue.

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

XShadow wrote:
Big thanks to all. Now I will try to find the NAND flash driver. If you know something about it please help me (for example by PM or in that theme). Thanks :)

I'm working on a NAND driver, which is currently working but I need a couple of days to sort our a few issues.

Then I'll share the code.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It is great! Thanks to all of you!)