Editing Linuxstamp II 9260

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 17: Line 17:
 
* Serial debug port 5-pin header
 
* Serial debug port 5-pin header
 
* JTAG port
 
* JTAG port
 
== Motherboards ==
 
It is very easy to make a motherboard for the Linuxstamp II such as the [http://opencircuits.com/Linuxstamp_II_8-channel_RC_Control_board 8-channel RC Control board].
 
  
 
== Emdebian ==
 
== Emdebian ==
The current Linux distribution is [http://www.emdebian.org/ Emdebian]. It is located in the NAND flash and uses UBI & UBIFS. The Emdebian folks have done a stellar job on Emdebian, and the best part is if the package you're after hasn't been "gripped" yet you can get the normal debian version.
+
The current Linux distribution is [http://www.emdebian.org/ Emdebian]. It is located in the NAND flash and uses UBI & UBIFS. The Emdebian folks have done a stellar job on Emdebian, and the best part is if the package your after hasn't been "gripped" yet you can get the normal debian version.
  
 
The following instructions show how to build an emdebian system. The host system is debian squeeze on a x86_64, multistrap version 2.1.7. Here's the configuration file:
 
The following instructions show how to build an emdebian system. The host system is debian squeeze on a x86_64, multistrap version 2.1.7. Here's the configuration file:
Line 118: Line 115:
 
== U-boot ==
 
== U-boot ==
 
First we need [ftp://ftp.denx.de/pub/u-boot/u-boot-2010.03.tar.bz2 u-boot]. If you have not yet built a cross compilier now would be a good time to do so (See the cross compilier section above). Now you can do a test for the Atmel at91sam9g20 EL board using NAND.
 
First we need [ftp://ftp.denx.de/pub/u-boot/u-boot-2010.03.tar.bz2 u-boot]. If you have not yet built a cross compilier now would be a good time to do so (See the cross compilier section above). Now you can do a test for the Atmel at91sam9g20 EL board using NAND.
$make at91sam9g20ek_nandflash_config
+
* $ '''make at91sam9g20ek_nandflash_config'''
$make CROSS_COMPILE=your_cross_compiler
+
* $ '''make CROSS_COMPILE=your_cross_compiler'''
 
This should give you a "u-boot.bin" file. We will have to write a board specific configuration file for the Linuxstamp. We should be able to base it off the the Atmel DK board. If you look at "/u-boot-1.1.6/include/configs/at91rm9200dk.h" you can see the configuration for the DK board.
 
This should give you a "u-boot.bin" file. We will have to write a board specific configuration file for the Linuxstamp. We should be able to base it off the the Atmel DK board. If you look at "/u-boot-1.1.6/include/configs/at91rm9200dk.h" you can see the configuration for the DK board.
 
<br>
 
<br>
 
Other u-boot commands:
 
Other u-boot commands:
> '''printenv''', prints the enviroment variables
+
* > '''printenv''', prints the enviroment variables
> '''saveenv''', saves the enviroment variables
+
* > '''saveenv''', saves the enviroment variables
> '''setenv bootcmd 'tftpboot 20800000 uImage; bootm 20800000'''' Sets the boot command to load a image over tftp and boot it
+
* > '''setenv bootcmd 'tftpboot 20800000 uImage; bootm 20800000'''' Sets the boot command to load a image over tftp and boot it
> '''setenv bootargs mem=32M nfsroot=192.168.0.3:/nfs_root ip=192.168.0.51 console=ttyS0,115200n8 rootdelay=1'''
+
* > '''setenv bootargs mem=32M nfsroot=192.168.0.3:/nfs_root ip=192.168.0.51 console=ttyS0,115200n8 rootdelay=1'''
 
This sets the command line to be passed to the kernel. As you can see it sets the nfsrot, ip address and console
 
This sets the command line to be passed to the kernel. As you can see it sets the nfsrot, ip address and console
 
Warning!!! you can brick a board with the wrong u-boot NAND commands.
 
You can read and write the NAND flash with u-boot. To get started the u-boot NAND help is useful:
 
> '''nand help'''
 
So if to update the kernel, you must first be able to load the uImage into ram. This is normally done from tftpboot, with something like:
 
> '''tftpboot 0x20800000 uImage.9g20r5'''
 
Where 0x20800000 is the ram address, and uImage.9g20r5 is the file name on the tftp server. Now you need to erase the kernel block. This is necessary because a NAND write by itself can only switch bits to 0's:
 
> '''nand erase 0xa0000 0x200000'''
 
Where 0xa0000 is the offset and 0x200000 is the length. Now the new kernel can be written:
 
> '''nand write 0x20800000 0xa0000 0x200000'''
 
Where 0xa0000 is the offset and 0x200000 is the length
 
  
 
== License ==
 
== License ==
Line 218: Line 204:
 
  > saveenv
 
  > saveenv
 
You can now reboot your board and see if it connects to your NFS root file system.
 
You can now reboot your board and see if it connects to your NFS root file system.
 
Note: On your NFS server, make sure you edit '''/etc/network/interfaces''' and comment out all the lines so that the kernal will not reset your network while booting up as the U-Boot has already setup the network for you.
 
 
 
  
 
Now lets install the new root file system. Take your new .bz2 file that you either created or download and put it in the root of the NFS root path.
 
Now lets install the new root file system. Take your new .bz2 file that you either created or download and put it in the root of the NFS root path.
Line 283: Line 265:
 
*[http://cadsoft.de/ Cadsoft.de]: Free (as in beer) tools for schematic and PCB design
 
*[http://cadsoft.de/ Cadsoft.de]: Free (as in beer) tools for schematic and PCB design
 
*[http://openhardware.wordpress.com/ openhardware.wordpress.com]: Here is my openhardware blog
 
*[http://openhardware.wordpress.com/ openhardware.wordpress.com]: Here is my openhardware blog
*[[Linuxstamp]] for the original AT91RM9200 Linuxstamp
+
*[[Linuxstamp Mboard 1| Mborad 1]] for the Linuxstamp
 
*[http://wiki.emqbit.com/free-ecb-at91 ECB AT91] This is another open source project similar to the Linuxstamp. They have some [http://wiki.emqbit.com/wiki very good documentation].
 
*[http://wiki.emqbit.com/free-ecb-at91 ECB AT91] This is another open source project similar to the Linuxstamp. They have some [http://wiki.emqbit.com/wiki very good documentation].
 
*[http://www.budgetdedicated.com/ Budgetdedicated] Graciously hosts our ftp [http://linuxstamp.budgetdedicated.com/index.php?dir=lnst2/ site]
 
*[http://www.budgetdedicated.com/ Budgetdedicated] Graciously hosts our ftp [http://linuxstamp.budgetdedicated.com/index.php?dir=lnst2/ site]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)