Specifications
stdout=serial
stderr=serial
bootcmd=bootm 42000000 - 41000000
bootargs=root=/dev/nfs rw nfsroot=192.168.1.1:/opt/eldk-5.2/armv5te/rootfs
ip=192.168.20.38:192.168.1.1:192.168.1.1:255.255.0.0:m28::off
....
=> saveenv
To test booting from flash you can now reset the board (either by power-cycling it, or using the U-Boot
command reset), or you can manually call the boot command which will run the commands in the
bootcmd variable:
Note: Included topic DULGData_m28.LinuxBootSelfNand does not exist yet
-- HeikoSchocher - 04 Nov 2011
7.7. Standalone Operation with Ramdisk Image
When your application development is completed, you usually will want to run your Embedded System
standalone, i. e. independent from external resources like NFS filesystems. Instead of mounting the root
filesystem from a remote server you can use a compressed ramdisk image, which is stored in flash memory
and loaded into RAM when the system boots.
Load the ramdisk image into RAM and write it to flash as follows:
Note: Included topic DULGData_m28.UBootInstallNandRamdisk does not exist yet
To tell the Linux kernel to use the ramdisk image as root filesystem you have to modify the command line
arguments passed to the kernel, and to pass two arguments to the bootm command, the first is the memory
address of the Linux kernel image, the second that of the ramdisk image:
Note: Included topic DULGData_m28.LinuxBootSelfNand does not exist yet
8. Building and Using Modules
This section still needs to be written (this is a wiki, so please feel free to contribute!).
In the meantime, please refer to file Documentation/kbuild/modules.txt in the Linux source tree.
9. Advanced Topics
9.1. Flash Filesystems
9.1.1. Memory Technology Devices◊
9.1.2. Journalling Flash File System◊
9.1.3. Second Version of JFFS◊
9.1.4. Compressed ROM Filesystem◊
9.1.5. UBI and UBIFS file systems
9.1.5.1. Create Device Files⋅
9.1.5.2. Using UBI on NAND Flash:⋅
9.1.5.3. Creating UBIFS File System Images
9.1.5.3.1. Determining the Parameters of the used Flash Types:•
9.1.5.3.2. Create some Test File System Hierarchy•
9.1.5.3.3. Installing UBIFS images into existing UBI Volume:•
9.1.5.3.4. Installing UBI images (if no UBI Volumes exist):•
⋅
◊
♦
•
8. Building and Using Modules 96